Message ID | 20190316083910.26145-1-michael@niedermayer.cc |
---|---|
State | Accepted |
Commit | 1223696c725a8ea7e80498e6ccfab37eea179b76 |
Headers | show |
On Sat, Mar 16, 2019 at 09:39:10AM +0100, Michael Niedermayer wrote: > Fixes: signed integer overflow: 1111638592 - -2122219136 cannot be represented in type 'int' > Fixes: 13441/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TRUEMOTION2_fuzzer-5732769815068672 > > Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg > Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> > --- > libavcodec/truemotion2.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) will apply [...]
diff --git a/libavcodec/truemotion2.c b/libavcodec/truemotion2.c index 4d27f0cbfc..18719dae1c 100644 --- a/libavcodec/truemotion2.c +++ b/libavcodec/truemotion2.c @@ -600,7 +600,8 @@ static inline void tm2_null_res_block(TM2Context *ctx, AVFrame *pic, int bx, int { int i; int ct; - int left, right, diff; + unsigned left, right; + int diff; int deltas[16]; TM2_INIT_POINTERS();
Fixes: signed integer overflow: 1111638592 - -2122219136 cannot be represented in type 'int' Fixes: 13441/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TRUEMOTION2_fuzzer-5732769815068672 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> --- libavcodec/truemotion2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)