Mailing List Archive

[MythTV/mythtv] 5e422b: Fix heap-use-after-free in TVRec with Live TV
Branch: refs/heads/master
Home: https://github.com/MythTV/mythtv
Commit: 5e422b2853f2019240fb2ed6418f0edfc4be5e5b
https://github.com/MythTV/mythtv/commit/5e422b2853f2019240fb2ed6418f0edfc4be5e5b
Author: MmAaXx500 <viktor.balogh45@gmail.com>
Date: 2023-07-06 (Thu, 06 Jul 2023)

Changed paths:
M mythtv/libs/libmythtv/tv_rec.cpp

Log Message:
-----------
Fix heap-use-after-free in TVRec with Live TV

When playing Live TV continuously on the same channel, there is
a moment when according to the guide one program ends and the next
program begins. At this moment the Live TV recording is stopped and
a new recording is started. There is small time period in between
in which there is no valid program info and an update of the program
info from another thread in that period results then in access
of already deleted program info instance.
Fixed by using the m_stateChangeLock to lock the complete sequence.

Refs #768
Refs #769


_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-commits