From 064fab59c75e914532c652ed045060d55bb780ea Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 22 Feb 2026 14:50:41 +0100 Subject: [PATCH] avcodec/exr: fix AVERROR typo Fixes: out of array read Fixes: 485866440/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_EXR_DEC_fuzzer-4520520419966976 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer (cherry picked from commit 7e10579f499200c464eabf7077bc35fd1206b515) Signed-off-by: Michael Niedermayer --- libavcodec/exr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/exr.c b/libavcodec/exr.c index 418da333ee..52a085b802 100644 --- a/libavcodec/exr.c +++ b/libavcodec/exr.c @@ -1823,7 +1823,7 @@ static int decode_header(EXRContext *s, AVFrame *frame) s->is_luma = 1; } else { avpriv_request_sample(s->avctx, "Uncommon channel combination"); - ret = AVERROR(AVERROR_PATCHWELCOME); + ret = AVERROR_PATCHWELCOME; goto fail; }