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

Adding iterative parse flag to prevent stack overflow issue #65

Merged
merged 1 commit into from
Oct 20, 2020
Merged

Adding iterative parse flag to prevent stack overflow issue #65

merged 1 commit into from
Oct 20, 2020

Conversation

PolygonalSun
Copy link
Contributor

There was a security issue found with rapidjson where a crash could be caused by certain strings when operating in the default recursive parse mode. This PR will set all reading to be done in iterative mode.

@PolygonalSun PolygonalSun requested a review from bghgary October 19, 2020 22:36
Copy link
Contributor

@bghgary bghgary left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there an easy way to make sure that everything still works? Looks good otherwise.

@PolygonalSun
Copy link
Contributor Author

PolygonalSun commented Oct 20, 2020

Is there an easy way to make sure that everything still works? Looks good otherwise.

I wasn't able to repro the issue using the listed method in the email because it was getting caught by other checks. Since the guidance that we received was to set this flag, I just verified that the flag was being set and made sure that a glTF file was still being read properly. With and without the change, the numbers look the same.

@PolygonalSun PolygonalSun merged commit feefb41 into microsoft:master Oct 20, 2020
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.

2 participants