avcodec/hcadec: Check scale_factors
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 28 Mar 2020 21:04:06 +0000 (22:04 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 31 Mar 2020 18:12:15 +0000 (20:12 +0200)
commit67de1865b1ee9e3616124b8fb6f1c34cba1b1d5f
tree2f35917c036a3ddd7e725a6f14e9822c5f1f1be8
parentfa164bc50e3400fbddf94bcafbfe33e2ce9ab24b
avcodec/hcadec: Check scale_factors

Fixes: out of array read
Fixes: 21286/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HCA_fuzzer-5683183715876864

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/hcadec.c