usbutils
usbutils copied to clipboard
usbmisc: fix possible stack-buffer-overflow
Running lsusb with -D argument and path, which len is more than PATH_MAX + 1, cause stack-buffer-overflow because of copy to the buf a string without null-terminator Force setting 0 byte to the end of the buf fixes this error.