avformat/mov: Limit nb_chapter_tracks to input size
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 19 Apr 2021 11:30:17 +0000 (13:30 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 18 Jun 2021 18:53:56 +0000 (20:53 +0200)
commit409c33e5f882c7b9013ff7f4e1d1cdd831c65095
tree3fbacacb3d83d89cd30346646ae3d87a98ddf3f1
parentba1cc675eb2ca7d6298eb5f73376cd675edd7b1d
avformat/mov: Limit nb_chapter_tracks to input size

Fixes: Timeout (15k loop iterations instead of 400m)
Fixes: 31368/clusterfuzz-testcase-minimized-ffmpeg_dem_MOV_fuzzer-6601583174483968

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 299a56c9006b2eb8807c3e3efefb91a78fe6b3b2)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/mov.c