Closed
Description
We may want to consider adding a -fuzztimeout flag
, which acts similar to a -timeout flag, but for a run of a single input to the f.Fuzz
function.
If -fuzztimeout=100ms, then we give each execution of the fuzz function 100 milliseconds to run, and consider it a crasher if that execution takes longer than 100ms to complete.
Note that libFuzzer does this with a -timeout flag.
We could also consider retrofitting the existing -timeout flag, but that might cause confusion. The description for timeout is "If a test binary runs longer than duration d, panic." If someone sets timeout while fuzzing, we don't want to panic when we hit that timeout (which we will if there is no crash).
Related to #44483.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
No status