From 80576159a9067f2caf15e2ef6267af606e80f610 Mon Sep 17 00:00:00 2001 From: agroce Date: Wed, 13 Feb 2019 22:45:40 +0000 Subject: [PATCH] file too large now won't make AFL think it saw a crash --- src/include/deepstate/DeepState.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/include/deepstate/DeepState.h b/src/include/deepstate/DeepState.h index 07be2e0..e37626a 100644 --- a/src/include/deepstate/DeepState.h +++ b/src/include/deepstate/DeepState.h @@ -484,8 +484,9 @@ static void DeepState_InitInputFromFile(const char *path) { }; if (stat_buf.st_size > sizeof(DeepState_Input)) { - /* TODO(joe): Add error log with more info. */ - DeepState_Abandon("File too large"); + DeepState_LogFormat(DeepState_LogInfo, "File too large; aborting"); + exit(255); // Don't make AFL think this is a crash! + // DeepState_Abandon("File too large"); } /* Reset the input buffer and reset the index. */