]> granicus.if.org Git - php/commit
Fix #76813: Access violation near NULL on source operand
authorChristoph M. Becker <cmbecker69@gmx.de>
Sat, 28 Nov 2020 12:47:37 +0000 (13:47 +0100)
committerChristoph M. Becker <cmbecker69@gmx.de>
Mon, 30 Nov 2020 11:29:24 +0000 (12:29 +0100)
commit5e15c9c41f8318a8392c2e2c78544f218736549c
tree9c1aae646e4ff105311773f8209afe7d6b783dba
parentb855907f545cddc8f70e8a482da254a7740fb00d
Fix #76813: Access violation near NULL on source operand

We avoid `YYCURSOR` becoming `NULL` by initializing `YYMARKER`, and add
a default rule for `<NORMAL>` where we catch unexpected input.

We also fix the only superficially related issue regarding empty input
followed by `T_SEPARATOR` and command, which caused another segfault.

Closes GH-6464.
NEWS
sapi/phpdbg/phpdbg_lexer.l
sapi/phpdbg/phpdbg_parser.y
sapi/phpdbg/tests/bug76813.phpt [new file with mode: 0644]