forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit866ffc2
committed
array_in() and array_recv() need to be more paranoid about validating
their OID parameter. It was possible to crash the backend withselect array_in('{123}',0,0); because that would bypass the needed stepof initializing the workspace. These seem to be the only two placeswith a problem, though (record_in and record_recv don't have the issue,and the other array functions aren't depending on user-supplied input).Back-patch as far as 7.4; 7.3 does not have the bug.1 parente6a3012 commit866ffc2
1 file changed
+13
-12
lines changedLines changed: 13 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
160 | 160 |
| |
161 | 161 |
| |
162 | 162 |
| |
163 |
| - | |
| 163 | + | |
164 | 164 |
| |
165 | 165 |
| |
166 | 166 |
| |
| |||
1173 | 1173 |
| |
1174 | 1174 |
| |
1175 | 1175 |
| |
1176 |
| - | |
1177 |
| - | |
1178 |
| - | |
1179 |
| - | |
1180 |
| - | |
1181 |
| - | |
1182 |
| - | |
1183 |
| - | |
1184 |
| - | |
1185 | 1176 |
| |
1186 | 1177 |
| |
1187 | 1178 |
| |
| |||
1193 | 1184 |
| |
1194 | 1185 |
| |
1195 | 1186 |
| |
1196 |
| - | |
| 1187 | + | |
1197 | 1188 |
| |
1198 | 1189 |
| |
1199 | 1190 |
| |
| |||
1212 | 1203 |
| |
1213 | 1204 |
| |
1214 | 1205 |
| |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
1215 | 1216 |
| |
1216 | 1217 |
| |
1217 | 1218 |
| |
|
0 commit comments
Comments
(0)