]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_db: bounds-check access to the dbmap array
authorDarrick J. Wong <darrick.wong@oracle.com>
Sat, 9 May 2020 17:11:59 +0000 (13:11 -0400)
committerEric Sandeen <sandeen@sandeen.net>
Sat, 9 May 2020 17:11:59 +0000 (13:11 -0400)
commit7161cd21b3ed3fa82aef1f13b2bcfae045208573
treeeee06545dde9f4f72dcd5bda44fa098b1acaa28a
parent8c4d190ebb1600fabaa76d564cb545510198aed9
xfs_db: bounds-check access to the dbmap array

Try to check the array boundaries of the dbmap array so that we don't
just segfault.

Found by fuzzing xfs/358 with recs[1].blockcount = ones.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
db/check.c