gregkh / usbutils

USB utilities for Linux, including lsusb
http://www.linux-usb.org
354 stars 199 forks source link

Fix an runtime error reported by undefind sanitizer #149

Closed qiankehan closed 2 years ago

qiankehan commented 2 years ago

Fix the following error when compiling with undefined sanitizer:

./lsusb names.c:36:29: runtime error: left shift of 16 by 27 places cannot be represented in type 'int'

Signed-off-by: Han Han hhan@redhat.com

gregkh commented 2 years ago

Thanks for the fix!