-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ast/parser: guard against invalid domains for "some" and "every" (#4548)
These would cause a runtime exception when attempting to parse some internal.member_2() This is due to a technicality in how some x in xs is parsed: `x in xs` will first become `internal.member_2(x, xs)`, and `some internal.member_2(x, xs)` is then further processed. The assumption that there're always two (resp. three for internal.member_3) arguments won't hold if a snippet like the one above is fed into the parser. Thanks to Norbert Szetei of Doyensec, @doyensec, for reporting this. Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
- Loading branch information
Showing
2 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters