Skip to content

usb: truncate string descriptor response to match setup.wLength#67

Merged
rusefillc merged 1 commit into
rusefi:stable_21.11.x.rusefi_clean_historyfrom
dron0gus:usb-respect-wlength
Jun 22, 2026
Merged

usb: truncate string descriptor response to match setup.wLength#67
rusefillc merged 1 commit into
rusefi:stable_21.11.x.rusefi_clean_historyfrom
dron0gus:usb-respect-wlength

Conversation

@dron0gus

Copy link
Copy Markdown
Member

Windows requests the first 2 bytes of a string descriptor to read its size before asking for the full string. This fix ensures the firmware truncates the response data to match wLength, preventing endpoint stalls and timeouts on strict hosts.

Windows requests the first 2 bytes of a string descriptor to read
its size before asking for the full string. This fix ensures the
firmware truncates the response data to match wLength, preventing
endpoint stalls and timeouts on strict hosts.
@rusefillc rusefillc merged commit c43c9fb into rusefi:stable_21.11.x.rusefi_clean_history Jun 22, 2026
1 check failed
@dron0gus

Copy link
Copy Markdown
Member Author

@dron0gus dron0gus deleted the usb-respect-wlength branch June 22, 2026 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants