Skip to content

Commit cf6fae4

Browse files
committed
Fix unligned access in parse commit record
1 parent 389dd12 commit cf6fae4

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy