Fix overflow of filename 17/179317/2
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 17 May 2018 06:06:46 +0000 (15:06 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Fri, 18 May 2018 03:46:19 +0000 (12:46 +0900)
commit7da7ee14ea6eed60274ef3d65d16e842547bbd3e
tree2d37aaac87a3a4e7de75d6ad5854a5bb18131d9d
parent1ec0490922ecb0a824a8c705f7f0091f7eefb46d
Fix overflow of filename

In thor protocol, only filename with 32 characters is allowed to
send but there was overflow of filename more than 32 and it is
crashed with 193 or longer length filename. Fix the overflow of
filename.

Note: ARTIK530 and ARTIK710 already misuse overflowed 33 length dtb
filename, and exact modification as thor protocol breaks flashing
on the boards. So fix with extention for the ARTIK borads by
appending more 32 bytes in rqt_pkt.str_data[1] as artik u-boot
expects.

Change-Id: I4081024cafa276617497091e00cbb6fbc21348b7
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
libthor/thor.c
libthor/thor_usb.c