daynix / UsbDk

Usb Drivers Development Kit for Windows
Apache License 2.0
535 stars 142 forks source link

Support for 0 byte bulk/interrupt transfers #11

Closed msbroadf closed 8 years ago

msbroadf commented 8 years ago

Some devices use zero length bulk transfers, E.g iLok.

At the moment when passing a zero length transfer to the UsbDkHelper Read/WritePipe it will cause an STATUS_INVALID_USER_BUFFER error when it attempts to lock a zero length buffer in RedirectorStrategy (Line 248) and it then basically corrupts the internal state somewhere and causes the userspace program to crash.

dmitryfleytman commented 8 years ago

Thanks for the great bug report! Will be fixed in the next version.

dmitryfleytman commented 8 years ago

Fixed at 900b148f0a8a353a4a90f64e2f64e2696bcda103