commit | aa6ec9d92e9109510650d121db7cc7bee76638a0 | [log] [tgz] |
---|---|---|
author | Chris Dickens <christopher.a.dickens@gmail.com> | Mon Aug 17 08:40:33 2020 -0700 |
committer | Chris Dickens <christopher.a.dickens@gmail.com> | Mon Aug 17 08:40:33 2020 -0700 |
tree | dc6b07499bb1b3ef814f8999cd2cbca99273b92e | |
parent | fa3f91e7c4c73fd233104cf3cad4890dd6121043 [diff] |
Windows: Prevent NULL pointer dereference when ancestor is missing A buggy virtual USB device driver can cause the device enumeration process to fail during the init_device() function when trying to determine the bus number of the device. Guard against this by checking that the ancestor device was actually found and skipping the bogus device when there is no ancestor. Closes #491 Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
libusb is a library for USB device access from Linux, macOS, Windows, OpenBSD/NetBSD, Haiku and Solaris userspace. It is written in C (Haiku backend in C++) and licensed under the GNU Lesser General Public License version 2.1 or, at your option, any later version (see COPYING).
libusb is abstracted internally in such a way that it can hopefully be ported to other operating systems. Please see the PORTING file for more information.
libusb homepage: http://libusb.info/
Developers will wish to consult the API documentation: http://api.libusb.info
Use the mailing list for questions, comments, etc: http://mailing-list.libusb.info
(Please use the mailing list rather than mailing developers directly)