avcodec/mpegaudiodec_template: Fix multiple runtime error: signed integer overflow
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 22 Feb 2017 20:28:08 +0000 (21:28 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 22 Feb 2017 21:29:03 +0000 (22:29 +0100)
Fixes: 648/clusterfuzz-testcase-5337961317007360

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/mpegaudiodec_template.c

index 2fc0156..33f2a14 100644 (file)
@@ -459,7 +459,7 @@ static av_cold int decode_init(AVCodecContext * avctx)
    cases. */
 static void imdct12(INTFLOAT *out, INTFLOAT *in)
 {
-    INTFLOAT in0, in1, in2, in3, in4, in5, t1, t2;
+    SUINTFLOAT in0, in1, in2, in3, in4, in5, t1, t2;
 
     in0  = in[0*3];
     in1  = in[1*3] + in[0*3];