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

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

 

Generated at Fri, 03 Dec 2021 18:13:45 +0000 (3 days ago)

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