btrfs-progs: add more checks to btrfs_read_sys_array
authorDavid Sterba <dsterba@suse.cz>
Wed, 5 Nov 2014 14:24:51 +0000 (15:24 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 4 Jan 2016 10:28:24 +0000 (11:28 +0100)
commitd9463cfeaa9a131062752c1136825071137c78f5
treea94d2a7aaa4335d314d1139d94ba7aa79ae205c6
parent22d9c7091b3855663571cf445141ba2b24522bd0
btrfs-progs: add more checks to btrfs_read_sys_array

Port of kernel commit e3540eab29e1b2260bc4b9b3979a49a00e3e3af8

Verify that the sys_array has enough bytes to read the next item.

Signed-off-by: David Sterba <dsterba@suse.com>
volumes.c