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

==12672== Invalid write of size 1
==12672==    at 0x1272EC1: phpdbg_do_run (phpdbg_prompt.c:907)
==12672==    by 0x129C448: phpdbg_internal_stack_execute (phpdbg_cmd.c:680)
==12672==    by 0x129C867: phpdbg_stack_execute (phpdbg_cmd.c:733)
==12672==    by 0x127766D: phpdbg_interactive (phpdbg_prompt.c:1634)
==12672==    by 0x1263460: main (phpdbg.c:2005)
==12672==  Address 0x15c78751 is 0 bytes after a block of size 1 alloc'd
==12672==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==12672==    by 0xFAC6AF: __zend_malloc (zend_alloc.c:2838)
==12672==    by 0xFAADB7: _emalloc (zend_alloc.c:2429)
==12672==    by 0x1272833: phpdbg_do_run (phpdbg_prompt.c:844)
==12672==    by 0x129C448: phpdbg_internal_stack_execute (phpdbg_cmd.c:680)
==12672==    by 0x129C867: phpdbg_stack_execute (phpdbg_cmd.c:733)
==12672==    by 0x127766D: phpdbg_interactive (phpdbg_prompt.c:1634)
==12672==    by 0x1263460: main (phpdbg.c:2005)
==12672== 
==12672== Conditional jump or move depends on uninitialised value(s)
==12672==    at 0x4C2A868: __strlen_sse42 (vg_replace_strmem.c:462)
==12672==    by 0xF27314: php_build_argv (php_variables.c:569)
==12672==    by 0x1273095: phpdbg_do_run (phpdbg_prompt.c:924)
==12672==    by 0x129C448: phpdbg_internal_stack_execute (phpdbg_cmd.c:680)
==12672==    by 0x129C867: phpdbg_stack_execute (phpdbg_cmd.c:733)
==12672==    by 0x127766D: phpdbg_interactive (phpdbg_prompt.c:1634)
==12672==    by 0x1263460: main (phpdbg.c:2005)
==12672== 

 

Generated at Sun, 15 Sep 2019 23:58:39 +0000 (36 hours ago)

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