avcodec/shorten: Fix bitstream end check in read_header()
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 15 Sep 2018 00:08:20 +0000 (02:08 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 15 Sep 2018 18:00:45 +0000 (20:00 +0200)
commit28b80c2d52d82eb4f73af5f818dab60946bcf299
tree62d855f64a41e204e453f13107f83766af96c7a1
parent71bf0330505e2108935d05c5c018ec65eac4b946
avcodec/shorten: Fix bitstream end check in read_header()

Fixes: Timeout
Fixes: 9961/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SHORTEN_fuzzer-5687856176562176

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