mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-14 11:08:06 +00:00
fixes
This commit is contained in:
@ -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 (len >= MAX_FILE) len = MAX_FILE - 1;
|
||||||
if ((fd = open(q->fname, O_RDONLY)) < 0) return 0;
|
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);
|
comp = read(fd, buf, len);
|
||||||
close(fd);
|
close(fd);
|
||||||
if (comp != (ssize_t)len) return 0;
|
if (comp != (ssize_t)len) return 0;
|
||||||
|
@ -1680,6 +1680,7 @@ int main(int argc, char **argv_orig, char **envp) {
|
|||||||
setenv("AFL_NO_AUTODICT", "1", 1); // loaded already
|
setenv("AFL_NO_AUTODICT", "1", 1); // loaded already
|
||||||
afl->fsrv.trace_bits =
|
afl->fsrv.trace_bits =
|
||||||
afl_shm_init(&afl->shm, new_map_size, afl->non_instrumented_mode);
|
afl_shm_init(&afl->shm, new_map_size, afl->non_instrumented_mode);
|
||||||
|
afl->cmplog_fsrv.trace_bits = afl->fsrv.trace_bits;
|
||||||
afl_fsrv_start(&afl->fsrv, afl->argv, &afl->stop_soon,
|
afl_fsrv_start(&afl->fsrv, afl->argv, &afl->stop_soon,
|
||||||
afl->afl_env.afl_debug_child);
|
afl->afl_env.afl_debug_child);
|
||||||
afl_fsrv_start(&afl->cmplog_fsrv, afl->argv, &afl->stop_soon,
|
afl_fsrv_start(&afl->cmplog_fsrv, afl->argv, &afl->stop_soon,
|
||||||
|
Reference in New Issue
Block a user