Task #1161 - python-systemd-235-10.fc41/scan-results.err
back to task #1161download
Error: GCC_ANALYZER_WARNING (CWE-401): 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: 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: 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: 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: 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: python-systemd-235-build/python-systemd-235/systemd/util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.