-
-
Notifications
You must be signed in to change notification settings - Fork 420
Open
Labels
USBUSB non-zero interface numbersMost UPSes serve USB interactions on interface 0 which is default. Recent "composite devices" differMost UPSes serve USB interactions on interface 0 which is default. Recent "composite devices" differbugimpacts-release-2.8.2Issues reported against NUT release 2.8.2 (maybe vanilla or with minor packaging tweaks)Issues reported against NUT release 2.8.2 (maybe vanilla or with minor packaging tweaks)
Milestone
Description
I rebased on master and force-pushed an identical change to libusb0.c.
This was compile and runtime tested, but not confirmed to fix the issue since I can't repro. I intentionally set a wrongusb_hid_rep_indexvalue in ups.conf and confirmed that things still broke as expected, though. A wrongusb_config_index(1) caused a segfault, didn't look too much into it though:
0.268093 [D2] Trying to match device
0.268094 [D2] match_function_subdriver (non-SHUT mode): matching a device...
0.268095 [D3] match_function_regex: matching a device...
0.268110 [D2] Device matches
0.268118 [D3] nut_usb_set_altinterface: skipped usb_set_altinterface(udev, 0)
0.271084 [D2] Retrieved HID descriptor (expected 9, got 9)
0.271089 [D3] HID descriptor, method 1: (9 bytes) => 09 21 10 01 21 01 22 ae 01
0.271090 [D3] HID descriptor length (method 1) 430
Segmentation fault
Originally posted by @tofurky in #2611 (comment)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
USBUSB non-zero interface numbersMost UPSes serve USB interactions on interface 0 which is default. Recent "composite devices" differMost UPSes serve USB interactions on interface 0 which is default. Recent "composite devices" differbugimpacts-release-2.8.2Issues reported against NUT release 2.8.2 (maybe vanilla or with minor packaging tweaks)Issues reported against NUT release 2.8.2 (maybe vanilla or with minor packaging tweaks)