diff options
author | aflpp <aflpp@aflplus.plus> | 2021-03-15 20:32:01 +0100 |
---|---|---|
committer | aflpp <aflpp@aflplus.plus> | 2021-03-15 20:32:01 +0100 |
commit | 61c8304f246527563d8be7e85d47f5ffc24682ba (patch) | |
tree | c1d99a4395e3a4835a07758b3ec781287481f3a4 /src/afl-fuzz-queue.c | |
parent | 01ad0f3c6a45e28eb99e7076f97af2e2a9516c45 (diff) | |
download | afl++-61c8304f246527563d8be7e85d47f5ffc24682ba.tar.gz |
fixes
Diffstat (limited to 'src/afl-fuzz-queue.c')
-rw-r--r-- | src/afl-fuzz-queue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/afl-fuzz-queue.c b/src/afl-fuzz-queue.c index 835aba40..b2f88205 100644 --- a/src/afl-fuzz-queue.c +++ b/src/afl-fuzz-queue.c @@ -325,7 +325,7 @@ static u8 check_if_text(afl_state_t *afl, struct queue_entry *q) { if (len >= MAX_FILE) len = MAX_FILE - 1; if ((fd = open(q->fname, O_RDONLY)) < 0) return 0; - buf = afl_realloc(AFL_BUF_PARAM(in_scratch), len); + buf = afl_realloc(AFL_BUF_PARAM(in_scratch), len + 1); comp = read(fd, buf, len); close(fd); if (comp != (ssize_t)len) return 0; |