Edit report at https://bugs.php.net/bug.php?id=61430&edit=1
ID: 61430 Updated by: il...@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