summaryrefslogtreecommitdiff
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorJack Pham <jackp@codeaurora.org>2017-03-07 14:34:16 -0800
committerJack Pham <jackp@codeaurora.org>2017-03-08 09:52:54 -0800
commit261c9dda82ae8804f4338d5803910ead9d0b5583 (patch)
treed6f281cb37fdda2850ce62c87ef358a2e63ba173 /fs/btrfs/dev-replace.c
parent74efdfc1b94955b82c85c48f51cc32c6b271f790 (diff)
usb: gadget: f_fs: Fix out-of-bounds string access
At the end of ffs_epfiles_create() a message is logged with the name of the epfile, however this epfile pointer is only valid in the body of the preceding for-loop. After the loop exits, it is now pointing one past the allocated array and results in an out-of-bounds memory access when formatting the string. Since there could be multiple ep's created, the name may not be important to log. Replace it with the count instead. Also while ffs_epfiles_destroy() doesn't have the same problem, do the same there anyway for symmetry. Change-Id: I10551f9c1e056f215ec59335cbf1cde2bad6cc04 Signed-off-by: Jack Pham <jackp@codeaurora.org>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions