Re: [gdm-list] Security?
- From: "Ray Strode" <halfline gmail com>
- To: "Mike Oliver" <Mike Oliver sun com>
- Cc: gdm-list gnome org
- Subject: Re: [gdm-list] Security?
- Date: Fri, 30 Nov 2007 20:36:01 -0500
Hi,
> > In _read_bytes(), the variable 'bytes_left_to_read' is never
> > initialised. You need something like:
> >
> > - size_t bytes_left_to_read;
> > + size_t bytes_left_to_read = number_of_bytes;
>
> Also, gdm_generate_random_bytes() leaks a file descriptor on
> every successful open() of /dev/urandom, which on a working
> system will be every time the function is called.
Thanks for the review. I've committed fixes for those issues.
--Ray
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]