|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59126 readimageblob results in a segmentation fault
Submitted: 2010-03-21 02:13 UTC Modified: 2010-03-21 04:23 UTC
From: swernst at gmail dot com Assigned:
Status: Closed Package: gmagick (PECL)
PHP Version: 5.3.1 OS: linux (fedora 12 x64)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: swernst at gmail dot com
New email:
PHP Version: OS:


 [2010-03-21 02:13 UTC] swernst at gmail dot com
When using the readimageblob method to convert a binary string into a valid image resource, the readimageblob method results in a segmentation fault if the second file name argument is not supplied.

Reproduce code:
Given a valid image file stored as a binary string in the variable $data, execution fails on :

$img = Gmagick();

However, execution succeeds on:

$img = Gmagick();
$img->readimageblob($data, 'dummyfilename');

where the only difference is to include a value for the second file name argument.

Expected result:
I expected the binary string stored in $data to be processed by the method as a valid Gmagick image resource for further processing.

Actual result:
Following notice written to apache error logs:

exit signal Segmentation fault (11)


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-03-21 02:17 UTC] swernst at gmail dot com
Oh, more precisely the reproduce code should properly read:

This one fails:

$img = new Gmagick();

and this one succeeds:

$img = new Gmagick();
$img->readimageblob($data, 'dummyfilename');
 [2010-03-21 04:23 UTC]
This bug has been fixed in SVN.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on

In case this was a website problem, the change will show
up on the website in short time.
Thank you for the report, and for helping us make PECL better.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Feb 26 14:01:28 2024 UTC