diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2019-02-28 00:12:14 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2019-03-24 10:38:52 +0100 |
commit | 66894351909ffca0bd55b4e349362741f25a0f08 (patch) | |
tree | 1cc60efb9054044dfedaa00f64c92a4d8db4096f /libavcodec | |
parent | f2e3eae2041824713e59408c0246e6f94d60cc2c (diff) | |
download | ffmpeg-66894351909ffca0bd55b4e349362741f25a0f08.tar.gz |
avcodec/scpr: Fix use of uninitialized variable
Fixes: Undefined shift
Fixes: 12911/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SCPR_fuzzer-5677102915911680
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 53248acfb3b23007c89ae822d7bcae451272d5a7)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/scpr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/scpr.c b/libavcodec/scpr.c index 66b4157576..6d9c437c0b 100644 --- a/libavcodec/scpr.c +++ b/libavcodec/scpr.c @@ -504,7 +504,7 @@ static int decompress_p(AVCodecContext *avctx, { SCPRContext *s = avctx->priv_data; GetByteContext *gb = &s->gb; - int ret, temp, min, max, x, y, cx = 0, cx1 = 0; + int ret, temp = 0, min, max, x, y, cx = 0, cx1 = 0; int backstep = linesize - avctx->width; const int cxshift = s->cxshift; |