aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2019-02-28 00:12:14 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2019-03-06 23:40:47 +0100
commit53248acfb3b23007c89ae822d7bcae451272d5a7 (patch)
tree1b8f3872f77d243cc5c642826d5a19afedd6871c
parent93402561fda4a5dfe9fc48b341b47d79613eaf6d (diff)
downloadffmpeg-53248acfb3b23007c89ae822d7bcae451272d5a7.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>
-rw-r--r--libavcodec/scpr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/scpr.c b/libavcodec/scpr.c
index cf511f83cc..750cf59fe4 100644
--- a/libavcodec/scpr.c
+++ b/libavcodec/scpr.c
@@ -372,7 +372,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;
if (bytestream2_get_byte(gb) == 0)