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 7e35144257cbc379cde39e87f0346ea6eb45f8b2 Author: Michael Niedermayer <[email protected]> AuthorDate: Mon Oct 26 01:12:01 2026 +0100 Commit: Michael Niedermayer <[email protected]> CommitDate: Sun Nov 15 02:29:43 2026 +0100 avcodec/bsf/dovi_split: reject NAL units that do not fit the output length field Truncated length field Replicated through UnModified FFmpeg Found by a grok bot based audit of the code. (cherry picked from commit 8828574c986226dde9ba13ba9e1805025b1b1d96) Signed-off-by: Michael Niedermayer <[email protected]> --- libavcodec/bsf/dovi_split.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libavcodec/bsf/dovi_split.c b/libavcodec/bsf/dovi_split.c index dd58b798ee..5d7c44f12b 100644 --- a/libavcodec/bsf/dovi_split.c +++ b/libavcodec/bsf/dovi_split.c @@ -193,6 +193,13 @@ static int dovi_split_filter(AVBSFContext *ctx, AVPacket *out) int payload_size; if (!nal_is_kept(s, &s->pkt.nals[i], &payload, &payload_size)) continue; + if (s->out_nal_length_size && s->out_nal_length_size < 4 && + payload_size >= 1 << (8 * s->out_nal_length_size)) { + av_log(ctx, AV_LOG_ERROR, "NAL unit size %d does not fit in %d bytes\n", + payload_size, s->out_nal_length_size); + ret = AVERROR_INVALIDDATA; + goto fail; + } out_size += prefix_size + payload_size; kept_count++; } -- 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]
