Re: Fix NO_OOM handling in MemoryContextAllocAligned - Mailing list pgsql-hackers

From David Rowley
Subject Re: Fix NO_OOM handling in MemoryContextAllocAligned
Date
Msg-id CAApHDvr9xqWUViK_7Vhdy_xry+ww7rLHU5ao8UwLNcr5a9JXyQ@mail.gmail.com
Whole thread
List pgsql-hackers
On Mon, 3 Aug 2026 at 20:50, Chao Li <li.evan.chao@gmail.com> wrote:
> MemoryContextAllocAligned() calls MemoryContextAllocExtended() and passes “flags" with only MCXT_ALLOC_ZERO removed.
When“flags" includes MCXT_ALLOC_NO_OOM, MemoryContextAllocExtended() may return NULL, but MemoryContextAllocAligned()
doesn'thandle the returned NULL, which may 
> lead to a crash.

Thanks. Pushed.

David



Attachment

pgsql-hackers by date:

Previous
From: solai v
Date:
Subject: Re: XMLSerialize: version and explicit XML declaration
Next
From: Peter Smith
Date:
Subject: Add more tab=completion rules for DROP PROPERTY GRAPH