]> git.baikalelectronics.ru Git - uboot.git/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)
commit331e6908db0ca35f0322fbbcf8d8d3f9743d2e6b
tree87d0951d3ca38dfa6ef2fe63761d29b632193c59
parent6611ed730318b17fc393478da691bf2c4debf66f
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