avcodec/g2meet: Check for end of input in jpg_decode_block()
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 9 Sep 2019 18:30:32 +0000 (20:30 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 2 Oct 2019 12:49:04 +0000 (14:49 +0200)
commit61dd2e07be7ca636e1d3d868f90dde1b10985f4c
tree206e1ae9066716729616e488afec421b46302276
parent9c84c162e9f9f000ef47d4fcd07354805f38d455
avcodec/g2meet: Check for end of input in jpg_decode_block()

Fixes: Timeout (100sec -> 0.7sec)
Fixes: 8668/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_G2M_fuzzer-5174143888130048

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