Commit 3c06ba17 authored by Michael Niedermayer's avatar 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/ffmpegSigned-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent ccca4843
...@@ -286,7 +286,7 @@ static int decode_channel(RALFContext *ctx, GetBitContext *gb, int ch, ...@@ -286,7 +286,7 @@ static int decode_channel(RALFContext *ctx, GetBitContext *gb, int ch,
add_bits--; add_bits--;
range = 10; range = 10;
range2 = 21; range2 = 21;
code_vlc = set->long_codes + code_params - 15; code_vlc = set->long_codes + (code_params - 15);
} else { } else {
add_bits = 0; add_bits = 0;
range = 6; range = 6;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment