Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
2df6bca6 by Mathias APARICIO at 2026-01-23T11:28:57+00:00
demux: mkv: Prevent leak in ParseTrackEntry
Oss-fuzz 4605658287898624 highlights a memory leak in the
KaxCompSettings handler.
Delete the pointer vars.tk->p_compression_data before allocating again
so it is not overwritten.
Address https://code.videolan.org/videolan/vlc/-/issues/29561
- - - - -
1 changed file:
- modules/demux/mkv/matroska_segment_parse.cpp
Changes:
=====================================
modules/demux/mkv/matroska_segment_parse.cpp
=====================================
@@ -478,6 +478,7 @@ void matroska_segment_c::ParseTrackEntry( const
KaxTrackEntry *m )
}
E_CASE( KaxContentCompSettings, kccs )
{
+ delete vars.tk->p_compression_data;
vars.tk->p_compression_data = new KaxContentCompSettings( kccs );
}
E_CASE( KaxTrackVideo, tkv )
View it on GitLab:
https://code.videolan.org/videolan/vlc/-/commit/2df6bca67b6ebbdcd336cfe7bc88faca14ec2da6
--
View it on GitLab:
https://code.videolan.org/videolan/vlc/-/commit/2df6bca67b6ebbdcd336cfe7bc88faca14ec2da6
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