Image.XCF cannot decode xcf's with layers stretching beyond the image border
Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=208
Reference: http://peter.bortas.org/test/disc_flat.xcf
Reported by @zino
Image.XCF cannot decode xcf's with layers stretching beyond the image border. I have confirmed that it has nothing to do with number of layers or any kind of selection. A flattened image that isn't cropped in the flattening will krash. Typicly with something like this:
> object skiva = Image.ANY.decode( Stdio.read_file( "disc_flat.xcf" ));
Bad argument 1 to Image.Layer->set_offset(). Expected int
Unknown program: Image.Layer->set_offset(4294967221,4294967294)
/i/pike/7.0.73/lib/modules/Image.so.Layer:
set_offset(4294967221,4294967294)
/i/pike/7.0.73/lib/modules/_Image_XCF.pmod:478:
decode_layers(_Image_XCF.GimpImage(),([]))
/i/pike/7.0.73/lib/modules/_Image_XCF.pmod:507: _decode(0,([]))
image_module.c:190: decode(_Image_XCF._decode)
-:1: ___Foo4711()
A test image showing the problem can be found at http://peter.bortas.org/test/disc_flat.xcf