commit | e2635e5a786552ee22bc167d0b2af5b2bd4b5fd4 | [log] [tgz] |
---|---|---|
author | plusun <tomsun.0.7@gmail.com> | Mon Aug 06 07:06:46 2018 +0000 |
committer | plusun <tomsun.0.7@gmail.com> | Mon Aug 06 07:06:46 2018 +0000 |
tree | 5d453d92b70a760699a7faaccc23cc16a6711b35 | |
parent | 789534382fa6b89dd79c1d6313095aed0d6c0b7f [diff] [blame] |
Change the default '\0' to ' ' when only-printable is used
diff --git a/fuzz.c b/fuzz.c index a250e6d..6ac7bdc 100644 --- a/fuzz.c +++ b/fuzz.c
@@ -173,7 +173,8 @@ * dynamic corpus, so the dynamic phase doesn't fail because of lack of useful inputs */ if (run->global->io.dynfileqCnt == 0) { - fuzz_addFileToFileQ(run->global, (const uint8_t*)"\0", 1U); + const char *single_byte = run->global->cfg.only_printable ? " " : "\0"; + fuzz_addFileToFileQ(run->global, (const uint8_t*)single_byte, 1U); } }