avcodec/apedec: Fixes integer overflow of res+*data in do_apply_filter()
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 29 Oct 2019 17:30:07 +0000 (18:30 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 21 Nov 2019 22:41:47 +0000 (23:41 +0100)
commit6b430f066b9d6637f145fe228e7950a03820a1ab
tree26329e995d3daa30733f90d202d30d59517a4fa0
parent17d5c21b3d1249672323bd1ab09718e29ce77e91
avcodec/apedec: Fixes integer overflow of res+*data in do_apply_filter()

Fixes: signed integer overflow: 7400 + 2147482786 cannot be represented in type 'int'
Fixes: 18405/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_APE_fuzzer-5708834760294400

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit dc3f327e7403a34c88a900f0b8de55b4afd7cf6c)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/apedec.c