Browse Source

stream_filter: hds: avoid too many XML elements

While uint8_t wrap is well defined behavior, logically it's not desirable here.

Fixes CID 1666231
pull/188/head
Tristan Matthews 6 months ago
committed by Steve Lhomme
parent
commit
07c3f5e51e
  1. 7
      modules/stream_filter/hds/hds.c

7
modules/stream_filter/hds/hds.c

@ -1334,6 +1334,13 @@ static int parse_Manifest( stream_t *s, manifest_t *m )
return VLC_ENOMEM;
}
} else {
if( current_element_idx == MAX_XML_DEPTH - 1u )
{
msg_Err( s, "Too many XML elements, quitting" );
free(media_id);
return VLC_EGENERIC;
}
if ( !( element_stack[++current_element_idx] = strdup( node ) ) )
{
free(media_id);

Loading…
Cancel
Save