Commit 1a5cb04e authored by Francois Cartegnie's avatar Francois Cartegnie

xiph: set limit to chapters.

Limits memory size allocation that could have been triggered by
a file, due to chapters array for reordering.
parent e99743da
......@@ -120,6 +120,7 @@ typedef struct chapters_array_t
static seekpoint_t * getChapterEntry( unsigned int i_index, chapters_array_t *p_array )
{
if ( i_index > 4096 ) return NULL;
if ( i_index >= p_array->i_size )
{
unsigned int i_newsize = p_array->i_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