[vlc-commits] [Git][videolan/vlc][master] demux: ts: fix potential NULL deref with IOD descriptor
Steve Lhomme (@robUx4)
gitlab at videolan.org
Thu Mar 19 06:39:19 UTC 2026
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
3e9f4fde by François Cartegnie at 2026-03-19T06:24:33+00:00
demux: ts: fix potential NULL deref with IOD descriptor
refs #29683
- - - - -
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/3e9f4fde77c95553057ad381a14aa84073cb3a13
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/3e9f4fde77c95553057ad381a14aa84073cb3a13
You're receiving this email because of your account on code.videolan.org.
More information about the vlc-commits
mailing list