Commit fe9b4d25 authored by David Flynn's avatar David Flynn Committed by Rémi Denis-Courmont

Fix potential dereference of already free()d pointer

In some error cases p_block will have been freed before p_block is
dereferenced.
Signed-off-by: default avatarRémi Denis-Courmont <rdenis@simphalempin.com>
parent f797ddd3
......@@ -469,11 +469,6 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
if( b_bail )
break;
}
if( (i_bufused > 0) && (i_bufused < p_block->i_buffer) )
msg_Err( p_dec, "not submitted everything in p_buffer");
} while( 0 );
while( 1 )
......
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