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>
Sun, 18 Nov 2018 01:35:03 +0000 (02:35 +0100)
commit3b20cd4f6576a18776252ee96ece0946557cbe7d
tree4375b828437fef07e37396877b69e633e7f6f373
parent9f0e0a4cf29c860e85a7f1c47ec6418923abbeb3
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>
(cherry picked from commit 28b80c2d52d82eb4f73af5f818dab60946bcf299)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/shorten.c