Commit edc99d3a authored by Gildas Bazin's avatar Gildas Bazin

* modules/codec/dvbsub.c: fixed a sanity check.

parent 26d3a269
...@@ -852,7 +852,7 @@ static void decode_object( decoder_t *p_dec, bs_t *s ) ...@@ -852,7 +852,7 @@ static void decode_object( decoder_t *p_dec, bs_t *s )
/* Sanity check */ /* Sanity check */
if( i_segment_length < i_topfield + i_bottomfield + 7 || if( i_segment_length < i_topfield + i_bottomfield + 7 ||
s->p_start + i_topfield + i_bottomfield > s->p_end ) p_topfield + i_topfield + i_bottomfield > s->p_end )
{ {
msg_Dbg( p_dec, "corrupted object data" ); msg_Dbg( p_dec, "corrupted object data" );
return; return;
......
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