FS#49997 - [lirc] irrecord crashes in an buffer overflow

Attached to Project: Arch Linux
Opened by John (graysky) - Friday, 08 July 2016, 18:56 GMT
Last edited by Doug Newgard (Scimmia) - Monday, 15 August 2016, 13:29 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Lukas Fleischer (lfleischer)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Since this update, irrecord crashes in a buffer overflow.


Additional info:
* lirc 1:0.9.4.a-1

Steps to reproduce:
1) Start lircd
2) sudo irrecord --device=/dev/lirc0 MyRemote
   ir.log (9.7 KiB)
This task depends upon

Closed by  Doug Newgard (Scimmia)
Monday, 15 August 2016, 13:29 GMT
Reason for closing:  Fixed
Additional comments about closing:  1:0.9.4.b-1
Comment by John (graysky) - Friday, 08 July 2016, 19:12 GMT
I should have stated that downgrading to the following packages restores expected functionality:
*lirc-1:0.9.3.a-2
*libirman-0.4.6-1
Comment by John (graysky) - Tuesday, 12 July 2016, 17:29 GMT
If I boot into linux-lts instead of linux, the updated version of lirc and of libirman work as expected... so perhaps this is a kernel bug?

EDIT: even though the remote control works under linux-lts, irrecord still crashes as described above.
Comment by John (graysky) - Tuesday, 12 July 2016, 21:40 GMT
I will report this upstream bug the upstream tracker and ML are currently down... all of sourceforge seems to be :/
Comment by John (graysky) - Friday, 15 July 2016, 07:09 GMT Comment by John (graysky) - Saturday, 16 July 2016, 11:37 GMT
The problem is that default options have changed in /etc/lirc/lirc_options.conf:

Old:
driver = default
device = /dev/lirc0

New:
driver = devinput
device = auto

Using the "old" values followed-up restarting lircd fixes the problem with the updated packages. Credit to dustovich in this thread[1] for pointing it out. Do you want to add a post_install message to warn users of this change? I have found other affected users in our own forums and on the Arch ARM forums so it's not just my setup.

1. https://archlinuxarm.org/forum/viewtopic.php?f=64&t=10574
Comment by John (graysky) - Saturday, 16 July 2016, 12:12 GMT
I spoke too soon. Changing these lines in 0.9.4a causes each key press on my remote to be doubled!
Comment by Darek (blablo) - Tuesday, 09 August 2016, 09:03 GMT
>I spoke too soon. Changing these lines in 0.9.4a causes each key press on my remote to be doubled!

[1] https://sourceforge.net/p/lirc/mailman/message/35267107/
[2] https://bugzilla.redhat.com/show_bug.cgi?id=1360688

PATCH: https://patchwork.linuxtv.org/patch/35801/

Loading...