]> git.sur5r.net Git - u-boot/commit
fastboot: avoid printing invalid data
authorJohn Keeping <john@metanate.com>
Mon, 19 Sep 2016 09:59:40 +0000 (10:59 +0100)
committerMarek Vasut <marex@denx.de>
Mon, 21 Aug 2017 09:31:10 +0000 (11:31 +0200)
commit7715dea48b5d17f6394d1a02c60a84278df71391
tree87d0951d3ca38dfa6ef2fe63761d29b632193c59
parentd331084298002e5cc0a54abb5855be1fc69153c3
fastboot: avoid printing invalid data

There is no guarantee that commands are null-terminated in the USB
request buffer, so limit the length of data that is printed.

Signed-off-by: John Keeping <john@metanate.com>
Tested-by: Steve Rae <steve.rae@raedomain.com>
drivers/usb/gadget/f_fastboot.c