-
Notifications
You must be signed in to change notification settings - Fork 49
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
#16 allow zero length control transfer (without buffer) #21
Comments
@tormodvolden Thanks a lot for the patches. |
Reference: libusb/libusb#1006 Comments from @tormodvolden
|
Closes mcuee#21 Signed-off-by: Tormod Volden <[email protected]>
Merge request in #22. |
Thanks. Updated the following page: |
https://sourceforge.net/p/libusb-win32/patches/16/
Using for instance libusbk.dll 3.0.7.0 (the version currently installed with Zadig) a control transfer with zero length will fail (see libusb/libusb#1006). I suspect this is due to the check on transfer_buffer_mdl in src/driver/ioctl.c since the same check for bulk transfer write is explicitly not done. The second patch changes the control transfer check to be consistent to the bulk transfer check.
The first patch just adds missing debug tags. The second patch applies on top.
I don't have the setup to rebuild and test libusb0.sys so I can only assume this is correct without verification by own testing. BTW this issue doesn't show when using the recently released libusbk.dll 3.0.8.0 because the control transfers are done differently here.
Driver error message caught with DebugView:
libusb0-sys:err [dispatch_ioctl] (null): invalid transfer request
patches.zip
The text was updated successfully, but these errors were encountered: