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 9880c78bcdc08e146f5950c9b7acac37f8792281
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Sun Nov 8 01:47:46 2026 +0100
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Thu Nov 19 14:55:43 2026 +0100

    avfilter/vf_drawtext: place the detection bbox text above boxes near the top
    
    Fixes: signed integer overflow
    Fixes: kBR11CyKAEHm
    Fixes: repro_drawtext.c
    
    Found-by: Hicham Ouabella <[email protected]>
    
    This is not a security issue.
    
    Signed integer overflow Replicated through API with UBSAN
    
    (cherry picked from commit dd81ad912b2761df6e6403ffa8690c49692ee7ec)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavfilter/vf_drawtext.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/vf_drawtext.c b/libavfilter/vf_drawtext.c
index 515bc2c574..da4f19ec8c 100644
--- a/libavfilter/vf_drawtext.c
+++ b/libavfilter/vf_drawtext.c
@@ -1940,7 +1940,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame 
*frame)
                 strcat(s->text, bbox->classify_labels[j]);
             }
             s->x = bbox->x;
-            s->y = bbox->y - s->fontsize;
+            s->y = (int64_t)bbox->y - s->fontsize;
         }
         ret = draw_text(ctx, frame);
         if (ret < 0) {

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