commit | 36a6b402c2f4937cdced3ba1436bd0c92ff032df | [log] [tgz] |
---|---|---|
author | Jeroen Hofstee <jeroen@myspectrum.nl> | Sat Jun 14 00:57:14 2014 +0200 |
committer | Marek Vasut <marex@denx.de> | Wed Jun 25 22:44:40 2014 +0200 |
tree | 7522de18aa885aaf1cfdb6d5bb525ac0b800ba5c | |
parent | b351e46fa405ee220c1681ccff9caa2cfa212527 [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 <bigeasy@linutronix.de> cc: Rob Herring <robh@kernel.org> Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>