mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-07-19 12:14:20 -04:00
rgb: fix crash in fuzzed file
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user