logrotate-3.22.0-1.fc41
List of Defects
Error: CPPCHECK_WARNING: [#def1]
logrotate-3.22.0-build/logrotate-3.22.0/config.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def2]
logrotate-3.22.0-build/logrotate-3.22.0/config.c: scope_hint: In function ‘readConfigPath’
logrotate-3.22.0-build/logrotate-3.22.0/config.c:772:29: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(".", 65536)’
logrotate-3.22.0-build/logrotate-3.22.0/config.c:14: included_from: Included from here.
logrotate-3.22.0-build/logrotate-3.22.0/config.c:3: included_from: Included from here.
logrotate-3.22.0-build/logrotate-3.22.0/config.c:16: included_from: Included from here.
# 770| }
# 771| while ((dp = readdir(dirp)) != NULL) {
# 772|-> if (checkFile(dp->d_name)) {
# 773| if (files_count >= UINT_MAX - REALLOC_STEP) {
# 774| message(MESS_ERROR, "too many files in directory %s\n", path);
Error: CPPCHECK_WARNING (CWE-457): [#def3]
logrotate-3.22.0-build/logrotate-3.22.0/config.c:1408: error[legacyUninitvar]: Uninitialized variable: multiplier
# 1406| }
# 1407|
# 1408|-> size = (off_t) (multiplier * strtoull(key, &chptr, 0));
# 1409| if (*chptr || size < 0) {
# 1410| message(MESS_ERROR, "%s:%d bad size '%s'\n",
Error: CPPCHECK_WARNING: [#def4]
logrotate-3.22.0-build/logrotate-3.22.0/logrotate.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def5]
logrotate-3.22.0-build/logrotate-3.22.0/logrotate.c: scope_hint: In function ‘movefd.part.0’
logrotate-3.22.0-build/logrotate-3.22.0/logrotate.c:357:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘rc’
logrotate-3.22.0-build/logrotate-3.22.0/logrotate.c:5: included_from: Included from here.
logrotate-3.22.0-build/logrotate-3.22.0/logrotate.c:21: included_from: Included from here.
logrotate-3.22.0-build/logrotate-3.22.0/logrotate.c:12: included_from: Included from here.
logrotate-3.22.0-build/logrotate-3.22.0/logrotate.c: scope_hint: In function ‘movefd.part.0’
# 355|
# 356| rc = dup2(oldfd, newfd);
# 357|-> if (rc == 0)
# 358| close(oldfd);
# 359|
Scan Properties
analyzer-version-clang | 18.1.7 |
analyzer-version-cppcheck | 2.14.2 |
analyzer-version-gcc | 14.1.1 |
analyzer-version-gcc-analyzer | 14.1.1 |
analyzer-version-shellcheck | 0.10.0 |
enabled-plugins | clang, cppcheck, gcc, shellcheck |
exit-code | 0 |
host | ip-172-16-1-10.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | logrotate-3.22.0-1.fc41 |
store-results-to | /tmp/tmpsjgmj0u7/logrotate-3.22.0-1.fc41.tar.xz |
time-created | 2024-07-03 16:15:00 |
time-finished | 2024-07-03 16:16:13 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpsjgmj0u7/logrotate-3.22.0-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpsjgmj0u7/logrotate-3.22.0-1.fc41.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |