]> git.dujemihanovic.xyz Git - u-boot.git/commit
gadget: f_thor: fix filename overflow
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 10 May 2018 01:52:14 +0000 (10:52 +0900)
committerMarek Vasut <marex@denx.de>
Fri, 18 May 2018 11:17:30 +0000 (13:17 +0200)
commitf9e8dc0abda94869d2734843c1c14ba6f2867031
treed64677621fc69e0598c5ccad489ca2e55c5e1529
parent233719cc40b5a00f37949d4173c190edcb4491a1
gadget: f_thor: fix filename overflow

The thor sender can send filename without null character and it is
used without consideration of overflow. Actually, character array
for filename is assigned with DEFINE_CACHE_ALIGN_BUFFER() and it
is bigger than size of memcpy, so there was no real overflow.
Fix filename overflow for code level integrity.

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
drivers/usb/gadget/f_thor.c