File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -252,27 +252,27 @@ int main(int argc, char **argv) {
252
252
else if (argc == 2 && (N = atoi (argv[1 ])) > 0 )
253
253
Printf (" WARNING: using the deprecated call style `%s %d`\n " , argv[0 ], N);
254
254
else if (argc > 1 ) {
255
- if (!getenv (" AFL_DRIVER_DONT_DEFER" )) {
255
+ // if (!getenv("AFL_DRIVER_DONT_DEFER")) {
256
256
__afl_sharedmem_fuzzing = 0 ;
257
257
__afl_manual_init ();
258
- }
258
+ // }
259
259
return ExecuteFilesOnyByOne (argc, argv);
260
260
exit (0 );
261
261
}
262
262
263
263
assert (N > 0 );
264
264
265
- if (!getenv (" AFL_DRIVER_DONT_DEFER" ))
266
- __afl_manual_init ();
267
-
268
265
// Call LLVMFuzzerTestOneInput here so that coverage caused by initialization
269
266
// on the first execution of LLVMFuzzerTestOneInput is ignored.
270
267
uint8_t dummy_input[1 ] = {0 };
271
268
LLVMFuzzerTestOneInput (dummy_input, 1 );
272
269
270
+ // if (!getenv("AFL_DRIVER_DONT_DEFER"))
271
+ __afl_manual_init ();
272
+
273
273
int num_runs = 0 ;
274
274
while (__afl_persistent_loop (N)) {
275
- if (__afl_fuzz_len > 0 ) {
275
+ if (__afl_fuzz_len) {
276
276
num_runs++;
277
277
LLVMFuzzerTestOneInput (__afl_fuzz_ptr, __afl_fuzz_len);
278
278
}
You can’t perform that action at this time.
0 commit comments