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

Add recursion depth check to JSON.stringify/parse #66117

Merged
merged 1 commit into from
Sep 20, 2022

Conversation

RedMser
Copy link
Contributor

@RedMser RedMser commented Sep 19, 2022

Part of #66114

Fixes crashes involving very deeply nested arrays and objects, by adding a recursion limit condition.

This uses the same constant as Variant (de)serialization, to keep interop between Dictionary/Array and JSON consistent.

@RedMser RedMser requested a review from a team as a code owner September 19, 2022 16:22
@RedMser RedMser changed the title Add recursion depth check to JSON parsing Add recursion depth check to JSON.stringify/parse Sep 19, 2022
@Calinou Calinou added this to the 4.0 milestone Sep 19, 2022
@akien-mga akien-mga merged commit 160e0a4 into godotengine:master Sep 20, 2022
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants