* grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
than signed.
This commit is contained in:
parent
edd0179abb
commit
c64577a554
2 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue