Skip to content
Snippets Groups Projects
Commit 1a5cb04e authored by François Cartegnie's avatar François Cartegnie :fingers_crossed:
Browse files

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
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment