Closed minhbq-99 closed 3 years ago
I have a USB device that returns "\n\n" in manufacturer field which makes newline cleanup in read_sysfs_file_string result in out-of-bound access.
Fix this by adding lower bound checks in the loops.
thanks for the fix!
I have a USB device that returns "\n\n" in manufacturer field which makes newline cleanup in read_sysfs_file_string result in out-of-bound access.
Fix this by adding lower bound checks in the loops.