avcodec/h264_refs: Also check reference in ff_h264_build_ref_list()
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 30 Jun 2019 20:19:22 +0000 (22:19 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 19 Jul 2019 19:42:38 +0000 (21:42 +0200)
commit7d3581e6bbec309ca0cc617c37cf6e87547764ef
tree8fb3c7e9e801ba741ea4a4195f3c2d0526871191
parentb789ebf681eadd28cc137125b567d3e84bc05d55
avcodec/h264_refs: Also check reference in ff_h264_build_ref_list()

Fixes: out of array read
Fixes: 15409/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_H264_fuzzer-5758846959616000

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/h264_refs.c