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

Commit4bbc1a7

Browse files
committed
Fix crash of filter(tsvector)
Variable storing a position of lexeme, had a wrong type: char, it'sobviously not enough to store 2^14 possible positions.Stas Kelvich
1 parenta712487 commit4bbc1a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/backend/utils/adt/tsvector_op.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -773,8 +773,8 @@ tsvector_filter(PG_FUNCTION_ARGS)
773773
bool*nulls;
774774
intnweigths;
775775
inti,j;
776-
charmask=0,
777-
cur_pos=0;
776+
intcur_pos=0;
777+
charmask=0;
778778

779779
deconstruct_array(weights,CHAROID,1, true,'c',
780780
&dweights,&nulls,&nweigths);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp