grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 1/2] diskfilter: check calloc() result for NULL


From: Daniel Kiper
Subject: Re: [PATCH 1/2] diskfilter: check calloc() result for NULL
Date: Thu, 6 Oct 2022 15:42:12 +0200
User-agent: NeoMutt/20170113 (1.7.2)

On Sun, Aug 21, 2022 at 10:22:35PM +1000, Daniel Axtens wrote:
> With wildly corrupt inputs, we can end up trying to calloc a very
> large amount of memory, which will fail and give us a NULL pointer.
> We need to check that to avoid a crash. (And, even if we blocked
> such inputs, it is good practice to check the results of allocations
> anyway.)
>
> Signed-off-by: Daniel Axtens <dja@axtens.net>

Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>

Daniel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]