]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
avoid 32-bit overflow when calculating secondary superblock offsets
authorEric Sandeen <sandeen@sgi.com>
Thu, 28 Jul 2005 02:04:19 +0000 (02:04 +0000)
committerEric Sandeen <sandeen@sgi.com>
Thu, 28 Jul 2005 02:04:19 +0000 (02:04 +0000)
repair/sb.c

index e901f12375e3825f182471bc5ea8be792f79dd87..f7c1c3a6d9b4587e5ec720af8b97e7c29ca8eb53 100644 (file)
@@ -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)