- Notifications
You must be signed in to change notification settings - Fork28
Commit47412e0
committed
Fix use of dangling pointer in heap_delete() when logging replica identity
When logging the replica identity of a deleted tuple, XLOG_HEAP_DELETErecords include references of the old tuple. Its data is stored in anintermediate variable used to register this information for the WALrecord, but this variable gets away from the stack when the record getsactually inserted.Spotted by clang's AddressSanitizer.Author: Stas KelvishDiscussion:https://postgr.es/m/085C8825-AD86-4E93-AF80-E26CDF03D1EA@postgrespro.ruBackpatch-through: 9.41 parentcf25498 commit47412e0
1 file changed
+1
-2
lines changedLines changed: 1 addition & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3343 | 3343 |
| |
3344 | 3344 |
| |
3345 | 3345 |
| |
| 3346 | + | |
3346 | 3347 |
| |
3347 | 3348 |
| |
3348 | 3349 |
| |
| |||
3377 | 3378 |
| |
3378 | 3379 |
| |
3379 | 3380 |
| |
3380 |
| - | |
3381 |
| - | |
3382 | 3381 |
| |
3383 | 3382 |
| |
3384 | 3383 |
| |
|
0 commit comments
Comments
(0)