Commit 7d4385aa authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

Fix denial of service (NULL dereference) in ASX parser

Closes #988
parent 7cc6aae1
......@@ -195,7 +195,7 @@ static int Demux( demux_t *p_demux )
psz_parse = strcasestr( psz_parse, ">" );
while( ( psz_parse = strcasestr( psz_parse, "<" ) ) && psz_parse && *psz_parse )
while( psz_parse && ( psz_parse = strcasestr( psz_parse, "<" ) ) )
{
if( !strncasecmp( psz_parse, "<!--", 4 ) )
{
......
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