Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 4bbc1a7

Browse files
committed
Fix crash of filter(tsvector)
Variable storing a position of lexeme, had a wrong type: char, it's obviously not enough to store 2^14 possible positions. Stas Kelvich
1 parent a712487 commit 4bbc1a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/utils/adt/tsvector_op.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -773,8 +773,8 @@ tsvector_filter(PG_FUNCTION_ARGS)
773773
bool *nulls;
774774
int nweigths;
775775
int i, j;
776-
char mask = 0,
777-
cur_pos = 0;
776+
int cur_pos = 0;
777+
char mask = 0;
778778

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

0 commit comments

Comments
 (0)