Skip to content
This repository has been archived by the owner on Feb 26, 2020. It is now read-only.

BUG: parsed string length not correctly considered #11

Open
bpintea opened this issue Feb 1, 2019 · 0 comments
Open

BUG: parsed string length not correctly considered #11

bpintea opened this issue Feb 1, 2019 · 0 comments

Comments

@bpintea
Copy link

bpintea commented Feb 1, 2019

The library does not correctly consider the length when parsing the input string. If the string is not a NTS, the library will read past the indicated limit.

If the library is passed a correctly formatted JSON and the character next to the indicated end is a non-white space character, the parsing will succeed. But:

  • if the JSON is incorrect, the parsing can crash;
  • if the end+1 character is a white string, the parsing will incorrectly fail (for a correct JSON string).
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant