Commit d9cdc7699 for imagemagick.org

commit d9cdc76993ee41e21fb0caf54f66ce8c40cb067d
Author: aarushidwi <135048681+aarushidwi@users.noreply.github.com>
Date:   Sat Feb 28 09:14:12 2026 -0600

    fix NULL pointer dereference in HEIC NCLX color profile allocation (#8585)

    heif_nclx_color_profile_alloc() can return NULL under memory pressure,
    but WriteHEICImage() dereferences the pointer without a NULL check when
    the heic:cicp option is set (lines 1484-1488). This causes SIGSEGV at
    address 0x4, crashing the process.

    Add a NULL check with ThrowWriterException(ResourceLimitError) to handle
    allocation failure gracefully, consistent with ImageMagick conventions.

    CWE-476 | CVSS 6.5 (AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H)