PHP  
 PHP_7_3
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

==25953== Invalid write of size 1
==25953==    at 0x13F45CE: phpdbg_do_run (phpdbg_prompt.c:904)
==25953==    by 0x141DD11: phpdbg_internal_stack_execute (phpdbg_cmd.c:680)
==25953==    by 0x141E130: phpdbg_stack_execute (phpdbg_cmd.c:733)
==25953==    by 0x13F8D5C: phpdbg_interactive (phpdbg_prompt.c:1635)
==25953==    by 0x13E49A8: main (phpdbg.c:1999)
==25953==  Address 0x15d3e031 is 0 bytes after a block of size 1 alloc'd
==25953==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==25953==    by 0x1125755: __zend_malloc (zend_alloc.c:2909)
==25953==    by 0x1121770: _emalloc (zend_alloc.c:2502)
==25953==    by 0x13F3F40: phpdbg_do_run (phpdbg_prompt.c:841)
==25953==    by 0x141DD11: phpdbg_internal_stack_execute (phpdbg_cmd.c:680)
==25953==    by 0x141E130: phpdbg_stack_execute (phpdbg_cmd.c:733)
==25953==    by 0x13F8D5C: phpdbg_interactive (phpdbg_prompt.c:1635)
==25953==    by 0x13E49A8: main (phpdbg.c:1999)
==25953== 
==25953== Conditional jump or move depends on uninitialised value(s)
==25953==    at 0x4C2A868: __strlen_sse42 (vg_replace_strmem.c:462)
==25953==    by 0x109D89E: php_build_argv (php_variables.c:624)
==25953==    by 0x13F47A2: phpdbg_do_run (phpdbg_prompt.c:921)
==25953==    by 0x141DD11: phpdbg_internal_stack_execute (phpdbg_cmd.c:680)
==25953==    by 0x141E130: phpdbg_stack_execute (phpdbg_cmd.c:733)
==25953==    by 0x13F8D5C: phpdbg_interactive (phpdbg_prompt.c:1635)
==25953==    by 0x13E49A8: main (phpdbg.c:1999)
==25953== 

 

Generated at Thu, 09 Sep 2021 23:07:45 +0000 (6 days ago)

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