#934 Potential NULL-dereference in pyhbac.c
Closed: Fixed None Opened 12 years ago by sgallagh.

From Coverity scan:

1204    args = Py_BuildValue(sss_py_const_p(char, "Os"), self->name, strgroups);
At conditional (1): "args == NULL" taking the true branch.
CID 10892: Dereference after null check (FORWARD_NULL)Comparing "args" to null implies that "args" might be null.
1205    if (args == NULL) {
1206    }
1207
1208    o = PyUnicode_Format(format, args);
1209    PyMem_Free(strgroups);
At conditional (2): "--format->ob_refcnt != 0L" taking the true branch.
1210    Py_DECREF(format);
Dereferencing null variable "args".
1211    Py_DECREF(args);
1212    return o;
1213}

Fields changed

patch: 0 => 1
status: new => assigned

master: d6354aa

resolution: => fixed
status: assigned => closed

Backported to sssd-1-5

f145392

milestone: SSSD 1.6.0 => SSSD 1.5.12

Fields changed

rhbz: => 0

Metadata Update from @sgallagh:
- Issue assigned to jhrozek
- Issue set to the milestone: SSSD 1.5.12

7 years ago

SSSD is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in SSSD's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/SSSD/sssd/issues/1976

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Login to comment on this ticket.

Metadata