-
-
Notifications
You must be signed in to change notification settings - Fork 350
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A wrong usb_config_index
(1) caused a segfault with libusb-0.1 builds (libusb1 is okay)
#2622
Comments
@tofurky : did this only happen with the libusb-0.1 build for you, or also libusb-1.0 (how much pressing does this issue seem)? |
It doesn't happen with libusb-1.0, just 0.1. Some more info (I didn't want to turn my PR into a bug report): valgrind:
gdb:
Seems line 600 of libusb0.c is this:
|
Updated valgrind output above; didn't have dbgsym installed in the original comment. |
And also, to clarify - it only occurred because I intentionally specified an invalid |
So, comparing these lines for two implementations:
I can only guess the issue is about looking into array elements which are not there?.. In
I do not see any practical equivalent in Lines 336 to 337 in 6da2fd9
Maybe those have a field for max value of these arrays? |
Seems to be this
Very helpful :\ no counter. Maybe gotta loop until a null entry? |
usb_config_index
(1) caused a segfaultusb_config_index
(1) caused a segfault with libusb-0.1 builds (libusb1 is okay)
Originally posted by @tofurky in #2611 (comment)
The text was updated successfully, but these errors were encountered: