This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit dd98bbe0961366b011d8226a357c0a74721e5269 Author: Michael Niedermayer <[email protected]> AuthorDate: Tue Oct 13 06:06:48 2026 +0200 Commit: michaelni <[email protected]> CommitDate: Tue Oct 20 20:41:50 2026 +0000 avcodec/encode: assert that the subtitle buffer size is not negative A negative size is caller misuse. Fixes: 1JEyyg9rrIOc Found during the review of https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24913 --- libavcodec/encode.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/encode.c b/libavcodec/encode.c index fd503f01e1..82ea3aedbb 100644 --- a/libavcodec/encode.c +++ b/libavcodec/encode.c @@ -209,6 +209,7 @@ int avcodec_encode_subtitle(AVCodecContext *avctx, uint8_t *buf, int buf_size, av_log(avctx, AV_LOG_ERROR, "start_display_time must be 0.\n"); return -1; } + av_assert0(buf_size >= 0); ret = ffcodec(avctx->codec)->cb.encode_sub(avctx, buf, buf_size, sub); avctx->frame_num++; -- 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]
