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

==27160== Invalid write of size 1
==27160==    at 0x136BBDE: phpdbg_do_run (phpdbg_prompt.c:904)
==27160==    by 0x1394D7A: phpdbg_internal_stack_execute (phpdbg_cmd.c:680)
==27160==    by 0x1395185: phpdbg_stack_execute (phpdbg_cmd.c:733)
==27160==    by 0x13703D7: phpdbg_interactive (phpdbg_prompt.c:1631)
==27160==    by 0x135C295: main (phpdbg.c:2003)
==27160==  Address 0x14ecfea1 is 0 bytes after a block of size 1 alloc'd
==27160==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==27160==    by 0x10A0A4C: __zend_malloc (zend_alloc.c:2886)
==27160==    by 0x109C9BE: _emalloc (zend_alloc.c:2480)
==27160==    by 0x136B56A: phpdbg_do_run (phpdbg_prompt.c:841)
==27160==    by 0x1394D7A: phpdbg_internal_stack_execute (phpdbg_cmd.c:680)
==27160==    by 0x1395185: phpdbg_stack_execute (phpdbg_cmd.c:733)
==27160==    by 0x13703D7: phpdbg_interactive (phpdbg_prompt.c:1631)
==27160==    by 0x135C295: main (phpdbg.c:2003)
==27160== 
==27160== Conditional jump or move depends on uninitialised value(s)
==27160==    at 0x4C2A868: __strlen_sse42 (vg_replace_strmem.c:462)
==27160==    by 0x10135F0: php_build_argv (php_variables.c:601)
==27160==    by 0x136BDB2: phpdbg_do_run (phpdbg_prompt.c:921)
==27160==    by 0x1394D7A: phpdbg_internal_stack_execute (phpdbg_cmd.c:680)
==27160==    by 0x1395185: phpdbg_stack_execute (phpdbg_cmd.c:733)
==27160==    by 0x13703D7: phpdbg_interactive (phpdbg_prompt.c:1631)
==27160==    by 0x135C295: main (phpdbg.c:2003)
==27160== 

 

Generated at Fri, 16 Feb 2018 06:57:12 +0000 (5 days ago)

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