File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -537,14 +537,13 @@ class UCAFL {
537
537
/* Parent supports testcases via shared map - and the user wants to
538
538
* use it. Tell AFL. */
539
539
status = (FS_OPT_ENABLED | FS_OPT_SHDMEM_FUZZ);
540
+ /* Phone home and tell the parent that we're OK. If parent isn't there,
541
+ assume we're not running in forkserver mode and just execute
542
+ program. */
543
+ if (write (FORKSRV_FD + 1 , &status, 4 ) != 4 )
544
+ return UC_AFL_RET_NO_AFL;
540
545
}
541
546
542
- /* Phone home and tell the parent that we're OK. If parent isn't there,
543
- assume we're not running in forkserver mode and just execute
544
- program. */
545
-
546
- if (write (FORKSRV_FD + 1 , &status, 4 ) != 4 )
547
- return UC_AFL_RET_NO_AFL;
548
547
549
548
/* afl tells us in an extra message if it accepted this option or not */
550
549
if (this ->afl_testcase_ptr_ && getenv (SHM_FUZZ_ENV_VAR)) {
You can’t perform that action at this time.
0 commit comments