You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sendStringDescriptor accepts a uint8_t as maxlen, however calling code (from sendDescriptor) passes in wLength from the request packet, which is an uint16_t and may be larger than 255, causing maxlen to be truncated and an invalid packet sent.
This has been fixed in the upstream, so catching up with that would fix the issue.
(The issue occurred for me on Windows which sends 2050 as wLength in the Get descriptor request, which is truncated to one bytes causing sendDescriptor to send an essentially empty packet with incorrect length).