forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commiteb8c9f0
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 parentf60a0e9 commiteb8c9f0
1 file changed
+1
-2
lines changedLines changed: 1 addition & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3039 | 3039 |
| |
3040 | 3040 |
| |
3041 | 3041 |
| |
| 3042 | + | |
3042 | 3043 |
| |
3043 | 3044 |
| |
3044 | 3045 |
| |
| |||
3073 | 3074 |
| |
3074 | 3075 |
| |
3075 | 3076 |
| |
3076 |
| - | |
3077 |
| - | |
3078 | 3077 |
| |
3079 | 3078 |
| |
3080 | 3079 |
| |
|
0 commit comments
Comments
(0)