Image.decode_layers PSD changes from 7.8 to 8.0?

Thomas Gusenleitner <[email protected]> Mon, 10 Jul 2017 10:53:04 +0200
Newsgroups gmane.comp.lang.pike.user
Message-ID <CABAiGoAouOQb_P2tNHf4+=FWxDcu4crg3KZO-cHZBYtx2EUFng@mail.gmail.com>
Hello

i have a specific psd file which i can't decode in pike 8.0.438 and i cant
figure out whats wrong with the psd.
Decoding in 7.8.866 works fine.

Pike v8.0 release 438 running Hilfe v3.5 (Incremental Pike Frontend)
> Image.PSD.__decode(Stdio.read_file("/home/gusi/tree.psd"));
Not enough space for 39 short integers.
/usr/local/pike/8.0.438/lib/modules/Image.so:1:

_Image_PSD.___decode_image_channel(1,39,"\0\0(ÿ(ÿ(ÿ(ÿ(ÿ(ÿ(ÿ(ÿ(ÿ(ÿ(ÿ(ÿ(ÿ(((((((((((ÿ(")

/usr/local/pike/8.0.438/lib/modules/_Image_PSD.pmod:101:
_Image_PSD.decode_layer(@0=mapping[17],mapping[10])
/usr/local/pike/8.0.438/lib/modules/_Image_PSD.pmod:365:
_Image_PSD.__decode(0,UNDEFINED)
>

Pike v7.8 release 866 running Hilfe v3.5 (Incremental Pike Frontend)
> Image.PSD.__decode(Stdio.read_file("/home/gusi/tree.psd"));
(1) Result: ([ /* 10 elements */
              "channels": 4,
              "color_data": "",
              "compression": 1,
              "depth": 8,
              "height": 41,
              "image_data":
....


here a link to the psd file and the complete pike 7.8 output
https://owncloud.cbc-x.com/index.php/s/4YfKCAJbBXJ8HjQ

Greetings,
Thomas