[vlc-commits] mp4: fix NULL dereference (should fix LP#936488)

Rémi Denis-Courmont git at videolan.org
Mon Mar 19 17:46:03 CET 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Mar 19 18:45:20 2012 +0200| [38a4fd744aee8b52d5cd3f5424b64b6d37ded6c0] | committer: Rémi Denis-Courmont

mp4: fix NULL dereference (should fix LP#936488)

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

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

diff --git a/modules/demux/mp4/drms.c b/modules/demux/mp4/drms.c
index c64ad2d..af32fca 100644
--- a/modules/demux/mp4/drms.c
+++ b/modules/demux/mp4/drms.c
@@ -316,7 +316,7 @@ int drms_init( void *_p_drms, uint32_t i_type,
             uint32_t p_priv[ 64 ];
             struct md5_s md5;
 
-            if( i_len < 64 )
+            if( i_len < 64 || p_drms->p_name == NULL )
             {
                 i_ret = -2;
                 break;



More information about the vlc-commits mailing list