Hello
I am a new user of afl. Could someone please help me for resolving this problem.
But I am stuck at one point.
I was fuzzing this program -
INPUT PROGRAM:
////////
int global_array[101] = {-1};
char g[101] = {-2};
#include<stdio.h>
#include<stdlib.h>
int main(int argc, char **argv) {
global_array[atoi(argv[1])] = 70;
g[atoi(argv[1])] = 'c';
return global_array[0];
}
//////////
INPUT FILE:
5
COMMANDS:
1. afl-2.40b/afl-clang-fast -fsanitize=address -o s ~/Global1.c
2. afl-2.40b/afl-fuzz -i ~/testinput/ -o ~/testoutput/ ./s
OUTPUT:
afl-2.40b/afl-fuzz -i ~/testinput/ -o ~/testoutput/ ./s
afl-fuzz 2.40b by <
lca...@google.com>
[+] You have 8 CPU cores and 1 runnable tasks (utilization: 12%).
[+] Try parallel jobs - see docs/parallel_fuzzing.txt.
[*] Checking CPU core loadout...
[+] Found a free CPU core, binding to #0.
[*] Checking core_pattern...
[*] Checking CPU scaling governor...
[*] Setting up output directories...
[+] Output directory exists but deemed OK to reuse.
[*] Deleting old session data...
[+] Output dir cleanup successful.
[*] Scanning '/home/aayushi/testinput/'...
[+] No auto-generated dictionary tokens to reuse.
[*] Creating hard links for all input files...
[*] Validating target binary...
[*] Attempting dry run with 'id:000000,orig:
test1.in'...
[*] Spinning up the fork server...
[-] Whoops, the target binary crashed suddenly, before receiving any input
from the fuzzer! Since it seems to be built with ASAN and you have a
restrictive memory limit configured, this is expected; please read
docs/notes_for_asan.txt for help.
[-] PROGRAM ABORT : Fork server crashed with signal 6
Location : init_forkserver(), afl-fuzz.c:2222