getpwuid checking

Leonard den Ottolander leonard at den.ottolander.nl
Thu Sep 23 11:35:20 UTC 2004


Hello Oskar,

On Thu, 2004-09-23 at 12:48, Oskar Liljeblad wrote:
> This patch fixes two potential segfault bugs because the result of
> getpwuid is not checked.

A similar fix for the second hunk is already in CVS.

Regarding the first hunk, will g_strdup actually cause a segfault when
the result of getpwuid() is NULL?

Leonard.

-- 
mount -t life -o ro /dev/dna /genetic/research





More information about the mc-devel mailing list