diff options
author | hexcoder <hexcoder-@users.noreply.github.com> | 2021-03-17 08:00:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-17 08:00:32 +0100 |
commit | d17abce59b846d2008eac3dd1a73939e91f4b653 (patch) | |
tree | e2715f85ccae8a64a0bce669a7a767dea363f673 /src/afl-fuzz-queue.c | |
parent | 62f067ec71aff384a197511b33142002ca284c66 (diff) | |
parent | b715050de9846ab4b1f30a811af83b7a4b9e09a3 (diff) | |
download | afl++-d17abce59b846d2008eac3dd1a73939e91f4b653.tar.gz |
Merge branch 'dev' into atat-plusplus
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; |