8000 strcmp() null pointer guards by mkarlesky · Pull Request #745 · bblanchon/ArduinoJson · GitHub
[go: up one dir, main page]

Skip to content

strcmp() null pointer guards #745

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

Closed
wants to merge 1 commit into from
Closed

strcmp() null pointer guards #745

wants to merge 1 commit into from

Conversation

mkarlesky
Copy link

strcmp() is platform dependent and its handling of null pointers is undefined.

In the event of memory problems with the original JSON string being parsed, bad pointers can be erroneously processed in string comparison (or worse) among StringTraits. These guards can help parsing gracefully fail in bad memory edge cases.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling a9638f9 on mkarlesky:master into 3523296 on bblanchon:master.

bblanchon added a commit that referenced this pull request May 31, 2018
@bblanchon bblanchon closed this in 7c0af91 Jun 1, 2018
Repository owner locked and limited conversation to collaborators Sep 30, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0