python-systemd-235-10.fc41

List of Defects

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
python-systemd-235-build/python-systemd-235/systemd/_reader.c: scope_hint: In function ‘strv_converter’
python-systemd-235-build/python-systemd-235/systemd/_reader.c:149:23: warning[-Wanalyzer-malloc-leak]: leak of ‘s’
/usr/include/python3.13/Python.h:125: included_from: Included from here.
python-systemd-235-build/python-systemd-235/systemd/_reader.c:24: included_from: Included from here.
python-systemd-235-build/python-systemd-235/systemd/_reader.c:142:15: note: in expansion of macro ‘PySequence_Length’
#  147|           }
#  148|   
#  149|->         for (i = 0; i < len; i++) {
#  150|                   PyObject *item;
#  151|                   _cleanup_Py_DECREF_ PyObject *bytes = NULL;

Error: CLANG_WARNING: [#def2]
python-systemd-235-build/python-systemd-235/systemd/_reader.c:217:32: warning[unix.Malloc]: Potential leak of memory pointed to by 'result'
#  215|                   item = PySequence_ITEM(obj, i);
#  216|                   if (long_as_fd(item, &fd) < 0)
#  217|->                         return 0;
#  218|   
#  219|                   result[i] = fd;

Error: CLANG_WARNING: [#def3]
python-systemd-235-build/python-systemd-235/systemd/_reader.c:310:27: warning[unix.Malloc]: Potential leak of memory pointed to by 'files'
#  308|   #if HAVE_JOURNAL_OPEN_FILES
#  309|                           Py_BEGIN_ALLOW_THREADS
#  310|->                         r = sd_journal_open_files(&self->j, (const char**) files, flags);
#  311|                           Py_END_ALLOW_THREADS
#  312|   #else

Error: CLANG_WARNING: [#def4]
python-systemd-235-build/python-systemd-235/systemd/_reader.c:1060:21: warning[deadcode.DeadStores]: Although the value stored to '_value_set' is used in the enclosing expression, the value is never actually read from '_value_set'
# 1058|                   return NULL;
# 1059|   
# 1060|->         value_set = _value_set = PySet_New(0);
# 1061|           if (!value_set)
# 1062|                   return NULL;

Error: CLANG_WARNING: [#def5]
python-systemd-235-build/python-systemd-235/systemd/_reader.c:1102:21: warning[deadcode.DeadStores]: Although the value stored to '_value_set' is used in the enclosing expression, the value is never actually read from '_value_set'
# 1100|           int r;
# 1101|   
# 1102|->         value_set = _value_set = PySet_New(0);
# 1103|           if (!value_set)
# 1104|                   return NULL;

Error: CPPCHECK_WARNING: [#def6]
python-systemd-235-build/python-systemd-235/systemd/util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-199.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namepython-systemd-235-10.fc41
store-results-to/tmp/tmpi03n3da6/python-systemd-235-10.fc41.tar.xz
time-created2024-07-03 17:29:36
time-finished2024-07-03 17:30:30
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpi03n3da6/python-systemd-235-10.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpi03n3da6/python-systemd-235-10.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9