Commit 91d83a53 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

subsdec: Fix infinite loop in case of invalid closing tag

parent b351e72f
......@@ -905,6 +905,15 @@ static text_segment_t* ParseSubtitles( int *pi_align, const char *psz_subtitle )
psz_subtitle++;
free( psz_tagname );
}
else
{
/**
* This doesn't appear to be a valid tag closing syntax.
* Simply append the text
*/
AppendString( p_segment, "</" );
psz_subtitle += 2;
}
}
else
{
......
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