btrfs-progs: print-tree: add validation to print_chunk
authorLu Fengqi <lufq.fnst@cn.fujitsu.com>
Thu, 20 Apr 2017 08:07:57 +0000 (16:07 +0800)
committerDavid Sterba <dsterba@suse.com>
Thu, 20 Apr 2017 11:35:39 +0000 (13:35 +0200)
commitda76d52947f8e3de30f1c7a09080f3d96d7f8b17
tree024402edc3c31813a7c335f3230d51ced43eea73
parentd5213118a5cb36c0a5bfc14131a36650688a9094
btrfs-progs: print-tree: add validation to print_chunk

In print_chunk, validate the value of uuid_offset when read the dev_uuid of
stripe.

Was triggered by misc-test/015-dump-super-garbage running indefinetelly.

Issue: #37
Signed-off-by: Lu Fengqi <lufq.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
cmds-inspect-dump-super.c
print-tree.c