]> git.sesse.net Git - vlc/commitdiff
Fix denial of service (NULL dereference) in ASX parser
authorRémi Denis-Courmont <rem@videolan.org>
Thu, 11 Jan 2007 15:35:44 +0000 (15:35 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Thu, 11 Jan 2007 15:35:44 +0000 (15:35 +0000)
Closes #988

modules/demux/playlist/asx.c

index 10af9b1ff4b357e09a638ab4393eeb1f2f6f388e..cdb0902e5e478099bae34aaf01fa498d0689f47c 100644 (file)
@@ -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 ) )
             {