Browse Source

avcodec/cfhd: Fix invalid left shift of negative value

Fixes: runtime error: left shift of negative value -1
Fixes: 2395/clusterfuzz-testcase-minimized-6540529313513472

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 c709f009da)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n3.0.9
Michael Niedermayer 8 years ago
parent
commit
7807d2478b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/cfhd.c

+ 1
- 1
libavcodec/cfhd.c View File

@@ -631,7 +631,7 @@ static int cfhd_decode(AVCodecContext *avctx, void *data, int *got_frame,
output = s->plane[plane].subband[0];
for (i = 0; i < lowpass_height * 2; i++) {
for (j = 0; j < lowpass_width * 2; j++)
output[j] <<= 2;
output[j] *= 4;

output += lowpass_width * 2;
}


Loading…
Cancel
Save