avcodec/bintext: Check input size before allocating the input image
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 12 Sep 2018 00:11:00 +0000 (02:11 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 27 Sep 2018 23:33:42 +0000 (01:33 +0200)
commit8db9097308dcc72f3f1f459a2b39f7a987ddd978
tree82f1d92100653c31212de13a11da0623fc668430
parent35517e3ca7ea2e243e3e29ec7d4d2a9f150f25ed
avcodec/bintext: Check input size before allocating the input image

Fixes: Timeout
Fixes: 9795/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_XBIN_fuzzer-5768631928487936

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