From b79ba2158d44e1bc9176e671519ce4c8cb60eaa9 Mon Sep 17 00:00:00 2001 From: Brian Popow Date: Tue, 17 Mar 2026 10:31:50 +0100 Subject: [PATCH] Fix not using offset when accessing decompressedPixelData --- src/ImageSharp/Formats/Exr/ExrDecoderCore.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ImageSharp/Formats/Exr/ExrDecoderCore.cs b/src/ImageSharp/Formats/Exr/ExrDecoderCore.cs index b823f452ee..c19436d523 100644 --- a/src/ImageSharp/Formats/Exr/ExrDecoderCore.cs +++ b/src/ImageSharp/Formats/Exr/ExrDecoderCore.cs @@ -219,7 +219,7 @@ internal sealed class ExrDecoderCore : ImageDecoderCore for (int channelIdx = 0; channelIdx < this.Channels.Count; channelIdx++) { ExrChannelInfo channel = this.Channels[channelIdx]; - offset += this.ReadUnsignedIntChannelData(stream, channel, decompressedPixelData, redPixelData, greenPixelData, bluePixelData, alphaPixelData, width); + offset += this.ReadUnsignedIntChannelData(stream, channel, decompressedPixelData.Slice(offset), redPixelData, greenPixelData, bluePixelData, alphaPixelData, width); } stream.Position = nextRowOffsetPosition;