]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: check that dir block entries don't off the end of the buffer
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 31 Jul 2017 20:08:13 +0000 (15:08 -0500)
committerEric Sandeen <sandeen@redhat.com>
Mon, 31 Jul 2017 20:08:13 +0000 (15:08 -0500)
commitf9f5e90c212052f896cc2ffbbb062498dd026b1a
treead5e6cbec537a44e0560e0af58b43f985ff4441d
parentd705962a19dc6b3e8db9530b6f7571ea0220682f
xfs: check that dir block entries don't off the end of the buffer

Source kernel commit: 6215894e11de224183c89b001f5363912442b489

When we're checking the entries in a directory buffer, make sure that
the entry length doesn't push us off the end of the buffer.  Found via
xfs/388 writing ones to the length fields.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_dir2_data.c