]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_db: btheight should check geometry more carefully
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 1 Nov 2019 19:46:12 +0000 (15:46 -0400)
committerEric Sandeen <sandeen@sandeen.net>
Fri, 1 Nov 2019 19:46:12 +0000 (15:46 -0400)
commit4546e66dff005f7bd8efd0c8705b72b5807385ff
tree2efc7df979754924dc2d64bfc496291b68577524
parentd9b8ae44b6ee51329af7d81968b9feacc55ffa13
xfs_db: btheight should check geometry more carefully

The btheight command needs to check user-supplied geometry more
carefully so that we don't hit floating point exceptions.

Coverity-id: 14536611453659
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
db/btheight.c