forked from php/php-src
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit ba4567a
Fix OSS-Fuzz #416302790 (php#18537)
The parser accepted invalid code: consts are only valid at the top
level, but because phpGH-16952 changed the grammar it was incorrectly
allowed at all places that allowed attributed statements.
Fix this by introducing a variant of attributed_statement for the top
level.1 parent 5e65d8e commit ba4567a
File tree
2 files changed
+17
-3
lines changed- Zend
- tests/constants
2 files changed
+17
-3
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | + | ||
2 | + | ||
3 | + | ||
4 | + | ||
5 | + | ||
6 | + | ||
7 | + | ||
8 | + | ||
9 | + | ||
10 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
279 | 279 |
| |
280 | 280 |
| |
281 | 281 |
| |
282 | - | ||
282 | + | ||
283 | 283 |
| |
284 | 284 |
| |
285 | 285 |
| |
| |||
391 | 391 |
| |
392 | 392 |
| |
393 | 393 |
| |
394 | + | ||
395 | + | ||
396 | + | ||
397 | + | ||
394 | 398 |
| |
395 | 399 |
| |
396 | 400 |
| |
397 | 401 |
| |
398 | 402 |
| |
399 | - | ||
400 | - | ||
403 | + | ||
404 | + | ||
401 | 405 |
| |
402 | 406 |
| |
403 | 407 |
| |
|
0 commit comments