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 0d19e76e645ab11d7c06aeb89d4b6a7322c78627
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Sat Nov 7 00:40:56 2026 +0100
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Thu Nov 19 14:55:43 2026 +0100

    avfilter/vf_drawtext: do not reload the text file with a detection bbox 
text source
    
    The documentation says that textfile is ignored when text_source is set
    
    Fixes: heap-buffer-overflow (write)
    Fixes: cg1JrtNAcnk5
    
    Found during triage of the security report jBRKMspuGY2H
    
    Out of array write Replicated through API with ASAN
    
    (cherry picked from commit 6addaeb55e2b8d8fa7f33d06ebfb49ea49299611)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavfilter/vf_drawtext.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavfilter/vf_drawtext.c b/libavfilter/vf_drawtext.c
index 758224d8ef..515bc2c574 100644
--- a/libavfilter/vf_drawtext.c
+++ b/libavfilter/vf_drawtext.c
@@ -1907,7 +1907,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame 
*frame)
         }
     }
 
-    if (s->reload && !(inl->frame_count_out % s->reload)) {
+    if (s->reload && s->text_source != AV_FRAME_DATA_DETECTION_BBOXES &&
+        !(inl->frame_count_out % s->reload)) {
         if ((ret = ff_load_textfile(ctx, (const char *)s->textfile, &s->text, 
NULL)) < 0) {
             av_frame_free(&frame);
             return ret;

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