This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 8f9ef6aa3714b63813b91f996e5f8917f690b7a4 Author: Michael Niedermayer <[email protected]> AuthorDate: Tue Oct 13 05:52:21 2026 +0200 Commit: michaelni <[email protected]> CommitDate: Tue Oct 20 20:41:50 2026 +0000 avdevice/v4l2: copy compressed frames out of the mmap buffers A packet referencing a driver buffer has no AV_INPUT_BUFFER_PADDING_SIZE Fixes: 7ZY4JenXTFy4 Fixes: out of array read Out of array read Replicated through UnModified FFmpeg with v4l2loopback and an LD_PRELOAD guard page behind the mmap buffers Found during the review of https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24659 --- libavdevice/v4l2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c index 2ca093b7b0..4d42a3f5de 100644 --- a/libavdevice/v4l2.c +++ b/libavdevice/v4l2.c @@ -604,7 +604,8 @@ static int mmap_read_frame(AVFormatContext *ctx, AVPacket *pkt) } /* Image is at s->buf_data[buf.index].start */ - if (atomic_load(&s->buffers_queued) == FFMAX(s->buffers / 8, 1)) { + if (atomic_load(&s->buffers_queued) == FFMAX(s->buffers / 8, 1) || + ctx->video_codec_id != AV_CODEC_ID_RAWVIDEO) { /* when we start getting low on queued buffers, fall back on copying data */ res = av_new_packet(pkt, bytesused); if (res < 0) { -- 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]
