[FFmpeg-cvslog] avcodec/takdec: Fix runtime error: left shift of negative value -360
Michael Niedermayer
git at videolan.org
Mon May 22 23:41:30 EEST 2017
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Mon May 22 21:43:01 2017 +0200| [0ce7cf0c86a2744ddfe21cb0983ff572ed07ab69] | committer: Michael Niedermayer
avcodec/takdec: Fix runtime error: left shift of negative value -360
Fixes: 1739/clusterfuzz-testcase-minimized-5399237707694080
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=0ce7cf0c86a2744ddfe21cb0983ff572ed07ab69
---
libavcodec/takdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/takdec.c b/libavcodec/takdec.c
index 081b2f203b..78e82a9d41 100644
--- a/libavcodec/takdec.c
+++ b/libavcodec/takdec.c
@@ -653,7 +653,7 @@ static int decorrelate(TAKDecContext *s, int c1, int c2, int length)
s->residues[i ] * s->filter[0];
}
- v = (av_clip_intp2(v >> 10, 13) << dshift) - *p1;
+ v = av_clip_intp2(v >> 10, 13) * (1 << dshift) - *p1;
*p1++ = v;
}
More information about the ffmpeg-cvslog
mailing list