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);
| analyzer-version-clippy | 1.90.0 |
| analyzer-version-cppcheck | 2.18.3 |
| analyzer-version-gcc | 15.2.1 |
| analyzer-version-gcc-analyzer | 16.0.0 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-133.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch |
| mock-config | fedora-rawhide-gcc-latest-x86_64 |
| project-name | python-ldap-3.4.5-1.fc44 |
| store-results-to | /tmp/tmp30hdzxnn/python-ldap-3.4.5-1.fc44.tar.xz |
| time-created | 2025-10-28 20:02:03 |
| time-finished | 2025-10-28 20:03:29 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmp30hdzxnn/python-ldap-3.4.5-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmp30hdzxnn/python-ldap-3.4.5-1.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251027.143044.ge6b947b-1.el9 |