Blame SOURCES/0171-xfs-silence-Coverity-overflow-warning.patch

a85e8e
From 4ac2b84fea9a90d68970c0729a02895d47a8b40c Mon Sep 17 00:00:00 2001
a85e8e
From: Andrei Borzenkov <arvidjaar@gmail.com>
a85e8e
Date: Fri, 19 Jun 2015 18:38:25 +0300
a85e8e
Subject: [PATCH 171/260] xfs: silence Coverity overflow warning
a85e8e
a85e8e
inode size cannot really overflow integer, but Coverity does not know it.
a85e8e
CID: 96602
a85e8e
---
a85e8e
 grub-core/fs/xfs.c | 2 +-
a85e8e
 1 file changed, 1 insertion(+), 1 deletion(-)
a85e8e
a85e8e
diff --git a/grub-core/fs/xfs.c b/grub-core/fs/xfs.c
a85e8e
index f00e43e7d..724929155 100644
a85e8e
--- a/grub-core/fs/xfs.c
a85e8e
+++ b/grub-core/fs/xfs.c
a85e8e
@@ -361,7 +361,7 @@ grub_xfs_inode_offset (struct grub_xfs_data *data,
a85e8e
 static inline grub_size_t
a85e8e
 grub_xfs_inode_size(struct grub_xfs_data *data)
a85e8e
 {
a85e8e
-  return 1 << data->sblock.log2_inode;
a85e8e
+  return (grub_size_t)1 << data->sblock.log2_inode;
a85e8e
 }
a85e8e
 
a85e8e
 /*
a85e8e
-- 
a85e8e
2.13.0
a85e8e