Browse Source

demux: add check to verify sequence table size to prevent oom

master
unichronic 6 months ago
committed by Felix Paul Kühne
parent
commit
7acd6b4d26
  1. 3
      modules/demux/ty.c

3
modules/demux/ty.c

@ -1658,6 +1658,9 @@ static int parse_master(demux_t *p_demux)
uint32_t i_map_size = U32_AT(&mst_buf[20]); /* size of bitmask, in bytes */
uint32_t i = U32_AT(&mst_buf[28]); /* size of SEQ table, in bytes */
if( i_save_pos + 32 + i > p_sys->i_stream_size )
return VLC_EGENERIC;
if(i_map_size > UINT32_MAX / 8)
return VLC_EGENERIC;

Loading…
Cancel
Save