[vlc-commits] demux:mkv: fix wrong value reset after clean of an array

Steve Lhomme git at videolan.org
Thu May 23 17:40:14 CEST 2019


vlc/vlc-3.0 | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Feb 11 09:00:06 2019 +0100| [1ea78c59b6533e60beb6cdb0d359cda451b80fd7] | committer: Hugo Beauzée-Luyssen

demux:mkv: fix wrong value reset after clean of an array

https://hackerone.com/reports/491495

(cherry picked from commit d1d41b3f849d4e260c1ec09c5b1bb53db7f8107f)
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=1ea78c59b6533e60beb6cdb0d359cda451b80fd7
---

 modules/demux/mkv/util.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/demux/mkv/util.cpp b/modules/demux/mkv/util.cpp
index d5db3e2411..275c6fad34 100644
--- a/modules/demux/mkv/util.cpp
+++ b/modules/demux/mkv/util.cpp
@@ -177,6 +177,7 @@ void handle_real_audio(demux_t * p_demux, mkv_track_t * p_tk, block_t * p_blk, m
                 p_sys->p_subpackets[i] = NULL;
             }
         p_sys->i_subpacket = 0;
+        p_sys->i_subpackets = 0;
 
         if ( !( p_blk->i_flags & BLOCK_FLAG_TYPE_I) )
         {
@@ -236,6 +237,7 @@ void handle_real_audio(demux_t * p_demux, mkv_track_t * p_tk, block_t * p_blk, m
             p_sys->p_subpackets[i] = NULL;
         }
         p_sys->i_subpacket = 0;
+        p_sys->i_subpackets = 0;
     }
 }
 



More information about the vlc-commits mailing list