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>
... | ... |
@@ -504,7 +504,7 @@ static int decompress_p(AVCodecContext *avctx, |
504 | 504 |
{ |
505 | 505 |
SCPRContext *s = avctx->priv_data; |
506 | 506 |
GetByteContext *gb = &s->gb; |
507 |
- int ret, temp, min, max, x, y, cx = 0, cx1 = 0; |
|
507 |
+ int ret, temp = 0, min, max, x, y, cx = 0, cx1 = 0; |
|
508 | 508 |
int backstep = linesize - avctx->width; |
509 | 509 |
const int cxshift = s->cxshift; |
510 | 510 |
|