Possible NULL-pointer dereference in _g_file_attribute_value_as_string



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]