pike issueshttps://git.lysator.liu.se/pikelang/pike/-/issues2009-04-16T14:11:39Zhttps://git.lysator.liu.se/pikelang/pike/-/issues/1250found image that crashes in Image.load, in tifflib2009-04-16T14:11:39ZPeter Bortasfound image that crashes in Image.load, in tifflibImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1250
Reported by Mirar , Idonex Heavy Industries <mirar@roxen.com>
```
> hexdump( (#string "nemisis.jpg")[..1000] );
49 49 2a 00 08 00 00 00 18 00 fe 00 04 00 01 00 I...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1250
Reported by Mirar , Idonex Heavy Industries <mirar@roxen.com>
```
> hexdump( (#string "nemisis.jpg")[..1000] );
49 49 2a 00 08 00 00 00 18 00 fe 00 04 00 01 00 II*. .... ..þ. ....
00 00 00 00 00 00 00 01 04 00 01 00 00 00 0c 01 .... .... .... ....
00 00 01 01 04 00 01 00 00 00 54 01 00 00 02 01 .... .... ..T. ....
03 00 03 00 00 00 2e 01 00 00 03 01 04 00 01 00 .... .... .... ....
00 00 06 00 00 00 06 01 03 00 01 00 00 00 06 00 .... .... .... ....
00 00 15 01 03 00 01 00 00 00 03 00 00 00 1a 01 .... .... .... ....
05 00 01 00 00 00 4c 01 00 00 1b 01 05 00 01 00 .... ..L. .... ....
00 00 54 01 00 00 1c 01 03 00 01 00 00 00 01 00 ..T. .... .... ....
00 00 28 01 03 00 01 00 00 00 02 00 00 00 42 01 ..(. .... .... ..B.
> Image.load("nemisis.jpg");
zsh: segmentation fault pike
(gdb) bt
#0 0x4047c371 in putcontig8bitYCbCr11tile () from /usr/lib/libtiff.so.3
#1 0x40477f54 in gtTileContig () from /usr/lib/libtiff.so.3
#2 0x40477c69 in TIFFRGBAImageGet () from /usr/lib/libtiff.so.3
#3 0x40477cfd in TIFFReadRGBAImage () from /usr/lib/libtiff.so.3
#4 0x4044dd15 in low_image_tiff_decode ()
at /users/mirar/pike/src/modules/_Image_TIFF/image_tiff.c:219
#5 0x4044e136 in image_tiff__decode (args=1)
at /users/mirar/pike/src/modules/_Image_TIFF/image_tiff.c:669
#6 0x80807d1 in mega_apply (type=APPLY_STACK, args=1, arg1=0x0, arg2=0x0)
at /users/mirar/pike/src/interpret.c:1225
```
not when you call tifflib directly, though:
```
> Image.TIFF.decode(#string "nemisis.jpg");
Failed to 'open' tiff image.
/usr/local/pike/7.3.2/lib/modules/_Image_TIFF.so:
decode("II*\0\b\0\0\ [...]")
-:1: ___Foo4711()
```Pike 7.4https://git.lysator.liu.se/pikelang/pike/-/issues/1187GIMP (xcf) files with layers in overlay mode broken2009-04-16T14:11:39ZPeter BortasGIMP (xcf) files with layers in overlay mode brokenImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1187
Reported by David Hedbor, Idonex / Real Networks <david@hedbor.org>
Layers in xcf files that use the overlay method are oddly broken. Seems
like the alpha channel is...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1187
Reported by David Hedbor, Idonex / Real Networks <david@hedbor.org>
Layers in xcf files that use the overlay method are oddly broken. Seems
like the alpha channel is ignored or something.Pike 7.0https://git.lysator.liu.se/pikelang/pike/-/issues/1167XCF decoder cannot decode "multiply" layers correctly2020-02-29T17:53:47ZPeter BortasXCF decoder cannot decode "multiply" layers correctlyImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1167
Reported by @zino
The XCF decoder cannot decode "multiply" layers correctly. Attaching exmple
xcf and screenshots from Gimp and PV.Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1167
Reported by @zino
The XCF decoder cannot decode "multiply" layers correctly. Attaching exmple
xcf and screenshots from Gimp and PV.Pike 7.2https://git.lysator.liu.se/pikelang/pike/-/issues/1076Rotation of an image of size 0 causes segfault.2009-04-16T14:11:39ZPeter BortasRotation of an image of size 0 causes segfault.Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1076
Reported by Anders Johansson <anders@roxen.com>
```
Pike v7.0 release 141 running Hilfe v2.0 (Incremental Pike Frontend)
> Image.Image(17,0)->rotate(17);
zsh: 32118 ...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1076
Reported by Anders Johansson <anders@roxen.com>
```
Pike v7.0 release 141 running Hilfe v2.0 (Incremental Pike Frontend)
> Image.Image(17,0)->rotate(17);
zsh: 32118 segmentation fault (core dumped) pike
```Pike 7.0https://git.lysator.liu.se/pikelang/pike/-/issues/984Image.Color and Colors.parse_color parses HSV differently2009-04-16T14:11:39ZPeter BortasImage.Color and Colors.parse_color parses HSV differentlyImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=984
Reported by Martin Nilsson, IDA <nilsson@pike.ida.liu.se>
```
> Colors.parse_color("@128,50,50");
Result: ({ /* 3 elements */
49,
79,
...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=984
Reported by Martin Nilsson, IDA <nilsson@pike.ida.liu.se>
```
> Colors.parse_color("@128,50,50");
Result: ({ /* 3 elements */
49,
79,
253
})
> Image.Color("@128,50,50")->rgb();
Result: ({ /* 3 elements */
63,
127,
72
})
```Pike 7.2https://git.lysator.liu.se/pikelang/pike/-/issues/982Image.Color may dump core on "grey"-input2009-04-16T14:11:39ZPeter BortasImage.Color may dump core on "grey"-inputImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=982
Reported by Martin Nilsson, IDA <nilsson@pike.ida.liu.se>
```
Pike v7.1 release 21 running Hilfe v2.0 (Incremental Pike Frontend)
> Image.Color("grey00");
Result: "û"...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=982
Reported by Martin Nilsson, IDA <nilsson@pike.ida.liu.se>
```
Pike v7.1 release 21 running Hilfe v2.0 (Incremental Pike Frontend)
> Image.Color("grey00");
Result: "û"
> Image.Color("grey99");
/home/nilsson/Pike/7.1/src/pike_types.c:153: Fatal error:
Error in type string 32.
Attempting to dump backlog (may fail)...
Backtrace at time of fatal:
-:1: ___Foo4711()
/home/nilsson/Pike/pike/7.1.21/lib/modules/Tools.pmod/Hilfe.pmod:103:
do_evaluate("mixed ___Foo4711() { return
(mixed)(Image.Color(\"grey99\"));
}\n",1)
/home/nilsson/Pike/pike/7.1.21/lib/modules/Tools.pmod/Hilfe.pmod:603:
parse_statement("Image.Color(\"grey99\");")
/home/nilsson/Pike/pike/7.1.21/lib/modules/Tools.pmod/Hilfe.pmod:381:
do_parse()
/home/nilsson/Pike/pike/7.1.21/lib/modules/Tools.pmod/Hilfe.pmod:224:
add_buffer("Image.Color(\"grey99\");\n")
/home/nilsson/Pike/pike/7.1.21/lib/modules/Tools.pmod/Hilfe.pmod:623:
add_input_line("Image.Color(\"grey99\");\n")
/home/nilsson/Pike/pike/7.1.21/lib/modules/Tools.pmod/Hilfe.pmod:703:
create()
Hilfe: StdinHilfe()
Abort (core dumped)
```Pike 7.2https://git.lysator.liu.se/pikelang/pike/-/issues/958found a file that causes segmentation fault in Image.load2009-04-16T14:11:39ZPeter Bortasfound a file that causes segmentation fault in Image.loadImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=958
Reported by Mirar , Idonex Heavy Industries <mirar@roxen.com>
```
> Image.load("breaks_tifflib.jpg");
zsh: segmentation fault pike
```Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=958
Reported by Mirar , Idonex Heavy Industries <mirar@roxen.com>
```
> Image.load("breaks_tifflib.jpg");
zsh: segmentation fault pike
```Pike 7.2https://git.lysator.liu.se/pikelang/pike/-/issues/626PNG decode coredumps on malformed images2009-04-16T14:11:39ZPeter BortasPNG decode coredumps on malformed imagesImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=626
Reported by Chris Jantzen, Maybe.Net <chris@maybe.net>
On malformed images (specifically from gd), the PNG decode will dump core.
Following patch fixes the issue:
``...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=626
Reported by Chris Jantzen, Maybe.Net <chris@maybe.net>
On malformed images (specifically from gd), the PNG decode will dump core.
Following patch fixes the issue:
```
diff -u -r1.31 png.c
--- src/modules/Image/encodings/png.c 2000/05/07 00:05:10 1.31
+++ src/modules/Image/encodings/png.c 2000/10/28 17:25:22
@@ -791,6 +791,7 @@
if (x)
x--,n--,*(d1++)=ct->u.flat.entries[CUTPLTE(((*s)>>4)&15,mz)].color;
if (x)
x--,n--,*(d1++)=ct->u.flat.entries[CUTPLTE((*s)&15,mz)].color;
s++;
+ if (n<2) break;
if (!x) x=width;
}
else
```
(hope that doesn't get too mangled by netscape)Pike 7.0https://git.lysator.liu.se/pikelang/pike/-/issues/8204Count memory used by Image.Image objects.2020-03-06T10:52:19ZPeter BortasCount memory used by Image.Image objects.Imported from https://youtrack.roxen.com/issue/PIKE-204
Reported by @grubba
Image.Image does not have a `gc_recurse` callback, and thus `Pike.count_memory()` will not count the memory used to store the actual image.Imported from https://youtrack.roxen.com/issue/PIKE-204
Reported by @grubba
Image.Image does not have a `gc_recurse` callback, and thus `Pike.count_memory()` will not count the memory used to store the actual image.https://git.lysator.liu.se/pikelang/pike/-/issues/8170Former Fix task of PIKE-169 (#8169). See it for details.2020-03-06T10:52:35ZPeter BortasFormer Fix task of PIKE-169 (#8169). See it for details.Imported from https://youtrack.roxen.com/issue/PIKE-170
Reported by @grubba
Blocking [PIKE-169](#8169)Imported from https://youtrack.roxen.com/issue/PIKE-170
Reported by @grubba
Blocking [PIKE-169](#8169)https://git.lysator.liu.se/pikelang/pike/-/issues/8168Former Investigate task of PIKE-169 (#8169). See it for details.2020-03-06T10:53:04ZPeter BortasFormer Investigate task of PIKE-169 (#8169). See it for details.Imported from https://youtrack.roxen.com/issue/PIKE-168
Reported by @grubba
Blocking [PIKE-169](#8169)Imported from https://youtrack.roxen.com/issue/PIKE-168
Reported by @grubba
Blocking [PIKE-169](#8169)https://git.lysator.liu.se/pikelang/pike/-/issues/8147Former Do it. task of PIKE-146 (#8146). See it for details.2020-03-06T10:53:18ZPeter BortasFormer Do it. task of PIKE-146 (#8146). See it for details.Imported from https://youtrack.roxen.com/issue/PIKE-147
Reported by @grubba
Blocking [PIKE-146](#8146)Imported from https://youtrack.roxen.com/issue/PIKE-147
Reported by @grubba
Blocking [PIKE-146](#8146)https://git.lysator.liu.se/pikelang/pike/-/issues/8146Recent versions of Freetype have removed freetype-config. Use pkg-config free...2020-03-06T10:53:35ZPeter BortasRecent versions of Freetype have removed freetype-config. Use pkg-config freetype2 instead.Imported from https://youtrack.roxen.com/issue/PIKE-146
Reported by @grubbaImported from https://youtrack.roxen.com/issue/PIKE-146
Reported by @grubbahttps://git.lysator.liu.se/pikelang/pike/-/issues/8005Image.PS.decode fails on WIN32.2020-03-06T10:51:28ZPeter BortasImage.PS.decode fails on WIN32.Imported from https://youtrack.roxen.com/issue/PIKE-5
Reported by @grubba
REP 6.1.198/Pike 8.0.408:
#### From REPs testsuite
```
Running test C:/disttest/install test/ep_6_1/server-6.1.198/packages/print/test/tests/RoxenTest_rep_imag...Imported from https://youtrack.roxen.com/issue/PIKE-5
Reported by @grubba
REP 6.1.198/Pike 8.0.408:
#### From REPs testsuite
```
Running test C:/disttest/install test/ep_6_1/server-6.1.198/packages/print/test/tests/RoxenTest_rep_imageproc.pike
################ Background failure
Image Processor: Pike Image Processor: image_resize failed to decode ([ /* 3 elements */
"filepath": "C:/disttest/install test/ep_6_1/server-6.1.198/packages/print/test/data/1163486.pdf",
"mimetype": "application/pdf",
"resize": ({ /* 1 element */
([ /* 2 elements */
"filepath": "/tmp/roxentest/output11268.jpg",
"mimetype": "image/jpeg"
])
})
]):
Failed to start process (3).
-:1: _static_modules.Builtin()->create_process()->create(({"/bin/sh -c gs ","-quiet","-sDEVICE=ppmraw","-r100","-dBATCH","-dNOPAUSE","-dUseCIEColor",,,3}),mapping[3])
c:/disttest/install test/ep_6_1/server-6.1.198/pike/lib/modules/_Image_PS.pmod:156: _Image_PS.decode(0,mapping[4])
C:/disttest/install test/ep_6_1/server-6.1.198/packages/imageproc/modules/image-pike.pike (602b93f3):166: RoxenModule(Test REP/image-pike#0)->do_image_resize(mapping[3])
C:/disttest/install test/ep_6_1/server-6.1.198/packages/imageproc/modules/image-pike.pike (602b93f3):126: RoxenModule(Test REP/image-pike#0)->image_resize(mapping[1])
C:/disttest/install test/ep_6_1/server-6.1.198/packages/imageproc/modules/image.pike (3b2788c1):525: RoxenModule(Test REP/image#0)->do_processing(,,,1)
C:/disttest/install test/ep_6_1/server-6.1.198/packages/imageproc/modules/image.pike (3b2788c1):474: RoxenModule(Test REP/image#0)->processor(RoxenModule(Test REP/image#0)->ThreadSafePrioQueue(),0)
| ################ C:/disttest/install test/ep_6_1/server-6.1.198/packages/print/test/tests/RoxenTest_rep_imageproc.pike:36: FAILED
| res
```https://git.lysator.liu.se/pikelang/pike/-/issues/2315Image.XWD.decode doesn't handle XY (bitplane) images2022-08-28T15:57:29ZPeter BortasImage.XWD.decode doesn't handle XY (bitplane) imagesImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=2315
Reported by @marcus
If an XY format window dump is given to Image.XWD.decode(), it just returns
0.
```
kronan:~% xwd -xy >/tmp/grab.xwd
kronan:~%
pike ...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=2315
Reported by @marcus
If an XY format window dump is given to Image.XWD.decode(), it just returns
0.
```
kronan:~% xwd -xy >/tmp/grab.xwd
kronan:~%
pike Pike
v7.2 release 144 running Hilfe v2.0 (Incremental Pike Frontend)
> Image.XWD.decode(Stdio.read_file("/tmp/grab.xwd"));
Result: 0
>
```