projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7cf12b
)
Fix a possibly exploitable buffer overflow.
author
Michael Niedermayer
<michaelni@gmx.at>
Tue, 21 Apr 2009 12:00:39 +0000
(12:00 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Tue, 21 Apr 2009 12:00:39 +0000
(12:00 +0000)
Originally committed as revision 18640 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/ffv1.c
patch
|
blob
|
history
diff --git
a/libavcodec/ffv1.c
b/libavcodec/ffv1.c
index
86f2897
..
9eef531
100644
(file)
--- a/
libavcodec/ffv1.c
+++ b/
libavcodec/ffv1.c
@@
-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--){