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

Git pushed a commit to branch master
in repository ffmpeg.

commit 789b939c13f33d8867c9a31057c93dedeed0c849
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Mon Sep 14 19:01:00 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Wed Sep 23 18:56:12 2026 +0000

    avcodec/v210dec: reject a custom_stride that is not a multiple of 4
    
    Found during triage/review of the security report Qf1CTWcULyGL
    
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavcodec/v210dec.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/libavcodec/v210dec.c b/libavcodec/v210dec.c
index c4ca12c1f7..63337941fd 100644
--- a/libavcodec/v210dec.c
+++ b/libavcodec/v210dec.c
@@ -42,6 +42,11 @@ static av_cold int decode_init(AVCodecContext *avctx)
 {
     V210DecContext *s = avctx->priv_data;
 
+    if (s->custom_stride > 0 && s->custom_stride & 3) {
+        av_log(avctx, AV_LOG_ERROR, "custom_stride must be a multiple of 4\n");
+        return AVERROR(EINVAL);
+    }
+
     avctx->pix_fmt             = AV_PIX_FMT_YUV422P10;
     avctx->bits_per_raw_sample = 10;
 

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