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
The fuzz function attempts to decode the input and then re-encode it multiple times to then compares the results. In this case, it has discovered an input which can be decoded but then crashes when re-encoding. It looks like this particular case is of a number that gets parsed as a float which isn't supported by refmts encoder.
Mitigation
I see two options:
Expect the possibility of a panic from refmt and recover appropriately.
(This is embarrassing, and I should make that json codec implementation less crap -- but in context and priority right now, I don't think filecoin actually exposes any paths where a user could trigger this to my knowledge, so this might not be a huge priority to address.)
Context
The fuzz function attempts to decode the input and then re-encode it multiple times to then compares the results. In this case, it has discovered an input which can be decoded but then crashes when re-encoding. It looks like this particular case is of a number that gets parsed as a float which isn't supported by
refmt
s encoder.Mitigation
I see two options:
recover
appropriately.Crasher
Quoted Input
Output
The text was updated successfully, but these errors were encountered: