#22 lib/user.c:694: dereference: Dereferencing a null pointer "values".
Closed 2 years ago Opened 2 years ago by jhrozek.

We should probably check the "values" pointer for NULL to silence coverity:

#  692|                 attr = (const char *)attributes->data;
#  693|                 values = lu_ent_get_current(current, attr);
#  694|->               for (j = 0; j < values->n_values; j++) {
#  695|                     value = g_value_array_get_nth(values,
#  696|                                       j);

Also:

#  706|                 attr = (const char *)attributes->data;
#  707|                 values = lu_ent_get(current, attr);
#  708|->               for (j = 0; j < values->n_values; j++) {
#  709|                     value = g_value_array_get_nth(values,
#  710|                                       j);

Metadata Update from @jhrozek:
- Issue assigned to jhrozek

2 years ago

Metadata Update from @jhrozek:
- Issue status updated to: Closed (was: Open)

2 years ago

Login to comment on this ticket.

Metadata