avcodec/hcom: Check that there are dictionary entries
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 25 Sep 2019 16:38:03 +0000 (18:38 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 26 Sep 2019 19:02:34 +0000 (21:02 +0200)
commitb2785cd3ac05388b769bc68c083aa4770c632c3e
tree076b9a9036133100b35f4c84a38c48c3fa54f057
parentcfa193779103c97bbfc28273a0ab12c114b6786d
avcodec/hcom: Check that there are dictionary entries

Fixes: out of array read
Fixes: 17617/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HCOM_fuzzer-5674970478280704

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/hcom.c