]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: fix calculation of the number of node entries in a dir3 node
authorDave Chinner <dchinner@redhat.com>
Wed, 4 Sep 2013 22:05:55 +0000 (22:05 +0000)
committerRich Johnston <rjohnston@sgi.com>
Mon, 16 Sep 2013 20:16:51 +0000 (15:16 -0500)
commited59338e3450b2cd3c959a384d96e93e04b21aac
tree08a43ff99537bd8cf25812fb7114c64e2dbe6f13
parentfde71651ae3592aca70bc74c095e835643d38aab
xfs: fix calculation of the number of node entries in a dir3 node

The calculation doesn't take into account the size of the dir v3
header, so overestimates the hash entries in a node. This causes
directory buffer overruns when splitting and merging nodes.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
include/xfs_da_btree.h
libxfs/xfs_dir2.c