mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-05-28 00:30:23 -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) {
|
||||
_pos++;
|
||||
}
|
||||
if (_pos >= _data.end()) {
|
||||
return false;
|
||||
}
|
||||
n = *_pos & 0x7f;
|
||||
if (!n) {
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user