Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4465529

Browse files
committed
Fix backend crash in parsing incorrect tsquery.
Per report from Jon Rosebaugh <jon@inklesspen.com>
1 parenteb19144 commit4465529

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎contrib/tsearch2/query.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,14 @@ gettoken_query(QPRS_STATE * state, int4 *val, int4 *lenval, char **strval, int2
159159
(state->buf)++;/* can safely ++, t_iseq guarantee
160160
* that pg_mblen()==1 */
161161
*val= (int4)'!';
162+
state->state=WAITOPERAND;
162163
returnOPR;
163164
}
164165
elseif (t_iseq(state->buf,'('))
165166
{
166167
state->count++;
167168
(state->buf)++;
169+
state->state=WAITOPERAND;
168170
returnOPEN;
169171
}
170172
elseif (t_iseq(state->buf,':'))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp