avformat/rpl: Check for EOF and zero framesize
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 3 Jun 2021 20:46:05 +0000 (22:46 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 8 Jun 2021 16:00:05 +0000 (18:00 +0200)
commita0a4a527c3b0819368d9b148542bb7663f39df79
tree8beff03067a2b5d19e3c4e5b001e4f7be3662f7b
parentf7862e82686b347eb6a9e64fa7ccdf25d5a76b4b
avformat/rpl: Check for EOF and zero framesize

Fixes: Infinite loop
Fixes: 34751/clusterfuzz-testcase-minimized-ffmpeg_dem_RPL_fuzzer-5439330800762880
Fixes: 34774/clusterfuzz-testcase-minimized-ffmpeg_dem_RPL_fuzzer-5851571660390400

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