Bugfix: heap corruption

This commit is contained in:
Jakub Melka 2020-07-10 18:30:37 +02:00
parent 4647633956
commit 7acc8da51b

View File

@ -277,7 +277,7 @@ QImage PDFAbstractColorSpace::getImage(const PDFImageData& imageData,
unsigned char* alphaLine = alphaMask.scanLine(i);
std::vector<float> inputColors(imageWidth * componentCount, 0.0f);
std::vector<unsigned char> outputColors(imageWidth * componentCount, 0);
std::vector<unsigned char> outputColors(imageWidth * 3, 0);
auto itInputColor = inputColors.begin();
for (unsigned int j = 0; j < imageData.getWidth(); ++j)