Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2017-05-11 00:48:30 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2017-05-11 01:02:41 +0300
commit60765cc42e3eb4a1193ef352a89946113a6e5802 (patch)
treee58291f92b8983520b7a57c191810dc716a4e9d4 /libavcodec/pixlet.c
parent6b5d3fb26fb4be48e4966e4b1d97c2165538d4ef (diff)
avcodec/pixlet: Fix runtime error: signed integer overflow: 436207616 * -5160230545260541 cannot be represented in type 'long'
Fixes: 1462/clusterfuzz-testcase-minimized-6558894463647744 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/pixlet.c')
-rw-r--r--libavcodec/pixlet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/pixlet.c b/libavcodec/pixlet.c
index d031305155..ccfd267557 100644
--- a/libavcodec/pixlet.c
+++ b/libavcodec/pixlet.c
@@ -256,7 +256,7 @@ static int read_high_coeffs(AVCodecContext *avctx, uint8_t *src, int16_t *dst, i
j = 0;
dst += stride;
}
- state += (int64_t)d * yflag - (d * state >> 8);
+ state += (int64_t)d * yflag - ((int64_t)(d * (uint64_t)state) >> 8);
flag = 0;