Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC
Commits:
ef48ddc9 by Abderhman Gamal at 2025-12-17T10:42:04+01:00
demux: mpeg: fix wrong allocation size for seekpoints
The seekpoint member is an array of pointers (seekpoint_t **), not an
array of structures. Allocating sizeof(seekpoint_t) wastes memory.
This patch fixes the allocation to use the pointer size.
Fixes #29368
Signed-off-by: Abderhman Gamal <[email protected]>
- - - - -
1 changed file:
- modules/demux/mpeg/es.c
Changes:
=====================================
modules/demux/mpeg/es.c
=====================================
@@ -786,7 +786,7 @@ static int Control( demux_t *p_demux, int i_query, va_list
args )
free( pp_title );
return VLC_EGENERIC;
}
- (*pp_title)->seekpoint = vlc_alloc( p_sys->chapters.i_count,
sizeof(seekpoint_t) );
+ (*pp_title)->seekpoint = vlc_alloc( p_sys->chapters.i_count,
sizeof(seekpoint_t *) );
if( !(*pp_title)->seekpoint )
{
free( *pp_title );
View it on GitLab:
https://code.videolan.org/videolan/vlc/-/commit/ef48ddc9980ca553b9b0db799901aa461e6458d8
--
View it on GitLab:
https://code.videolan.org/videolan/vlc/-/commit/ef48ddc9980ca553b9b0db799901aa461e6458d8
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