[vlc-commits] [Git][videolan/vlc][3.0.x] osd: epg: fix null deref on missing next event

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Thu May 26 09:35:07 UTC 2022



Jean-Baptiste Kempf pushed to branch 3.0.x at VideoLAN / VLC


Commits:
865099e2 by Francois Cartegnie at 2022-05-26T08:00:41+00:00
osd: epg: fix null deref on missing next event

refs #26905

(cherry picked from commit 1c3fc96a3446d26879cfc190100a0c87fc954dbc)

- - - - -


1 changed file:

- src/video_output/video_epg.c


Changes:

=====================================
src/video_output/video_epg.c
=====================================
@@ -375,7 +375,7 @@ static void vout_FillRightPanel(subpicture_updater_sys_t *p_sys,
             last_ptr = &(*last_ptr)->p_next;
     }
 
-    if(p_sys->time)
+    if(p_sys->time && p_sys->epg->p_current)
     {
         f_progress = (p_sys->time - p_sys->epg->p_current->i_start) /
                      (float)p_sys->epg->p_current->i_duration;



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/865099e2baa8655afaeab582df7b01d0f686e809

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/865099e2baa8655afaeab582df7b01d0f686e809
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list