This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 69ad29bdad39878c70eeb07ec5e2f66e25908078 Author: Michael Niedermayer <[email protected]> AuthorDate: Tue Oct 20 15:10:36 2026 +0200 Commit: michaelni <[email protected]> CommitDate: Tue Oct 20 20:41:50 2026 +0000 avcodec/jacosubdec: do not read the event beyond the packet 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/jacosubdec.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libavcodec/jacosubdec.c b/libavcodec/jacosubdec.c index fd90dcc4b6..c9fdfc2627 100644 --- a/libavcodec/jacosubdec.c +++ b/libavcodec/jacosubdec.c @@ -27,6 +27,7 @@ #include <time.h> #include "ass.h" #include "codec_internal.h" +#include "decode.h" #include "jacosub.h" #include "libavutil/avstring.h" #include "libavutil/bprint.h" @@ -164,11 +165,13 @@ static int jacosub_decode_frame(AVCodecContext *avctx, AVSubtitle *sub, int *got_sub_ptr, const AVPacket *avpkt) { int ret; - const char *ptr = avpkt->data; + const char *ptr = ff_decode_subtitle_text(avctx, avpkt); FFASSDecoderContext *s = avctx->priv_data; if (avpkt->size <= 0) goto end; + if (!ptr) + return AVERROR(ENOMEM); if (*ptr) { AVBPrint buffer; -- 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]
