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
I'm experimenting with a new fuzz target, intending to find inputs that do not round-trip correctly. Instead, I found something quite different (than I expected). This example program crashes on the last line when the arbitrary_precision feature is turned on:
That... doesn't seem right to me. As far as I understand, if "$serde_json::private::Number" is the first key in a map, the deserializer expects its value to be a string, but otherwise just treats it as a normal key. Which seems... a bit unnecessarily magical, but the fact that the order of keys may be changed by the round-trip really pushes this more towards "there is a bug here" in my opinion. As far as I can tell everything here is intentional but it seems like this is quite the papercut.
Thoughts?
Also I'm just sitting here in awe that cargo-fuzz synthesized this example
The text was updated successfully, but these errors were encountered:
I'm experimenting with a new fuzz target, intending to find inputs that do not round-trip correctly. Instead, I found something quite different (than I expected). This example program crashes on the last line when the
arbitrary_precision
feature is turned on:That... doesn't seem right to me. As far as I understand, if
"$serde_json::private::Number"
is the first key in a map, the deserializer expects its value to be a string, but otherwise just treats it as a normal key. Which seems... a bit unnecessarily magical, but the fact that the order of keys may be changed by the round-trip really pushes this more towards "there is a bug here" in my opinion. As far as I can tell everything here is intentional but it seems like this is quite the papercut.Thoughts?
Also I'm just sitting here in awe that cargo-fuzz synthesized this example
The text was updated successfully, but these errors were encountered: