Re: Fix NO_OOM handling in MemoryContextAllocAligned
Re: Fix NO_OOM handling in MemoryContextAllocAligned
От:
David Rowley <dgrowleyml@gmail.com>
Дата:
On Mon, 3 Aug 2026 at 20:50, Chao Li 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't handle the returned NULL, which may > lead to a crash. Thanks. Pushed. David
Re: Fix NO_OOM handling in MemoryContextAllocAligned
> On Aug 4, 2026, at 12:11, David Rowley wrote: > > On Mon, 3 Aug 2026 at 20:50, Chao Li 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't handle the returned NULL, which may >> lead to a crash. > > Thanks. Pushed. > > David Thanks for pushing. Best regards, -- Chao Li (Evan) HighGo Software Co., Ltd. https://www.highgo.com/