Re: getpwuid checking
- From: "Andrew V. Samoilov" <andrew email zp ua>
- To: mc-devel gnome org
- Cc: Leonard den Ottolander <leonard den ottolander nl>
- Subject: Re: getpwuid checking
- Date: Thu, 23 Sep 2004 15:43:18 +0300 (EEST)
Hello Leonard,
>
> 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?
There is NULL derefference getpwuid(x)->pw_shell.
This patch is valuable.
--
Regards,
Andrew V. Samoilov.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]