]> git.sesse.net Git - ffmpeg/commit
avcodec/mpeg12dec: Limit maximum A53 CC size
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 21 Sep 2020 20:40:48 +0000 (22:40 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 18 Oct 2020 18:42:21 +0000 (20:42 +0200)
commitee33fecb62c6dabcfdb9199d7a5b8575b758f1d9
tree2157e44cd9d1a7a3d7eacf500d6d3a0c730a1381
parent34df97b0886c728e1ae430a7de8b3dfd2f1a5744
avcodec/mpeg12dec: Limit maximum A53 CC size

This is more than 10 times the size of the largest i found. And also alot more
than our encoder could handle (our encoder is limited to max 31)
Without any limit megabyte+ sized blocks can be reallocated millions of times.
Sadly the SCTE-20 spec does not seem to contain any hard limit directly, so this limit here
is arbitrary

Fixes: Timeout (25sec -> 152ms)
Fixes: 25714/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MPEG2VIDEO_fuzzer-5713633336885248
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/mpeg12dec.c