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

Commitae10dbb

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 parente70ed4b commitae10dbb

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
@@ -730,7 +730,7 @@ gtsvector_picksplit(PG_FUNCTION_ARGS)
730730
size_alpha=SIGLENBIT(siglen)-
731731
sizebitvec((cache[j].allistrue) ?
732732
GETSIGN(datum_l) :
733-
GETSIGN(cache[j].sign),
733+
cache[j].sign,
734734
siglen);
735735
}
736736
else
@@ -744,7 +744,7 @@ gtsvector_picksplit(PG_FUNCTION_ARGS)
744744
size_beta=SIGLENBIT(siglen)-
745745
sizebitvec((cache[j].allistrue) ?
746746
GETSIGN(datum_r) :
747-
GETSIGN(cache[j].sign),
747+
cache[j].sign,
748748
siglen);
749749
}
750750
else

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp