-
Notifications
You must be signed in to change notification settings - Fork 83
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
Example app crashed on Windows #15
Comments
This is more like a broken device. Which returns the wrong string. |
Ah, OK. But I think the library should not panic on a bad string descriptor. We should at least test that the length of the descriptor is an even number, greater than 2 before trying to parse the string. For a string descriptor, should the number of bytes read also be the length in the descriptor (byte 0)? If so, we could verify that as well. I will have a look and send a PR if I think I can fix it. |
Mention stm32-usbd implementation
Tried running the
list_devices
example on Windows 7. It got the first four devices OK, then on the fifth one it crashed:The text was updated successfully, but these errors were encountered: