Skip to content

Commit

Permalink
suppress fuzz-instrumentation for package syscall
Browse files Browse the repository at this point in the history
Fuzz instrumentation isn't safe for the child process within
syscall.ForkExec. Reported as google/oss-fuzz#3639.
  • Loading branch information
mdempsky committed Apr 14, 2020
1 parent 20e3c7d commit eb2391a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ func main() {
"-tags", tags,
"-trimpath",
}

suppress := []string{
"syscall", // https://github.com/google/oss-fuzz/issues/3639
}
for _, pkg := range suppress {
buildFlags = append(buildFlags, "-gcflags", pkg+"=-libfuzzer=0")
}

if *flagRace {
buildFlags = append(buildFlags, "-race")
}
Expand Down

0 comments on commit eb2391a

Please sign in to comment.