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

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
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy