avcodec/bintext: Check font height
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 16 Jun 2019 14:01:45 +0000 (16:01 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 27 Jun 2019 15:50:47 +0000 (17:50 +0200)
commit9b8a58fa78062ddee07a54237c77dcdc6186aab1
treeb35b5cb89593833533085805cbec60b02270e1ae
parentd08d4b1066d3c7956b6f7bce74d159fae888f41b
avcodec/bintext: Check font height

Fixes: division by zero
Fixes: 15257/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_BINTEXT_fuzzer-5757352881422336

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