This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit f50cbfecef19446adbc02bc270e70ae0793cce73
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Fri Nov 6 22:51:53 2026 +0100
Commit:     michaelni <[email protected]>
CommitDate: Wed Nov 11 02:05:10 2026 +0000

    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
---
 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]

Reply via email to