You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems like a corner case go/ast or go/printer bug. Our could have to do with exactly how we insert the coverage statement. Needs investigation.
This doesn't affect go tool cover, since it doesn't use go/ast or go/printer any more. It uses plain text editing (internal package edit). I'd really like to use that for go-fuzz, but we lose handy //line printing. I've described the difficulties here at length somewhere in a go-fuzz issue, don't recall where now.
Issue: The code of the function
times3
produced by instrumentation is wrong.This is the minimal reproducible example.
File: fuzz.go
File: times.s
Command
Output:
Instrumented code (wrong)
Instrumented code (expected/correct)
The text was updated successfully, but these errors were encountered: