Task #90753 - dbus-python-1.4.0-7.fc44/scan-results.err
back to task #90753download
Error: GCC_ANALYZER_WARNING (CWE-401):
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):
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):
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):
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):
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):
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):
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| }