usbutils icon indicating copy to clipboard operation
usbutils copied to clipboard

usbmisc: fix possible stack-buffer-overflow

Open Drawishe opened this issue 1 year ago • 0 comments

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.

Drawishe avatar Jun 19 '24 15:06 Drawishe