summaryrefslogtreecommitdiff
path: root/btrfs-map-logical.c
diff options
context:
space:
mode:
authorZach Brown <zab@redhat.com>2013-10-07 14:42:57 -0700
committerChris Mason <chris.mason@fusionio.com>2013-10-16 08:23:13 -0400
commit69dc09a3ce7e914111c1cf9da93021d9b5d51762 (patch)
tree43561af432b0fedc0a30b32524839771cd9b2af5 /btrfs-map-logical.c
parent961eaa7d3975928635e3dc775e6ab3a2f36a5303 (diff)
btrfs-progs: don't overflow read buffer in image
search_for_chunk_blocks() allocates a fixed-size buffer and then reads arbitrary u32 sized buffers in to it. Instead let's fail if the item is bigger than the buffer. This was found by static analysis. Signed-off-by: Zach Brown <zab@redhat.com> Signed-off-by: David Sterba <dsterba@suse.cz> Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'btrfs-map-logical.c')
0 files changed, 0 insertions, 0 deletions