forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite63ce9e
committed
Ensure that slots are zeroed before use
The previous coding relied on the memory for the slots being zeroedelsewhere, which while it was true in this case is not an contractwhich is guaranteed to hold. Explicitly clear the tts_isnull arrayto ensure that the slots are filled from a known state.Backpatch to v14 where the catalog multi-inserts were introduced.Reviewed-by: Michael Paquier <michael@paquier.xyz>Discussion:https://postgr.es/m/CAJ7c6TP0AowkUgNL6zcAK-s5HYsVHVBRWfu69FRubPpfwZGM9A@mail.gmail.comBackpatch-through: 141 parent8af09da commite63ce9e
2 files changed
+6
-0
lines changedLines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
764 | 764 |
| |
765 | 765 |
| |
766 | 766 |
| |
| 767 | + | |
| 768 | + | |
| 769 | + | |
767 | 770 |
| |
768 | 771 |
| |
769 | 772 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
903 | 903 |
| |
904 | 904 |
| |
905 | 905 |
| |
| 906 | + | |
| 907 | + | |
| 908 | + | |
906 | 909 |
| |
907 | 910 |
| |
908 | 911 |
| |
|
0 commit comments
Comments
(0)