Solaar/lib
s0up4200 822b762b3c
Fix crashes on invalid UTF-8 in device name fields
A device name is display-only, but three code paths decode it strictly
and raise UnicodeDecodeError, aborting the whole operation:

- handle_device_discovery: crashes 'solaar pair' during Bolt discovery
- BoltReceiver.device_codename: crashes 'solaar show' and 'solaar unpair'
- get_friendly_name: crashes 'solaar show' after device enumeration

Observed in the wild with an MX Master 3S whose user-writable friendly
name field contained 0xc3 0x23 (invalid UTF-8). The Bolt receiver copies
this name at pairing time, so the bad bytes surface from both the
receiver registers and the live HID++ 2.0 feature, making the device
impossible to pair, list, or unpair with Solaar.

Decode with errors='replace' so a garbage name renders as replacement
characters instead of making the device unusable.
2026-08-08 09:59:10 +02:00
..
hid_parser Fix duplicate class field typo in HID parser data 2026-05-05 14:43:03 -04:00
hidapi G522 LIGHTSPEED headphones support 2026-05-21 10:13:00 -04:00
keysyms
logitech_receiver Fix crashes on invalid UTF-8 in device name fields 2026-08-08 09:59:10 +02:00
solaar perkey: add PRO X RAPID media top row layout 2026-07-31 16:34:42 -04:00