git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
155aa41
)
handle invalid buffer sizes
author
Mike Melanson
<mike@multimedia.cx>
Sat, 31 Jan 2004 18:17:38 +0000
(18:17 +0000)
committer
Mike Melanson
<mike@multimedia.cx>
Sat, 31 Jan 2004 18:17:38 +0000
(18:17 +0000)
Originally committed as revision 2734 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/interplayvideo.c
patch
|
blob
|
history
diff --git
a/libavcodec/interplayvideo.c
b/libavcodec/interplayvideo.c
index
f354b73
..
06816ba
100644
(file)
--- a/
libavcodec/interplayvideo.c
+++ b/
libavcodec/interplayvideo.c
@@
-900,6
+900,11
@@
static int ipvideo_decode_frame(AVCodecContext *avctx,
IpvideoContext *s = avctx->priv_data;
AVPaletteControl *palette_control = avctx->palctrl;
+ /* compressed buffer needs to be large enough to at least hold an entire
+ * decoding map */
+ if (buf_size < s->decoding_map_size)
+ return buf_size;
+
s->decoding_map = buf;
s->buf = buf + s->decoding_map_size;
s->size = buf_size - s->decoding_map_size;