[SCM] libav/experimental: Assert that the context doesnt overflow in ffv1.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 17:17:39 UTC 2013


The following commit has been merged in the experimental branch:
commit f08ed90d9407bd7601130ac30f20651acf250188
Author: Michael Niedermayer <michaelni at gmx.at>
Date:   Thu Oct 14 22:03:38 2010 +0000

    Assert that the context doesnt overflow in ffv1.
    
    Originally committed as revision 25475 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/ffv1.c b/libavcodec/ffv1.c
index 87a2050..6691395 100644
--- a/libavcodec/ffv1.c
+++ b/libavcodec/ffv1.c
@@ -1024,6 +1024,7 @@ static av_always_inline void decode_line(FFV1Context *s, int w, int_fast16_t *sa
         }else
             sign=0;
 
+        av_assert2(context < p->context_count);
 
         if(s->ac){
             diff= get_symbol_inline(c, p->state[context], 1);

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list