forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit75e03ea
committed
Fix potential use-after-free for BEFORE UPDATE row triggers on non-core AMs.
When such a trigger returns the old row version, it naturally getstored in the slot for the trigger result. When a table AMs doesn'tstore HeapTuples internally, ExecBRUpdateTriggers() frees the old rowversion passed to triggers - but before this fix it might still bereferenced by the slot holding the new tuple.Noticed when running the out-of-core zheap AM against the in-coreversion of tableam.Author: Andres Freund1 parentbb385c4 commit75e03ea
1 file changed
+9
-0
lines changedLines changed: 9 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3109 | 3109 |
| |
3110 | 3110 |
| |
3111 | 3111 |
| |
| 3112 | + | |
| 3113 | + | |
| 3114 | + | |
| 3115 | + | |
| 3116 | + | |
| 3117 | + | |
| 3118 | + | |
| 3119 | + | |
| 3120 | + | |
3112 | 3121 |
| |
3113 | 3122 |
| |
3114 | 3123 |
| |
|
0 commit comments
Comments
(0)