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 642215dcd338e693daf80d8d33f8839450696f46 Author: Michael Niedermayer <[email protected]> AuthorDate: Thu Oct 29 03:09:49 2026 +0100 Commit: Michael Niedermayer <[email protected]> CommitDate: Sun Nov 15 02:37:22 2026 +0100 avcodec/dpxenc: reject unsupported depths for RGB48 input Only 10 and 16 bit output exist for RGB48, reject everything else at init. Fixes: NULL pointer dereference Fixes: cPU32SjSff6g Fixes: AISLE-2026-0150-00374 NULL pointer dereference Replicated through UnModified FFmpeg with ASAN Found-by: Joshua Rogers (AISLE) (cherry picked from commit aa5fd7d287db4f469fdcbe444f7f9f38c8c289c7) Signed-off-by: Michael Niedermayer <[email protected]> --- libavcodec/dpxenc.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libavcodec/dpxenc.c b/libavcodec/dpxenc.c index 68e7fece12..68a8e2c11b 100644 --- a/libavcodec/dpxenc.c +++ b/libavcodec/dpxenc.c @@ -68,8 +68,12 @@ static av_cold int encode_init(AVCodecContext *avctx) break; case AV_PIX_FMT_RGB48LE: case AV_PIX_FMT_RGB48BE: - if (avctx->bits_per_raw_sample) - s->bits_per_component = avctx->bits_per_raw_sample; + if (avctx->bits_per_raw_sample == 10) { + s->bits_per_component = 10; + } else if (avctx->bits_per_raw_sample && avctx->bits_per_raw_sample != 16) { + av_log(avctx, AV_LOG_ERROR, "Unsupported bit depth: %d\n", avctx->bits_per_raw_sample); + return AVERROR(EINVAL); + } break; } -- 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]
