I'm running 1.5.17 (installed through MacPorts).magick wrote:We're running 1.6.3
Search found 4 matches
- 2013-12-02T06:56:24-07:00
- Forum: PerlMagick
- Topic: PerlMagick - Segfault when reading invalid PNG image
- Replies: 7
- Views: 19432
Re: PerlMagick - Segfault when reading invalid PNG image
- 2013-12-02T05:33:20-07:00
- Forum: PerlMagick
- Topic: PerlMagick - Segfault when reading invalid PNG image
- Replies: 7
- Views: 19432
Re: PerlMagick - Segfault when reading invalid PNG image
magick ,
I finally realized I have problems with all PNG images, not just the invalid ones. All functions accessing PNG image resulting in segfault. I'm running ImageMagick 6.8.7-4 2013-11-06 Q16 on Mac OS X Snow Leopard x64.
Here's what I'm getting in GDB:
gdb --args /opt/local/bin/perl -w ...
I finally realized I have problems with all PNG images, not just the invalid ones. All functions accessing PNG image resulting in segfault. I'm running ImageMagick 6.8.7-4 2013-11-06 Q16 on Mac OS X Snow Leopard x64.
Here's what I'm getting in GDB:
gdb --args /opt/local/bin/perl -w ...
- 2013-11-15T20:36:28-07:00
- Forum: PerlMagick
- Topic: PerlMagick - Segfault when reading invalid PNG image
- Replies: 7
- Views: 19432
Re: PerlMagick - Segfault when reading invalid PNG image
Yes, "convert test.png null:" works fine for me (ImageMagick 6.8.0-7). Did you try to actually read this file using Perl library?
$filename = "test.png";
$image = new Image::Magick;
$image->ReadImage($filename);
I'm getting segfault on string "$image->ReadImage($filename);"
$filename = "test.png";
$image = new Image::Magick;
$image->ReadImage($filename);
I'm getting segfault on string "$image->ReadImage($filename);"
- 2013-11-14T03:10:54-07:00
- Forum: PerlMagick
- Topic: PerlMagick - Segfault when reading invalid PNG image
- Replies: 7
- Views: 19432
PerlMagick - Segfault when reading invalid PNG image
Here is the code:
$image = new Image::Magick;
$image->ReadImage($filename)
Here is the image (uuencoded):
begin 644 test.png
MB5!.1PT*&@H````-24A$4@```?0```"Y"`````#[#))0`````7-21T(`KLX<
MZ0````1G04U!``"QCPO\804````)<$A9<P``#L,```[#`<=OJ&0``%.O241!
M5'C:[%UG8!35VG[.S&S?[&YZ[STD)(30(?1F0Q05 ...
$image = new Image::Magick;
$image->ReadImage($filename)
Here is the image (uuencoded):
begin 644 test.png
MB5!.1PT*&@H````-24A$4@```?0```"Y"`````#[#))0`````7-21T(`KLX<
MZ0````1G04U!``"QCPO\804````)<$A9<P``#L,```[#`<=OJ&0``%.O241!
M5'C:[%UG8!35VG[.S&S?[&YZ[STD)(30(?1F0Q05 ...