[CP] [parser][bugfix]: raise parser_error while these is invalid character.

This commit is contained in:
Monk-Liu
2023-01-03 09:12:43 +00:00
committed by ob-robot
parent 8db97ab4e4
commit 5ba864f256

View File

@ -938,6 +938,7 @@ do {\
for (int64_t i = 0; i < str_len; i++) { \
if (OB_UNLIKELY(src_str[i] == '\0')) { \
yyerror(yylloc, yyextra, "mismatch strlen, may cased by '\0' in str");\
return PARSER_SYNTAX_ERROR; \
} \
} \
} \