Commit 7ad79be
committed
Fix use-of-uninitialized-value ast->lineno
Exposed after GH-22833. ast->kind in this context may refer to a ZEND_AST_ZVAL,
for which accessing lineno is incorrect. lineno is stored in zval.u2 instead.
Fixes OSS-Fuzz-5391211351 parent 8334703 commit 7ad79be
2 files changed
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12215 | 12215 | | |
12216 | 12216 | | |
12217 | 12217 | | |
12218 | | - | |
| 12218 | + | |
12219 | 12219 | | |
12220 | 12220 | | |
12221 | 12221 | | |
| |||
0 commit comments