darrylb123 / usbrelay

Control usb relay - based on hidapi
GNU General Public License v2.0
315 stars 98 forks source link

issue with renaming - *** buffer overflow detected ***: terminated #113

Closed toby11 closed 5 months ago

toby11 commented 5 months ago

since updating to Ubuntu 22.04.4 LTS, usbrelay is returning back bad characters in the device names

usbrelay is already the newest version (0.4-2).

toby@homeassistant:~$ usbrelay Device Found type: 16c0 05df path: /dev/hidraw1 serial_number: Manufacturer: www.dcttech.com Product: USBRelay8 Release: 100 Interface: 0 Number of Relays = 8 ▒▒▒▒▒_1=0 ▒▒▒▒▒_2=0 ▒▒▒▒▒_3=0 ▒▒▒▒▒_4=0 ▒▒▒▒▒_5=0 ▒▒▒▒▒_6=0 ▒▒▒▒▒_7=0 ▒▒▒▒▒_8=0

if I try and rename is as per the docs I get a buffer overflow

usbrelay /dev/hidraw1_0=ABCDE buffer overflow detected : terminated

darrylb123 commented 5 months ago

That version is ancient. If your package is the newest available to install, you should remove it and build the latest version from the source on GitHub.

On Sat, May 18, 2024, 6:34 PM toby11 @.***> wrote:

since updating to Ubuntu 22.04.4 LTS, usbrelay is returning back bad characters in the device names

usbrelay is already the newest version (0.4-2).

@.***:~$ usbrelay Device Found type: 16c0 05df path: /dev/hidraw1 serial_number: Manufacturer: www.dcttech.com Product: USBRelay8 Release: 100 Interface: 0 Number of Relays = 8 ▒▒▒▒▒_1=0 ▒▒▒▒▒_2=0 ▒▒▒▒▒_3=0 ▒▒▒▒▒_4=0 ▒▒▒▒▒_5=0 ▒▒▒▒▒_6=0 ▒▒▒▒▒_7=0 ▒▒▒▒▒_8=0

if I try and rename is as per the docs

— Reply to this email directly, view it on GitHub https://github.com/darrylb123/usbrelay/issues/113, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTSUVPWFFJVUJOWRZWT2T3ZC4HBPAVCNFSM6AAAAABH5I57EKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGMYDGOJSHEYTENY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

toby11 commented 5 months ago

yes thats fixed it- sorry should have tried that first.