summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorEric Nelson <eric.nelson@boundarydevices.com>2014-10-01 14:30:56 -0700
committerMarek Vasut <marex@denx.de>2014-10-06 21:07:44 +0200
commite2140588dd2f3e619f21d9575281b7c7ea771c09 (patch)
tree8462728474bc08d9500427916b6c98d4101614be /board
parent16b61d13bab361853564da401b15fc34ae1dfea7 (diff)
downloadu-boot-imx-e2140588dd2f3e619f21d9575281b7c7ea771c09.zip
u-boot-imx-e2140588dd2f3e619f21d9575281b7c7ea771c09.tar.gz
u-boot-imx-e2140588dd2f3e619f21d9575281b7c7ea771c09.tar.bz2
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>
Diffstat (limited to 'board')
0 files changed, 0 insertions, 0 deletions