[FFmpeg-cvslog] r14637 - trunk/libavcodec/ra144.c
vitor
subversion
Wed Aug 6 07:06:11 CEST 2008
Author: vitor
Date: Wed Aug 6 07:06:10 2008
New Revision: 14637
Log:
Check available size before writing in decode_frame()
Modified:
trunk/libavcodec/ra144.c
Modified: trunk/libavcodec/ra144.c
==============================================================================
--- trunk/libavcodec/ra144.c (original)
+++ trunk/libavcodec/ra144.c Wed Aug 6 07:06:10 2008
@@ -315,6 +315,9 @@ static int ra144_decode_frame(AVCodecCon
RA144Context *ractx = avctx->priv_data;
GetBitContext gb;
+ if (*data_size < 2*160)
+ return -1;
+
if(buf_size < 20) {
av_log(avctx, AV_LOG_ERROR,
"Frame too small (%d bytes). Truncated file?\n", buf_size);
More information about the ffmpeg-cvslog
mailing list