Commit b893be20 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont Committed by Jean-Baptiste Kempf

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

(cherry picked from commit 38a4fd74)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent da4c5c02
......@@ -325,7 +325,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;
......
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