Task #899 - logrotate-3.22.0-1.fc41/scan-results.err
back to task #899download
Error: CPPCHECK_WARNING:
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):
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):
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:
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):
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|