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 2b3e1e795ecda5455c21e8203683ac8d5300d074 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_pp7: 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 f50cbfecef19446adbc02bc270e70ae0793cce73) Signed-off-by: Michael Niedermayer <[email protected]> --- libavfilter/vf_pp7.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libavfilter/vf_pp7.c b/libavfilter/vf_pp7.c index a2ad375227..a33ff29ce1 100644 --- a/libavfilter/vf_pp7.c +++ b/libavfilter/vf_pp7.c @@ -231,14 +231,15 @@ static void filter(PP7Context *p, uint8_t *dst, const uint8_t *src, dctA_c(tp + 4 * 8, p_src + index, stride); } for (x = 0; x < width; ) { - const int qps = 3 + is_luma; + const int qpsh = 4 - p->hsub * !is_luma; + const int qpsv = 4 - p->vsub * !is_luma; int qp; int end = FFMIN(x + 8, width); if (p->qp) qp = p->qp; else { - qp = qp_store[ (FFMIN(x, width - 1) >> qps) + (FFMIN(y, height - 1) >> qps) * qp_stride]; + qp = qp_store[ (FFMIN(x, width - 1) >> qpsh) + (FFMIN(y, height - 1) >> qpsv) * qp_stride]; qp = ff_norm_qscale(qp, p->qscale_type); } for (; x < end; x++) { -- 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]
