We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15fcedd commit a70fd8cCopy full SHA for a70fd8c
harness/fuzzware_harness/native/native_hooks.c
@@ -116,6 +116,7 @@ uint8_t coverage_bitmap[MAP_SIZE];
116
static void determine_input_mode() {
117
char *id_str;
118
int shm_id;
119
+ int tmp;
120
121
id_str = getenv(SHM_FUZZ_ENV_VAR);
122
if (id_str) {
@@ -125,6 +126,13 @@ static void determine_input_mode() {
125
126
perror("[!] could not access fuzzing shared memory");
127
exit(1);
128
}
129
+
130
+ // AFL++ detected. Read its status value
131
+ if(read(FORKSRV_FD, &tmp, 4) != 4) {
132
+ perror("[!] did not receive AFL++ status value");
133
+ exit(1);
134
+ }
135
136
input_mode_SHM = true;
137
138
0 commit comments