mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-01-30 00:55:12 +01:00
Bugfix: heap corruption
This commit is contained in:
parent
4647633956
commit
7acc8da51b
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user