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
It was observed that compared to default mode, hybrid and multi mode crash Fuzzilli quite regularly. After running fuzzilli in debug mode to figure out why, the following crash occurred:
It seems possible to stop the crash using the following addition to generateVariable(), though it would be good to get feedback on it to see if it makes sense:
if type.Is(.function()){returndefinePlainFunction(withSignature:FunctionSignature(withParameterCount:Int.random(in:2...5), hasRestParam:probability(0.1))){ _ ingenerateRecursive()doReturn(value:randVar())}}
The text was updated successfully, but these errors were encountered:
Cool, thanks for looking into this! Yeah I think this approach should be fine. Eventually, we'll probably want CodeGenerators to be able to create variables of the requested type, but no idea if and when this will happen. So in the meantime, this is the right approach. The only thing I would suggest is checking whether type.signature is not nil, and using it instead of the generic signature if it is:
let signature = type.signature ?? FunctionSignature(withParameterCount: Int.random(in: 2...5)
...
amarekano
added a commit
to amarekano/fuzzilli
that referenced
this issue
Jun 23, 2021
It was observed that compared to default mode, hybrid and multi mode crash Fuzzilli quite regularly. After running fuzzilli in debug mode to figure out why, the following crash occurred:
It seems possible to stop the crash using the following addition to generateVariable(), though it would be good to get feedback on it to see if it makes sense:
The text was updated successfully, but these errors were encountered: