Mailing List Archive

[MythTV/mythtv] beaf2b: Fix heap-use-after-free in TVRec with Live TV
Branch: refs/heads/fixes/33
Home: https://github.com/MythTV/mythtv
Commit: beaf2bacbe63da92da49e37807efa1738e1fa5c1
https://github.com/MythTV/mythtv/commit/beaf2bacbe63da92da49e37807efa1738e1fa5c1
Author: MmAaXx500 <viktor.balogh45@gmail.com>
Date: 2023-07-14 (Fri, 14 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

Signed-off-by: Klaas de Waal <klaas@kldo.nl>


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