diff options
author | Qu Wenruo <quwenruo@cn.fujitsu.com> | 2016-08-30 15:22:13 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-09-05 10:04:32 +0200 |
commit | 0d2c2d480918eb2b939ebcc6057548d4d808d829 (patch) | |
tree | e455492dde51bcb7977780962f8b8e4873074089 /print-tree.h | |
parent | ba23b7679fb85e55cb28239e65a58a4f47e9f739 (diff) |
btrfs-progs: fsck: Check drop level before walking through fs tree
Exposed by fuzzed image from Lukas, which contains invalid drop level
(16), causing segfault when accessing path->nodes[drop_level].
This patch will check drop level against fs tree level and
BTRFS_MAX_LEVEL to avoid such problem.
Reported-by: Lukas Lueg <lukas.lueg@gmail.com>
Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'print-tree.h')
0 files changed, 0 insertions, 0 deletions