mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-11-22 10:02:43 -05:00
EXR: fix of uninitialized RGB read buffer
This commit is contained in:
@ -404,6 +404,7 @@ bool EXRHandler::read(QImage *outImage)
|
||||
|
||||
Imf::Array2D<Imf::Rgba> 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) {
|
||||
|
||||
Reference in New Issue
Block a user