Open bryanchriswhite opened 3 years ago
(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.)
Addressed in https://github.com/polydawn/refmt/pull/53 .
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