php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67248 imageaffinematrixget missing check of parameters
Submitted: 2014-05-12 01:05 UTC Modified: -
From: stas@php.net Assigned:
Status: Closed Package: *General Issues
PHP Version: 5.5.12 OS: *
Private report: No CVE-ID: None
 [2014-05-12 01:05 UTC] 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)


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-05-12 01:58 UTC] stas@php.net
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)
 [2014-05-12 01:58 UTC] stas@php.net
-Status: Open +Status: Closed
 [2014-05-12 09:03 UTC] ab@php.net
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)
 [2014-05-13 11:25 UTC] dmitry@php.net
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)
 [2014-05-14 07:57 UTC] tyrael@php.net
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)
 [2014-05-26 06:32 UTC] ab@php.net
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)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 12:01:31 2024 UTC