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-21 10:42:52 +0100
commit8f6d7a454a32d7dfb7985f9607d800061d047018 (patch)
tree8255073276ea46ef532f5d9c1d2499c75b87f219
parent36a1939b59f0a966cda4de8215621db626833694 (diff)
downloadffmpeg-8f6d7a454a32d7dfb7985f9607d800061d047018.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>
-rw-r--r--libavcodec/scpr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/scpr.c b/libavcodec/scpr.c
index d76148998b..4856095222 100644
--- a/libavcodec/scpr.c
+++ b/libavcodec/scpr.c
@@ -508,7 +508,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;