Skip to content

Commit 85e8ccd

Browse files
committed
Fixed bug #78363
1 parent b29ecec commit 85e8ccd

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ PHP NEWS
22
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
33
?? ??? 2019, PHP 7.2.22
44

5+
- Core:
6+
. Fixed bug #78363 (Buffer overflow in zendparse). (Nikita)
7+
58
- Curl:
69
. Fixed bug #77946 (Bad cURL resources returned by curl_multi_info_read()).
710
(Abyr Valg)

Zend/zend_language_parser.y

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1315,7 +1315,7 @@ static YYSIZE_T zend_yytnamerr(char *yyres, const char *yystr)
13151315

13161316
if (LANG_SCNG(yy_text)[0] == 0 &&
13171317
LANG_SCNG(yy_leng) == 1 &&
1318-
memcmp(yystr, "\"end of file\"", sizeof("\"end of file\"") - 1) == 0) {
1318+
strcmp(yystr, "\"end of file\"") == 0) {
13191319
if (yyres) {
13201320
yystpcpy(yyres, "end of file");
13211321
}

0 commit comments

Comments
 (0)