Content-Length: 262344 | pFad | http://github.com/postgrespro/postgres_cluster/commit/4bbc1a7ea351f235eb9a4475ceb17d7e37a36473

9B Fix crash of filter(tsvector) · postgrespro/postgres_cluster@4bbc1a7 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/4bbc1a7ea351f235eb9a4475ceb17d7e37a36473

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy