changeset 7505:2c22852d1998 libavcodec

Check *data_size in decode_frame()
author vitor
date Wed, 06 Aug 2008 03:00:15 +0000
parents c75c3adf11bc
children e94202a2e0b6
files ra288.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ra288.c	Wed Aug 06 02:49:22 2008 +0000
+++ b/ra288.c	Wed Aug 06 03:00:15 2008 +0000
@@ -236,6 +236,9 @@
         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++) {