[vlc-commits] [Git][videolan/vlc][3.0.x] packetizer: av1: fix double free

Steve Lhomme (@robUx4) gitlab at videolan.org
Thu Jul 31 15:09:38 UTC 2025



Steve Lhomme pushed to branch 3.0.x at VideoLAN / VLC


Commits:
64af7294 by Alexandre Janniaux at 2025-07-31T14:41:20+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.

(cherry picked from commit fc0325dbe13bb3d7a2fb0438beeb658897e01044)

- - - - -


1 changed file:

- modules/packetizer/av1.c


Changes:

=====================================
modules/packetizer/av1.c
=====================================
@@ -156,6 +156,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/64af7294faab7a8affe33d6eb02bb4529281394c

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/64af7294faab7a8affe33d6eb02bb4529281394c
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