Bug #67248 [NEW]: imageaffinematrixget missing check of parameters

From: Date: Mon, 12 May 2014 01:05:36 +0000
Subject: Bug #67248 [NEW]: imageaffinematrixget missing check of parameters
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-185768@lists.php.net to get a copy of this message
From: stas Operating system: * PHP version: 5.5.12 Package: *General Issues Bug Type: Bug Bug description:imageaffinematrixget missing check of parameters Description: ------------ imageaffinematrixget lists $options as optional parameter, however it is never initialized and never checked when used. Test script: --------------- imageaffinematrixget(3); Expected result: ---------------- Warning about missing parameter Actual result: -------------- ==3510== Use of uninitialised value of size 8 ==3510== at 0x870ABE: convert_to_double (zend_operators.c:433) ==3510== by 0x58D664: zif_imageaffinematrixget (gd.c:5330) ==3510== by 0x8F9B52: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:550) ==3510== by 0x8EB3EF: execute_ex (zend_vm_execute.h:363) ==3510== by 0x8695F9: zend_eval_stringl (zend_execute_API.c:1187) ==3510== by 0x8696D8: zend_eval_stringl_ex (zend_execute_API.c:1234) ==3510== by 0x9279E2: do_cli (php_cli.c:1034) ==3510== by 0x928427: main (php_cli.c:1378) -- Edit bug report at https://bugs.php.net/bug.php?id=67248&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=67248&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=67248&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=67248&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=67248&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=67248&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=67248&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=67248&r=needscript Try newer version: https://bugs.php.net/fix.php?id=67248&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=67248&r=support Expected behavior: https://bugs.php.net/fix.php?id=67248&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=67248&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=67248&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=67248&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=67248&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=67248&r=dst IIS Stability: https://bugs.php.net/fix.php?id=67248&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=67248&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=67248&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=67248&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=67248&r=mysqlcfg

« previous php.bugs (#185768) next »