aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/bgmc.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2019-09-01 22:31:45 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2020-01-06 11:30:42 +0100
commita78128bf0a5f428f57750833ed906775af23c853 (patch)
tree6ed4fd70a1c62365280e6c71bcdefa35de783bd2 /libavcodec/bgmc.h
parent422d57feb2b119856f8edb29ada06ff4a8444748 (diff)
downloadffmpeg-a78128bf0a5f428f57750833ed906775af23c853.tar.gz
avcodec/bgmc: Check input space in ff_bgmc_decode_init()
Fixes: Infinite loop Fixes: 16608/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ALS_fuzzer-5636229827133440 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Reviewed-by: Thilo Borgmann <thilo.borgmann@mail.de> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit b54031a6e93d1abc7fb2d0263e0f6c4b639e423f) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/bgmc.h')
-rw-r--r--libavcodec/bgmc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/bgmc.h b/libavcodec/bgmc.h
index 4893736af5..466df31a2e 100644
--- a/libavcodec/bgmc.h
+++ b/libavcodec/bgmc.h
@@ -40,7 +40,7 @@ int ff_bgmc_init(AVCodecContext *avctx, uint8_t **cf_lut, int **cf_lut_status);
void ff_bgmc_end(uint8_t **cf_lut, int **cf_lut_status);
-void ff_bgmc_decode_init(GetBitContext *gb,
+int ff_bgmc_decode_init(GetBitContext *gb,
unsigned int *h, unsigned int *l, unsigned int *v);