mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-06-03 17:08:08 -04:00
rgb: Fix Heap-buffer-overflow in fuzzed file
oss-fuzz/12757
This commit is contained in:
parent
ac725cca68
commit
4751e897ce
@ -153,7 +153,7 @@ bool SGIImage::getRow(uchar *dest)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (*_pos++ & 0x80) {
|
if (*_pos++ & 0x80) {
|
||||||
for (; i < _xsize && n--; i++) {
|
for (; i < _xsize && _pos < _data.end() && n--; i++) {
|
||||||
*dest++ = *_pos;
|
*dest++ = *_pos;
|
||||||
_pos += _bpc;
|
_pos += _bpc;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user