fix null ptr deref before trim_case_custom call

This commit is contained in:
Andrea Fioraldi 2020-03-04 19:28:29 +01:00
parent e43473faef
commit 70a67ca67d

View File

@ -680,7 +680,8 @@ void sync_fuzzers(char** argv) {
u8 trim_case(char** argv, struct queue_entry* q, u8* in_buf) {
/* Custom mutator trimmer */
if (mutator->afl_custom_trim) return trim_case_custom(argv, q, in_buf);
if (mutator && mutator->afl_custom_trim)
return trim_case_custom(argv, q, in_buf);
static u8 tmp[64];
static u8 clean_trace[MAP_SIZE];