find_usb_devices - out of bounds access
Brought to you by:
jtsiomb
valgrind showed a small out-of-bounds access inside find_usb_devices(). The problem is that fread() reads 1024 bytes of data and then strstr scans the data. Since the data is not 0-terminated, strstr accesses beyond the 1024 bytes and valgrind (correctly) complains. The attached patch fixes the issue.
Thanks! commited in svn revision 174.