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's the nature of double precision floating number(IEEE 754).
90200000000.39351 can't be present as it is since it's overflowed the max fraction part of float64 (1<<53-1)
testcase:
{"":[9020000000039351e-5]}
testcode:
when call test with "encoding/json" , get result:
when call test with json-iterator ,get result :
9.020000000039351e+10 vs 9.020000000039352e+10
How did I find the problem?
I refer to the test cases and test corpus for std json in the go-fuzz project to test json-iterator.
see : https://github.com/dvyukov/go-fuzz-corpus/tree/master/json
The text was updated successfully, but these errors were encountered: