- Notifications
You must be signed in to change notification settings - Fork5
Commit1db12da
committed
Fix unaligned memory access in xlog parsing due to replication origin patch.
ParseCommitRecord() accessed xl_xact_origin directly. But the chunks inthe commit record's data only have 4 byte alignment, whereasxl_xact_origin's members require 8 byte alignment on someplatforms. Update comments to make not of that and copy the record tostack local storage before reading.With help from Stefan Kaltenbrunner in pinning down the buildfarm andverifying the fix.1 parent484a848 commit1db12da
2 files changed
+9
-5
lines changedLines changed: 6 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
104 | 104 |
| |
105 | 105 |
| |
106 | 106 |
| |
107 |
| - | |
| 107 | + | |
108 | 108 |
| |
109 |
| - | |
110 |
| - | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
111 | 114 |
| |
112 | 115 |
| |
113 | 116 |
| |
|
Lines changed: 3 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
173 | 173 |
| |
174 | 174 |
| |
175 | 175 |
| |
176 |
| - | |
| 176 | + | |
| 177 | + | |
177 | 178 |
| |
178 | 179 |
| |
179 | 180 |
| |
| |||
237 | 238 |
| |
238 | 239 |
| |
239 | 240 |
| |
240 |
| - | |
| 241 | + | |
241 | 242 |
| |
242 | 243 |
| |
243 | 244 |
| |
|
0 commit comments
Comments
(0)