git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
203ccb8
)
avutil/integer: Fix integer overflow in av_mul_i()
author
Michael Niedermayer
<michael@niedermayer.cc>
Tue, 23 Oct 2018 23:44:12 +0000
(
01:44
+0200)
committer
Michael Niedermayer
<michael@niedermayer.cc>
Wed, 24 Oct 2018 21:15:24 +0000
(23:15 +0200)
Found-by: fate
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavutil/integer.c
patch
|
blob
|
history
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;
}
}