python-ldap-3.4.4-5.fc41

List of Defects

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
python-ldap-3.4.4-build/python-ldap-3.4.4/Modules/LDAPObject.c: scope_hint: In function ‘interaction’
python-ldap-3.4.4-build/python-ldap-3.4.4/Modules/LDAPObject.c:610:8: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(PyBytes_AsString(PyObject_CallMethod(SASLObject, "callback", "isss", *interact.id, *interact.challenge, *interact.prompt, *interact.defresult)))’
/usr/include/python3.13/Python.h:68: included_from: Included from here.
python-ldap-3.4.4-build/python-ldap-3.4.4/Modules/pythonldap.h:10: included_from: Included from here.
python-ldap-3.4.4-build/python-ldap-3.4.4/Modules/LDAPObject.c:3: included_from: Included from here.
python-ldap-3.4.4-build/python-ldap-3.4.4/Modules/LDAPObject.c:617:5: note: in expansion of macro ‘Py_DECREF’
#  608|        */
#  609|       interact->result = strdup(c_result);
#  610|->     if (interact->result == NULL)
#  611|           return LDAP_OPERATIONS_ERROR;
#  612|       interact->len = strlen(c_result);

Error: CLANG_WARNING: [#def2]
python-ldap-3.4.4-build/python-ldap-3.4.4/Modules/LDAPObject.c:1128:9: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
# 1126|   
# 1127|           LDAP_BEGIN_ALLOW_THREADS(self);
# 1128|->         rc = ldap_parse_result(self->ldap, msg, &result, NULL, NULL, NULL,
# 1129|                                  &serverctrls, 0);
# 1130|           LDAP_END_ALLOW_THREADS(self);

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-117.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namepython-ldap-3.4.4-5.fc41
store-results-to/tmp/tmpn0zcck0j/python-ldap-3.4.4-5.fc41.tar.xz
time-created2024-07-03 17:18:22
time-finished2024-07-03 17:19:17
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpn0zcck0j/python-ldap-3.4.4-5.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpn0zcck0j/python-ldap-3.4.4-5.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9