Skip to content

Limit to 1,000 levels of nested parentheses (closes #38) - #39

Open
kemitchell wants to merge 1 commit into
mainfrom
prevent-runaway-recursion
Open

kemitchell wants to merge 1 commit into
mainfrom
prevent-runaway-recursion

Conversation

@kemitchell

Copy link
Copy Markdown
Member

Add an arbitrary 1,000-level limit to the nesting of parenthentical
grounds in parsed SPDX expessions.

Add an arbitrary 1,000-level limit to the nesting of parenthentical
grounds in parsed SPDX expessions.
@kemitchell

Copy link
Copy Markdown
Member Author

@ljharb could I ask if you have any concerns about this PR, which implements a 1,000-level limit on nesting of parentheses in SPDX expressions?

This was easy to implement, and I'd be extremely surprised to find anyone's nesting a thousand parentheses in practice. But I've never merged a patch like this before, and I still wonder whether it really needs to be "fixed".

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