cinepak: check strip_size
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
f35f50b311
commit
cea0c82d9b
@ -375,6 +375,8 @@ static int cinepak_decode (CinepakContext *s)
|
||||
s->frame.key_frame = 1;
|
||||
|
||||
strip_size = AV_RB24 (&s->data[1]) - 12;
|
||||
if(strip_size < 0)
|
||||
return -1;
|
||||
s->data += 12;
|
||||
strip_size = ((s->data + strip_size) > eod) ? (eod - s->data) : strip_size;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user