avformat/tta: Check for EOF in index reading loop
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 4 May 2021 16:34:44 +0000 (18:34 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 18 Jun 2021 16:58:25 +0000 (18:58 +0200)
commitb72d657b73b2aa4a2a2f72f613199e6080ad48c0
tree2f6f1f3dfdc1ae43a5ab133b0311cb9fd251bef5
parent85b883429fb1a8c1be2e39fee510315a92b6cd02
avformat/tta: Check for EOF in index reading loop

Fixes: OOM
Fixes: 33585/clusterfuzz-testcase-minimized-ffmpeg_dem_TTA_fuzzer-4564665830080512

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