changeset 9523:3045aef3405c libavcodec

Fix a possibly exploitable buffer overflow.
author michael
date Tue, 21 Apr 2009 12:00:39 +0000
parents bf81b6f776ea
children c8dc8037a18b
files ffv1.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ffv1.c	Tue Apr 21 05:42:22 2009 +0000
+++ b/ffv1.c	Tue Apr 21 12:00:39 2009 +0000
@@ -249,10 +249,9 @@
     else{
         int i, e, a;
         e= 0;
-        while(get_rac(c, state+1 + e)){ //1..10
+        while(get_rac(c, state+1 + e) && e<9){ //1..10
             e++;
         }
-        assert(e<=9);
 
         a= 1;
         for(i=e-1; i>=0; i--){