* grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather

than signed.
This commit is contained in:
Vladimir Serbinenko 2013-10-25 20:18:30 +02:00
parent edd0179abb
commit c64577a554
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
than signed.
2013-10-25 Jon McCune <jonmccune@google.com>
* docs/grub.texi: Cleanup security documentation around signatures.

View file

@ -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;