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

==6510== Invalid write of size 1
==6510==    at 0x1249403: phpdbg_do_run (phpdbg_prompt.c:907)
==6510==    by 0x1271CAE: phpdbg_internal_stack_execute (phpdbg_cmd.c:680)
==6510==    by 0x12720B9: phpdbg_stack_execute (phpdbg_cmd.c:733)
==6510==    by 0x124DBC8: phpdbg_interactive (phpdbg_prompt.c:1634)
==6510==    by 0x1239775: main (phpdbg.c:2000)
==6510==  Address 0x1505b0a1 is 0 bytes after a block of size 1 alloc'd
==6510==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==6510==    by 0xF86D47: __zend_malloc (zend_alloc.c:2838)
==6510==    by 0xF853CA: _emalloc (zend_alloc.c:2429)
==6510==    by 0x1248D8F: phpdbg_do_run (phpdbg_prompt.c:844)
==6510==    by 0x1271CAE: phpdbg_internal_stack_execute (phpdbg_cmd.c:680)
==6510==    by 0x12720B9: phpdbg_stack_execute (phpdbg_cmd.c:733)
==6510==    by 0x124DBC8: phpdbg_interactive (phpdbg_prompt.c:1634)
==6510==    by 0x1239775: main (phpdbg.c:2000)
==6510== 
==6510== Conditional jump or move depends on uninitialised value(s)
==6510==    at 0x4C2A868: __strlen_sse42 (vg_replace_strmem.c:462)
==6510==    by 0xEFFBE5: php_build_argv (php_variables.c:569)
==6510==    by 0x12495D7: phpdbg_do_run (phpdbg_prompt.c:924)
==6510==    by 0x1271CAE: phpdbg_internal_stack_execute (phpdbg_cmd.c:680)
==6510==    by 0x12720B9: phpdbg_stack_execute (phpdbg_cmd.c:733)
==6510==    by 0x124DBC8: phpdbg_interactive (phpdbg_prompt.c:1634)
==6510==    by 0x1239775: main (phpdbg.c:2000)
==6510== 

 

Generated at Fri, 01 Dec 2017 18:56:15 +0000 (11 days ago)

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