-
-
Notifications
You must be signed in to change notification settings - Fork 115
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
MacOS panic when hid_write called with a zero length buffer #116
Comments
If P.S. I'm not familiar with Mac OS. Does |
It did indeed panic in the kernel which surprised me greatly. When I opened this issue, I wasn't sure how responsive the I've got a PR going right now to address the problem in hidapi. When that PR is accepted a |
A PR for HIDAPI will be very welcome. I am being hit by this myself. |
PR here, it should be merged soon. |
My pull request addressing this bug and resultant kernel panic has been merged into libusb/hidapi. It should now be less difficult to induce a kernel panic going forward with cython-hidapi. 🤞 |
Looking at how cython-hidapi incorporates libusb/hidapi, some testing with the head needs to be done and then update the submodule hash to pickup these new changes. |
Updated the hidapi submodule to latest git and cython_hidapi seems to work fine.
|
There is a very important fix in HIDAPI recently for macOS: libusb/hidapi#322 which fixes libusb/hidapi#236. Without the fix: try.py output will have something like the following (empty path).
With the fix, the path is now not empty.
|
Thanks for the info. Closing this because the issue is now resolved in the upstream. Hopefully they will cut a new release soon. |
I just opened this issue for
libusb/hidapi
and I wanted to share it with you folks. I do not think thatcython-hidapi
causes the panic,but I do suggest adding checks for zero-length buffers to I/O methods to avoid tickling the probable bugI'll put together a PR ;)The text was updated successfully, but these errors were encountered: