Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cast to unsigned type when interpreting HID descriptor length bytes (…
…libusb 0.1) The libusb 0.1 interface definition declares a (signed) char type for control messages. The HID descriptor length contained within a control message is intended to be interpreted as a pair of unsigned bytes so we must cast to uint8_t when doing the arithmetic rather than trip over the sign bit. Closes networkupstools#1261, closes networkupstools#1312.
- Loading branch information