On 01.06.2008 08:21, Greg Beaver wrote:
cellog          Sun Jun  1 04:21:27 2008 UTC

  Added files:                 (Branch: PHP_5_3)
/php-src/ext/phar/tests/files openssl.phar openssl.phar.pubkey private.pem Modified files:

Valgrind has found several problems in phar_setsignaturealgo2.phpt:

==10190== Use of uninitialised value of size 8
==10190==    at 0x650931: phar_hex_str (phar.c:498)
==10190==    by 0x659706: phar_flush (phar.c:3016)
==10190==    by 0x664B5E: zim_Phar_setSignatureAlgorithm (phar_object.c:2727)
==10190==    by 0x8EDD02: zend_do_fcall_common_helper_SPEC 
(zend_vm_execute.h:194)
==10190==    by 0x8EEB0B: ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER 
(zend_vm_execute.h:295)
==10190==    by 0x8ED5BD: execute (zend_vm_execute.h:96)
==10190==    by 0x8BE54D: zend_execute_scripts (zend.c:1195)
==10190==    by 0x8485D6: php_execute_script (main.c:2080)
==10190==    by 0x95FABD: main (php_cli.c:1139)
==10190==
==10190== Use of uninitialised value of size 8
==10190==    at 0x650965: phar_hex_str (phar.c:499)
==10190==    by 0x659706: phar_flush (phar.c:3016)
==10190==    by 0x664B5E: zim_Phar_setSignatureAlgorithm (phar_object.c:2727)
==10190==    by 0x8EDD02: zend_do_fcall_common_helper_SPEC 
(zend_vm_execute.h:194)
==10190==    by 0x8EEB0B: ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER 
(zend_vm_execute.h:295)
==10190==    by 0x8ED5BD: execute (zend_vm_execute.h:96)
==10190==    by 0x8BE54D: zend_execute_scripts (zend.c:1195)
==10190==    by 0x8485D6: php_execute_script (main.c:2080)
==10190==    by 0x95FABD: main (php_cli.c:1139)
==10190==
==10190== Syscall param write(buf) points to uninitialised byte(s)
==10190==    at 0x8646280: __write_nocancel (in /lib64/libc-2.5.so)
==10190==    by 0x86A8E2: php_stdiop_write (plain_wrapper.c:312)
==10190==    by 0x862C34: _php_stream_write_buffer (streams.c:932)
==10190==    by 0x862F29: _php_stream_write (streams.c:1043)
==10190==    by 0x65972E: phar_flush (phar.c:3017)
==10190==    by 0x664B5E: zim_Phar_setSignatureAlgorithm (phar_object.c:2727)
==10190==    by 0x8EDD02: zend_do_fcall_common_helper_SPEC 
(zend_vm_execute.h:194)
==10190==    by 0x8EEB0B: ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER 
(zend_vm_execute.h:295)
==10190==    by 0x8ED5BD: execute (zend_vm_execute.h:96)
==10190==    by 0x8BE54D: zend_execute_scripts (zend.c:1195)
==10190==    by 0x8485D6: php_execute_script (main.c:2080)
==10190==    by 0x95FABD: main (php_cli.c:1139)
==10190==  Address 0x8ed3af8 is 0 bytes inside a block of size 129 alloc'd
==10190==    at 0x4C22DAB: malloc (vg_replace_malloc.c:207)
==10190==    by 0x89922B: _emalloc (zend_alloc.c:2281)
==10190==    by 0x6595CD: phar_flush (phar.c:2981)
==10190==    by 0x664B5E: zim_Phar_setSignatureAlgorithm (phar_object.c:2727)
==10190==    by 0x8EDD02: zend_do_fcall_common_helper_SPEC 
(zend_vm_execute.h:194)
==10190==    by 0x8EEB0B: ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER 
(zend_vm_execute.h:295)
==10190==    by 0x8ED5BD: execute (zend_vm_execute.h:96)
==10190==    by 0x8BE54D: zend_execute_scripts (zend.c:1195)
==10190==    by 0x8485D6: php_execute_script (main.c:2080)
==10190==    by 0x95FABD: main (php_cli.c:1139)

and test_signaturealgos.phpt:

==10759== Conditional jump or move depends on uninitialised value(s)
==10759==    at 0x89946E: safe_address (zend_alloc.c:2348)
==10759==    by 0x89940F: _safe_emalloc (zend_alloc.c:2374)
==10759==    by 0x6508F1: phar_hex_str (phar.c:495)
==10759==    by 0x65196C: phar_parse_pharfile (phar.c:768)
==10759==    by 0x6550DA: phar_open_from_fp (phar.c:1566)
==10759==    by 0x653E01: phar_create_or_parse_filename (phar.c:1238)
==10759==    by 0x653CAB: phar_open_or_create_filename (phar.c:1207)
==10759==    by 0x65F594: zim_Phar___construct (phar_object.c:1162)
==10759==    by 0x8EDD02: zend_do_fcall_common_helper_SPEC 
(zend_vm_execute.h:194)
==10759==    by 0x8EEB0B: ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER 
(zend_vm_execute.h:295)
==10759==    by 0x8ED5BD: execute (zend_vm_execute.h:96)
==10759==    by 0x8BE54D: zend_execute_scripts (zend.c:1195)
==10759==
==10759== Conditional jump or move depends on uninitialised value(s)
==10759==    at 0x65097B: phar_hex_str (phar.c:497)
==10759==    by 0x65196C: phar_parse_pharfile (phar.c:768)
==10759==    by 0x6550DA: phar_open_from_fp (phar.c:1566)
==10759==    by 0x653E01: phar_create_or_parse_filename (phar.c:1238)
==10759==    by 0x653CAB: phar_open_or_create_filename (phar.c:1207)
==10759==    by 0x65F594: zim_Phar___construct (phar_object.c:1162)
==10759==    by 0x8EDD02: zend_do_fcall_common_helper_SPEC 
(zend_vm_execute.h:194)
==10759==    by 0x8EEB0B: ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER 
(zend_vm_execute.h:295)
==10759==    by 0x8ED5BD: execute (zend_vm_execute.h:96)
==10759==    by 0x8BE54D: zend_execute_scripts (zend.c:1195)
==10759==    by 0x8485D6: php_execute_script (main.c:2080)
==10759==    by 0x95FABD: main (php_cli.c:1139)


--
Wbr, Antony Dovgal

--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to