Skip to content
Snippets Groups Projects
Commit 04033f45 authored by Anh Nguyen-Tuong's avatar Anh Nguyen-Tuong
Browse files

In debug mode, force afl map entry

parent 4b7bb605
No related branches found
No related tags found
No related merge requests found
......@@ -100,7 +100,7 @@ void zafl_initAflForkServer()
zafl_setupSharedMemory();
if (debug)
printf("libzafl: map is at 0x%p\n", zafl_trace_map);
printf("libzafl: map is at %p\n", zafl_trace_map);
if (!zafl_trace_map) {
zafl_trace_map = (u8*)malloc(MAP_SIZE);
......@@ -115,6 +115,10 @@ void zafl_initAflForkServer()
return;
}
// force map entry to get past afl sanity checks
if (debug)
zafl_trace_map[MAP_SIZE-1] = 1;
fork_server_initialized = 1;
// afl forkserver handshake
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment