[vlc-commits] demux: ts: fix potential null deref (cid #1412981)

Francois Cartegnie git at videolan.org
Thu Nov 23 00:24:56 CET 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Nov 22 18:40:45 2017 +0100| [9b390db4f96aba85575ff4caab470628a2109390] | committer: Francois Cartegnie

demux: ts: fix potential null deref (cid #1412981)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9b390db4f96aba85575ff4caab470628a2109390
---

 modules/demux/mpeg/ts_sl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/mpeg/ts_sl.c b/modules/demux/mpeg/ts_sl.c
index bcf22c1fe9..94a56bb952 100644
--- a/modules/demux/mpeg/ts_sl.c
+++ b/modules/demux/mpeg/ts_sl.c
@@ -251,7 +251,7 @@ static block_t * SL_stream_processor_Push( ts_stream_processor_t *h, uint8_t i_s
         }
         block_ChainLastAppend( &ctx->pp_au_last, p_block );
         p_block = NULL;
-        if( header.b_au_end )
+        if( header.b_au_end && ctx->p_au )
         {
             p_block = block_ChainGather( ctx->p_au );
             ctx->p_au = NULL;



More information about the vlc-commits mailing list