]> dgit.raspbian.org Git - grub2.git/commit
net: Prevent overflows when allocating memory for arrays
authorLidong Chen <lidong.chen@oracle.com>
Wed, 22 Jan 2025 18:04:43 +0000 (18:04 +0000)
committerAurelien Jarno <aurel32@debian.org>
Thu, 30 Apr 2026 19:02:01 +0000 (21:02 +0200)
commit2c47bea14eb8ffec57f81572acd67c1d080b1e73
treec28d90da4005bbf976aa66eb7a79e59db2d0616e
parentaf22fb80ab29ec6578d6dc3c49c8e092a13b39af
net: 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 net-Prevent-overflows-when-allocating-memory-for-arrays.patch
grub-core/net/dns.c
grub-core/net/net.c