Task #899 - added.err
back to task #899download
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: 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|