This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
Fix a possibly exploitable buffer overflow.
Originally committed as revision 18640 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
Michael Niedermayer
17 years ago
parent
f7cf12b209
commit
223d996aaf
1 changed files
with
1 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-2
libavcodec/ffv1.c
+ 1
- 2
libavcodec/ffv1.c
View File
@@ -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--){
Write
Preview
Loading…
Cancel
Save