Commit 05278162 authored by Rafaël Carré's avatar Rafaël Carré

Fix a buffer overflow

Reported by Drew Yao
parent 7bbc2548
......@@ -572,7 +572,7 @@ static char *StripTags( char *psz_subtitle )
*/
static char *CreateHtmlSubtitle( char *psz_subtitle )
{
char psz_tagStack[ 100 ];
char psz_tagStack[ ( strlen( psz_subtitle ) / 3 ) + 1 ];
size_t i_buf_size = strlen( psz_subtitle ) + 100;
char *psz_html_start = malloc( i_buf_size );
......
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