]> git.sesse.net Git - ffmpeg/commit
avformat/mpegts: Limit iterations of get_packet_size()
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 22 Oct 2020 18:41:48 +0000 (20:41 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 29 Nov 2020 15:10:55 +0000 (16:10 +0100)
commit4bdb7966fac87fdbf76f4828a3fbe14fd874679c
treee6ed046349825e7120729c995ce3bc33461c0f86
parent3f6653efdb89df08405a6affabf73b26cf499453
avformat/mpegts: Limit iterations of get_packet_size()

This is a pathological case where the fuzzer provides only 2 bytes per iteration.

Fixes: Timeout (>30 -> 0.9sec)
Fixes: 26488/clusterfuzz-testcase-minimized-ffmpeg_dem_MPEGTS_fuzzer-5911031077142528
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/mpegts.c