This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch release/9.1 in repository ffmpeg.
commit 6e37700fd275928f3c06d103622e28c71d0f5973 Author: Michael Niedermayer <[email protected]> AuthorDate: Fri Nov 6 22:51:53 2026 +0100 Commit: Michael Niedermayer <[email protected]> CommitDate: Sun Nov 15 06:17:20 2026 +0100 avfilter/vf_spp: index the QP table by macroblock for all chroma subsamplings Fixes: heap-buffer-overflow Fixes: cxHWRwP1s1BE Found-by: SecBuddyF, Tencent KeenLab (CodeBuddy Security) Heap out of array read Replicated through UnModified FFmpeg with ASAN (cherry picked from commit 114b6177d36558bc5ac3aeb39a2e70ce05371d24) Signed-off-by: Michael Niedermayer <[email protected]> --- libavfilter/vf_spp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libavfilter/vf_spp.c b/libavfilter/vf_spp.c index 20c9fd4340..1f369ad67f 100644 --- a/libavfilter/vf_spp.c +++ b/libavfilter/vf_spp.c @@ -282,8 +282,9 @@ static void filter(SPPContext *p, uint8_t *dst, uint8_t *src, if (p->qp) { qp = p->qp; } else{ - const int qps = 3 + is_luma; - qp = qp_table[(FFMIN(x, width - 1) >> qps) + (FFMIN(y, height - 1) >> qps) * qp_stride]; + const int qpsh = 4 - p->hsub * !is_luma; + const int qpsv = 4 - p->vsub * !is_luma; + qp = qp_table[(FFMIN(x, width - 1) >> qpsh) + (FFMIN(y, height - 1) >> qpsv) * qp_stride]; qp = FFMAX(1, ff_norm_qscale(qp, p->qscale_type)); } for (i = 0; i < count; i++) { -- 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]
