Bug #62205 [Asn]: php-fpm segfaults (null passed to strstr)
| From: | laruence@php.net | Date: | Fri, 01 Jun 2012 08:46:56 +0000 |
| Subject: | Bug #62205 [Asn]: php-fpm segfaults (null passed to strstr) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-170968@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=62205&edit=1
ID: 62205
Updated by: laruence@php.net
Reported by: alp at rsu dot ru
Summary: php-fpm segfaults (null passed to strstr)
Status: Assigned
Type: Bug
Package: Unknown/Other Function
Operating System: ubuntu linux 12.04
PHP Version: 5.4Git-2012-06-01 (Git)
Assigned To: fat
Block user comment: N
Private report: N
New Comment:
the patch looks good, but it is better assign this to fat, and ask for his
reviewing :) thanks
Previous Comments:
------------------------------------------------------------------------
[2012-06-01 08:35:58] alp at rsu dot ru
Description:
------------
In sapi/fpm/fpm/fpm_status.c NULL can be passed to strstr, which leads to php-fpm crash with:
(gdb) bt
#0 __strstr_sse42 (s1=0x0, s2=<optimized out>) at ../sysdeps/x86_64/multiarch/strstr.c:175
#1 0x0000000000736d13 in fpm_status_handle_request () at
/home/alp/build/php5-5.3.10/sapi/fpm/fpm/fpm_status.c:128
#2 0x000000000042b4ab in main (argc=11237155, argv=0x0) at
/home/alp/build/php5-5.3.10/sapi/fpm/fpm/fpm_main.c:1809
The crash happens when monitoring software access php-fpm status page.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=62205&edit=1