|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-12-30 04:17 UTC] pierrick@php.net
-Summary: Buffer overflow if php_strip_whitespace has heredoc
+Summary: Segfault if php_strip_whitespace has heredoc
[2012-12-30 04:17 UTC] pierrick@php.net
[2012-12-30 04:17 UTC] pierrick@php.net
-Status: Open
+Status: Closed
[2012-12-30 10:49 UTC] igor at wiedler dot ch
[2013-01-12 16:39 UTC] derick@php.net
[2013-11-17 09:32 UTC] laruence@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 07:00:01 2025 UTC |
Description: ------------ When a filename that contains a heredoc is passed to php_strip_whitespace, it results in a segmentation fault / buffer overflow. Here is the output from --enable-debug: [Sat Dec 29 22:22:09 2012] Script: '/Users/igor/test.php' --------------------------------------- /Users/igor/src/php-src/Zend/zend_highlight.c(189) : Block 0x1036a66d8 status: Beginning: Cached Freed (invalid) Start: OK End: OK --------------------------------------- Test script: --------------- <?php $contents = php_strip_whitespace(__FILE__); return <<<A a A;