Skip to content
Commit e2140588 authored by Eric Nelson's avatar Eric Nelson Committed by Marek Vasut
Browse files

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: default avatarEric Nelson <eric.nelson@boundarydevices.com>
parent 16b61d13
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment