Task #1661 - logrotate-3.21.0-6.fc40/scan-results.err

back to task #1661
download
Error: CPPCHECK_WARNING:
logrotate-3.21.0-build/logrotate-3.21.0/config.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-401):
logrotate-3.21.0-build/logrotate-3.21.0/config.c: scope_hint: In function ‘readAddress’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:159:23: warning[-Wanalyzer-malloc-leak]: leak of ‘isolateValue(configFile,  lineNum,  key,  startPtr,  buf,  length)’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:14: included_from: Included from here.
logrotate-3.21.0-build/logrotate-3.21.0/config.c:3: included_from: Included from here.
logrotate-3.21.0-build/logrotate-3.21.0/config.c:16: included_from: Included from here.
logrotate-3.21.0-build/logrotate-3.21.0/config.c:520:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:530:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:530:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:530:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:505:14: note: in definition of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:531:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:531:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:531:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:505:14: note: in definition of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:532:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:532:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:532:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:505:14: note: in definition of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:533:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:533:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:533:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:505:14: note: in definition of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:534:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:534:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:534:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:505:14: note: in definition of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:535:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:535:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:535:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:505:14: note: in definition of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:536:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:536:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:536:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:505:14: note: in definition of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:537:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:537:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:537:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:505:14: note: in definition of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:538:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:538:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:538:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:505:14: note: in definition of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:539:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:539:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:539:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:560:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:560:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:560:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:1425:25: note: in expansion of macro ‘freeLogItem’
#  157|   static char *isolateLine(char **strt, char **buf, size_t length) {
#  158|       char *endtag, *start, *tmp;
#  159|->     const char *max = *buf + length;
#  160|       char *key;
#  161|   

Error: GCC_ANALYZER_WARNING (CWE-415):
logrotate-3.21.0-build/logrotate-3.21.0/config.c: scope_hint: In function ‘free_2d_array’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:500:5: warning[-Wanalyzer-double-free]: double-‘free’ of ‘array’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:520:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:530:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:530:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:530:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:505:14: note: in definition of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:531:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:531:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:531:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:505:14: note: in definition of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:532:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:532:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:532:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:505:14: note: in definition of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:533:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:533:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:533:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:505:14: note: in definition of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:534:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:534:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:534:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:505:14: note: in definition of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:535:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:535:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:535:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:505:14: note: in definition of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:536:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:536:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:536:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:505:14: note: in definition of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:537:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:537:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:537:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:505:14: note: in definition of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:538:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:538:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:538:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:505:14: note: in definition of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:539:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:539:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:539:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:560:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:560:5: note: in expansion of macro ‘MEMBER_COPY’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:560:5: note: in expansion of macro ‘MEMBER_COPY’
#  498|       for (i = 0; i < lines_count; ++i)
#  499|           free(array[i]);
#  500|->     free(array);
#  501|   }
#  502|   

Error: GCC_ANALYZER_WARNING (CWE-775):
logrotate-3.21.0-build/logrotate-3.21.0/config.c: scope_hint: In function ‘readConfigPath’
logrotate-3.21.0-build/logrotate-3.21.0/config.c:684:29: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(".", 0)’
#  682|           }
#  683|           while ((dp = readdir(dirp)) != NULL) {
#  684|->             if (checkFile(dp->d_name)) {
#  685|                   /* Realloc memory for namelist array if necessary */
#  686|                   if (files_count % REALLOC_STEP == 0) {

Error: CPPCHECK_WARNING (CWE-457):
logrotate-3.21.0-build/logrotate-3.21.0/config.c:1304: error[legacyUninitvar]: Uninitialized variable: multiplier
# 1302|                               }
# 1303|   
# 1304|->                             size = (off_t) (multiplier * strtoull(key, &chptr, 0));
# 1305|                               if (*chptr || size < 0) {
# 1306|                                   message(MESS_ERROR, "%s:%d bad size '%s'\n",

Error: CPPCHECK_WARNING:
logrotate-3.21.0-build/logrotate-3.21.0/logrotate.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.