Felix Paul Kühne pushed to branch master at VideoLAN / VLC
Commits:
379f3d8d by François Cartegnie at 2026-01-22T18:22:15+01:00
demux: ty: fix potential double free
refs #29549
- - - - -
1 changed file:
- modules/demux/ty.c
Changes:
=====================================
modules/demux/ty.c
=====================================
@@ -1642,6 +1642,7 @@ static int parse_master(demux_t *p_demux)
/* clear the SEQ table */
free(p_sys->seq_table);
+ p_sys->seq_table = NULL;
/* parse header info */
if( vlc_stream_Read(p_demux->s, mst_buf, 32) != 32 )
@@ -1654,10 +1655,7 @@ static int parse_master(demux_t *p_demux)
p_sys->i_seq_table_size = i / (8 + i_map_size);
if(p_sys->i_seq_table_size == 0)
- {
- p_sys->seq_table = NULL;
return VLC_SUCCESS;
- }
#if (UINT32_MAX > SSIZE_MAX)
if (i_map_size > SSIZE_MAX)
View it on GitLab:
https://code.videolan.org/videolan/vlc/-/commit/379f3d8d1fa0bc5b6cbaf2567677603f43910352
--
View it on GitLab:
https://code.videolan.org/videolan/vlc/-/commit/379f3d8d1fa0bc5b6cbaf2567677603f43910352
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits