diff --git a/Zend/tests/bug78454_1.phpt b/Zend/tests/bug78454_1.phpt new file mode 100644 index 00000000000..184d358372e --- /dev/null +++ b/Zend/tests/bug78454_1.phpt @@ -0,0 +1,7 @@ +--TEST-- +Invalid consecutive numeric separators after hex literal +--FILE-- + 0 && (*bin == '0' || *bin == '_')) { ++bin; --len; } @@ -1892,7 +1892,7 @@ NEWLINE ("\r"|"\n"|"\r\n") char *end, *hex = yytext + 2; /* Skip any leading 0s */ - while (*hex == '0' || *hex == '_') { + while (len > 0 && (*hex == '0' || *hex == '_')) { ++hex; --len; }