- Notifications
You must be signed in to change notification settings - Fork2k
darwin: handle error from GetConfigurationDescriptorPtr#1708
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
When a device is disconnected or otherwise `dpriv->device` is invalid,`GetConfigurationDescriptorPtr` will return `kIOReturnNoDevice` and`IOUSBConfigurationDescriptorPtr` will not be set. This means that wehave an uninitialized pointer that is read from which is... very bad.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
sonatique commentedOct 9, 2025
@mcuee user@prayasnog-droid doesn't seem to post very relevant comment or PR. Any way we can block it before we get flooded? |
mcuee commentedOct 9, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Blocked. |
sonatique commentedOct 9, 2025
thanks@mcuee : how did you do it? |
mcuee commentedOct 9, 2025
You can try to follow the steps here next time. |
When a device is disconnected or otherwise
dpriv->deviceis invalid,GetConfigurationDescriptorPtrwill returnkIOReturnNoDeviceandIOUSBConfigurationDescriptorPtrwill not be set. This means that we have an uninitialized pointer that is read from which is... very bad.