Possible NULL-pointer dereference in _g_file_attribute_value_as_string
- From: Nikolai Weibull <now bitwi se>
- To: "Gtk+ Developers" <gtk-devel-list gnome org>
- Subject: Possible NULL-pointer dereference in _g_file_attribute_value_as_string
- Date: Fri, 9 Jul 2010 14:28:17 +0200
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?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]