[CP] Fix core caused by out-of-bounds access to the question mark name array

This commit is contained in:
obdev
2022-07-04 10:11:30 +08:00
committed by wangzelin.wzl
parent fa70d54091
commit 669b4d93af
3 changed files with 40 additions and 14 deletions

View File

@ -64,6 +64,8 @@ int parse_reset(ParseResult* p)
p->question_mark_ctx_.count_ = 0;
p->question_mark_ctx_.by_ordinal_ = false;
p->question_mark_ctx_.by_name_ = false;
p->question_mark_ctx_.name_ = NULL;
p->question_mark_ctx_.capacity_ = 0;
p->sql_mode_ = 0;
p->has_encount_comment_ = false;