git.videolan.org
/
ffmpeg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
avcodec/anm: Check input size for a frame with just a stop code
[ffmpeg.git]
/
libavcodec
/
anm.c
diff --git
a/libavcodec/anm.c
b/libavcodec/anm.c
index
ab6a399
..
778f384
100644
(file)
--- a/
libavcodec/anm.c
+++ b/
libavcodec/anm.c
@@
-119,6
+119,9
@@
static int decode_frame(AVCodecContext *avctx,
uint8_t *dst, *dst_end;
int count, ret;
+ if (buf_size < 7)
+ return AVERROR_INVALIDDATA;
+
if ((ret = ff_reget_buffer(avctx, s->frame)) < 0)
return ret;
dst = s->frame->data[0];