mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 14:59:34 +00:00
* grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
than signed.
This commit is contained in:
1 parent
edd0179abb
commit
c64577a554
2 files changed
+6
-1
No files matched your search
+1
-1
@@ -1178,7 +1178,7 @@ test_zlib_header (grub_gzio_t gzio)
|
||||
return 0;
|
||||
}
|
||||
|
||||
if ((cmf * 256 + flg) % 31)
|
||||
if ((cmf * 256U + flg) % 31U)
|
||||
{
|
||||
grub_error (GRUB_ERR_BAD_COMPRESSED_DATA, N_("unsupported gzip format"));
|
||||
return 0;
|
||||
|
||||
Reference in new issue
Block a user