avformat/moflex: Check m->size before seeking
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 2 Oct 2020 12:59:15 +0000 (14:59 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 4 Oct 2020 14:54:11 +0000 (16:54 +0200)
commitacd735efaf0ceba95c3f07751182af485af993d2
tree1432eeeec5779b0c158d7694ce8c5473cccd9f5e
parent3291d994b76db4b6e67c8467367ce68f79785e60
avformat/moflex: Check m->size before seeking

Fixes: Infinite loop
Fixes: 26016/clusterfuzz-testcase-minimized-ffmpeg_IO_DEMUXER_fuzzer-6195663833137152

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>
libavformat/moflex.c