]> git.proxmox.com Git - grub2.git/commit
libgcrypt/mpi: Fix possible NULL dereference
authorDarren Kenny <darren.kenny@oracle.com>
Thu, 26 Nov 2020 10:41:54 +0000 (10:41 +0000)
committerColin Watson <cjwatson@debian.org>
Sun, 13 Jun 2021 23:40:45 +0000 (00:40 +0100)
commitb93ffd99beea7725c3a1663f46b123a1fb65dfbf
treefdec17d3ee357cb2006b511417c9e679a6395970
parent123b9ca6027b313f07e5c23642934359b0f42d74
libgcrypt/mpi: Fix possible NULL dereference

The code in gcry_mpi_scan() assumes that buffer is not NULL, but there
is no explicit check for that, so we add one.

Fixes: CID 73757
Signed-off-by: Darren Kenny <darren.kenny@oracle.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
Patch-Name: 2021-02-security/041-libgcrypt-mpi-Fix-possible-NULL-dereference.patch
grub-core/lib/libgcrypt/mpi/mpicoder.c