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>
Fri, 18 Jun 2021 18:53:56 +0000 (20:53 +0200)
commit57f68127da4f270967f67975e4e22e2ee36169f3
tree85b1b0186bcb0e0623ebfb05359029024ac4f56e
parent350bedf7e2892a1201fdfac8260040d8ec4d4c6c
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>
(cherry picked from commit a0a4a527c3b0819368d9b148542bb7663f39df79)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/rpl.c