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

==5767== Invalid write of size 1
==5767==    at 0x13AE5AC: phpdbg_do_run (phpdbg_prompt.c:904)
==5767==    by 0x13D7D51: phpdbg_internal_stack_execute (phpdbg_cmd.c:680)
==5767==    by 0x13D8170: phpdbg_stack_execute (phpdbg_cmd.c:733)
==5767==    by 0x13B2D7F: phpdbg_interactive (phpdbg_prompt.c:1631)
==5767==    by 0x139E969: main (phpdbg.c:2002)
==5767==  Address 0x14f0e261 is 0 bytes after a block of size 1 alloc'd
==5767==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==5767==    by 0x10DE499: __zend_malloc (zend_alloc.c:2898)
==5767==    by 0x10DA511: _emalloc (zend_alloc.c:2492)
==5767==    by 0x13ADF1E: phpdbg_do_run (phpdbg_prompt.c:841)
==5767==    by 0x13D7D51: phpdbg_internal_stack_execute (phpdbg_cmd.c:680)
==5767==    by 0x13D8170: phpdbg_stack_execute (phpdbg_cmd.c:733)
==5767==    by 0x13B2D7F: phpdbg_interactive (phpdbg_prompt.c:1631)
==5767==    by 0x139E969: main (phpdbg.c:2002)
==5767== 
==5767== Conditional jump or move depends on uninitialised value(s)
==5767==    at 0x4C2A868: __strlen_sse42 (vg_replace_strmem.c:462)
==5767==    by 0x105856B: php_build_argv (php_variables.c:601)
==5767==    by 0x13AE780: phpdbg_do_run (phpdbg_prompt.c:921)
==5767==    by 0x13D7D51: phpdbg_internal_stack_execute (phpdbg_cmd.c:680)
==5767==    by 0x13D8170: phpdbg_stack_execute (phpdbg_cmd.c:733)
==5767==    by 0x13B2D7F: phpdbg_interactive (phpdbg_prompt.c:1631)
==5767==    by 0x139E969: main (phpdbg.c:2002)
==5767== 

 

Generated at Thu, 19 Jul 2018 09:51:32 +0000 (7 hours ago)

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