Commit 38a4fd74 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

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

parent 5ed8741f
...@@ -316,7 +316,7 @@ int drms_init( void *_p_drms, uint32_t i_type, ...@@ -316,7 +316,7 @@ int drms_init( void *_p_drms, uint32_t i_type,
uint32_t p_priv[ 64 ]; uint32_t p_priv[ 64 ];
struct md5_s md5; struct md5_s md5;
if( i_len < 64 ) if( i_len < 64 || p_drms->p_name == NULL )
{ {
i_ret = -2; i_ret = -2;
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment