Task #1833 - python-ldap-3.4.4-3.fc40/scan-results.err

back to task #1833
download
Error: GCC_ANALYZER_WARNING (CWE-401):
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:
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);