fix afl-fuzz-document

This commit is contained in:
van Hauser
2020-03-15 17:07:06 +01:00
parent 15ba6249fc
commit f9f163e48f
2 changed files with 4 additions and 3 deletions

View File

@ -187,7 +187,7 @@ void write_to_testcase(afl_state_t *afl, void *mem, u32 len) {
#ifdef _AFL_DOCUMENT_MUTATIONS
s32 doc_fd;
char *fn = alloc_printf("%s/mutations/%09u:%s", afl->out_dir,
afl->document_counter++, describe_op(0));
afl->document_counter++, describe_op(afl, 0));
if (fn != NULL) {
if ((doc_fd = open(fn, O_WRONLY | O_CREAT | O_TRUNC, 0600)) >= 0) {