From 70fe4df4382897d3d3f3342f371a0509f1c183f6 Mon Sep 17 00:00:00 2001 From: Vivek Trivedi Date: Mon, 21 Dec 2015 10:54:39 +1100 Subject: [PATCH] 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 --- mkfs/xfs_mkfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 2.47.2