microsoft / microsoft/mu_basecore
[Feature]: Improve USB descriptor robustness
- Dominant language
- C
- Stars
- 290
- Forks
- 187
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 37
Description
### Feature Overview
Commit 714d41b, stopped USB enumeration in the case a malformed descriptor is found. This change was made because access exceptions occurred in some cases when attempting to communicate with the downstream device because the driver has invalid interface descriptor structures associated with the device.
The change has been found to regress end-user functionality of some USB devices.
### Solution Overview
An exact solution is not being proposed at the moment. This feature request tracks a more robust solution that may still allow broader device compatibility while preventing the subsequent access violation issues the original change intended to solve.
### Alternatives Considered
_No response_
### Urgency
Low
### Are you going to implement the feature request?
Someone else needs to implement the feature
### Do you need maintainer feedback?
No maintainer feedback needed
### Anything else?
_No response_
Contributor guide
Research direction
Start by reviewing commit 714d41b and the two closed pull requests, 493 and 494, to understand the current descriptor handling and prior attempted solutions. The issue names no source file or test; done means establishing and implementing a robust approach that preserves compatibility with affected USB devices while preventing the access violations described.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- embedded-iot
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100