- Notifications
You must be signed in to change notification settings - Fork5
Commit0da3a9b
committed
Fix failure to consider failure cases in GetComboCommandId().
Failure to initially palloc the comboCids array, or to realloc it biggerwhen needed, left combocid's data structures in an inconsistent state thatwould cause trouble if the top transaction continues to execute. Notedwhile examining a user complaint about the amount of memory used for this.(There's not much we can do about that, but it does point up that repallocfailure has a non-negligible chance of occurring here.)In HEAD/9.5, also avoid possible invocation of memcpy() with a null pointerin SerializeComboCIDState; cf commit13bba02.1 parentc5ef8ce commit0da3a9b
1 file changed
+23
-20
lines changedLines changed: 23 additions & 20 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
217 | 217 |
| |
218 | 218 |
| |
219 | 219 |
| |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
220 | 227 |
| |
221 | 228 |
| |
222 | 229 |
| |
| |||
226 | 233 |
| |
227 | 234 |
| |
228 | 235 |
| |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
229 | 246 |
| |
230 | 247 |
| |
231 |
| - | |
232 |
| - | |
233 |
| - | |
234 |
| - | |
| 248 | + | |
| 249 | + | |
235 | 250 |
| |
236 | 251 |
| |
237 | 252 |
| |
| |||
250 | 265 |
| |
251 | 266 |
| |
252 | 267 |
| |
253 |
| - | |
254 |
| - | |
255 |
| - | |
256 |
| - | |
257 |
| - | |
258 |
| - | |
259 |
| - | |
260 |
| - | |
261 |
| - | |
262 |
| - | |
263 |
| - | |
264 |
| - | |
265 |
| - | |
266 |
| - | |
| 268 | + | |
267 | 269 |
| |
268 | 270 |
| |
269 | 271 |
| |
| |||
327 | 329 |
| |
328 | 330 |
| |
329 | 331 |
| |
330 |
| - | |
331 |
| - | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
332 | 335 |
| |
333 | 336 |
| |
334 | 337 |
| |
|
0 commit comments
Comments
(0)