Home
last modified time | relevance | path

Searched hist:e2140588dd2f3e619f21d9575281b7c7ea771c09 (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/drivers/usb/gadget/
H A Df_fastboot.ce2140588dd2f3e619f21d9575281b7c7ea771c09 Wed Oct 01 21:30:56 UTC 2014 Eric Nelson <eric.nelson@boundarydevices.com> usb: gadget: fastboot: terminate commands with NULL

Without NULL termination, various commands will read past the
end of input. In particular, this was noticed with error()
calls in cb_getvar and simple_strtoul() in cb_download.

Since the download callback happens elsewhere, the 4k buffer
should always be sufficient to handle command arguments.

Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>