]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
authorVladimir Serbinenko <phcoder@gmail.com>
Fri, 25 Oct 2013 18:18:30 +0000 (20:18 +0200)
committerVladimir Serbinenko <phcoder@gmail.com>
Fri, 25 Oct 2013 18:18:30 +0000 (20:18 +0200)
than signed.

ChangeLog
grub-core/io/gzio.c

index 3aa8197da13b595c896f60a1e62dd19aabc6d72e..1a01bf70b8112c56c66ef21d69d0a24fe2011f07 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index ef5872a53bb2c00e0eaa8c56b11b0c612d862fe0..50dc31ad4f1812af82094b2f26440224f348a1ee 100644 (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;