Skip to content

Round trip with negative zero fails #25

@matcool

Description

@matcool

Found with libFuzzer

Parsing the following json:

-0.0

will work correctly. Calling value.dump() on the resulting object will return:

-0

However, when parsing this again, this will be parsed as an integer, and so calling dump on the resulting value will return:

0

Could fix by either enforcing dump to be -0.0 or be aggressive and dump negative zeros as just 0.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions