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

Commit40ddb8d

Browse files
committed
Fix out-of-bound read in gtsvector_picksplit()
This could lead to an imprecise choice when splitting an index page of aGiST index on a tsvector, deciding which entries should remain on theold page and which entries should move to a new page.This is wrong since tsearch2 has been moved into core with commit140d4eb, so backpatch all the way down. This error has beenspotted by valgrind.Author: Alexander LakhinDiscussion:https://postgr.es/m/17950-6c80a8d2b94ec695@postgresql.orgBackpatch-through: 11
1 parenta67cf94 commit40ddb8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ gtsvector_picksplit(PG_FUNCTION_ARGS)
728728
size_alpha=0;
729729
else
730730
size_alpha=SIGLENBIT-sizebitvec(
731-
(cache[j].allistrue) ?GETSIGN(datum_l) :GETSIGN(cache[j].sign)
731+
(cache[j].allistrue) ?GETSIGN(datum_l) :cache[j].sign
732732
);
733733
}
734734
else
@@ -740,7 +740,7 @@ gtsvector_picksplit(PG_FUNCTION_ARGS)
740740
size_beta=0;
741741
else
742742
size_beta=SIGLENBIT-sizebitvec(
743-
(cache[j].allistrue) ?GETSIGN(datum_r) :GETSIGN(cache[j].sign)
743+
(cache[j].allistrue) ?GETSIGN(datum_r) :cache[j].sign
744744
);
745745
}
746746
else

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp