summaryrefslogtreecommitdiff
path: root/scripts/checkstack.pl
diff options
context:
space:
mode:
authorJeroen Hofstee <[email protected]>2014-06-14 00:57:14 +0200
committerMarek Vasut <[email protected]>2014-06-25 22:44:40 +0200
commit29425be49bf301b55807dd27f55678e6d0a81060 (patch)
tree7522de18aa885aaf1cfdb6d5bb525ac0b800ba5c /scripts/checkstack.pl
parent25d1936a192ac62b8df5dc33e37455dcaeb19fae (diff)
usb: fastboot: fix potential buffer overflow
cb_getvar tries to prevent overflowing the response buffer by using strncat. But strncat takes the number of data bytes copied as a limit not the total buffer length so it can still overflow. Pass the correct value instead. cc: Sebastian Andrzej Siewior <[email protected]> cc: Rob Herring <[email protected]> Signed-off-by: Jeroen Hofstee <[email protected]>
Diffstat (limited to 'scripts/checkstack.pl')
0 files changed, 0 insertions, 0 deletions