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

Git pushed a commit to branch master
in repository ffmpeg.

commit 8b2119e9174da2a10c203e8ea04d74319ad617c3
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Sat Nov 7 00:23:02 2026 +0100
Commit:     michaelni <[email protected]>
CommitDate: Tue Nov 17 17:54:46 2026 +0000

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