dbus-python-1.4.0-7.fc44

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
dbus-python-1.4.0/dbus_bindings/server.c:114:24: warning[-Wanalyzer-malloc-leak]: leak of ‘list’
dbus-python-1.4.0/dbus_bindings/server.c:89:1: enter_function: entry to ‘DBusPyServer_set_auth_mechanisms’
dbus-python-1.4.0/dbus_bindings/server.c:102:8: branch_false: following ‘false’ branch...
dbus-python-1.4.0/dbus_bindings/server.c:105:14: call_function: inlined call to ‘_Py_TYPE’ from ‘DBusPyServer_set_auth_mechanisms’
dbus-python-1.4.0/dbus_bindings/server.c:105:14: call_function: calling ‘PyList_GET_SIZE’ from ‘DBusPyServer_set_auth_mechanisms’
dbus-python-1.4.0/dbus_bindings/server.c:105:14: return_function: returning to ‘DBusPyServer_set_auth_mechanisms’ from ‘PyList_GET_SIZE’
dbus-python-1.4.0/dbus_bindings/server.c:107:12: acquire_memory: allocated here
dbus-python-1.4.0/dbus_bindings/server.c:109:8: branch_false: following ‘false’ branch (when ‘list’ is non-NULL)...
dbus-python-1.4.0/dbus_bindings/server.c:114:24: branch_false: ...to here
dbus-python-1.4.0/dbus_bindings/server.c:114:24: throw: if ‘PyTuple_New’ throws an exception...
dbus-python-1.4.0/dbus_bindings/server.c:114:24: danger: ‘list’ leaks here; was allocated at [(17)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/16)
#  112|       }
#  113|   
#  114|->     if (!(references = PyTuple_New(length)))
#  115|           goto finally;
#  116|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
dbus-python-1.4.0/dbus_bindings/server.c:125:27: warning[-Wanalyzer-malloc-leak]: leak of ‘list’
dbus-python-1.4.0/dbus_bindings/server.c:89:1: enter_function: entry to ‘DBusPyServer_set_auth_mechanisms’
dbus-python-1.4.0/dbus_bindings/server.c:102:8: branch_false: following ‘false’ branch...
dbus-python-1.4.0/dbus_bindings/server.c:105:14: call_function: inlined call to ‘_Py_TYPE’ from ‘DBusPyServer_set_auth_mechanisms’
dbus-python-1.4.0/dbus_bindings/server.c:105:14: call_function: calling ‘PyList_GET_SIZE’ from ‘DBusPyServer_set_auth_mechanisms’
dbus-python-1.4.0/dbus_bindings/server.c:105:14: return_function: returning to ‘DBusPyServer_set_auth_mechanisms’ from ‘PyList_GET_SIZE’
dbus-python-1.4.0/dbus_bindings/server.c:107:12: acquire_memory: allocated here
dbus-python-1.4.0/dbus_bindings/server.c:109:8: branch_false: following ‘false’ branch (when ‘list’ is non-NULL)...
dbus-python-1.4.0/dbus_bindings/server.c:114:24: branch_false: ...to here
dbus-python-1.4.0/dbus_bindings/server.c:114:8: branch_false: following ‘false’ branch...
dbus-python-1.4.0/dbus_bindings/server.c:114:8: branch_false: ...to here
dbus-python-1.4.0/dbus_bindings/server.c:117:17: branch_true: following ‘true’ branch (when ‘length > i’)...
dbus-python-1.4.0/dbus_bindings/server.c:120:14: call_function: inlined call to ‘_Py_TYPE’ from ‘DBusPyServer_set_auth_mechanisms’
dbus-python-1.4.0/dbus_bindings/server.c:120:14: branch_true: following ‘true’ branch...
dbus-python-1.4.0/dbus_bindings/server.c:120:14: branch_true: ...to here
dbus-python-1.4.0/dbus_bindings/server.c:121:12: branch_false: following ‘false’ branch (when ‘am’ is non-NULL)...
dbus-python-1.4.0/dbus_bindings/server.c:124:13: call_function: inlined call to ‘_Py_TYPE’ from ‘DBusPyServer_set_auth_mechanisms’
dbus-python-1.4.0/dbus_bindings/server.c:124:12: branch_true: following ‘true’ branch...
dbus-python-1.4.0/dbus_bindings/server.c:125:27: branch_true: ...to here
dbus-python-1.4.0/dbus_bindings/server.c:125:27: throw: if ‘PyUnicode_AsUTF8String’ throws an exception...
dbus-python-1.4.0/dbus_bindings/server.c:125:27: danger: ‘list’ leaks here; was allocated at [(17)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/16)
#  123|   
#  124|           if (PyUnicode_Check(am)) {
#  125|->             am_as_bytes = PyUnicode_AsUTF8String(am);
#  126|               if (!am_as_bytes)
#  127|                   goto finally;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def3]
dbus-python-1.4.0/dbus_bindings/server.c:133:19: warning[-Wanalyzer-malloc-leak]: leak of ‘list’
dbus-python-1.4.0/dbus_bindings/server.c:89:1: enter_function: entry to ‘DBusPyServer_set_auth_mechanisms’
dbus-python-1.4.0/dbus_bindings/server.c:102:8: branch_false: following ‘false’ branch...
dbus-python-1.4.0/dbus_bindings/server.c:105:14: call_function: inlined call to ‘_Py_TYPE’ from ‘DBusPyServer_set_auth_mechanisms’
dbus-python-1.4.0/dbus_bindings/server.c:105:14: call_function: calling ‘PyList_GET_SIZE’ from ‘DBusPyServer_set_auth_mechanisms’
dbus-python-1.4.0/dbus_bindings/server.c:105:14: return_function: returning to ‘DBusPyServer_set_auth_mechanisms’ from ‘PyList_GET_SIZE’
dbus-python-1.4.0/dbus_bindings/server.c:107:12: acquire_memory: allocated here
dbus-python-1.4.0/dbus_bindings/server.c:109:8: branch_false: following ‘false’ branch (when ‘list’ is non-NULL)...
dbus-python-1.4.0/dbus_bindings/server.c:114:24: branch_false: ...to here
dbus-python-1.4.0/dbus_bindings/server.c:114:8: branch_false: following ‘false’ branch...
dbus-python-1.4.0/dbus_bindings/server.c:114:8: branch_false: ...to here
dbus-python-1.4.0/dbus_bindings/server.c:117:17: branch_true: following ‘true’ branch (when ‘length > i’)...
dbus-python-1.4.0/dbus_bindings/server.c:120:14: call_function: inlined call to ‘_Py_TYPE’ from ‘DBusPyServer_set_auth_mechanisms’
dbus-python-1.4.0/dbus_bindings/server.c:120:14: branch_true: following ‘true’ branch...
dbus-python-1.4.0/dbus_bindings/server.c:120:14: branch_true: ...to here
dbus-python-1.4.0/dbus_bindings/server.c:121:12: branch_false: following ‘false’ branch (when ‘am’ is non-NULL)...
dbus-python-1.4.0/dbus_bindings/server.c:124:13: call_function: inlined call to ‘_Py_TYPE’ from ‘DBusPyServer_set_auth_mechanisms’
dbus-python-1.4.0/dbus_bindings/server.c:124:12: branch_true: following ‘true’ branch...
dbus-python-1.4.0/dbus_bindings/server.c:125:27: branch_true: ...to here
dbus-python-1.4.0/dbus_bindings/server.c:126:16: branch_false: following ‘false’ branch...
dbus-python-1.4.0/dbus_bindings/server.c:133:13: branch_false: ...to here
dbus-python-1.4.0/dbus_bindings/server.c:133:19: throw: if ‘PyBytes_AsString’ throws an exception...
dbus-python-1.4.0/dbus_bindings/server.c:133:19: danger: ‘list’ leaks here; was allocated at [(17)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/16)
#  131|               Py_INCREF(am_as_bytes);
#  132|           }
#  133|->         list[i] = PyBytes_AsString(am_as_bytes);
#  134|           if (!list[i])
#  135|               goto finally;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def4]
dbus-python-1.4.0/dbus_bindings/server.c:142:5: warning[-Wanalyzer-malloc-leak]: leak of ‘list’
dbus-python-1.4.0/dbus_bindings/server.c:89:1: enter_function: entry to ‘DBusPyServer_set_auth_mechanisms’
dbus-python-1.4.0/dbus_bindings/server.c:102:8: branch_false: following ‘false’ branch...
dbus-python-1.4.0/dbus_bindings/server.c:105:14: call_function: inlined call to ‘_Py_TYPE’ from ‘DBusPyServer_set_auth_mechanisms’
dbus-python-1.4.0/dbus_bindings/server.c:105:14: call_function: calling ‘PyList_GET_SIZE’ from ‘DBusPyServer_set_auth_mechanisms’
dbus-python-1.4.0/dbus_bindings/server.c:105:14: return_function: returning to ‘DBusPyServer_set_auth_mechanisms’ from ‘PyList_GET_SIZE’
dbus-python-1.4.0/dbus_bindings/server.c:107:12: acquire_memory: allocated here
dbus-python-1.4.0/dbus_bindings/server.c:109:8: branch_false: following ‘false’ branch (when ‘list’ is non-NULL)...
dbus-python-1.4.0/dbus_bindings/server.c:114:24: branch_false: ...to here
dbus-python-1.4.0/dbus_bindings/server.c:114:8: branch_false: following ‘false’ branch...
dbus-python-1.4.0/dbus_bindings/server.c:114:8: branch_false: ...to here
dbus-python-1.4.0/dbus_bindings/server.c:142:5: throw: if ‘PyEval_SaveThread’ throws an exception...
dbus-python-1.4.0/dbus_bindings/server.c:142:5: danger: ‘list’ leaks here; was allocated at [(17)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/16)
#  140|       list[length] = NULL;
#  141|   
#  142|->     Py_BEGIN_ALLOW_THREADS
#  143|       dbus_server_set_auth_mechanisms(self->server, list);
#  144|       Py_END_ALLOW_THREADS

Error: GCC_ANALYZER_WARNING (CWE-401): [#def5]
dbus-python-1.4.0/dbus_bindings/server.c:143:5: warning[-Wanalyzer-malloc-leak]: leak of ‘list’
dbus-python-1.4.0/dbus_bindings/server.c:89:1: enter_function: entry to ‘DBusPyServer_set_auth_mechanisms’
dbus-python-1.4.0/dbus_bindings/server.c:102:8: branch_false: following ‘false’ branch...
dbus-python-1.4.0/dbus_bindings/server.c:105:14: call_function: inlined call to ‘_Py_TYPE’ from ‘DBusPyServer_set_auth_mechanisms’
dbus-python-1.4.0/dbus_bindings/server.c:105:14: call_function: calling ‘PyList_GET_SIZE’ from ‘DBusPyServer_set_auth_mechanisms’
dbus-python-1.4.0/dbus_bindings/server.c:105:14: return_function: returning to ‘DBusPyServer_set_auth_mechanisms’ from ‘PyList_GET_SIZE’
dbus-python-1.4.0/dbus_bindings/server.c:107:12: acquire_memory: allocated here
dbus-python-1.4.0/dbus_bindings/server.c:109:8: branch_false: following ‘false’ branch (when ‘list’ is non-NULL)...
dbus-python-1.4.0/dbus_bindings/server.c:114:24: branch_false: ...to here
dbus-python-1.4.0/dbus_bindings/server.c:114:8: branch_false: following ‘false’ branch...
dbus-python-1.4.0/dbus_bindings/server.c:114:8: branch_false: ...to here
dbus-python-1.4.0/dbus_bindings/server.c:143:5: throw: if ‘dbus_server_set_auth_mechanisms’ throws an exception...
dbus-python-1.4.0/dbus_bindings/server.c:143:5: danger: ‘list’ leaks here; was allocated at [(17)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/16)
#  141|   
#  142|       Py_BEGIN_ALLOW_THREADS
#  143|->     dbus_server_set_auth_mechanisms(self->server, list);
#  144|       Py_END_ALLOW_THREADS
#  145|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def6]
dbus-python-1.4.0/dbus_bindings/unixfd.c:156:29: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
dbus-python-1.4.0/dbus_bindings/unixfd.c:114:8: branch_false: following ‘false’ branch...
dbus-python-1.4.0/dbus_bindings/unixfd.c:118:9: branch_false: ...to here
dbus-python-1.4.0/dbus_bindings/unixfd.c:118:8: branch_false: following ‘false’ branch...
dbus-python-1.4.0/dbus_bindings/unixfd.c:123:14: branch_false: ...to here
dbus-python-1.4.0/dbus_bindings/unixfd.c:124:8: branch_false: following ‘false’ branch...
dbus-python-1.4.0/dbus_bindings/unixfd.c:127:8: branch_false: ...to here
dbus-python-1.4.0/dbus_bindings/unixfd.c:127:8: branch_false: following ‘false’ branch...
dbus-python-1.4.0/dbus_bindings/unixfd.c:149:5: branch_false: ...to here
dbus-python-1.4.0/dbus_bindings/unixfd.c:149:5: branch_true: following ‘true’ branch...
dbus-python-1.4.0/dbus_bindings/unixfd.c:150:10: branch_true: ...to here
dbus-python-1.4.0/dbus_bindings/unixfd.c:150:10: acquire_resource: opened here
dbus-python-1.4.0/dbus_bindings/unixfd.c:151:8: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
dbus-python-1.4.0/dbus_bindings/unixfd.c:156:29: branch_false: ...to here
dbus-python-1.4.0/dbus_bindings/unixfd.c:156:29: throw: if the called function throws an exception...
dbus-python-1.4.0/dbus_bindings/unixfd.c:156:29: danger: ‘fd’ leaks here; was opened at [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
#  154|       }
#  155|   
#  156|->     self = (UnixFdObject *) cls->tp_alloc(cls, 0);
#  157|       if (!self) {
#  158|           close(fd);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def7]
dbus-python-1.4.0/dbus_bindings/unixfd.c:158:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
dbus-python-1.4.0/dbus_bindings/unixfd.c:114:8: branch_false: following ‘false’ branch...
dbus-python-1.4.0/dbus_bindings/unixfd.c:118:9: branch_false: ...to here
dbus-python-1.4.0/dbus_bindings/unixfd.c:118:8: branch_false: following ‘false’ branch...
dbus-python-1.4.0/dbus_bindings/unixfd.c:123:14: branch_false: ...to here
dbus-python-1.4.0/dbus_bindings/unixfd.c:124:8: branch_false: following ‘false’ branch...
dbus-python-1.4.0/dbus_bindings/unixfd.c:127:8: branch_false: ...to here
dbus-python-1.4.0/dbus_bindings/unixfd.c:127:8: branch_false: following ‘false’ branch...
dbus-python-1.4.0/dbus_bindings/unixfd.c:149:5: branch_false: ...to here
dbus-python-1.4.0/dbus_bindings/unixfd.c:149:5: branch_true: following ‘true’ branch...
dbus-python-1.4.0/dbus_bindings/unixfd.c:150:10: branch_true: ...to here
dbus-python-1.4.0/dbus_bindings/unixfd.c:150:10: acquire_resource: opened here
dbus-python-1.4.0/dbus_bindings/unixfd.c:151:8: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
dbus-python-1.4.0/dbus_bindings/unixfd.c:156:29: branch_false: ...to here
dbus-python-1.4.0/dbus_bindings/unixfd.c:157:8: branch_true: following ‘true’ branch...
dbus-python-1.4.0/dbus_bindings/unixfd.c:158:9: branch_true: ...to here
dbus-python-1.4.0/dbus_bindings/unixfd.c:158:9: throw: if ‘close’ throws an exception...
dbus-python-1.4.0/dbus_bindings/unixfd.c:158:9: danger: ‘fd’ leaks here; was opened at [(11)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/10)
#  156|       self = (UnixFdObject *) cls->tp_alloc(cls, 0);
#  157|       if (!self) {
#  158|->         close(fd);
#  159|           return NULL;
#  160|       }

Scan Properties

analyzer-version-clippy1.92.0
analyzer-version-cppcheck2.19.1
analyzer-version-gcc16.0.0
analyzer-version-gcc-analyzer16.0.0
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-183.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namedbus-python-1.4.0-7.fc44
store-results-to/tmp/tmpdphkgcre/dbus-python-1.4.0-7.fc44.tar.xz
time-created2026-01-08 15:51:33
time-finished2026-01-08 15:52:54
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpdphkgcre/dbus-python-1.4.0-7.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpdphkgcre/dbus-python-1.4.0-7.fc44.src.rpm'
tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9