]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_repair: resolve Coverity OVERFLOW_BEFORE_WIDEN
authorBill O'Donnell <billodo@redhat.com>
Wed, 29 Jun 2016 01:13:03 +0000 (11:13 +1000)
committerDave Chinner <david@fromorbit.com>
Wed, 29 Jun 2016 01:13:03 +0000 (11:13 +1000)
commitdd36660559fb3dcaf4c1ec0be2fbbce19404780b
tree4bda41c773e170f56fa46d197d4b8ba5c9826a13
parent3fbf002a6eb62841a3fa05bc2ce98c98722b660c
xfs_repair: resolve Coverity OVERFLOW_BEFORE_WIDEN

Coverity complains that when multiplying two 32 bit values that
eventually will be stored in a 64 bit value that it's possible
the math could overflow unless one of the values being multiplied
is type cast to the proper size.

Signed-off-by: Bill O'Donnell <billodo@redhat.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
repair/sb.c