Commit 97e433db authored by michael's avatar michael

Fix a possibly exploitable buffer overflow.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18640 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent ec8e2d8c
......@@ -249,10 +249,9 @@ static inline int get_symbol(RangeCoder *c, uint8_t *state, int is_signed){
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--){
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment