]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_db: fix rdbmap_boundscheck
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 26 May 2020 18:36:03 +0000 (14:36 -0400)
committerEric Sandeen <sandeen@sandeen.net>
Tue, 26 May 2020 18:36:03 +0000 (14:36 -0400)
commitbb9bedb6d97b4e9dcc81ec19bc402de3ae2d9020
tree19d5e5b3456ea0fd4ff15714a3dc2dd4d37e00a7
parentcafb847b11b7f7cca0b7c02ffbe7ae6796614a4a
xfs_db: fix rdbmap_boundscheck

This predicate should check the a rt block number against number of
rtblocks, not the number of AG blocks.  Ooops.

Fixes: 7161cd21b3ed ("xfs_db: bounds-check access to the dbmap array")
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
db/check.c