Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check num_altsetting before dereffing altsetting
According to the libusb documentation, libusb_interface::num_altsetting must be non-negative, hence it's allowed to be zero, in which case dereferencing libusb_interface::altsetting isn't allowed. Fix the places in the CCID code that do this without proper checks.
- Loading branch information