Bug #72133 [Opn->Csd]: php_posix_group_to_array crashes if gr_passwd is NULL
| From: | laruence@php.net | Date: | Sun, 01 May 2016 03:05:03 +0000 |
| Subject: | Bug #72133 [Opn->Csd]: php_posix_group_to_array crashes if gr_passwd is NULL | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-200849@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=72133&edit=1
ID: 72133
Updated by: laruence@php.net
Reported by: esminis at esminis dot lt
Summary: php_posix_group_to_array crashes if gr_passwd is
NULL
-Status: Open
+Status: Closed
Type: Bug
Package: POSIX related
Operating System: Linux
PHP Version: 7.0.6
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of laruence@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=895337ddbdeb322da3c583ef7ea03b45d0c8282c
Log: Fixed bug #72133 (php_posix_group_to_array crashes if gr_passwd is NULL)
Previous Comments:
------------------------------------------------------------------------
[2016-04-30 18:08:38] esminis at esminis dot lt
Description:
------------
php_posix_group_to_array crashes if g->gr_passwd is NULL
Easy fix would be:
if (g->gr_passwd == NULL) {
add_assoc_null(array_group, "passwd");
} else {
add_assoc_string(array_group, "passwd", g->gr_passwd);
}
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=72133&edit=1