[vlc-commits] [Git][videolan/vlc][master] packetizer: av1: fix double free
Steve Lhomme (@robUx4)
gitlab at videolan.org
Fri Jan 31 16:23:28 UTC 2025
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
fc0325db by Alexandre Janniaux at 2025-01-31T16:11:07+00:00
packetizer: av1: fix double free
If the p_extra is freed in the previous branch, it is also freed in this
branch without being reset to NULL before.
Regression from a95213e20de69d584324f6d0c9f37c7a7cdfe3e3.
- - - - -
1 changed file:
- modules/packetizer/av1.c
Changes:
=====================================
modules/packetizer/av1.c
=====================================
@@ -159,6 +159,7 @@ static void UpdateDecoderFormat(decoder_t *p_dec)
{
free(p_dec->fmt_out.p_extra);
p_dec->fmt_out.i_extra = 0;
+ p_dec->fmt_out.p_extra = NULL;
}
if(p_dec->fmt_out.i_extra <= 4)
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/fc0325dbe13bb3d7a2fb0438beeb658897e01044
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/fc0325dbe13bb3d7a2fb0438beeb658897e01044
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list