Commit d3976552 authored by Laurent Aimar's avatar Laurent Aimar

Fixed possible overflow in duration parsing.

parent 7d23abf0
......@@ -140,11 +140,11 @@ static int Demux( demux_t *p_demux )
/* Extended info */
psz_parse += sizeof("EXTINF:") - 1;
parseEXTINF( psz_parse, &psz_artist, &psz_name, &i_parsed_duration );
if ( i_parsed_duration >= 0 )
i_duration = i_parsed_duration * 1000000;
if ( psz_name )
if( i_parsed_duration >= 0 )
i_duration = i_parsed_duration * I64C(1000000);
if( psz_name )
psz_name = strdup( psz_name );
if ( psz_artist )
if( psz_artist )
psz_artist = strdup( psz_artist );
}
else if( !strncasecmp( psz_parse, "EXTVLCOPT:",
......
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