mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-06-03 00:58:15 -04:00
rgb: fix crash in fuzzed file
This commit is contained in:
parent
188271a5d0
commit
0e21713267
@ -144,6 +144,9 @@ bool SGIImage::getRow(uchar *dest)
|
|||||||
if (_bpc == 2) {
|
if (_bpc == 2) {
|
||||||
_pos++;
|
_pos++;
|
||||||
}
|
}
|
||||||
|
if (_pos >= _data.end()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
n = *_pos & 0x7f;
|
n = *_pos & 0x7f;
|
||||||
if (!n) {
|
if (!n) {
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user