[vlc-commits] packetizer: flac: Fix potential double free

Hugo Beauzée-Luyssen git at videolan.org
Tue Mar 20 10:49:21 CET 2018


vlc/vlc-3.0 | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Mon Mar 19 17:55:54 2018 +0100| [8f654da7b50194c0499e8d4d6fb1feffec20a41b] | committer: Hugo Beauzée-Luyssen

packetizer: flac: Fix potential double free

CID #1430164

(cherry picked from commit 5e4a88e01ba439835af5e7fd627168c15a4a5d8c)
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=8f654da7b50194c0499e8d4d6fb1feffec20a41b
---

 modules/packetizer/flac.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/packetizer/flac.c b/modules/packetizer/flac.c
index 7ed37b1db9..ff5e1ac076 100644
--- a/modules/packetizer/flac.c
+++ b/modules/packetizer/flac.c
@@ -503,6 +503,8 @@ static block_t *Packetize(decoder_t *p_dec, block_t **pp_block)
                 out->i_flags = p_sys->i_next_block_flags;
                 p_sys->i_next_block_flags = 0;
             }
+            else
+                p_sys->p_buf = NULL;
         }
 
         date_Increment( &p_sys->pts, p_sys->headerinfo.i_frame_length );



More information about the vlc-commits mailing list