Skip to content

Handle NULL global_error.json in cJSON_GetErrorPtr#1036

Open
CodeAurelius0 wants to merge 1 commit into
DaveGamble:masterfrom
CodeAurelius0:fix-null-errorptr
Open

Handle NULL global_error.json in cJSON_GetErrorPtr#1036
CodeAurelius0 wants to merge 1 commit into
DaveGamble:masterfrom
CodeAurelius0:fix-null-errorptr

Conversation

@CodeAurelius0

Copy link
Copy Markdown

Adds an explicit NULL check in cJSON_GetErrorPtr() when global_error.json is NULL.

Also adds a regression test covering NULL input handling.

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.

1 participant