Bug #61430 [Opn->Csd]: Transposed memset() params in sapi/fpm/fpm/fpm_shm.c
| From: | iliaa@php.net | Date: | Mon, 19 Mar 2012 20:48:34 +0000 |
| Subject: | Bug #61430 [Opn->Csd]: Transposed memset() params in sapi/fpm/fpm/fpm_shm.c | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-168628@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=61430&edit=1
ID: 61430
Updated by: iliaa@php.net
Reported by: michaelhood at gmail dot com
Summary: Transposed memset() params in sapi/fpm/fpm/fpm_shm.c
-Status: Open
+Status: Closed
Type: Bug
Package: FPM related
Operating System: Linux
PHP Version: 5.4.0
-Assigned To:
+Assigned To: iliaa
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in SVN.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
For Windows:
http://windows.php.net/snapshots/
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2012-03-18 21:39:53] michaelhood at gmail dot com
Description:
------------
Affects all versions which bundle PHP-FPM. (>=5.3.3)
In fpm_shm_alloc there is a call to memset() to initialise the segment. The
parameters to memset() are transposed. Since we are [trying to] initialise with 0,
but passing 0 to size_t, it silently fails to do anything.
Patch attached, tested on 5.3.10 and 5.4.0.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=61430&edit=1