mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-11-22 10:02:43 -05:00
HDR: fix uninitialized buffer
This commit is contained in:
@ -328,8 +328,7 @@ static bool LoadHDR(QDataStream &s, const Header& h, QImage &img)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
QByteArray lineArray;
|
QByteArray lineArray(4 * width, char());
|
||||||
lineArray.resize(4 * width);
|
|
||||||
uchar *image = reinterpret_cast<uchar *>(lineArray.data());
|
uchar *image = reinterpret_cast<uchar *>(lineArray.data());
|
||||||
|
|
||||||
for (int cline = 0; cline < height; cline++) {
|
for (int cline = 0; cline < height; cline++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user