Initialize the unread bits of _starttab

oss-fuzz #14446
This commit is contained in:
Albert Astals Cid 2019-04-25 23:08:17 +02:00
parent 6fea48c4ee
commit 0db5c89c5f

View File

@ -336,6 +336,9 @@ bool SGIImage::readImage(QImage &img)
_stream >> _starttab[l];
_starttab[l] -= 512 + _numrows * 2 * sizeof(quint32);
}
for (; l < _numrows; l++) {
_starttab[l] = 0;
}
_lengthtab = new quint32[_numrows];
for (l = 0; l < _numrows; l++) {