From 41f361f802bc645a9251b7b4c6931a193e063ec0 Mon Sep 17 00:00:00 2001 From: Eric Sandeen Date: Thu, 28 Jul 2005 02:04:19 +0000 Subject: [PATCH] avoid 32-bit overflow when calculating secondary superblock offsets --- repair/sb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repair/sb.c b/repair/sb.c index e901f1237..f7c1c3a6d 100644 --- a/repair/sb.c +++ b/repair/sb.c @@ -809,7 +809,7 @@ verify_set_primary_sb(xfs_sb_t *rsb, if (current->index != sb_index) { *sb_modified = 1; - off = current->index * current->geo.sb_agblocks + off = (xfs_off_t)current->index * current->geo.sb_agblocks * current->geo.sb_blocksize; if (get_sb(sb, off, current->geo.sb_sectsize, current->index) != XR_OK) -- 2.47.2