-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(parser): apply recursion limit everywhere, reduce default to 500 (#…
…662) The limit was only tracked for nested selection sets, but the parser turns out to use recursion in other cases too. Issue #666 tracks reducing them. Stack overflow was observed with little more than 2000 nesting levels or repetitions in the new test. Defaulting to a quarter of that leaves a comfortable margin.
- Loading branch information
1 parent
e05abbf
commit 865be96
Showing
135 changed files
with
427 additions
and
173 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,4 +61,4 @@ | |
- [email protected] "String" | ||
- [email protected] "\n" | ||
- [email protected] "}" | ||
recursion limit: 4096, high: 2 | ||
recursion limit: 500, high: 2 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -128,4 +128,4 @@ | |
- [email protected] "\n" | ||
- [email protected] "}" | ||
- [email protected] "\n" | ||
recursion limit: 4096, high: 3 | ||
recursion limit: 500, high: 3 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -173,4 +173,4 @@ | |
- [email protected] "\n" | ||
- [email protected] "}" | ||
- [email protected] "\n" | ||
recursion limit: 4096, high: 0 | ||
recursion limit: 500, high: 3 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,4 +50,4 @@ | |
- [email protected] | ||
- [email protected] "\"https://tools.ietf.org/html/rfc3986\"" | ||
- [email protected] ")" | ||
recursion limit: 4096, high: 0 | ||
recursion limit: 500, high: 1 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -81,4 +81,4 @@ | |
- [email protected] "ACANA" | ||
- [email protected] "\n" | ||
- [email protected] "}" | ||
recursion limit: 4096, high: 0 | ||
recursion limit: 500, high: 3 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -111,4 +111,4 @@ | |
- [email protected] "SearchResult" | ||
- [email protected] "\n" | ||
- [email protected] "}" | ||
recursion limit: 4096, high: 0 | ||
recursion limit: 500, high: 1 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -158,4 +158,4 @@ | |
- [email protected] "String" | ||
- [email protected] "\n" | ||
- [email protected] "}" | ||
recursion limit: 4096, high: 0 | ||
recursion limit: 500, high: 1 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -104,4 +104,4 @@ | |
- [email protected] "!" | ||
- [email protected] "\n" | ||
- [email protected] "}" | ||
recursion limit: 4096, high: 0 | ||
recursion limit: 500, high: 1 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,4 +79,4 @@ | |
- [email protected] "Float" | ||
- [email protected] "\n" | ||
- [email protected] "}" | ||
recursion limit: 4096, high: 0 | ||
recursion limit: 500, high: 2 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -218,4 +218,4 @@ | |
- [email protected] "\n" | ||
- [email protected] "}" | ||
- [email protected] "\n" | ||
recursion limit: 4096, high: 2 | ||
recursion limit: 500, high: 2 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -143,4 +143,4 @@ | |
- [email protected] "\n" | ||
- [email protected] "}" | ||
- [email protected] "\n" | ||
recursion limit: 4096, high: 2 | ||
recursion limit: 500, high: 2 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -477,4 +477,4 @@ | |
- [email protected] "}" | ||
- [email protected] "\n" | ||
- [email protected] "}" | ||
recursion limit: 4096, high: 8 | ||
recursion limit: 500, high: 8 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -229,4 +229,4 @@ | |
- [email protected] "\n" | ||
- [email protected] "}" | ||
- [email protected] "\n" | ||
recursion limit: 4096, high: 2 | ||
recursion limit: 500, high: 3 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -115,4 +115,4 @@ | |
- [email protected] "\n" | ||
- [email protected] "}" | ||
- [email protected] "\n" | ||
recursion limit: 4096, high: 0 | ||
recursion limit: 500, high: 4 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4200,4 +4200,4 @@ | |
- [email protected] "String" | ||
- [email protected] "\n" | ||
- [email protected] "}" | ||
recursion limit: 4096, high: 0 | ||
recursion limit: 500, high: 7 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -186,4 +186,4 @@ | |
- [email protected] "!" | ||
- [email protected] "\n" | ||
- [email protected] "}" | ||
recursion limit: 4096, high: 2 | ||
recursion limit: 500, high: 3 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -300,4 +300,4 @@ | |
- [email protected] "Boolean" | ||
- [email protected] "\n" | ||
- [email protected] "}" | ||
recursion limit: 4096, high: 2 | ||
recursion limit: 500, high: 3 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -110,4 +110,4 @@ | |
- [email protected] "\n" | ||
- [email protected] "}" | ||
- [email protected] "\n" | ||
recursion limit: 4096, high: 2 | ||
recursion limit: 500, high: 2 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -225,4 +225,4 @@ | |
- [email protected] "\n" | ||
- [email protected] "}" | ||
- [email protected] "\n" | ||
recursion limit: 4096, high: 0 | ||
recursion limit: 500, high: 1 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -147,4 +147,4 @@ | |
- [email protected] "\n" | ||
- [email protected] "}" | ||
- [email protected] "\n" | ||
recursion limit: 4096, high: 2 | ||
recursion limit: 500, high: 2 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -238,4 +238,4 @@ | |
- [email protected] "\n" | ||
- [email protected] "}" | ||
- [email protected] "\n" | ||
recursion limit: 4096, high: 2 | ||
recursion limit: 500, high: 2 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -541,4 +541,4 @@ | |
- [email protected] "\n" | ||
- [email protected] "}" | ||
- [email protected] "\n" | ||
recursion limit: 4096, high: 2 | ||
recursion limit: 500, high: 3 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -281,4 +281,4 @@ | |
- [email protected] "\n" | ||
- [email protected] "}" | ||
- [email protected] "\n" | ||
recursion limit: 4096, high: 1 | ||
recursion limit: 500, high: 5 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,4 +88,4 @@ | |
- [email protected] "\n" | ||
- [email protected] "}" | ||
- [email protected] "\n" | ||
recursion limit: 4096, high: 1 | ||
recursion limit: 500, high: 1 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -113,4 +113,4 @@ | |
- [email protected] "}" | ||
- [email protected] "\n" | ||
- [email protected] "}" | ||
recursion limit: 4096, high: 4 | ||
recursion limit: 500, high: 4 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,4 +72,4 @@ | |
- [email protected] "__typename" | ||
- [email protected] "\n" | ||
- [email protected] "}" | ||
recursion limit: 4096, high: 1 | ||
recursion limit: 500, high: 1 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -152,4 +152,4 @@ | |
- [email protected] "}" | ||
- [email protected] "\n" | ||
- [email protected] "}" | ||
recursion limit: 4096, high: 2 | ||
recursion limit: 500, high: 3 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -214,4 +214,4 @@ | |
- [email protected] "\n" | ||
- [email protected] "}" | ||
- [email protected] "\n" | ||
recursion limit: 4096, high: 2 | ||
recursion limit: 500, high: 4 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -152,4 +152,4 @@ | |
- [email protected] "First" | ||
- [email protected] "\n" | ||
- [email protected] "}" | ||
recursion limit: 4096, high: 0 | ||
recursion limit: 500, high: 2 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -712,4 +712,4 @@ | |
- [email protected] "\n" | ||
- [email protected] "}" | ||
- [email protected] "\n" | ||
recursion limit: 4096, high: 3 | ||
recursion limit: 500, high: 3 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2808,4 +2808,4 @@ | |
- [email protected] "\n" | ||
- [email protected] "}" | ||
- [email protected] "\n" | ||
recursion limit: 4096, high: 3 | ||
recursion limit: 500, high: 8 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -224,4 +224,4 @@ | |
- [email protected] "\n" | ||
- [email protected] "}" | ||
- [email protected] "\n\n" | ||
recursion limit: 4096, high: 2 | ||
recursion limit: 500, high: 4 |
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
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
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
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
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
Oops, something went wrong.