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 out-of-memory case in cJSON #1620

Merged
merged 1 commit into from
Dec 3, 2024
Merged

Conversation

gnl21
Copy link
Contributor

@gnl21 gnl21 commented Dec 3, 2024

If the initial calloc failed then NULL was being returned but the out_of_memory flag was not being set, so callers did not understand the returned value correctly. Set the flag.

If the initial calloc failed then NULL was being returned but the
out_of_memory flag was not being set, so callers did not understand the
returned value correctly. Set the flag.
@gnl21 gnl21 requested a review from charles-lunarg December 3, 2024 15:02
@ci-tester-lunarg
Copy link

Author gnl21 not on autobuild list. Waiting for curator authorization before starting CI build.

1 similar comment
@ci-tester-lunarg
Copy link

Author gnl21 not on autobuild list. Waiting for curator authorization before starting CI build.

@charles-lunarg charles-lunarg merged commit c331688 into KhronosGroup:main Dec 3, 2024
43 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