[vlc-commits] [Git][videolan/vlc][3.0.x] demux: ts: fix potential NULL deref with IOD descriptor

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Fri Mar 27 13:15:55 UTC 2026



Felix Paul Kühne pushed to branch 3.0.x at VideoLAN / VLC


Commits:
d14b9263 by François Cartegnie at 2026-03-27T13:34:08+01:00
demux: ts: fix potential NULL deref with IOD descriptor

refs #29683

(cherry picked from commit 3e9f4fde77c95553057ad381a14aa84073cb3a13)

- - - - -


1 changed file:

- modules/demux/mpeg/ts_sl.c


Changes:

=====================================
modules/demux/mpeg/ts_sl.c
=====================================
@@ -32,7 +32,7 @@
 
 const es_mpeg4_descriptor_t * GetMPEG4DescByEsId( const ts_pmt_t *pmt, uint16_t i_es_id )
 {
-    for( int i = 0; i < ES_DESCRIPTOR_COUNT; i++ )
+    for( int i = 0; pmt->iod && i < ES_DESCRIPTOR_COUNT; i++ )
     {
         const es_mpeg4_descriptor_t *es_descr = &pmt->iod->es_descr[i];
         if( es_descr->i_es_id == i_es_id && es_descr->b_ok )



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

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




More information about the vlc-commits mailing list