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

==25896== Invalid write of size 1
==25896==    at 0x13DE124: phpdbg_do_run (phpdbg_prompt.c:904)
==25896==    by 0x14078D2: phpdbg_internal_stack_execute (phpdbg_cmd.c:680)
==25896==    by 0x1407CF1: phpdbg_stack_execute (phpdbg_cmd.c:733)
==25896==    by 0x13E28F7: phpdbg_interactive (phpdbg_prompt.c:1631)
==25896==    by 0x13CE4FE: main (phpdbg.c:1999)
==25896==  Address 0x14f1f3a1 is 0 bytes after a block of size 1 alloc'd
==25896==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==25896==    by 0x1110DA1: __zend_malloc (zend_alloc.c:2900)
==25896==    by 0x110CE19: _emalloc (zend_alloc.c:2494)
==25896==    by 0x13DDA96: phpdbg_do_run (phpdbg_prompt.c:841)
==25896==    by 0x14078D2: phpdbg_internal_stack_execute (phpdbg_cmd.c:680)
==25896==    by 0x1407CF1: phpdbg_stack_execute (phpdbg_cmd.c:733)
==25896==    by 0x13E28F7: phpdbg_interactive (phpdbg_prompt.c:1631)
==25896==    by 0x13CE4FE: main (phpdbg.c:1999)
==25896== 
==25896== Conditional jump or move depends on uninitialised value(s)
==25896==    at 0x4C2A868: __strlen_sse42 (vg_replace_strmem.c:462)
==25896==    by 0x108A845: php_build_argv (php_variables.c:599)
==25896==    by 0x13DE2F8: phpdbg_do_run (phpdbg_prompt.c:921)
==25896==    by 0x14078D2: phpdbg_internal_stack_execute (phpdbg_cmd.c:680)
==25896==    by 0x1407CF1: phpdbg_stack_execute (phpdbg_cmd.c:733)
==25896==    by 0x13E28F7: phpdbg_interactive (phpdbg_prompt.c:1631)
==25896==    by 0x13CE4FE: main (phpdbg.c:1999)
==25896== 

 

Generated at Sat, 15 Sep 2018 00:36:54 +0000 (7 days ago)

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