Searched hist:"57086 a026ffbc480d4e89b2e58cdf63d57a1ec28" (Results 1 – 1 of 1) sorted by relevance
| /rk3399_rockchip-uboot/drivers/usb/gadget/ |
| H A D | f_thor.c | 57086a026ffbc480d4e89b2e58cdf63d57a1ec28 Thu May 10 01:52:14 UTC 2018 Seung-Woo Kim <sw0312.kim@samsung.com> UPSTREAM: 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.
Change-Id: Ie6f2fdd29fede8f26ae72a6048204b9cc8ece3ed Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com> Signed-off-by: Frank Wang <frank.wang@rock-chips.com> (cherry picked from commit f9e8dc0abda94869d2734843c1c14ba6f2867031)
|