python-ldap-3.4.5-2.fc44

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
python_ldap-3.4.5/Modules/LDAPObject.c:637:8: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(PyBytes_AsString(PyObject_CallMethod(SASLObject, "callback", "isss", *interact.id, *interact.challenge, *interact.prompt, *interact.defresult)))’
python_ldap-3.4.5/Modules/LDAPObject.c:659:1: enter_function: entry to ‘py_ldap_sasl_interaction’
python_ldap-3.4.5/Modules/LDAPObject.c:666:12: branch_true: following ‘true’ branch...
python_ldap-3.4.5/Modules/LDAPObject.c:669:14: branch_true: ...to here
python_ldap-3.4.5/Modules/LDAPObject.c:669:14: call_function: calling ‘interaction’ from ‘py_ldap_sasl_interaction’
python_ldap-3.4.5/Modules/LDAPObject.c:669:14: return_function: returning to ‘py_ldap_sasl_interaction’ from ‘interaction’
python_ldap-3.4.5/Modules/LDAPObject.c:670:12: branch_false: following ‘false’ branch...
python_ldap-3.4.5/Modules/LDAPObject.c:672:9: branch_false: ...to here
python_ldap-3.4.5/Modules/LDAPObject.c:666:12: branch_true: following ‘true’ branch...
python_ldap-3.4.5/Modules/LDAPObject.c:669:14: branch_true: ...to here
python_ldap-3.4.5/Modules/LDAPObject.c:669:14: call_function: calling ‘interaction’ from ‘py_ldap_sasl_interaction’
#  635|        */
#  636|       interact->result = strdup(c_result);
#  637|->     if (interact->result == NULL)
#  638|           return LDAP_OPERATIONS_ERROR;
#  639|       interact->len = strlen(c_result);

Scan Properties

analyzer-version-clippy1.97.1
analyzer-version-cppcheck2.21.1
analyzer-version-gcc16.1.1
analyzer-version-gcc-analyzer16.1.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-37.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namepython-ldap-3.4.5-2.fc44
store-results-to/tmp/tmpt64gqu8e/python-ldap-3.4.5-2.fc44.tar.xz
time-created2026-08-03 19:57:23
time-finished2026-08-03 19:59:34
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpt64gqu8e/python-ldap-3.4.5-2.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpt64gqu8e/python-ldap-3.4.5-2.fc44.src.rpm'
tool-versioncsmock-3.8.7.20260803.142340.gb75b18e-1.el9