mirror of
https://github.com/php/php-src.git
synced 2024-11-28 20:34:29 +08:00
Fix the following nasty bug:
- if compile bails out from the middle of compiling, current_buffer is not restored - if current_buffer is not null, yy_switch_to_buffer will do: *yy_c_buf_p = yy_hold_char; on the next request - which would lead to memory corruption on next request
This commit is contained in:
parent
33cd288edc
commit
52ffca0b27
@ -129,6 +129,7 @@ void startup_scanner(TSRMLS_D)
|
||||
RESET_DOC_COMMENT();
|
||||
SCNG(yy_start_stack_ptr) = 0;
|
||||
SCNG(yy_start_stack_depth) = 0;
|
||||
SCNG(current_buffer) = NULL;
|
||||
#ifdef ZEND_MULTIBYTE
|
||||
SCNG(script_org) = NULL;
|
||||
SCNG(script_org_size) = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user