]> dgit.raspbian.org Git - grub2.git/commit
fs/zfs: Check if returned pointer for allocated memory is NULL
authorLidong Chen <lidong.chen@oracle.com>
Wed, 22 Jan 2025 07:17:01 +0000 (07:17 +0000)
committerAurelien Jarno <aurel32@debian.org>
Thu, 30 Apr 2026 19:02:01 +0000 (21:02 +0200)
commit80619ff771a5bbd4e2c08fe8496fafa4de23434b
tree61fdc1f6f15f1c8f0ca231209bf2b52430bd5460
parent7c6fc8770c262d42c6a395009b33dbb0ce84902c
fs/zfs: Check if returned pointer for allocated memory is NULL

When using grub_malloc() or grub_zalloc(), these functions can fail if
we are out of memory. After allocating memory we should check if these
functions returned NULL and handle this error if they did.

Signed-off-by: Lidong Chen <lidong.chen@oracle.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
Gbp-Pq: Topic cve-2025-jan
Gbp-Pq: Name fs-zfs-Check-if-returned-pointer-for-allocated-memory-is-.patch
grub-core/fs/zfs/zfs.c