RE: [PATCH v3 2/4] libusbg: Fix buffer overrun issue. CID#56128

2014-05-26 Thread Krzysztof Opasiak
> -Original Message- > From: linux-usb-ow...@vger.kernel.org [mailto:linux-usb- > ow...@vger.kernel.org] On Behalf Of philippedesw...@gmail.com > Sent: Saturday, May 24, 2014 7:29 PM > To: philippedesw...@gmail.com; linux-usb@vger.kernel.org > Subject: [PATCH v3 2/4] l

[PATCH v3 2/4] libusbg: Fix buffer overrun issue. CID#56128

2014-05-24 Thread philippedeswert
From: Philippe De Swert Avoid calling usbg_read_string() with a 40 byte long buffer, which in turn is filled in by usbg_read_buf() which uses a maximum of 256 bytes (USBG_MAX_STR_LENGTH). This adjusts the buffer to be the right size. Signed-off-by: Philippe De Swert --- src/usbg.c | 2 +- 1