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

Commitfb3ea04

Browse files
committed
Fix wrong allocation size inc8f621c.
Inc8f621c I forgot to account for MAXALIGN when allocating a newtuplebuf in ReorderBufferGetTupleBuf(). That happens to currently notcause active problems on a number of platforms because the affectedpointer is already aligned, but others, like ppc and hppa, trigger thisin the regression test, due to a debug memset clearing memory.Fix that.Backpatch: 9.4, like the previous commit.
1 parent3fa4715 commitfb3ea04

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎src/backend/replication/logical/reorderbuffer.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,8 @@ ReorderBufferGetTupleBuf(ReorderBuffer *rb, Size tuple_len)
481481
{
482482
tuple= (ReorderBufferTupleBuf*)
483483
MemoryContextAlloc(rb->context,
484-
sizeof(ReorderBufferTupleBuf)+alloc_len);
484+
sizeof(ReorderBufferTupleBuf)+
485+
MAXIMUM_ALIGNOF+alloc_len);
485486
tuple->alloc_tuple_size=alloc_len;
486487
tuple->tuple.t_data=ReorderBufferTupleBufData(tuple);
487488
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp