[vlc-commits] mux: mp4: fix out of bound write (cid #1398414)

Francois Cartegnie git at videolan.org
Wed Jan 25 10:11:37 CET 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Jan 25 10:11:01 2017 +0100| [e3fe59cfdf51f8ca9b6d508dab56899fab0ae011] | committer: Francois Cartegnie

mux: mp4: fix out of bound write (cid #1398414)

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

 modules/mux/mp4/libmp4mux.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/mux/mp4/libmp4mux.c b/modules/mux/mp4/libmp4mux.c
index 319cddd..16fc644 100644
--- a/modules/mux/mp4/libmp4mux.c
+++ b/modules/mux/mp4/libmp4mux.c
@@ -670,7 +670,7 @@ static bo_t *GetHvcCTag(es_format_t *p_fmt, bool b_completeness)
     };
 
     struct nal rg_vps[HEVC_VPS_ID_MAX + 1], rg_sps[HEVC_SPS_ID_MAX + 1],
-               rg_pps[HEVC_VPS_ID_MAX + 1], *p_sei = NULL, *p_nal = NULL;
+               rg_pps[HEVC_PPS_ID_MAX + 1], *p_sei = NULL, *p_nal = NULL;
     uint8_t i_vps = 0, i_sps = 0, i_pps = 0, i_num_arrays = 0;
     size_t i_sei = 0;
 



More information about the vlc-commits mailing list