Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #3589 using the proposed tactic. #3590

Closed
wants to merge 2 commits into from

Conversation

GerHobbelt
Copy link
Contributor

(Aside: Note that the CJSON::decode() is still not so sophisticated that it checks the legality of the Unicode characters in the Unicode strings in the input: some illegal stuff may slip through that way. For when you feel like being extra nasty...)

…ON::decode() is not so sophisticated that it checks the legality of the Unicode characters in the Unicode strings in the input: some illegal stuff *may* slip through that way.)
@GerHobbelt
Copy link
Contributor Author

As per my own comment in #3589: first tactic to solve is pass extra tracking flag parameter by reference and check when appropriate.

I only check at the end as I don't mind that the parse possibly continues after an error; cycles are not possible, so it doesn't matter and meanwhile means I don't load a legal-data parse with superfluous checks in the recursive decode path.

@samdark
Copy link
Member

samdark commented Mar 13, 2017

Won't be fixed in 1.1.

@samdark samdark closed this Mar 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants