Message ID | 20211004222350.29657-2-michael@niedermayer.cc |
---|---|
State | Accepted |
Commit | 98aec8c1b864e44636c0fabdaff3494d2051fda3 |
Headers | show |
Series | [FFmpeg-devel,1/3] avcodec/wmaprodec: Do not initialize unused variable to out of array value | expand |
Context | Check | Description |
---|---|---|
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
andriy/make_ppc | success | Make finished |
andriy/make_fate_ppc | success | Make fate finished |
On Tue, Oct 05, 2021 at 12:23:49AM +0200, Michael Niedermayer wrote: > Fixes: 39463/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_H264_fuzzer-5736517629247488 > > Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg > Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> > --- > libavcodec/h274.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) will apply [...]
diff --git a/libavcodec/h274.c b/libavcodec/h274.c index 20401ba06bb..a69f9411429 100644 --- a/libavcodec/h274.c +++ b/libavcodec/h274.c @@ -145,8 +145,8 @@ static void deblock_8x8_c(int8_t *out, const int out_stride) for (int y = 0; y < 8; y++) { const int8_t l1 = out[-2], l0 = out[-1]; const int8_t r0 = out[0], r1 = out[1]; - out[0] = (l0 + (r0 << 1) + r1) >> 2; - out[-1] = (r0 + (l0 << 1) + l1) >> 2; + out[0] = (l0 + r0 * 2 + r1) >> 2; + out[-1] = (r0 + l0 * 2 + l1) >> 2; out += out_stride; } }
Fixes: 39463/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_H264_fuzzer-5736517629247488 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> --- libavcodec/h274.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)