diff options
author | van Hauser <vh@thc.org> | 2021-03-15 23:14:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-15 23:14:07 +0100 |
commit | 23f7bee81c46ad4f0f65fa56d08064ab5f1e2e6f (patch) | |
tree | 79c15c7a4f879c90f683a61a8ad878bd19e2a69e /src/afl-fuzz-queue.c | |
parent | e5bdba4b9f22c0f2e4ff60ffc9bfa8fbaeb586d2 (diff) | |
parent | ac795ae1e154df87d422eb9a307ee1f40fcb701f (diff) | |
download | afl++-23f7bee81c46ad4f0f65fa56d08064ab5f1e2e6f.tar.gz |
Merge pull request #820 from AFLplusplus/dev 3.11c
push to stable
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; |