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

Git pushed a commit to branch master
in repository ffmpeg.

commit f9f121fa50720929f3ce3a561872504361904cec
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Sat Oct 17 03:01:32 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Tue Oct 20 20:41:50 2026 +0000

    avcodec/decode: bound the event printed when recoding a subtitle fails
    
    The packet data is not NUL terminated.
    
    Fixes: a3ewdvDE2QSe
    Fixes: out of array read
    Out of array read Replicated through API with ASAN
    Found during triage of the review of 
https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24659
---
 libavcodec/decode.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/decode.c b/libavcodec/decode.c
index 96da70fb7e..097691dd58 100644
--- a/libavcodec/decode.c
+++ b/libavcodec/decode.c
@@ -896,8 +896,8 @@ static int recode_subtitle(AVCodecContext *avctx, const 
AVPacket **outpkt,
         iconv(cd, NULL, NULL, &outb, &outl) == (size_t)-1 ||
         outl >= buf_pkt->size || inl != 0) {
         ret = FFMIN(AVERROR(errno), -1);
-        av_log(avctx, AV_LOG_ERROR, "Unable to recode subtitle event \"%s\" "
-               "from %s to UTF-8\n", inpkt->data, avctx->sub_charenc);
+        av_log(avctx, AV_LOG_ERROR, "Unable to recode subtitle event \"%.*s\" "
+               "from %s to UTF-8\n", inpkt->size, inpkt->data, 
avctx->sub_charenc);
         goto end;
     }
     buf_pkt->size -= outl;

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