Skip to content
Snippets Groups Projects
Commit 072c3bf6 authored by François Cartegnie's avatar François Cartegnie :fingers_crossed: Committed by Hugo Beauzée-Luyssen
Browse files

demux: avi: check subindex, fix potential invalid deref


Reported by: Zhen Zhou, NSFOCUS Security Team

Signed-off-by: default avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent 5c72170b
No related branches found
No related tags found
No related merge requests found
......@@ -2511,7 +2511,8 @@ static void AVI_IndexLoad_indx( demux_t *p_demux,
{
break;
}
if( ck_sub.indx.i_indextype == AVI_INDEX_OF_CHUNKS )
if( ck_sub.common.i_chunk_fourcc == AVIFOURCC_indx &&
ck_sub.indx.i_indextype == AVI_INDEX_OF_CHUNKS )
__Parse_indx( p_demux, &p_index[i_stream], pi_last_offset, &ck_sub.indx );
AVI_ChunkClean( p_demux->s, &ck_sub );
}
......
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