HomeFreeBSD

libc: lib_malloc_aligned(): add a missing NULL check

Description

libc: lib_malloc_aligned(): add a missing NULL check

For some reason return value of the __je_bootstrap_malloc()
is not checked and then de-referenced few lines below, causing
a SEGV if an early allocation fails.

MFC after: 1 month

(cherry picked from commit 1e99be5dcda222d47a77715e190a381a14f46ece)

Details

Provenance
sobomaxAuthored on Dec 8 2024, 7:08 PM
Parents
rGc73d3c6c960b: mbuf: improve KASSERT(9) falure messages in the m_apply()
Branches
Unknown
Tags
Unknown