chadaustin / sajson

Lightweight, extremely high-performance JSON parser for C++11
MIT License
562 stars 42 forks source link

Errors in numbers parsing #31

Closed nst closed 6 years ago

nst commented 6 years ago

sajson does erroneously accept these contents as numbers, although they are not numbers according to RFC 7159 section 6. Numbers.

[-]
[-2.]
[0.e1]
[2.e+3]
[2.e-3]
[2.e3]
[-.123]
[1.]
chadaustin commented 6 years ago

Hi @nst! Thanks for the bug report. I'm back from vacation now, and the bug is fixed by https://github.com/chadaustin/sajson/commit/4376d1eb3bce2d597d71df97c8d83e1928254e00