1
0
mirror of https://github.com/postgres/postgres.git synced 2025-12-21 05:21:08 +03:00
Files
postgres/src/backend
Tom Lane a05cf22e05 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 malloc
failure right here, the code would act as though MCXT_ALLOC_NO_OOM
had been specified, whether it was or not.  That would likely lead
to a null-pointer-dereference crash at the unsuspecting call site.

Noted while messing with a patch to improve our Valgrind leak
detection support.  Back-patch to v17 where this code came in.
2025-05-10 20:22:39 -04:00
..
2024-12-17 15:24:45 -06:00
2025-05-05 12:14:36 +02:00
2024-04-18 21:28:07 +02:00
2025-01-07 15:34:19 -06:00
2024-06-21 08:17:23 +02:00
2024-05-14 12:57:22 +02:00