[FFmpeg-devel] [PATCH v2 3/3] vp9: recon: Use emulated edge to prevent buffer overflows

Ronald S. Bultje rsbultje at gmail.com
Sat Jan 4 00:54:57 EET 2025


Hi Janne,

On Thu, Jan 2, 2025 at 7:55 PM Janne Grunau <janne-ffmpeg at jannau.net> wrote:

> The arm/aarch64 horizontal filter reads one additional pixel beyond what
> the filter uses. This can become an issue if the application does not
> allocate larger buffers than what's required for the pixel data. If the
> motion vector points to the bottom right edge of the picture this
> becomes a read buffer overflow. This triggers segfaults in Firefox for
> video resolutions which result in a page aligned picture size like
> 1280x640.
> Prevent this by using emulated edge in this case.
>
> Fixes: https://bugzilla.mozilla.org/show_bug.cgi?id=1881185
> Signed-off-by: Janne Grunau <janne-ffmpeg at jannau.net>
> ---
>  libavcodec/vp9recon.c | 8 ++++++++
>  1 file changed, 8 insertions(+)
>

Patch set merged, thank you for working on this.

Ronald


More information about the ffmpeg-devel mailing list