]> git.proxmox.com Git - grub2.git/commit
util/glue-efi: Fix incorrect use of a possibly negative value
authorDarren Kenny <darren.kenny@oracle.com>
Fri, 4 Dec 2020 15:04:28 +0000 (15:04 +0000)
committerColin Watson <cjwatson@debian.org>
Sun, 13 Jun 2021 23:40:45 +0000 (00:40 +0100)
commitaadee4f1eaeb1d927bb701eb8c434f5a766fa47c
tree49518fa5780188b623940ce9b20b57f6a2687daa
parentb45089749ee7d8b2ded9b115df1b6d616b99dce0
util/glue-efi: Fix incorrect use of a possibly negative value

It is possible for the ftell() function to return a negative value,
although it is fairly unlikely here, we should be checking for
a negative value before we assign it to an unsigned value.

Fixes: CID 73744
Signed-off-by: Darren Kenny <darren.kenny@oracle.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
Patch-Name: 2021-02-security/057-util-glue-efi-Fix-incorrect-use-of-a-possibly-negative-value.patch
util/glue-efi.c