Commit cb88645
authored
17.x port - Stop DOS attacks by making the lexer stop early on evil input (#2902)
* 17.x port - Stop DOS attacks by making the lexer stop early on evil input
* This stops DOS attacks by making the lexer stop early.
* This stops DOS attacks by making the lexer stop early. Added BadSituationsRunner
* This stops DOS attacks by making the lexer stop early. Added BadSituationsRunner with comments
* This stops DOS attacks by making the lexer stop early. Added per query jvm settings
* This stops DOS attacks by making the lexer stop early. Added whitespace counts separate from token counts
* This stops DOS attacks by making the lexer stop early. Added whitespace counts separate from token counts - tweaks
* This stops DOS attacks by making the lexer stop early. Added whitespace counts separate from token counts - tweaks
* This stops DOS attacks by making the lexer stop early. Added whitespace counts separate from token counts - tweaks
* This stops DOS attacks by making the lexer stop early.Use array instead of map
* This stops DOS attacks by making the lexer stop early.Use array instead of map with comments
* PR feedback - renamed options and added SDL options
# Conflicts:
# src/main/java/graphql/ParseAndValidate.java
# src/main/java/graphql/parser/GraphqlAntlrToLanguage.java
# src/main/java/graphql/parser/Parser.java
# src/main/java/graphql/parser/ParserOptions.java
# src/main/java/graphql/schema/idl/SchemaParser.java
# src/test/groovy/graphql/parser/ParserTest.groovy
* PR build
* Reset after set options1 parent bf4e324 commit cb88645
12 files changed
Lines changed: 640 additions & 31 deletions
File tree
- .github/workflows
- src
- main/java/graphql
- parser
- schema/idl
- test/groovy/graphql
- parser
- schema/idl
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| 13 | + | |
| 14 | + | |
12 | 15 | | |
13 | 16 | | |
14 | 17 | | |
| |||
42 | 45 | | |
43 | 46 | | |
44 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
45 | 53 | | |
46 | | - | |
| 54 | + | |
47 | 55 | | |
48 | 56 | | |
49 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
| 80 | + | |
79 | 81 | | |
80 | 82 | | |
| 83 | + | |
81 | 84 | | |
82 | 85 | | |
83 | 86 | | |
84 | 87 | | |
85 | | - | |
86 | | - | |
| 88 | + | |
87 | 89 | | |
88 | 90 | | |
89 | 91 | | |
| |||
96 | 98 | | |
97 | 99 | | |
98 | 100 | | |
99 | | - | |
| 101 | + | |
100 | 102 | | |
101 | 103 | | |
102 | 104 | | |
| |||
790 | 792 | | |
791 | 793 | | |
792 | 794 | | |
793 | | - | |
| 795 | + | |
794 | 796 | | |
795 | 797 | | |
796 | 798 | | |
797 | 799 | | |
798 | | - | |
| 800 | + | |
799 | 801 | | |
800 | 802 | | |
801 | 803 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| 28 | + | |
| 29 | + | |
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
| |||
45 | 48 | | |
46 | 49 | | |
47 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
48 | 56 | | |
49 | 57 | | |
50 | 58 | | |
| |||
195 | 203 | | |
196 | 204 | | |
197 | 205 | | |
198 | | - | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
199 | 216 | | |
200 | 217 | | |
201 | 218 | | |
| |||
245 | 262 | | |
246 | 263 | | |
247 | 264 | | |
| 265 | + | |
248 | 266 | | |
249 | 267 | | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
| 268 | + | |
259 | 269 | | |
260 | 270 | | |
261 | 271 | | |
262 | 272 | | |
263 | 273 | | |
264 | 274 | | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
265 | 290 | | |
266 | 291 | | |
267 | 292 | | |
| |||
0 commit comments