diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2017-03-23 22:48:45 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2017-03-23 22:48:45 +0100 |
commit | d719b46222bcd7aaa7b06a1b33316bee26b0455a (patch) | |
tree | 32820f2351a18c9c6d2d2625675fe6dc3772409e /Zend/zend_language_scanner.l | |
parent | f5951cc81bb777e39dbfffb4db1c265f4e51308f (diff) | |
download | php-git-d719b46222bcd7aaa7b06a1b33316bee26b0455a.tar.gz |
Fix sequencing UB
Diffstat (limited to 'Zend/zend_language_scanner.l')
-rw-r--r-- | Zend/zend_language_scanner.l | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_language_scanner.l b/Zend/zend_language_scanner.l index 093d7de9aa..9dc075104c 100644 --- a/Zend/zend_language_scanner.l +++ b/Zend/zend_language_scanner.l @@ -1156,7 +1156,7 @@ NEWLINE ("\r"|"\n"|"\r\n") } <ST_IN_SCRIPTING>"yield"{WHITESPACE}"from"[^a-zA-Z0-9_\x80-\xff] { - yyless(--yyleng); + yyless(yyleng - 1); HANDLE_NEWLINES(yytext, yyleng); RETURN_TOKEN(T_YIELD_FROM); } |