PHP  
 PHP_HEAD
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

Valgrind Report for sapi/phpdbg/tests/bug73794.phpt ('Bug #73794 (Crash (out of memory) when using run and # command separator)')

Script

1: <?php
2:
echo $argv[1];
3:
?>
4:

Report

==28116== Invalid write of size 1
==28116==    at 0x139FCCD: phpdbg_do_run (phpdbg_prompt.c:904)
==28116==    by 0x13C9A8F: phpdbg_internal_stack_execute (phpdbg_cmd.c:680)
==28116==    by 0x13C9EAE: phpdbg_stack_execute (phpdbg_cmd.c:733)
==28116==    by 0x13A44B9: phpdbg_interactive (phpdbg_prompt.c:1631)
==28116==    by 0x13900E6: main (phpdbg.c:2008)
==28116==  Address 0x14efcc51 is 0 bytes after a block of size 1 alloc'd
==28116==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==28116==    by 0x10CED2C: __zend_malloc (zend_alloc.c:2898)
==28116==    by 0x10CAE8A: _emalloc (zend_alloc.c:2492)
==28116==    by 0x139F63F: phpdbg_do_run (phpdbg_prompt.c:841)
==28116==    by 0x13C9A8F: phpdbg_internal_stack_execute (phpdbg_cmd.c:680)
==28116==    by 0x13C9EAE: phpdbg_stack_execute (phpdbg_cmd.c:733)
==28116==    by 0x13A44B9: phpdbg_interactive (phpdbg_prompt.c:1631)
==28116==    by 0x13900E6: main (phpdbg.c:2008)
==28116== 
==28116== Conditional jump or move depends on uninitialised value(s)
==28116==    at 0x4C2A868: __strlen_sse42 (vg_replace_strmem.c:462)
==28116==    by 0x104A22F: php_build_argv (php_variables.c:601)
==28116==    by 0x139FEA1: phpdbg_do_run (phpdbg_prompt.c:921)
==28116==    by 0x13C9A8F: phpdbg_internal_stack_execute (phpdbg_cmd.c:680)
==28116==    by 0x13C9EAE: phpdbg_stack_execute (phpdbg_cmd.c:733)
==28116==    by 0x13A44B9: phpdbg_interactive (phpdbg_prompt.c:1631)
==28116==    by 0x13900E6: main (phpdbg.c:2008)
==28116== 

 

Generated at Wed, 23 May 2018 02:31:34 +0000 (3 days ago)

Copyright © 2005-2018 The PHP Group
All rights reserved.