]> git.ipfire.org Git - thirdparty/grub.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)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 13 Feb 2025 14:45:57 +0000 (15:45 +0100)
commitdee2c14fd66bc497cdc74c69fde8c9b84637c8eb
tree1b60c17cbf9082a323139afdd93426440d779696
parent4beeff8a31c4fb4071d2225533cfa316b5a58391
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>
grub-core/net/dns.c
grub-core/net/net.c