Skip to content
This repository has been archived by the owner on Jan 23, 2021. It is now read-only.

Add max depth for the parser #105

Merged
merged 6 commits into from
Jan 11, 2021
Merged

Add max depth for the parser #105

merged 6 commits into from
Jan 11, 2021

Conversation

emmiegit
Copy link
Member

@emmiegit emmiegit commented Jan 11, 2021

This will prevent denial-of-service attacks in the form of stack overflows, and a sane error for it, while keeping a high limit for regular use cases.

The recursion depth is set to 100.

Performed on consume(), as this the primary means for recursive element
construction.
@emmiegit
Copy link
Member Author

@emmiegit emmiegit merged commit 4c54920 into master Jan 11, 2021
@emmiegit emmiegit deleted the FTML-55 branch January 11, 2021 05:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant