From: Vivek Trivedi Date: Sun, 20 Dec 2015 23:54:39 +0000 (+1100) Subject: mkfs: fix unintentional integer overflow X-Git-Tag: v4.5.0-rc1~55 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70fe4df4382897d3d3f3342f371a0509f1c183f6;p=thirdparty%2Fxfsprogs-dev.git mkfs: fix unintentional integer overflow Fix unintentional integer overflow in mkfs. reported by coverity. Signed-off-by: Vivek Trivedi Reviewed-by: Dave Chinner Signed-off-by: Dave Chinner --- diff --git a/mkfs/xfs_mkfs.c b/mkfs/xfs_mkfs.c index 546108dda..b86d5be12 100644 --- a/mkfs/xfs_mkfs.c +++ b/mkfs/xfs_mkfs.c @@ -2022,7 +2022,7 @@ _("warning: sparse inodes not supported without CRC support, disabled.\n")); * and the underlying volume is striped, then set rtextblocks * to the stripe width. */ - int rswidth; + __uint64_t rswidth; __uint64_t rtextbytes; if (!norsflag && !xi.risfile && !(!rtsize && xi.disfile))