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

Commit82fa8ae

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 parent019c13e commit82fa8ae

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=SIGLENBIT(siglen)-
729729
sizebitvec((cache[j].allistrue) ?
730730
GETSIGN(datum_l) :
731-
GETSIGN(cache[j].sign),
731+
cache[j].sign,
732732
siglen);
733733
}
734734
else
@@ -742,7 +742,7 @@ gtsvector_picksplit(PG_FUNCTION_ARGS)
742742
size_beta=SIGLENBIT(siglen)-
743743
sizebitvec((cache[j].allistrue) ?
744744
GETSIGN(datum_r) :
745-
GETSIGN(cache[j].sign),
745+
cache[j].sign,
746746
siglen);
747747
}
748748
else

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp