Btrfs-progs: fix array bound checking
authorEric Sandeen <sandeen@redhat.com>
Fri, 26 Apr 2013 21:06:04 +0000 (16:06 -0500)
committerDavid Sterba <dsterba@suse.cz>
Fri, 9 Aug 2013 12:32:27 +0000 (14:32 +0200)
commita3e5eeb94c5ae524ca5af9b39d63f21810a173f1
tree1e28e89dd6ca00340b84593210a7c1e7daf69cca
parente54d41d7c675f3094f912dbc951aebdcdf82b4b3
Btrfs-progs: fix array bound checking

Otherwise we can execced the array bound of path->slots[].

[Eric Sandeen: port kernel commit a05a9bb to userspace]

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
ctree.c