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

Check for NULL in cJSON_DetachItemViaPointer, fixes #882 #886

Merged
merged 2 commits into from
Aug 30, 2024

Conversation

vwvw
Copy link
Contributor

@vwvw vwvw commented Aug 23, 2024

I added two NULL check to avoid NULL dereferences in cJSON_DetachItemViaPointer as discussed in #882.

Once again, all credit goes to @tregua87

cJSON.c Outdated Show resolved Hide resolved
@vwvw
Copy link
Contributor Author

vwvw commented Aug 25, 2024

I also added a test.

@Alanscut Alanscut merged commit a78d975 into DaveGamble:master Aug 30, 2024
13 checks passed
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

Successfully merging this pull request may close these issues.

3 participants