[FFmpeg-cvslog] avcodec/dct32_template: Fix runtime error: signed integer overflow: -1071326067 - 1088238847 cannot be represented in type 'int'

Michael Niedermayer git at videolan.org
Mon May 22 03:17:45 EEST 2017


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Sun May 21 23:35:21 2017 +0200| [a1cbf53c566b84a5974f516076cbc36c188f6d08] | committer: Michael Niedermayer

avcodec/dct32_template: Fix runtime error: signed integer overflow: -1071326067 - 1088238847 cannot be represented in type 'int'

Fixes: 1731/clusterfuzz-testcase-minimized-5123972414832640

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a1cbf53c566b84a5974f516076cbc36c188f6d08
---

 libavcodec/dct32_template.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavcodec/dct32_template.c b/libavcodec/dct32_template.c
index bb3f1553ac..51cebc053f 100644
--- a/libavcodec/dct32_template.c
+++ b/libavcodec/dct32_template.c
@@ -123,8 +123,9 @@
 #define ADD(a, b) val##a += val##b
 
 /* DCT32 without 1/sqrt(2) coef zero scaling. */
-void dct32(INTFLOAT *out, const INTFLOAT *tab)
+void dct32(INTFLOAT *out, const INTFLOAT *tab_arg)
 {
+    const SUINTFLOAT *tab = tab_arg;
     SUINTFLOAT tmp0, tmp1;
 
     SUINTFLOAT val0 , val1 , val2 , val3 , val4 , val5 , val6 , val7 ,



More information about the ffmpeg-cvslog mailing list