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

==17411== Invalid write of size 1
==17411==    at 0x124D489: phpdbg_do_run (phpdbg_prompt.c:904)
==17411==    by 0x1276EAE: phpdbg_internal_stack_execute (phpdbg_cmd.c:680)
==17411==    by 0x12772CD: phpdbg_stack_execute (phpdbg_cmd.c:733)
==17411==    by 0x1251C95: phpdbg_interactive (phpdbg_prompt.c:1631)
==17411==    by 0x123D924: main (phpdbg.c:1999)
==17411==  Address 0x15fa9bb1 is 0 bytes after a block of size 1 alloc'd
==17411==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==17411==    by 0xF818CA: __zend_malloc (zend_alloc.c:2893)
==17411==    by 0xF7D8EB: _emalloc (zend_alloc.c:2483)
==17411==    by 0x124CDFB: phpdbg_do_run (phpdbg_prompt.c:841)
==17411==    by 0x1276EAE: phpdbg_internal_stack_execute (phpdbg_cmd.c:680)
==17411==    by 0x12772CD: phpdbg_stack_execute (phpdbg_cmd.c:733)
==17411==    by 0x1251C95: phpdbg_interactive (phpdbg_prompt.c:1631)
==17411==    by 0x123D924: main (phpdbg.c:1999)
==17411== 
==17411== Conditional jump or move depends on uninitialised value(s)
==17411==    at 0x4C2A868: __strlen_sse42 (vg_replace_strmem.c:462)
==17411==    by 0xEFB0A3: php_build_argv (php_variables.c:599)
==17411==    by 0x124D65D: phpdbg_do_run (phpdbg_prompt.c:921)
==17411==    by 0x1276EAE: phpdbg_internal_stack_execute (phpdbg_cmd.c:680)
==17411==    by 0x12772CD: phpdbg_stack_execute (phpdbg_cmd.c:733)
==17411==    by 0x1251C95: phpdbg_interactive (phpdbg_prompt.c:1631)
==17411==    by 0x123D924: main (phpdbg.c:1999)
==17411== 

 

Generated at Tue, 06 Nov 2018 09:43:32 +0000 (11 days ago)

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