Bug #69024 [NEW]: imagescale segfault with palette based image

From: Date: Wed, 11 Feb 2015 01:33:21 +0000
Subject: Bug #69024 [NEW]: imagescale segfault with palette based image
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-190573@lists.php.net to get a copy of this message
From: gmblar+php at gmail dot com Operating system: MacOSX 10.10.2 PHP version: 5.6.5 Package: GD related Bug Type: Bug Bug description:imagescale segfault with palette based image Description: ------------ imagescale segfault with palette based image. Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000 0x0000000100f7843f in gdImageScaleTwoPass () (gdb) bt #0 0x0000000100f7843f in gdImageScaleTwoPass () #1 0x0000000100f5e3ba in zif_imagescale () #2 0x0000000100ac4bb0 in xdebug_execute_internal () #3 0x000000010023fe24 in zend_do_fcall_common_helper_SPEC () #4 0x00000001001fd5f6 in execute_ex () #5 0x0000000100ac48b9 in xdebug_execute_ex () #6 0x00000001001d64b2 in zend_execute_scripts () #7 0x000000010017ec27 in php_execute_script () #8 0x000000010025f6be in do_cli () #9 0x000000010025e354 in main () Test script: --------------- <?php $image = imagecreate(256, 256); imagescale($image, 32, 32, IMG_BICUBIC); Expected result: ---------------- Nothing Actual result: -------------- Segmentation fault: 11 -- Edit bug report at https://bugs.php.net/bug.php?id=69024&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=69024&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=69024&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=69024&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=69024&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=69024&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=69024&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=69024&r=needscript Try newer version: https://bugs.php.net/fix.php?id=69024&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=69024&r=support Expected behavior: https://bugs.php.net/fix.php?id=69024&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=69024&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=69024&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=69024&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69024&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=69024&r=dst IIS Stability: https://bugs.php.net/fix.php?id=69024&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=69024&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=69024&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=69024&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=69024&r=mysqlcfg

« previous php.bugs (#190573) next »