- Notifications
You must be signed in to change notification settings - Fork4.9k
Commita05cf22
committed
Fix incorrect "return NULL" in BumpAllocLarge().
This must be "return MemoryContextAllocationFailure(context, size, flags)"instead. The effect of this oversight is that if we got a mallocfailure right here, the code would act as though MCXT_ALLOC_NO_OOMhad been specified, whether it was or not. That would likely leadto a null-pointer-dereference crash at the unsuspecting call site.Noted while messing with a patch to improve our Valgrind leakdetection support. Back-patch to v17 where this code came in.1 parent3007fee commita05cf22
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
316 | 316 |
| |
317 | 317 |
| |
318 | 318 |
| |
319 |
| - | |
| 319 | + | |
320 | 320 |
| |
321 | 321 |
| |
322 | 322 |
| |
|
0 commit comments
Comments
(0)