Bug #64302 [Opn]: Invalid read in ext/phar/tests/bug52013.phpt
Edit report at https://bugs.php.net/bug.php?id=64302&edit=1
ID: 64302
Updated by: laruence@php.net
Reported by: ab@php.net
Summary: Invalid read in ext/phar/tests/bug52013.phpt
Status: Open
Type: Bug
Package: PHAR related
Operating System: all
PHP Version: 5.5Git-2013-02-26 (Git)
Block user comment: N
Private report: N
New Comment:
same in 5.3
Previous Comments:
------------------------------------------------------------------------
[2013-02-26 10:24:21] ab@php.net
Description:
------------
Running the mentioned test with valgrind is to see
Expected result:
----------------
no valgrind warnings
Actual result:
--------------
==22761== Syscall param write(buf) points to uninitialised byte(s)
==22761== at 0x5924EB3: __write_nocancel (syscall-template.S:82)
==22761== by 0x85852E8: _php_stream_filter_flush (filter.c:504)
==22761== by 0x831BE2F: phar_flush (phar.c:2903)
==22761== by 0x832B1DE: zim_Phar_compressFiles (phar_object.c:3436)
==22761== by 0x863FFA4: zend_do_fcall_common_helper_SPEC
(zend_vm_execute.h:542)
==22761== by 0x8641374: ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER
(zend_vm_execute.h:674)
==22761== by 0x863E004: execute_ex (zend_vm_execute.h:356)
==22761== by 0x863E9BA: zend_execute (zend_vm_execute.h:381)
==22761== by 0x85FF017: zend_execute_scripts (zend.c:1316)
==22761== by 0x85615FB: php_execute_script (main.c:2479)
==22761== by 0x875C33C: do_cli (php_cli.c:988)
==22761== by 0x875D785: main (php_cli.c:1364)
==22761== Address 0x6187d1b is 11 bytes inside a block of size 15 alloc'd
==22761== at 0x4024F20: malloc (vg_replace_malloc.c:236)
==22761== by 0x85C3E62: _emalloc (zend_alloc.c:2427)
==22761== by 0x85C4356: _estrndup (zend_alloc.c:2641)
==22761== by 0x81C613C: php_zlib_deflate_filter (zlib_filter.c:250)
==22761== by 0x8585094: _php_stream_filter_flush (filter.c:452)
==22761== by 0x831BE2F: phar_flush (phar.c:2903)
==22761== by 0x832B1DE: zim_Phar_compressFiles (phar_object.c:3436)
==22761== by 0x863FFA4: zend_do_fcall_common_helper_SPEC
(zend_vm_execute.h:542)
==22761== by 0x8641374: ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER
(zend_vm_execute.h:674)
==22761== by 0x863E004: execute_ex (zend_vm_execute.h:356)
==22761== by 0x863E9BA: zend_execute (zend_vm_execute.h:381)
==22761== by 0x85FF017: zend_execute_scripts (zend.c:1316)
==22761==
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=64302&edit=1
Thread (3 messages)