[prev in list] [next in list] [prev in thread] [next in thread]
List: gtk-devel
Subject: Re: Possible NULL-pointer dereference in
From: Matthias Clasen <matthias.clasen () gmail ! com>
Date: 2010-07-09 13:16:25
Message-ID: AANLkTinN7FvZz5ZjYFRe7RcIcY2n5yyFmfHAod6wdVwq () mail ! gmail ! com
[Download RAW message or body]
On Fri, Jul 9, 2010 at 8:28 AM, Nikolai Weibull <now@bitwi.se> wrote:
> Hi!
>
> Since _g_file_attribute_value_set_from_pointer uses g_strdupv,
> value->u.stringv may be NULL. _as_string does a
>
> for (i = 0; attr->u.stringv[i] != NULL; i++)
>
> without first checking that attr->u.stringv isn’t NULL, a potential
> NULL-pointer dereference.
>
> Correct?
Technically correct. I think there is a general assumption that
attribute values are not NULL though. u.string being NULL would be bad
news e.g. for the byte string case, as well.
_______________________________________________
gtk-devel-list mailing list
gtk-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic