php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #72133 php_posix_group_to_array crashes if gr_passwd is NULL
Submitted: 2016-04-30 18:08 UTC Modified: -
From: esminis at esminis dot lt Assigned:
Status: Closed Package: POSIX related
PHP Version: 7.0.6 OS: Linux
Private report: No CVE-ID:
 [2016-04-30 18:08 UTC] 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);
}


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-05-01 03:05 UTC] laruence@php.net
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)
 [2016-05-01 03:05 UTC] laruence@php.net
-Status: Open +Status: Closed
 [2016-07-20 11:31 UTC] davey@php.net
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)
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Tue Feb 21 18:01:40 2017 UTC