[FFmpeg-devel] [PATCH] avcodec/mpeg12dec: Limit maximum A53 CC size

Michael Niedermayer michael at niedermayer.cc
Sun Oct 18 22:26:09 EEST 2020


On Tue, Sep 22, 2020 at 10:33:14AM +0200, Michael Niedermayer wrote:
> 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 at niedermayer.cc>
> ---
>  libavcodec/mpeg12dec.c | 8 +++++---
>  1 file changed, 5 insertions(+), 3 deletions(-)

will apply

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Complexity theory is the science of finding the exact solution to an
approximation. Benchmarking OTOH is finding an approximation of the exact
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20201018/25aa849c/attachment.sig>


More information about the ffmpeg-devel mailing list