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

Fix off-by-one buffer overflow introduced in the last fix

parent 9a21732f
......@@ -685,8 +685,8 @@ static void TextPreviousLine( text_t *txt )
/*****************************************************************************
* Specific Subtitle function
*****************************************************************************/
#define MAX_LINE 8192
#define MAX_LINE_STR "8192" /* used in *scanf() regexps */
#define MAX_LINE 8192 /* must store the null terminator */
#define MAX_LINE_STR "8191" /* used in *scanf() regexps */
static int ParseMicroDvd( demux_t *p_demux, subtitle_t *p_subtitle )
{
demux_sys_t *p_sys = p_demux->p_sys;
......
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