[LIRC-1] Crash when parsing incomplete event
Referencing Issues
[LIRC-2] irc.c: Partial reads occur occasionally
==3458242== 1 errors in context 1 of 58:
==3458242== Thread 23:
==3458242== Invalid read of size 1
==3458242== at 0x500A420: __strchr_avx2 (strchr-avx2.S:55)
==3458242== by 0x5662761: irc_parse_msg_type (irc.c:1023)
==3458242== by 0x5662EA9: irc_loop (irc.c:458)
==3458242== by 0x5658B3F: client_relay (mod_irc_client.c:767)
==3458242== by 0x16243B: thread_run (thread.c:512)
==3458242== by 0x4F3E1F4: start_thread (pthread_create.c:442)
==3458242== by 0x4FBDB3F: clone (clone.S:100)
==3458242== Address 0x0 is not stack'd, malloc'd or (recently) free'dComments
You must be logged in to leave a comment.
2/21/2026 11:16 AM — InterLinked
Resolved by code commit on GitHub:
irc.c: Abort parsing if msg->body or msg->command is NULL.
https://github.com/InterLinked1/lirc/commit/0b57e89fca7ceb5275e9394752e38e8cb31a7be0