libusb: Fix parsing of descriptors for multi-configuration devices
authorGeorgi Valkov <gvalkov@abv.bg>
Wed, 3 Feb 2021 07:41:54 +0000 (09:41 +0200)
committerPaul Spooren <mail@aparcar.org>
Sun, 21 Feb 2021 20:12:10 +0000 (10:12 -1000)
commit4b37e3bc2b2a079c996b6d97b8d3dbbd4ba6eb62
treec1acb0340f235878f57cb33d5b85bb471d2f7465
parentd3140d05296461deddaaa8ca2ce4a4a97a320eff
libusb: Fix parsing of descriptors for multi-configuration devices

Prerequisite patch:
Correct a typo in the Changelog and clean up a stray file

Fix changes in libusb which introduced a regression:
Commit e2be556bd2 ("linux_usbfs: Parse config descriptors during device
initialization") introduced a regression for devices with multiple
configurations. The logic that verifies the reported length of the
configuration descriptors failed to count the length of the
configuration descriptor itself and would truncate the actual length by
9 bytes, leading to a parsing error for subsequent descriptors.

Signed-off-by: Georgi Valkov <gvalkov@abv.bg>
package/libs/libusb/Makefile
package/libs/libusb/patches/001-Correct-a-typo-in-the-Changelog-and-clean-up-a-stray.patch [new file with mode: 0644]
package/libs/libusb/patches/002-linux_usbfs-Fix-parsing-of-descriptors-for-multi-con.patch [new file with mode: 0644]