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 38ee03bf299cbfcaea37dc6339e36de9a708603d
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Sat Nov 7 00:23:02 2026 +0100
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Thu Nov 19 14:55:43 2026 +0100

    avfilter/vf_drawtext: do not shape the detection bbox text buffer at init
    
    Fixes: heap-buffer-overflow (write)
    Fixes: cstGjMaHQawL
    
    Found during triage of the security report jBRKMspuGY2H
    
    Out of array write Replicated through API with ASAN
    
    (cherry picked from commit 8b2119e9174da2a10c203e8ea04d74319ad617c3)
    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 ff3eefa3ae..758224d8ef 100644
--- a/libavfilter/vf_drawtext.c
+++ b/libavfilter/vf_drawtext.c
@@ -1038,7 +1038,7 @@ static av_cold int init(AVFilterContext *ctx)
     };
 
 #if CONFIG_LIBFRIBIDI
-    if (s->text_shaping)
+    if (s->text_shaping && s->text_source != AV_FRAME_DATA_DETECTION_BBOXES)
         if ((err = shape_text(ctx)) < 0)
             return err;
 #endif

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