]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs_spaceman: fix potential overflowing expression in trim_f()
authorBill O'Donnell <billodo@redhat.com>
Thu, 29 Jun 2017 18:05:59 +0000 (13:05 -0500)
committerEric Sandeen <sandeen@redhat.com>
Thu, 29 Jun 2017 18:05:59 +0000 (13:05 -0500)
commiteb125dcbfcd24bd40d6f78442a5814debc78438b
treed29ac42a22e6364e6935b6c58ff5e2c322a78a7f
parent1cda90906c093d30911c0a20f214d68a1d220cdd
xfs_spaceman: fix potential overflowing expression in trim_f()

Prevent the potential overflow in expression calculating offset
in trim_f(() by casting the first variable to off64_t (64bit signed).

Addresses-Coverity-Id: 1413771

Signed-off-by: Bill O'Donnell <billodo@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
spaceman/trim.c