file too large now won't make AFL think it saw a crash

This commit is contained in:
agroce
2019-02-13 22:45:40 +00:00
parent ef9eae0668
commit 80576159a9
+3 -2
View File
@@ -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. */