[FFmpeg-cvslog] avcodec/ralf: Fix undefined pointer in decode_channel()
Michael Niedermayer
git at videolan.org
Mon Aug 5 20:50:37 EEST 2019
ffmpeg | branch: release/4.2 | Michael Niedermayer <michael at niedermayer.cc> | Sun Aug 4 17:25:55 2019 +0200| [5764b92f82c25a7b5724e8b47cd9746ca17f1b14] | committer: Michael Niedermayer
avcodec/ralf: Fix undefined pointer in decode_channel()
Fixes: 16203/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_RALF_fuzzer-5086088934195200
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
(cherry picked from commit 3c06ba171697b665ef4b2b47fe0008199b3eff86)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5764b92f82c25a7b5724e8b47cd9746ca17f1b14
---
libavcodec/ralf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/ralf.c b/libavcodec/ralf.c
index 0d6b57d652..619fd7126a 100644
--- a/libavcodec/ralf.c
+++ b/libavcodec/ralf.c
@@ -286,7 +286,7 @@ static int decode_channel(RALFContext *ctx, GetBitContext *gb, int ch,
add_bits--;
range = 10;
range2 = 21;
- code_vlc = set->long_codes + code_params - 15;
+ code_vlc = set->long_codes + (code_params - 15);
} else {
add_bits = 0;
range = 6;
More information about the ffmpeg-cvslog
mailing list