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