- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit939d10c
committed
Guard against null arguments in binary_upgrade_create_empty_extension().
The CHECK_IS_BINARY_UPGRADE macro is not sufficient security protectionif we're going to dereference pass-by-reference arguments before it.But in any case we really need to explicitly check PG_ARGISNULL for allthe arguments of a non-strict function, not only the ones we expect nullvalues for.Oversight in commits30982be andf92fc4c. Found by Andreas Seltenreich.(The other usages in pg_upgrade_support.c seem safe.)1 parentc6aeba3 commit939d10c
1 file changed
+16
-4
lines changedLines changed: 16 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
129 | 129 |
| |
130 | 130 |
| |
131 | 131 |
| |
132 |
| - | |
133 |
| - | |
134 |
| - | |
135 |
| - | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
136 | 136 |
| |
137 | 137 |
| |
138 | 138 |
| |
139 | 139 |
| |
140 | 140 |
| |
141 | 141 |
| |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
142 | 154 |
| |
143 | 155 |
| |
144 | 156 |
| |
|
0 commit comments
Comments
(0)