]> dgit.raspbian.org Git - grub2.git/commit
fs/zfs: Prevent overflows when allocating memory for arrays
authorLidong Chen <lidong.chen@oracle.com>
Wed, 22 Jan 2025 07:17:03 +0000 (07:17 +0000)
committerAurelien Jarno <aurel32@debian.org>
Thu, 30 Apr 2026 19:02:01 +0000 (21:02 +0200)
commit7c6fc8770c262d42c6a395009b33dbb0ce84902c
treebe067788d4f2c8b98248999a5d70f1ee5e33bb6c
parent1b4676ef0d52d92d6575332cd0a12b2abb31dc24
fs/zfs: Prevent overflows when allocating memory for arrays

Use grub_calloc() when allocating memory for arrays to ensure proper
overflow checks are in place.

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-Prevent-overflows-when-allocating-memory-for-array.patch
grub-core/fs/zfs/zfs.c