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

==16749== Invalid write of size 1
==16749==    at 0x124E3D9: phpdbg_do_run (phpdbg_prompt.c:907)
==16749==    by 0x1277CEF: phpdbg_internal_stack_execute (phpdbg_cmd.c:680)
==16749==    by 0x127810E: phpdbg_stack_execute (phpdbg_cmd.c:733)
==16749==    by 0x1252B85: phpdbg_interactive (phpdbg_prompt.c:1634)
==16749==    by 0x123E978: main (phpdbg.c:2005)
==16749==  Address 0x15083111 is 0 bytes after a block of size 1 alloc'd
==16749==    at 0x4C291FA: malloc (vg_replace_malloc.c:298)
==16749==    by 0xF8755E: __zend_malloc (zend_alloc.c:2838)
==16749==    by 0xF85C66: _emalloc (zend_alloc.c:2429)
==16749==    by 0x124DD4B: phpdbg_do_run (phpdbg_prompt.c:844)
==16749==    by 0x1277CEF: phpdbg_internal_stack_execute (phpdbg_cmd.c:680)
==16749==    by 0x127810E: phpdbg_stack_execute (phpdbg_cmd.c:733)
==16749==    by 0x1252B85: phpdbg_interactive (phpdbg_prompt.c:1634)
==16749==    by 0x123E978: main (phpdbg.c:2005)
==16749== 
==16749== Conditional jump or move depends on uninitialised value(s)
==16749==    at 0x4C2A868: __strlen_sse42 (vg_replace_strmem.c:462)
==16749==    by 0xF02523: php_build_argv (php_variables.c:569)
==16749==    by 0x124E5AD: phpdbg_do_run (phpdbg_prompt.c:924)
==16749==    by 0x1277CEF: phpdbg_internal_stack_execute (phpdbg_cmd.c:680)
==16749==    by 0x127810E: phpdbg_stack_execute (phpdbg_cmd.c:733)
==16749==    by 0x1252B85: phpdbg_interactive (phpdbg_prompt.c:1634)
==16749==    by 0x123E978: main (phpdbg.c:2005)
==16749== 

 

Generated at Sat, 22 Sep 2018 10:27:05 +0000 (14 hours ago)

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