Commit 77ec266
committed
Check combined nesting depth limit
Ensure block indent depth and flow level are checked together against
MAX_NESTING_LEVEL, not independently. This prevents exceeding the
intended limit with e.g. 1000 block indents + 1000 flow levels.
Mirrors the approach already used in parser.c.1 parent 91c2061 commit 77ec266
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1181 | 1181 | | |
1182 | 1182 | | |
1183 | 1183 | | |
1184 | | - | |
| 1184 | + | |
1185 | 1185 | | |
1186 | 1186 | | |
1187 | 1187 | | |
| |||
1235 | 1235 | | |
1236 | 1236 | | |
1237 | 1237 | | |
1238 | | - | |
| 1238 | + | |
1239 | 1239 | | |
1240 | 1240 | | |
1241 | 1241 | | |
| |||
0 commit comments