Skip to content

Make cJSON_ParseWithLength and cJSON_Parse consistent#941

Open
anderay wants to merge 1 commit intoDaveGamble:masterfrom
anderay:master
Open

Make cJSON_ParseWithLength and cJSON_Parse consistent#941
anderay wants to merge 1 commit intoDaveGamble:masterfrom
anderay:master

Conversation

@anderay
Copy link

@anderay anderay commented May 23, 2025

As length given to cJSON_ParseWithLength() (usually) does not include terminal '\0' same shall apply to cJSON_Parse() and implementation shall not go outside buffer given.

As length given to cJSON_ParseWithLength does not include terminal '\0'
same shall apply to cJSON_Parse and implementation shall not rely on this zero value.
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