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