aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2019-08-04 17:25:55 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2019-12-02 19:41:49 +0100
commit21d93e0254daba99bebbc741f9e6fad60ed99eb3 (patch)
tree2b54a07d8b6a769ffcb709a05f1c753df9a6ff52 /libavcodec
parent0e69785d5368825c8a2bf33068344beb68cd01b5 (diff)
downloadffmpeg-21d93e0254daba99bebbc741f9e6fad60ed99eb3.tar.gz
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@niedermayer.cc> (cherry picked from commit 3c06ba171697b665ef4b2b47fe0008199b3eff86) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/ralf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ralf.c b/libavcodec/ralf.c
index 8838a0524d..b5cce61004 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;