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

handling of DEL (0x7F) char in string parsing #3

Closed
fulvioesposito opened this issue Dec 12, 2012 · 1 comment
Closed

handling of DEL (0x7F) char in string parsing #3

fulvioesposito opened this issue Dec 12, 2012 · 1 comment
Assignees

Comments

@fulvioesposito
Copy link

As of RFC 4627 point 2.5, the unescaped allowed characters are 0x20-0x21 / 0x23-0x5B / 0x5D-0x10FFFF so 0x7F (DEL) is an allowed unescaped char.

In strings parsing, parson use iscntrl() to verify control characters. iscntrl() returns true even for 0x7F, yet it is an allowed character and should be accepted in unescaped form.

I posted a patch at https://gist.github.com/4270061

@ghost ghost assigned kgabis Dec 12, 2012
@kgabis
Copy link
Owner

kgabis commented Dec 12, 2012

Thanks for pointing this out, I applied your patch and pushed it to github.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants