Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Validate tree depth in XML parsing #2232

Merged

Conversation

jstone-lucasfilm
Copy link
Member

@jstone-lucasfilm jstone-lucasfilm commented Feb 15, 2025

This changelist adds validation for the tree depth in XML parsing, preventing an invalid document from triggering a stack overflow.

A new unit test has been added to parse a document exceeding the maximum tree depth, verifying that the correct exception is thrown.

This changelist adds validation for the current element depth in XML parsing, preventing an invalid document from triggering a stack overflow.

A new unit test has been added to generate a document with invalid element depth, verifying that the error condition is correctly caught.
@jstone-lucasfilm jstone-lucasfilm changed the title Validate element depth in XML parsing Validate element tree depth in XML parsing Feb 16, 2025
@jstone-lucasfilm jstone-lucasfilm changed the title Validate element tree depth in XML parsing Validate tree depth in XML parsing Feb 16, 2025
@jstone-lucasfilm jstone-lucasfilm merged commit 51be1ba into AcademySoftwareFoundation:main Feb 16, 2025
34 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant