[vlc-commits] MP4: fix heap-based buffer overflow

Rémi Denis-Courmont git at videolan.org
Sat Apr 9 11:57:58 CEST 2011


vlc/vlc-1.1 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Apr  8 19:22:40 2011 +0300| [234d6579da56412b574cc473aa8bf97adc3ffc8e] | committer: Rémi Denis-Courmont

MP4: fix heap-based buffer overflow

(cherry picked from commit 5637ca8141bf39f263ecdb62035d2cb45c740821)

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

 modules/demux/mp4/libmp4.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/demux/mp4/libmp4.c b/modules/demux/mp4/libmp4.c
index 0a1829f..c3f468e 100644
--- a/modules/demux/mp4/libmp4.c
+++ b/modules/demux/mp4/libmp4.c
@@ -2247,7 +2247,7 @@ static int MP4_ReadBox_frma( stream_t *p_stream, MP4_Box_t *p_box )
 
 static int MP4_ReadBox_skcr( stream_t *p_stream, MP4_Box_t *p_box )
 {
-    MP4_READBOX_ENTER( MP4_Box_data_frma_t );
+    MP4_READBOX_ENTER( MP4_Box_data_skcr_t );
 
     MP4_GET4BYTES( p_box->data.p_skcr->i_init );
     MP4_GET4BYTES( p_box->data.p_skcr->i_encr );



More information about the vlc-commits mailing list