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

Commitcf6fae4

Browse files
committed
Fix unligned access in parse commit record
1 parent389dd12 commitcf6fae4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/backend/access/rmgrdesc/xactdesc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ ParseCommitRecord(uint8 info, xl_xact_commit *xlrec, xl_xact_parsed_commit *pars
8282
data+=MinSizeOfXactTwophase;
8383

8484
strcpy(parsed->twophase_gid,data);
85-
data+=gidlen;
85+
data+=MAXALIGN(gidlen);
8686
}
8787

8888
if (parsed->xinfo&XACT_XINFO_HAS_RELFILENODES)
@@ -172,7 +172,7 @@ ParseAbortRecord(uint8 info, xl_xact_abort *xlrec, xl_xact_parsed_abort *parsed)
172172
data+=MinSizeOfXactTwophase;
173173

174174
strcpy(parsed->twophase_gid,data);
175-
data+=gidlen;
175+
data+=MAXALIGN(gidlen);
176176
}
177177

178178
if (parsed->xinfo&XACT_XINFO_HAS_ORIGIN)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp