git.videolan.org
/
ffmpeg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
avutil/integer: Fix integer overflow in av_mul_i()
[ffmpeg.git]
/
libavutil
/
integer.c
diff --git
a/libavutil/integer.c
b/libavutil/integer.c
index
890e314
..
78e252f
100644
(file)
--- a/
libavutil/integer.c
+++ b/
libavutil/integer.c
@@
-74,7
+74,7
@@
AVInteger av_mul_i(AVInteger a, AVInteger b){
if(a.v[i])
for(j=i; j<AV_INTEGER_SIZE && j-i<=nb; j++){
- carry= (carry>>16) + out.v[j] + a.v[i]*b.v[j-i];
+ carry= (carry>>16) + out.v[j] + a.v[i]*
(unsigned)
b.v[j-i];
out.v[j]= carry;
}
}