Bug #4009: getpwnam crashes if parsing a passwd entry with null gecos

From: Date: Mon, 03 Apr 2000 04:45:24 +0000
Subject: Bug #4009: getpwnam crashes if parsing a passwd entry with null gecos
Groups: php.dev 
Request: Send a blank email to php-dev+get-17540@lists.php.net to get a copy of this message
From: kiko@radiumsystems.com.br Operating system: Linux-2.2.14 PHP version: 3.0.15 PHP Bug Type: Reproduceable crash Bug description: getpwnam crashes if parsing a passwd entry with null gecos A simple <? var_dump(posix_getpwnam("user")) ?> will core dump if user has a null gecos (possibly, any null value). As in: user:x:500:100::/home/user:/bin/bash The fix needs to take into account nulls comming in via getpwnam and appropriately blank the fields. I can't fix this right now, but it should be an easy one.

« previous php.dev (#17540) next »