summaryrefslogtreecommitdiff
path: root/extent_io.c
diff options
context:
space:
mode:
authorZach Brown <zab@redhat.com>2013-01-23 11:31:24 -0800
committerZach Brown <zab@redhat.com>2013-02-05 16:09:39 -0800
commitde763395fb05bcd5c1ae32f9cd88d55cb396231c (patch)
treea544b469ccc48e623abbe6580017ff090c457fb8 /extent_io.c
parent506fb87fe48f38e2999b6265fcc54456ea81c7b1 (diff)
btrfs-progs: fix overflow in btrfs_scan_one_dir()
btrfs_scan_one_dir() can overflow an arbitrarily small 256 byte buffer with an arbitrarily slightly larger 1024 byte buffer as it remembers the path of a dir to later descend. Make these buffers the same size to stop the overflow and chose PATH_MAX for that size so that it won't fail on legitimately bonkers paths. Signed-off-by: Zach Brown <zab@redhat.com>
Diffstat (limited to 'extent_io.c')
0 files changed, 0 insertions, 0 deletions