[FFmpeg-devel] [PATCH 2/2] checkasm: sw_scale: Reduce range of test data in the yuv2yuvX test to get closer to real data

Ronald S. Bultje rsbultje at gmail.com
Wed Aug 17 23:49:36 EEST 2022


Hi,

On Wed, Aug 17, 2022 at 4:32 PM Martin Storsjö <martin at martin.st> wrote:

> This avoids overflows on some inputs in the x86 case, where the
> assembly version would clip/overflow differently from the
> C reference function.
>
> This doesn't seem to be a real issue with actual input data, but
> only with the previous fully random input data.
>

I'm a bit scared of this change... If we can trigger overflows with
specific pixel patterns, doesn't that make FFmpeg input-data exploitable?
Think of how that would go with corporate users with user-provided input
data.

Ronald


More information about the ffmpeg-devel mailing list