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: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: esminis at esminis dot lt
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 12:01:29 2024 UTC