[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

@ -178,9 +178,11 @@ typedef struct _PLParseInfo {
#define MAX_QUESTION_MARK 128
typedef struct _ObQuestionMarkCtx {
char* name_[MAX_QUESTION_MARK];
typedef struct _ObQuestionMarkCtx
{
char **name_;
int count_;
int capacity_;
bool by_ordinal_;
bool by_name_;
} ObQuestionMarkCtx;