From: Nikita Popov Date: Fri, 2 Aug 2019 08:35:24 +0000 (+0200) Subject: Fixed bug #78363 X-Git-Tag: php-7.4.0beta2~7^2~1^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=85e8ccd55e37028be6260c142c27689977564c9a;p=php Fixed bug #78363 --- diff --git a/NEWS b/NEWS index 4103d76188..f8508d2a30 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,9 @@ PHP NEWS ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ?? ??? 2019, PHP 7.2.22 +- Core: + . Fixed bug #78363 (Buffer overflow in zendparse). (Nikita) + - Curl: . Fixed bug #77946 (Bad cURL resources returned by curl_multi_info_read()). (Abyr Valg) diff --git a/Zend/zend_language_parser.y b/Zend/zend_language_parser.y index 091d7f61e2..7838c4a64d 100644 --- a/Zend/zend_language_parser.y +++ b/Zend/zend_language_parser.y @@ -1315,7 +1315,7 @@ static YYSIZE_T zend_yytnamerr(char *yyres, const char *yystr) if (LANG_SCNG(yy_text)[0] == 0 && LANG_SCNG(yy_leng) == 1 && - memcmp(yystr, "\"end of file\"", sizeof("\"end of file\"") - 1) == 0) { + strcmp(yystr, "\"end of file\"") == 0) { if (yyres) { yystpcpy(yyres, "end of file"); }