diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2019-10-25 12:44:45 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2019-11-09 18:03:38 +0100 |
commit | 10eabb8e40df0ad84470d750f903917f4a05cb1f (patch) | |
tree | 19c77fb247f5a340770a731a6ef67d81a4271294 /libavcodec/interplayacm.c | |
parent | 7786f6c30e77a393b72ded01baa4250738925509 (diff) | |
download | ffmpeg-10eabb8e40df0ad84470d750f903917f4a05cb1f.tar.gz |
avcodec/interplayacm: Fix overflow of last unused value
Fixes: signed integer overflow: -2147450880 - 65535 cannot be represented in type 'int'
Fixes: 18393/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_INTERPLAY_ACM_fuzzer-5667520110919680
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/interplayacm.c')
-rw-r--r-- | libavcodec/interplayacm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/interplayacm.c b/libavcodec/interplayacm.c index cff79eb6b2..3704d1a2f2 100644 --- a/libavcodec/interplayacm.c +++ b/libavcodec/interplayacm.c @@ -529,7 +529,7 @@ static int decode_block(InterplayACMContext *s) for (i = 1, x = -val; i <= count; i++) { s->midbuf[-i] = x; - x -= val; + x -= (unsigned)val; } ret = fill_block(s); |