Task #899 - fixed.err
back to task #899download
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) {