[FFmpeg-devel] [PATCH] libavformat/ffmetadec: use dynamic allocation for line buffer

François Revol revol at free.fr
Wed Nov 7 15:49:19 EET 2018

Le 07/11/2018 à 14:34, François Revol a écrit :
> When adding thumbnails to OGG files, the line can easily go up to 100kB.
> We thus try to allocate the file size or SIZE_MAX to avoid truncation.
> +    if (line_size < 1 || line_size > SIZE_MAX)
> +       line_size = SIZE_MAX;

Maybe a lower bound would be enough though, I don't expect 2GB JPEG
files as thumbnails…


More information about the ffmpeg-devel mailing list