You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
cinepak: check strip_size
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -375,6 +375,8 @@ static int cinepak_decode (CinepakContext *s)
|
|||||||
s->frame.key_frame = 1;
|
s->frame.key_frame = 1;
|
||||||
|
|
||||||
strip_size = AV_RB24 (&s->data[1]) - 12;
|
strip_size = AV_RB24 (&s->data[1]) - 12;
|
||||||
|
if(strip_size < 0)
|
||||||
|
return -1;
|
||||||
s->data += 12;
|
s->data += 12;
|
||||||
strip_size = ((s->data + strip_size) > eod) ? (eod - s->data) : strip_size;
|
strip_size = ((s->data + strip_size) > eod) ? (eod - s->data) : strip_size;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user