This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit b8daf520dd03f6139aa053acb768f3c4594599d9 Author: Michael Niedermayer <[email protected]> AuthorDate: Sat Oct 24 06:08:23 2026 +0200 Commit: michaelni <[email protected]> CommitDate: Tue Nov 3 16:16:16 2026 +0000 avcodec/aom_film_grain: reject scaling points with a repeated x value The AV1 specification requires the points to be strictly increasing, and the AFGS1 scaling function is undefined for equal x values. Fixes: xaXnd8wemUUh/testcase/afgs1_dup.hevc Fixes: xaXnd8wemUUh Fixes: AISLE-2026-0150-00067 Fixes: division by zero Division by zero Replicated through UnModified FFmpeg with UBSAN Found-by: Joshua Rogers (AISLE) Signed-off-by: Michael Niedermayer <[email protected]> --- libavcodec/aom_film_grain.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/aom_film_grain.c b/libavcodec/aom_film_grain.c index bb60c55774..205e93604f 100644 --- a/libavcodec/aom_film_grain.c +++ b/libavcodec/aom_film_grain.c @@ -247,7 +247,7 @@ int ff_aom_parse_film_grain_sets(AVFilmGrainAFGS1Params *s, bits_scaling = get_bits(gb, 2) + 5; for (i = 0; i < aom->num_y_points; i++) { y_value += get_bits(gb, bits_inc); - if (y_value > UINT8_MAX) + if (y_value > UINT8_MAX || i && y_value == aom->y_points[i - 1][0]) goto error; aom->y_points[i][0] = y_value; aom->y_points[i][1] = get_bits(gb, bits_scaling); @@ -298,7 +298,7 @@ int ff_aom_parse_film_grain_sets(AVFilmGrainAFGS1Params *s, uv_offset = get_bits(gb, 8); for (i = 0; i < aom->num_uv_points[uv]; i++) { uv_value += get_bits(gb, bits_inc); - if (uv_value > UINT8_MAX) + if (uv_value > UINT8_MAX || i && uv_value == aom->uv_points[uv][i - 1][0]) goto error; aom->uv_points[uv][i][0] = uv_value; aom->uv_points[uv][i][1] = get_bits(gb, bits_scaling) + uv_offset; -- To stop receiving notification emails like this one, please contact [email protected]. _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
