]> git.ipfire.org Git - thirdparty/grub.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)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 2 Mar 2021 14:54:17 +0000 (15:54 +0100)
commit1641d74e16f9d1ca35ba1a87ee4a0bf3afa48e72
treef20843c99bf5b510619b75cf72dbc1edfa4a3a26
parent5dc41edc4eba259c6043ae7698c245ec1baaacc6
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>
util/glue-efi.c