From 847510f10933b09192f0ef97a6af80fcb35198c2 Mon Sep 17 00:00:00 2001 From: Mirco Miranda Date: Thu, 20 Nov 2025 07:36:49 +0100 Subject: [PATCH] EXR: fix of uninitialized RGB read buffer --- src/imageformats/exr.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/imageformats/exr.cpp b/src/imageformats/exr.cpp index 4be5751..c6b6f16 100644 --- a/src/imageformats/exr.cpp +++ b/src/imageformats/exr.cpp @@ -404,6 +404,7 @@ bool EXRHandler::read(QImage *outImage) Imf::Array2D pixels; pixels.resizeErase(EXR_LINES_PER_BLOCK, width); + std::memset(pixels[0], 0, sizeof(Imf::Rgba) * EXR_LINES_PER_BLOCK * width); bool isRgba = image.hasAlphaChannel(); for (int y = 0, n = 0; y < height; y += n) {