[FFmpeg-cvslog] r14636 - trunk/libavcodec/ra288.c

vitor subversion
Wed Aug 6 05:00:15 CEST 2008


Author: vitor
Date: Wed Aug  6 05:00:15 2008
New Revision: 14636

Log:
Check *data_size in decode_frame()

Modified:
   trunk/libavcodec/ra288.c

Modified: trunk/libavcodec/ra288.c
==============================================================================
--- trunk/libavcodec/ra288.c	(original)
+++ trunk/libavcodec/ra288.c	Wed Aug  6 05:00:15 2008
@@ -236,6 +236,9 @@ static int ra288_decode_frame(AVCodecCon
         return 0;
     }
 
+    if (*data_size < 32*5*2)
+        return -1;
+
     init_get_bits(&gb, buf, avctx->block_align * 8);
 
     for (i=0; i < 32; i++) {




More information about the ffmpeg-cvslog mailing list