]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_repair: fix bag memory overwrite problems
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 9 Nov 2017 17:35:24 +0000 (11:35 -0600)
committerEric Sandeen <sandeen@redhat.com>
Thu, 9 Nov 2017 17:35:24 +0000 (11:35 -0600)
commit4cf0d1f709ce30cef706d8f5ad5612215dc81ef5
tree368564f258295d47764eaed8821d0433c8182b9a
parent18146cc2a46c94ed2e1b4044f8cf5c0450a83e4c
xfs_repair: fix bag memory overwrite problems

There's an off by one error in the bag_remove code such that we end up
copying memory from beyond the end of the array into the array.  Not a
serious problem since we have counters to prevent us from reading that
garbage, but AddressSanitizer complained so let's fix it.

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>
repair/slab.c