Bug #67248 [Opn->Csd]: imageaffinematrixget missing check of parameters

From: Date: Mon, 12 May 2014 01:58:05 +0000
Subject: Bug #67248 [Opn->Csd]: imageaffinematrixget missing check of parameters
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-185770@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=67248&edit=1 ID: 67248 Updated by: stas@php.net Reported by: stas@php.net Summary: imageaffinematrixget missing check of parameters -Status: Open +Status: Closed Type: Bug Package: *General Issues Operating System: * PHP Version: 5.5.12 Block user comment: N Private report: N New Comment: Automatic comment on behalf of stas Revision: http://git.php.net/?p=php-src.git;a=commit;h=291b45afb5d5716ff0d340bd2bcb34731b806eed Log: Fix bug #67248 (imageaffinematrixget missing check of parameters) Previous Comments: ------------------------------------------------------------------------ [2014-05-12 01:05:36] stas@php.net 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 this bug report at https://bugs.php.net/bug.php?id=67248&edit=1

« previous php.bugs (#185770) next »