Blame SOURCES/0279-grub-module-verifier-fix-unintended-sign-extension.patch

f731ee
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
f731ee
From: Andrei Borzenkov <arvidjaar@gmail.com>
f731ee
Date: Fri, 8 Jan 2016 11:05:16 +0300
f731ee
Subject: [PATCH] grub-module-verifier: fix unintended sign extension
f731ee
f731ee
Found by: Coverity scan.
f731ee
CID: 156533, 156532
f731ee
---
f731ee
 util/grub-module-verifierXX.c | 2 +-
f731ee
 1 file changed, 1 insertion(+), 1 deletion(-)
f731ee
f731ee
diff --git a/util/grub-module-verifierXX.c b/util/grub-module-verifierXX.c
f731ee
index 25988ebc21d..f612d51f389 100644
f731ee
--- a/util/grub-module-verifierXX.c
f731ee
+++ b/util/grub-module-verifierXX.c
f731ee
@@ -337,7 +337,7 @@ SUFFIX(grub_module_verify) (void *module_img, size_t size, const struct grub_mod
f731ee
 
f731ee
   /* Make sure that every section is within the core.  */
f731ee
   if (size < grub_target_to_host (e->e_shoff)
f731ee
-      + grub_target_to_host16 (e->e_shentsize) * grub_target_to_host16(e->e_shnum))
f731ee
+      + (grub_uint32_t) grub_target_to_host16 (e->e_shentsize) * grub_target_to_host16(e->e_shnum))
f731ee
     {
f731ee
       grub_util_error ("ELF sections outside core");
f731ee
     }