Error: GCC_ANALYZER_WARNING (CWE-401): [#def1] coreutils-9.5-build/coreutils-9.5/src/cp.c:26: included_from: Included from here. coreutils-9.5-build/coreutils-9.5/src/cp.c: scope_hint: In function 'decode_preserve_arg' coreutils-9.5-build/coreutils-9.5/lib/argmatch.h:108:15: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(arg)' coreutils-9.5-build/coreutils-9.5/src/cp.c:922:13: note: in expansion of macro 'XARGMATCH' coreutils-9.5-build/coreutils-9.5/src/cp.c:922:13: note: in expansion of macro 'XARGMATCH' coreutils-9.5-build/coreutils-9.5/src/cp.c:922:13: note: in expansion of macro 'XARGMATCH' coreutils-9.5-build/coreutils-9.5/src/cp.c:922:13: note: in expansion of macro 'XARGMATCH' coreutils-9.5-build/coreutils-9.5/src/cp.c:922:13: note: in expansion of macro 'XARGMATCH' # 106| # 107| # define XARGMATCH(Context, Arg, Arglist, Vallist) \ # 108|-> ((Vallist) [__xargmatch_internal (Context, Arg, Arglist, \ # 109| (void const *) (Vallist), \ # 110| sizeof *(Vallist), \ Error: GCC_ANALYZER_WARNING (CWE-401): [#def2] coreutils-9.5-build/coreutils-9.5/lib/canon-host.c: scope_hint: In function 'canon_host_r' coreutils-9.5-build/coreutils-9.5/lib/canon-host.c:75:27: warning[-Wanalyzer-malloc-leak]: leak of 'canon_host_r(host, & last_cherror)' # 73| says Darwin 7.9.0 getaddrinfo returns 0 but sets # 74| res->ai_canonname to NULL. */ # 75|-> retval = strdup (res->ai_canonname ? res->ai_canonname : host); # 76| if (!retval && cherror) # 77| *cherror = EAI_MEMORY; Error: GCC_ANALYZER_WARNING (CWE-401): [#def3] coreutils-9.5-build/coreutils-9.5/lib/canon-host.c:83:10: warning[-Wanalyzer-malloc-leak]: leak of 'canon_host_r(host, & last_cherror)' # 81| *cherror = status; # 82| # 83|-> return retval; # 84| } # 85| Error: GCC_ANALYZER_WARNING (CWE-401): [#def4] coreutils-9.5-build/coreutils-9.5/lib/exclude.c: scope_hint: In function 'add_exclude' coreutils-9.5-build/coreutils-9.5/lib/exclude.c:579:20: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(pattern)' # 577| # 578| char *str = xstrdup (pattern); # 579|-> if ((options & (EXCLUDE_WILDCARDS | FNM_NOESCAPE)) == EXCLUDE_WILDCARDS) # 580| unescape_pattern (str); # 581| if (hash_insert (ex->head->v.table, str) != str) Error: GCC_ANALYZER_WARNING (CWE-476): [#def5] coreutils-9.5-build/coreutils-9.5/lib/exclude.c: scope_hint: In function 'add_exclude_fp' coreutils-9.5-build/coreutils-9.5/lib/exclude.c:604:24: warning[-Wanalyzer-null-dereference]: dereference of NULL 'buf' coreutils-9.5-build/coreutils-9.5/lib/exclude.c:30: included_from: Included from here. coreutils-9.5-build/coreutils-9.5/lib/exclude.c:47: included_from: Included from here. coreutils-9.5-build/coreutils-9.5/lib/exclude.c:600:20: note: in expansion of macro 'getc' coreutils-9.5-build/coreutils-9.5/lib/exclude.c: scope_hint: In function 'add_exclude_fp' # 602| if (buf_count == buf_alloc) # 603| buf = xpalloc (buf, &buf_alloc, 1, -1, 1); # 604|-> buf[buf_count++] = c; # 605| } # 606| Error: GCC_ANALYZER_WARNING (CWE-401): [#def6] coreutils-9.5-build/coreutils-9.5/lib/file-set.c: scope_hint: In function 'record_file' coreutils-9.5-build/coreutils-9.5/lib/file-set.c:43:8: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(24)' # 41| { # 42| struct F_triple *ent_from_table = hash_insert (ht, ent); # 43|-> if (ent_from_table == NULL) # 44| { # 45| /* Insertion failed due to lack of memory. */ Error: GCC_ANALYZER_WARNING (CWE-401): [#def7] coreutils-9.5-build/coreutils-9.5/lib/file-set.c:49:8: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(24)' # 47| } # 48| # 49|-> if (ent_from_table != ent) # 50| { # 51| /* There was already a matching entry in the table, so ENT was Error: GCC_ANALYZER_WARNING (CWE-401): [#def8] coreutils-9.5-build/coreutils-9.5/lib/fts.c:225: included_from: Included from here. coreutils-9.5-build/coreutils-9.5/lib/fts-cycle.c: scope_hint: In function 'enter_dir' coreutils-9.5-build/coreutils-9.5/lib/fts-cycle.c:94:10: warning[-Wanalyzer-malloc-leak]: leak of 'ad' coreutils-9.5-build/coreutils-9.5/lib/fts.c:1245:22: note: in expansion of macro 'ISSET' coreutils-9.5-build/coreutils-9.5/lib/fts.c:1307:34: note: in expansion of macro 'fts_opendir' coreutils-9.5-build/coreutils-9.5/lib/fts.c:1330:19: note: in expansion of macro 'LEAVE_DIR' coreutils-9.5-build/coreutils-9.5/lib/fts.c:1330:19: note: in expansion of macro 'LEAVE_DIR' coreutils-9.5-build/coreutils-9.5/lib/fts.c:1330:19: note: in expansion of macro 'LEAVE_DIR' # 92| ad_from_table = hash_insert (fts->fts_cycle.ht, ad); # 93| # 94|-> if (ad_from_table != ad) # 95| { # 96| free (ad); Error: GCC_ANALYZER_WARNING (CWE-401): [#def9] coreutils-9.5-build/coreutils-9.5/lib/fts.c: scope_hint: In function 'filesystem_type' coreutils-9.5-build/coreutils-9.5/lib/fts.c:714:12: warning[-Wanalyzer-malloc-leak]: leak of 't2' coreutils-9.5-build/coreutils-9.5/lib/fts.c:743:13: note: in expansion of macro 'fts_assert' coreutils-9.5-build/coreutils-9.5/lib/fts.c:743:13: note: in expansion of macro 'fts_assert' # 712| since the caller is not serious about performance. */ # 713| if (!ISSET (FTS_CWDFD)) # 714|-> return 0; # 715| # 716| if (! h) Error: GCC_ANALYZER_WARNING (CWE-401): [#def10] coreutils-9.5-build/coreutils-9.5/lib/fts.c: scope_hint: In function 'fts_build' coreutils-9.5-build/coreutils-9.5/lib/fts.c:1307:16: warning[-Wanalyzer-malloc-leak]: leak of '**sp.fts_cur.fts_dirp' coreutils-9.5-build/coreutils-9.5/lib/fts.c:1245:22: note: in expansion of macro 'ISSET' coreutils-9.5-build/coreutils-9.5/lib/fts.c:1307:34: note: in expansion of macro 'fts_opendir' coreutils-9.5-build/coreutils-9.5/lib/fts.c:1307:34: note: in expansion of macro 'fts_opendir' # 1305| /* Open the directory for reading. If this fails, we're done. # 1306| If being called from fts_read, set the fts_info field. */ # 1307|-> if ((cur->fts_dirp = fts_opendir(cur->fts_accpath, &dir_fd)) == NULL) # 1308| { # 1309| if (type == BREAD) Error: GCC_ANALYZER_WARNING (CWE-401): [#def11] coreutils-9.5-build/coreutils-9.5/lib/ialloc.h:60:37: warning[-Wanalyzer-malloc-leak]: leak of 'ximalloc(s + 1)' coreutils-9.5-build/coreutils-9.5/lib/xmalloc.c: scope_hint: In function 'ximalloc' coreutils-9.5-build/coreutils-9.5/lib/xmalloc.c: scope_hint: In function 'ximalloc' # 58| imalloc (idx_t s) # 59| { # 60|-> return s <= SIZE_MAX ? malloc (s) : _gl_alloc_nomem (); # 61| } # 62| Error: GCC_ANALYZER_WARNING (CWE-401): [#def12] coreutils-9.5-build/coreutils-9.5/lib/ialloc.h:60:37: warning[-Wanalyzer-malloc-leak]: leak of 'ximalloc(s)' coreutils-9.5-build/coreutils-9.5/lib/xmalloc.c: scope_hint: In function 'ximalloc' coreutils-9.5-build/coreutils-9.5/lib/xmalloc.c: scope_hint: In function 'ximalloc' # 58| imalloc (idx_t s) # 59| { # 60|-> return s <= SIZE_MAX ? malloc (s) : _gl_alloc_nomem (); # 61| } # 62| Error: GCC_ANALYZER_WARNING (CWE-401): [#def13] coreutils-9.5-build/coreutils-9.5/lib/ialloc.h:106:10: warning[-Wanalyzer-malloc-leak]: leak of 'xicalloc(s, 1)' coreutils-9.5-build/coreutils-9.5/lib/xmalloc.c: scope_hint: In function 'xicalloc' coreutils-9.5-build/coreutils-9.5/lib/xmalloc.c: scope_hint: In function 'xicalloc' # 104| s = 0; # 105| } # 106|-> return calloc (n, s); # 107| } # 108| Error: GCC_ANALYZER_WARNING (CWE-401): [#def14] coreutils-9.5-build/coreutils-9.5/src/unexpand.c:43: included_from: Included from here. coreutils-9.5-build/coreutils-9.5/lib/mbfile.h: scope_hint: In function 'unexpand' coreutils-9.5-build/coreutils-9.5/lib/mbfile.h:85:10: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(max_column_width * 32)' coreutils-9.5-build/coreutils-9.5/src/unexpand.c:126:3: note: in expansion of macro 'mbf_init' coreutils-9.5-build/coreutils-9.5/src/unexpand.c:186:13: note: in expansion of macro 'mbf_getc' coreutils-9.5-build/coreutils-9.5/src/unexpand.c:186:13: note: in expansion of macro 'mbf_getc' coreutils-9.5-build/coreutils-9.5/src/unexpand.c:189:17: note: in expansion of macro 'mbf_init' # 83| /* If EOF has already been seen, don't use getc. This matters if # 84| mbf->fp is connected to an interactive tty. */ # 85|-> if (mbf->eof_seen) # 86| goto eof; # 87| Error: GCC_ANALYZER_WARNING (CWE-401): [#def15] coreutils-9.5-build/coreutils-9.5/lib/randint.c: scope_hint: In function 'randint_new' coreutils-9.5-build/coreutils-9.5/lib/randint.c:76:10: warning[-Wanalyzer-malloc-leak]: leak of 'randint_new(randread_new(name, bytes_bound))' # 74| s->source = source; # 75| s->randnum = s->randmax = 0; # 76|-> return s; # 77| } # 78| Error: GCC_ANALYZER_WARNING (CWE-401): [#def16] coreutils-9.5-build/coreutils-9.5/lib/randperm.c: scope_hint: In function 'sparse_swap' coreutils-9.5-build/coreutils-9.5/lib/randperm.c:146:1: warning[-Wanalyzer-malloc-leak]: leak of 'v1' # 144| # 145| v[i] = v1->val; # 146|-> } # 147| # 148| static void Error: GCC_ANALYZER_WARNING (CWE-401): [#def17] coreutils-9.5-build/coreutils-9.5/lib/randperm.c:146:1: warning[-Wanalyzer-malloc-leak]: leak of 'v2' # 144| # 145| v[i] = v1->val; # 146|-> } # 147| # 148| static void Error: GCC_ANALYZER_WARNING (CWE-401): [#def18] coreutils-9.5-build/coreutils-9.5/separate/lib/sys/stat.h:54: included_from: Included from here. coreutils-9.5-build/coreutils-9.5/lib/read-file.c:23: included_from: Included from here. coreutils-9.5-build/coreutils-9.5/lib/read-file.c: scope_hint: In function 'fread_file' coreutils-9.5-build/coreutils-9.5/lib/read-file.c:62:57: warning[-Wanalyzer-malloc-leak]: leak of 'fread_file(rpl_fopen(filename, <unknown>), flags, length)' # 60| struct stat st; # 61| # 62|-> if (fstat (fileno (stream), &st) >= 0 && S_ISREG (st.st_mode)) # 63| { # 64| off_t pos = ftello (stream); Error: GCC_ANALYZER_WARNING (CWE-401): [#def19] coreutils-9.5-build/coreutils-9.5/lib/read-file.c:82:6: warning[-Wanalyzer-malloc-leak]: leak of 'fread_file(rpl_fopen(filename, <unknown>), flags, length)' # 80| } # 81| # 82|-> if (!(buf = malloc (alloc))) # 83| return NULL; /* errno is ENOMEM. */ # 84| Error: GCC_ANALYZER_WARNING (CWE-401): [#def20] coreutils-9.5-build/coreutils-9.5/lib/read-file.c:104:30: warning[-Wanalyzer-malloc-leak]: leak of 'fread_file(rpl_fopen(filename, <unknown>), flags, length)' # 102| # 103| /* Shrink the allocated memory if possible. */ # 104|-> if (size < alloc - 1) # 105| { # 106| if (flags & RF_SENSITIVE) Error: GCC_ANALYZER_WARNING (CWE-401): [#def21] coreutils-9.5-build/coreutils-9.5/lib/read-file.c:142:43: warning[-Wanalyzer-malloc-leak]: leak of 'fread_file(rpl_fopen(filename, <unknown>), flags, length)' coreutils-9.5-build/coreutils-9.5/lib/read-file.c: scope_hint: In function 'fread_file' coreutils-9.5-build/coreutils-9.5/lib/read-file.c: scope_hint: In function 'fread_file' coreutils-9.5-build/coreutils-9.5/lib/read-file.c:38: included_from: Included from here. # 140| } # 141| # 142|-> if (alloc < PTRDIFF_MAX - alloc / 2) # 143| alloc = alloc + alloc / 2; # 144| else Error: GCC_ANALYZER_WARNING (CWE-401): [#def22] coreutils-9.5-build/coreutils-9.5/src/tsort.c:32: included_from: Included from here. coreutils-9.5-build/coreutils-9.5/src/tsort.c: scope_hint: In function 'tsort' coreutils-9.5-build/coreutils-9.5/lib/stdio--.h:30:18: warning[-Wanalyzer-malloc-leak]: leak of 'xzalloc(56)' coreutils-9.5-build/coreutils-9.5/src/tsort.c:440:22: note: in expansion of macro 'freopen' coreutils-9.5-build/coreutils-9.5/src/tsort.c: scope_hint: In function 'tsort' coreutils-9.5-build/coreutils-9.5/src/tsort.c:440:22: note: in expansion of macro 'freopen' coreutils-9.5-build/coreutils-9.5/src/tsort.c:440:22: note: in expansion of macro 'freopen' # 28| #if GNULIB_FREOPEN_SAFER # 29| # undef freopen # 30|-> # define freopen freopen_safer # 31| #endif # 32| Error: GCC_ANALYZER_WARNING (CWE-401): [#def23] coreutils-9.5-build/coreutils-9.5/lib/time_rz.c: scope_hint: In function 'tzfree' coreutils-9.5-build/coreutils-9.5/lib/time_rz.c:68:64: warning[-Wanalyzer-malloc-leak]: leak of 'tzalloc(getenv("TZ"))' coreutils-9.5-build/coreutils-9.5/lib/time_rz.c:27: included_from: Included from here. coreutils-9.5-build/coreutils-9.5/lib/time_rz.c:29: included_from: Included from here. # 66| { # 67| size_t name_size = name ? strlen (name) + 1 : 0; # 68|-> size_t abbr_size = name_size < ABBR_SIZE_MIN ? ABBR_SIZE_MIN : name_size + 1; # 69| timezone_t tz = malloc (FLEXSIZEOF (struct tm_zone, abbrs, abbr_size)); # 70| if (tz) Error: GCC_ANALYZER_WARNING (CWE-401): [#def24] coreutils-9.5-build/coreutils-9.5/lib/time_rz.c: scope_hint: In function 'mktime_z' coreutils-9.5-build/coreutils-9.5/lib/time_rz.c:211:12: warning[-Wanalyzer-malloc-leak]: leak of 'set_tz(tz)' # 209| if (env_tz # 210| ? tz->tz_is_set && strcmp (tz->abbrs, env_tz) == 0 # 211|-> : !tz->tz_is_set) # 212| return local_tz; # 213| else Error: GCC_ANALYZER_WARNING (CWE-401): [#def25] coreutils-9.5-build/coreutils-9.5/lib/xmalloc.c: scope_hint: In function 'xmalloc' coreutils-9.5-build/coreutils-9.5/lib/xmalloc.c:45:10: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(n)' coreutils-9.5-build/coreutils-9.5/lib/xmalloc.c:22: included_from: Included from here. coreutils-9.5-build/coreutils-9.5/lib/xmalloc.c:57:10: note: in expansion of macro 'XNMALLOC' coreutils-9.5-build/coreutils-9.5/lib/xmalloc.c:57:10: note: in expansion of macro 'XNMALLOC' coreutils-9.5-build/coreutils-9.5/lib/xmalloc.c: scope_hint: In function 'xmalloc' # 43| xmalloc (size_t s) # 44| { # 45|-> return check_nonnull (malloc (s)); # 46| } # 47| Error: GCC_ANALYZER_WARNING (CWE-401): [#def26] coreutils-9.5-build/coreutils-9.5/lib/xmalloc.c:45:10: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(s)' coreutils-9.5-build/coreutils-9.5/lib/xmalloc.c: scope_hint: In function 'xmalloc' # 43| xmalloc (size_t s) # 44| { # 45|-> return check_nonnull (malloc (s)); # 46| } # 47| Error: GCC_ANALYZER_WARNING (CWE-401): [#def27] coreutils-9.5-build/coreutils-9.5/lib/xmalloc.c: scope_hint: In function 'xcalloc' coreutils-9.5-build/coreutils-9.5/lib/xmalloc.c:298:10: warning[-Wanalyzer-malloc-leak]: leak of 'xcalloc(s, 1)' coreutils-9.5-build/coreutils-9.5/lib/xmalloc.c: scope_hint: In function 'xcalloc' # 296| xcalloc (size_t n, size_t s) # 297| { # 298|-> return check_nonnull (calloc (n, s)); # 299| } # 300| Error: GCC_ANALYZER_WARNING (CWE-401): [#def28] coreutils-9.5-build/coreutils-9.5/lib/xmalloc.c: scope_hint: In function 'xmemdup' coreutils-9.5-build/coreutils-9.5/lib/xmalloc.c:314:10: warning[-Wanalyzer-malloc-leak]: leak of 'xmemdup(string, strlen(string) + 1)' coreutils-9.5-build/coreutils-9.5/lib/xmalloc.c: scope_hint: In function 'xmemdup' # 312| xmemdup (void const *p, size_t s) # 313| { # 314|-> return memcpy (xmalloc (s), p, s); # 315| } # 316| Error: GCC_ANALYZER_WARNING (CWE-401): [#def29] coreutils-9.5-build/coreutils-9.5/src/basenc.c: scope_hint: In function 'do_decode' coreutils-9.5-build/coreutils-9.5/src/basenc.c:239:22: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(4200)' coreutils-9.5-build/coreutils-9.5/lib/unlocked-io.h:92:46: note: in definition of macro 'fread' coreutils-9.5-build/coreutils-9.5/src/basenc.c:1158:31: note: in expansion of macro 'BASE_LENGTH' coreutils-9.5-build/coreutils-9.5/lib/unlocked-io.h:92:46: note: in definition of macro 'fread' coreutils-9.5-build/coreutils-9.5/src/basenc.c:1158:31: note: in expansion of macro 'BASE_LENGTH' # 237| # 238| # 239|-> # define BASE_LENGTH base_length # 240| # define REQUIRED_PADDING required_padding # 241| Error: GCC_ANALYZER_WARNING (CWE-401): [#def30] coreutils-9.5-build/coreutils-9.5/src/system.h:254: included_from: Included from here. coreutils-9.5-build/coreutils-9.5/src/basenc.c:25: included_from: Included from here. coreutils-9.5-build/coreutils-9.5/src/basenc.c: scope_hint: In function 'do_encode' coreutils-9.5-build/coreutils-9.5/src/basenc.c:1107:52: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc((long unsigned int)base_length(30720))' coreutils-9.5-build/coreutils-9.5/lib/unlocked-io.h:92:46: note: in definition of macro 'fread' coreutils-9.5-build/coreutils-9.5/src/basenc.c:1122:11: note: in expansion of macro 'feof' coreutils-9.5-build/coreutils-9.5/src/basenc.c: scope_hint: In function 'do_encode' coreutils-9.5-build/coreutils-9.5/lib/unlocked-io.h:92:46: note: in definition of macro 'fread' # 1105| do # 1106| { # 1107|-> n = fread (inbuf + sum, 1, ENC_BLOCKSIZE - sum, in); # 1108| sum += n; # 1109| } Error: GCC_ANALYZER_WARNING (CWE-401): [#def31] coreutils-9.5-build/coreutils-9.5/src/system.h:254: included_from: Included from here. coreutils-9.5-build/coreutils-9.5/src/basenc.c:25: included_from: Included from here. coreutils-9.5-build/coreutils-9.5/src/basenc.c: scope_hint: In function 'do_encode' coreutils-9.5-build/coreutils-9.5/src/basenc.c:1107:52: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(40960)' coreutils-9.5-build/coreutils-9.5/lib/unlocked-io.h:92:46: note: in definition of macro 'fread' coreutils-9.5-build/coreutils-9.5/src/basenc.c:1122:11: note: in expansion of macro 'feof' coreutils-9.5-build/coreutils-9.5/src/basenc.c: scope_hint: In function 'do_encode' coreutils-9.5-build/coreutils-9.5/lib/unlocked-io.h:92:46: note: in definition of macro 'fread' # 1105| do # 1106| { # 1107|-> n = fread (inbuf + sum, 1, ENC_BLOCKSIZE - sum, in); # 1108| sum += n; # 1109| } Error: GCC_ANALYZER_WARNING (CWE-401): [#def32] coreutils-9.5-build/coreutils-9.5/src/system.h:254: included_from: Included from here. coreutils-9.5-build/coreutils-9.5/src/basenc.c:25: included_from: Included from here. coreutils-9.5-build/coreutils-9.5/src/basenc.c: scope_hint: In function 'do_encode' coreutils-9.5-build/coreutils-9.5/src/basenc.c:1107:52: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(49152)' coreutils-9.5-build/coreutils-9.5/lib/unlocked-io.h:92:46: note: in definition of macro 'fread' coreutils-9.5-build/coreutils-9.5/src/basenc.c:1122:11: note: in expansion of macro 'feof' coreutils-9.5-build/coreutils-9.5/src/basenc.c: scope_hint: In function 'do_encode' coreutils-9.5-build/coreutils-9.5/lib/unlocked-io.h:92:46: note: in definition of macro 'fread' # 1105| do # 1106| { # 1107|-> n = fread (inbuf + sum, 1, ENC_BLOCKSIZE - sum, in); # 1108| sum += n; # 1109| } Error: GCC_ANALYZER_WARNING (CWE-401): [#def33] coreutils-9.5-build/coreutils-9.5/src/basenc.c: scope_hint: In function 'do_decode' coreutils-9.5-build/coreutils-9.5/src/basenc.c:1158:59: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(3072)' coreutils-9.5-build/coreutils-9.5/lib/unlocked-io.h:92:46: note: in definition of macro 'fread' coreutils-9.5-build/coreutils-9.5/lib/unlocked-io.h:92:46: note: in definition of macro 'fread' # 1156| { # 1157| idx_t n = fread (inbuf + sum, # 1158|-> 1, BASE_LENGTH (DEC_BLOCKSIZE) - sum, in); # 1159| # 1160| if (ignore_garbage) Error: GCC_ANALYZER_WARNING (CWE-401): [#def34] coreutils-9.5-build/coreutils-9.5/src/basenc.c: scope_hint: In function 'do_decode' coreutils-9.5-build/coreutils-9.5/src/basenc.c:1158:59: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(5120)' coreutils-9.5-build/coreutils-9.5/lib/unlocked-io.h:92:46: note: in definition of macro 'fread' coreutils-9.5-build/coreutils-9.5/lib/unlocked-io.h:92:46: note: in definition of macro 'fread' # 1156| { # 1157| idx_t n = fread (inbuf + sum, # 1158|-> 1, BASE_LENGTH (DEC_BLOCKSIZE) - sum, in); # 1159| # 1160| if (ignore_garbage) Error: GCC_ANALYZER_WARNING (CWE-401): [#def35] coreutils-9.5-build/coreutils-9.5/src/chown-core.c: scope_hint: In function 'uid_to_name' coreutils-9.5-build/coreutils-9.5/src/chown-core.c:84:19: warning[-Wanalyzer-malloc-leak]: leak of 'uid_to_name(*file_stats.st_uid)' # 82| char buf[INT_BUFSIZE_BOUND (intmax_t)]; # 83| return xstrdup (TYPE_SIGNED (uid_t) ? imaxtostr (uid, buf) # 84|-> : umaxtostr (uid, buf)); # 85| } # 86| Error: GCC_ANALYZER_WARNING (CWE-401): [#def36] coreutils-9.5-build/coreutils-9.5/src/chown-core.c: scope_hint: In function 'gid_to_name' coreutils-9.5-build/coreutils-9.5/src/chown-core.c:95:19: warning[-Wanalyzer-malloc-leak]: leak of 'gid_to_name(*file_stats.st_gid)' # 93| char buf[INT_BUFSIZE_BOUND (intmax_t)]; # 94| return xstrdup (TYPE_SIGNED (gid_t) ? imaxtostr (gid, buf) # 95|-> : umaxtostr (gid, buf)); # 96| } # 97| Error: GCC_ANALYZER_WARNING (CWE-401): [#def37] coreutils-9.5-build/coreutils-9.5/src/chown-core.c:106:28: warning[-Wanalyzer-malloc-leak]: leak of 'gid_to_name(*file_stats.st_gid)' # 104| { # 105| struct group *grp = getgrgid (gid); # 106|-> return grp ? xstrdup (grp->gr_name) : gid_to_str (gid); # 107| } # 108| Error: GCC_ANALYZER_WARNING (CWE-401): [#def38] coreutils-9.5-build/coreutils-9.5/src/chown-core.c: scope_hint: In function 'uid_to_name' coreutils-9.5-build/coreutils-9.5/src/chown-core.c:117:28: warning[-Wanalyzer-malloc-leak]: leak of 'uid_to_name(*file_stats.st_uid)' # 115| { # 116| struct passwd *pwd = getpwuid (uid); # 117|-> return pwd ? xstrdup (pwd->pw_name) : uid_to_str (uid); # 118| } # 119| Error: GCC_ANALYZER_WARNING (CWE-401): [#def39] coreutils-9.5-build/coreutils-9.5/src/chown-core.c: scope_hint: In function 'describe_change' coreutils-9.5-build/coreutils-9.5/src/chown-core.c:171:3: warning[-Wanalyzer-malloc-leak]: leak of 'user_group_str(<unknown>, <unknown>)' # 169| group ? old_group : nullptr); # 170| # 171|-> switch (changed) # 172| { # 173| case CH_SUCCEEDED: Error: GCC_ANALYZER_WARNING (CWE-401): [#def40] coreutils-9.5-build/coreutils-9.5/src/chown-core.c:179:10: warning[-Wanalyzer-malloc-leak]: leak of 'user_group_str(<unknown>, <unknown>)' # 177| break; # 178| case CH_FAILED: # 179|-> if (old_spec) # 180| { # 181| fmt = (user ? _("failed to change ownership of %s from %s to %s\n") Error: GCC_ANALYZER_WARNING (CWE-476): [#def41] coreutils-9.5-build/coreutils-9.5/src/chroot.c: scope_hint: In function 'parse_additional_groups' coreutils-9.5-build/coreutils-9.5/src/chroot.c:147:22: warning[-Wanalyzer-null-dereference]: dereference of NULL 'gids' coreutils-9.5-build/coreutils-9.5/src/chroot.c:306:11: note: in expansion of macro 'uid_set' coreutils-9.5-build/coreutils-9.5/src/chroot.c:28: included_from: Included from here. coreutils-9.5-build/coreutils-9.5/lib/ignore-value.h:46:45: note: in definition of macro 'ignore_value' coreutils-9.5-build/coreutils-9.5/lib/ignore-value.h:46:45: note: in definition of macro 'ignore_value' # 145| if (n_gids == n_gids_allocated) # 146| gids = X2NREALLOC (gids, &n_gids_allocated); # 147|-> gids[n_gids++] = value; # 148| } # 149| Error: GCC_ANALYZER_WARNING (CWE-401): [#def42] coreutils-9.5-build/coreutils-9.5/src/cp-hash.c: scope_hint: In function 'remember_copied' coreutils-9.5-build/coreutils-9.5/src/cp-hash.c:126:6: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(24)' # 124| # 125| ent_from_table = hash_insert (src_to_dest, ent); # 126|-> if (ent_from_table == nullptr) # 127| { # 128| /* Insertion failed due to lack of memory. */ Error: GCC_ANALYZER_WARNING (CWE-401): [#def43] coreutils-9.5-build/coreutils-9.5/src/cp-hash.c:135:6: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(24)' # 133| with a matching key. If so, free ENT (it wasn't inserted) and # 134| return the 'name' from the table entry. */ # 135|-> if (ent_from_table != ent) # 136| { # 137| src_to_dest_free (ent); Error: GCC_ANALYZER_WARNING (CWE-401): [#def44] coreutils-9.5-build/coreutils-9.5/src/csplit.c: scope_hint: In function 'get_new_buffer' coreutils-9.5-build/coreutils-9.5/src/csplit.c:418:10: warning[-Wanalyzer-malloc-leak]: leak of 'get_new_buffer(bytes_wanted)' coreutils-9.5-build/coreutils-9.5/src/system.h:29: included_from: Included from here. coreutils-9.5-build/coreutils-9.5/src/csplit.c:27: included_from: Included from here. # 416| new_buffer->next = nullptr; # 417| # 418|-> return new_buffer; # 419| } # 420| Error: GCC_ANALYZER_WARNING (CWE-401): [#def45] coreutils-9.5-build/coreutils-9.5/src/csplit.c: scope_hint: In function 'main' coreutils-9.5-build/coreutils-9.5/src/csplit.c:1377:30: warning[-Wanalyzer-malloc-leak]: leak of 'ximalloc(__real__ <unknown>)' # 1375| filename_space = ximalloc (filename_size); # 1376| # 1377|-> set_input_file (argv[optind++]); # 1378| # 1379| parse_patterns (argc, optind, argv); Error: GCC_ANALYZER_WARNING (CWE-401): [#def46] coreutils-9.5-build/coreutils-9.5/src/date.c: scope_hint: In function 'main' coreutils-9.5-build/coreutils-9.5/src/date.c:316:32: warning[-Wanalyzer-malloc-leak]: leak of 'adjust_resolution(format)' # 314| char *copy = nullptr; # 315| # 316|-> for (char const *f = format; *f; f++) # 317| if (f[0] == '%') # 318| { Error: GCC_ANALYZER_WARNING (CWE-401): [#def47] coreutils-9.5-build/coreutils-9.5/src/date.c: scope_hint: In function 'batch_convert' coreutils-9.5-build/coreutils-9.5/src/date.c:393:10: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>' coreutils-9.5-build/coreutils-9.5/src/date.c:561:20: note: in expansion of macro 'DATE_FMT_LANGINFO' coreutils-9.5-build/coreutils-9.5/src/date.c:20: included_from: Included from here. # 391| free (line); # 392| # 393|-> return ok; # 394| } # 395| Error: GCC_ANALYZER_WARNING (CWE-401): [#def48] coreutils-9.5-build/coreutils-9.5/src/date.c: scope_hint: In function 'main' coreutils-9.5-build/coreutils-9.5/src/date.c:632:10: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>' # 630| } # 631| # 632|-> if (! valid_date) # 633| error (EXIT_FAILURE, 0, _("invalid date %s"), quote (datestr)); # 634| Error: GCC_ANALYZER_WARNING (CWE-401): [#def49] coreutils-9.5-build/coreutils-9.5/src/env.c: scope_hint: In function 'parse_signal_action_params.part.0' coreutils-9.5-build/coreutils-9.5/src/env.c:567:10: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(arg)' # 565| if (signum == 0) # 566| error (0, 0, _("%s: invalid signal"), quote (opt_sig)); # 567|-> if (signum <= 0) # 568| usage (exit_failure); # 569| Error: GCC_ANALYZER_WARNING (CWE-401): [#def50] coreutils-9.5-build/coreutils-9.5/src/env.c:570:14: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(arg)' # 568| usage (exit_failure); # 569| # 570|-> signals[signum] = set_default ? DEFAULT : IGNORE; # 571| # 572| opt_sig = strtok (nullptr, ","); Error: GCC_ANALYZER_WARNING (CWE-401): [#def51] coreutils-9.5-build/coreutils-9.5/src/env.c: scope_hint: In function 'parse_block_signal_params.part.0' coreutils-9.5-build/coreutils-9.5/src/env.c:656:10: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(arg)' # 654| if (signum == 0) # 655| error (0, 0, _("%s: invalid signal"), quote (opt_sig)); # 656|-> if (signum <= 0) # 657| usage (exit_failure); # 658| Error: GCC_ANALYZER_WARNING (CWE-401): [#def52] coreutils-9.5-build/coreutils-9.5/src/env.c:661:14: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(arg)' # 659| if (sigaddset (block ? &block_signals : &unblock_signals, signum) == -1) # 660| { # 661|-> if (block) # 662| error (EXIT_CANCELED, errno, # 663| _("failed to block signal %d"), signum); Error: GCC_ANALYZER_WARNING (CWE-401): [#def53] coreutils-9.5-build/coreutils-9.5/src/hostname.c: scope_hint: In function 'single_binary_main_hostname' coreutils-9.5-build/coreutils-9.5/src/hostname.c:108:7: warning[-Wanalyzer-malloc-leak]: leak of 'xgethostname()' # 106| if (hostname == nullptr) # 107| error (EXIT_FAILURE, errno, _("cannot determine hostname")); # 108|-> puts (hostname); # 109| } # 110| Error: GCC_ANALYZER_WARNING (CWE-401): [#def54] coreutils-9.5-build/coreutils-9.5/src/libstdbuf.c: scope_hint: In function 'apply_mode' coreutils-9.5-build/coreutils-9.5/src/libstdbuf.c:128:6: warning[-Wanalyzer-malloc-leak]: leak of 'buf' # 126| } # 127| # 128|-> if (setvbuf (stream, buf, setvbuf_mode, size) != 0) # 129| { # 130| fprintf (stderr, _("could not set buffering of %s to mode %s\n"), Error: GCC_ANALYZER_WARNING (CWE-401): [#def55] coreutils-9.5-build/coreutils-9.5/src/ls.c: scope_hint: In function 'init_column_info' coreutils-9.5-build/coreutils-9.5/src/ls.c:5359:25: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>' # 5357| } # 5358| # 5359|-> column_info_alloc = new_column_info_alloc; # 5360| } # 5361| Error: GCC_ANALYZER_WARNING (CWE-401): [#def56] coreutils-9.5-build/coreutils-9.5/src/ls.c:5371:1: warning[-Wanalyzer-malloc-leak]: leak of 'p' # 5369| column_info[i].col_arr[j] = MIN_COLUMN_WIDTH; # 5370| } # 5371|-> } # 5372| # 5373| /* Calculate the number of columns needed to represent the current set Error: GCC_ANALYZER_WARNING (CWE-401): [#def57] coreutils-9.5-build/coreutils-9.5/src/nohup.c: scope_hint: In function 'single_binary_main_nohup' coreutils-9.5-build/coreutils-9.5/src/nohup.c:164:18: warning[-Wanalyzer-malloc-leak]: leak of 'in_home' coreutils-9.5-build/coreutils-9.5/src/system.h:73: included_from: Included from here. coreutils-9.5-build/coreutils-9.5/src/nohup.c:24: included_from: Included from here. # 162| int saved_errno2 = errno; # 163| error (0, saved_errno, _("failed to open %s"), quoteaf (file)); # 164|-> if (in_home) # 165| error (0, saved_errno2, _("failed to open %s"), # 166| quoteaf (in_home)); Error: GCC_ANALYZER_WARNING (CWE-401): [#def58] coreutils-9.5-build/coreutils-9.5/src/paste.c: scope_hint: In function 'paste_parallel' coreutils-9.5-build/coreutils-9.5/src/paste.c:180:20: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(nfiles + 2)' coreutils-9.5-build/coreutils-9.5/src/paste.c:43: included_from: Included from here. coreutils-9.5-build/coreutils-9.5/src/system.h:186:30: note: in definition of macro 'STREQ' # 178| /* Streams open to the files to process; null if the corresponding # 179| stream is closed. */ # 180|-> FILE **fileptr = xnmalloc (nfiles + 1, sizeof *fileptr); # 181| # 182| /* Number of files still open to process. */ Error: GCC_ANALYZER_WARNING (CWE-401): [#def59] coreutils-9.5-build/coreutils-9.5/src/paste.c:194:25: warning[-Wanalyzer-malloc-leak]: leak of 'xnmalloc(nfiles + 1, 8)' coreutils-9.5-build/coreutils-9.5/src/system.h:186:30: note: in definition of macro 'STREQ' coreutils-9.5-build/coreutils-9.5/src/system.h:186:30: note: in definition of macro 'STREQ' coreutils-9.5-build/coreutils-9.5/src/system.h:186:30: note: in definition of macro 'STREQ' # 192| for (files_open = 0; files_open < nfiles; ++files_open) # 193| { # 194|-> if (STREQ (fnamptr[files_open], "-")) # 195| { # 196| have_read_stdin = true; Error: GCC_ANALYZER_WARNING (CWE-401): [#def60] coreutils-9.5-build/coreutils-9.5/src/pinky.c: scope_hint: In function 'print_entry' coreutils-9.5-build/coreutils-9.5/src/pinky.c:312:1: warning[-Wanalyzer-malloc-leak]: leak of 'host' coreutils-9.5-build/coreutils-9.5/src/pinky.c:529:1: note: in expansion of macro 'main' coreutils-9.5-build/coreutils-9.5/src/pinky.c:30: included_from: Included from here. coreutils-9.5-build/coreutils-9.5/src/pinky.c:450:11: note: in expansion of macro 'IS_USER_PROCESS' coreutils-9.5-build/coreutils-9.5/lib/dirname.h:29: included_from: Included from here. coreutils-9.5-build/coreutils-9.5/src/system.h:257: included_from: Included from here. coreutils-9.5-build/coreutils-9.5/src/pinky.c:26: included_from: Included from here. coreutils-9.5-build/coreutils-9.5/lib/filename.h:93:23: note: in definition of macro 'ISSLASH' coreutils-9.5-build/coreutils-9.5/src/pinky.c:211:7: note: in expansion of macro 'IS_ABSOLUTE_FILE_NAME' coreutils-9.5-build/coreutils-9.5/src/system.h:254: included_from: Included from here. coreutils-9.5-build/coreutils-9.5/src/pinky.c:298:7: note: in expansion of macro 'fputc' coreutils-9.5-build/coreutils-9.5/src/pinky.c:311:3: note: in expansion of macro 'putchar' coreutils-9.5-build/coreutils-9.5/src/pinky.c: scope_hint: In function 'print_entry' # 310| # 311| putchar ('\n'); # 312|-> } # 313| # 314| /* Display a verbose line of information about UTMP_ENT. */ Error: GCC_ANALYZER_WARNING (CWE-688): [#def61] coreutils-9.5-build/coreutils-9.5/src/ptx.c: scope_hint: In function 'digest_word_file' coreutils-9.5-build/coreutils-9.5/src/ptx.c:733:3: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected coreutils-9.5-build/coreutils-9.5/src/ptx.c:1795:1: note: in expansion of macro 'main' coreutils-9.5-build/coreutils-9.5/src/ptx.c: scope_hint: In function 'digest_word_file' coreutils-9.5-build/coreutils-9.5/single/lib/stdlib.h:36: included_from: Included from here. coreutils-9.5-build/coreutils-9.5/src/system.h:82: included_from: Included from here. /usr/include/stdlib.h:970:13: note: argument 1 of 'qsort' must be non-null # 731| /* Finally, sort all the words read. */ # 732| # 733|-> qsort (table->start, table->length, sizeof table->start[0], compare_words); # 734| } # 735| Error: GCC_ANALYZER_WARNING (CWE-401): [#def62] coreutils-9.5-build/coreutils-9.5/src/seq.c: scope_hint: In function 'seq_fast' coreutils-9.5-build/coreutils-9.5/src/seq.c:485:11: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(inc_size + 1)' # 483| { # 484| q0 = xmalloc (inc_size + 1); # 485|-> q = memcpy (q0 + inc_size - q_len, b, q_len + 1); # 486| } # 487| else Error: GCC_ANALYZER_WARNING (CWE-401): [#def63] coreutils-9.5-build/coreutils-9.5/src/df.c:28: included_from: Included from here. coreutils-9.5-build/coreutils-9.5/src/df.c: scope_hint: In function 'decode_output_arg' coreutils-9.5-build/coreutils-9.5/src/system.h:186:22: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(arg)' coreutils-9.5-build/coreutils-9.5/src/df.c:453:15: note: in expansion of macro 'STREQ' coreutils-9.5-build/coreutils-9.5/src/df.c:453:15: note: in expansion of macro 'STREQ' coreutils-9.5-build/coreutils-9.5/lib/assure.h:23: included_from: Included from here. coreutils-9.5-build/coreutils-9.5/src/df.c:29: included_from: Included from here. coreutils-9.5-build/coreutils-9.5/src/df.c:426:3: note: in expansion of macro 'affirm' coreutils-9.5-build/coreutils-9.5/src/df.c:453:15: note: in expansion of macro 'STREQ' coreutils-9.5-build/coreutils-9.5/src/df.c:453:15: note: in expansion of macro 'STREQ' # 184| } # 185| # 186|-> #define STREQ(a, b) (strcmp (a, b) == 0) # 187| #define STREQ_LEN(a, b, n) (strncmp (a, b, n) == 0) /* n==-1 means unbounded */ # 188| #define STRPREFIX(a, b) (strncmp (a, b, strlen (b)) == 0) Error: GCC_ANALYZER_WARNING (CWE-401): [#def64] coreutils-9.5-build/coreutils-9.5/src/tee.c: scope_hint: In function 'tee_files' coreutils-9.5-build/coreutils-9.5/src/tee.c:256:3: warning[-Wanalyzer-malloc-leak]: leak of 'xnmalloc((long unsigned int)(nfiles + 1), 8)' coreutils-9.5-build/coreutils-9.5/lib/gettext.h:26: included_from: Included from here. coreutils-9.5-build/coreutils-9.5/src/system.h:164: included_from: Included from here. coreutils-9.5-build/coreutils-9.5/src/tee.c:24: included_from: Included from here. coreutils-9.5-build/coreutils-9.5/src/tee.c:255:24: note: in expansion of macro '_' coreutils-9.5-build/coreutils-9.5/src/system.h:740: included_from: Included from here. coreutils-9.5-build/coreutils-9.5/separate/lib/error.h:408:28: note: in definition of macro '__gl_error_call' coreutils-9.5-build/coreutils-9.5/src/tee.c:267:11: note: in expansion of macro 'error' coreutils-9.5-build/coreutils-9.5/separate/lib/error.h:471:7: note: in expansion of macro '__gl_error_call' coreutils-9.5-build/coreutils-9.5/src/tee.c:267:11: note: in expansion of macro 'error' coreutils-9.5-build/coreutils-9.5/separate/lib/error.h:413:10: note: in expansion of macro '__gl_error_call1' coreutils-9.5-build/coreutils-9.5/separate/lib/error.h:471:7: note: in expansion of macro '__gl_error_call' coreutils-9.5-build/coreutils-9.5/src/tee.c:267:11: note: in expansion of macro 'error' # 254| out_pollable[0] = iopoll_output_ok (fileno (descriptors[0])); # 255| files[0] = bad_cast (_("standard output")); # 256|-> setvbuf (stdout, nullptr, _IONBF, 0); # 257| n_outputs++; # 258| Error: GCC_ANALYZER_WARNING (CWE-401): [#def65] coreutils-9.5-build/coreutils-9.5/src/tee.c:262:37: warning[-Wanalyzer-malloc-leak]: leak of 'xnmalloc((long unsigned int)(nfiles + 1), 8)' coreutils-9.5-build/coreutils-9.5/src/tee.c:255:24: note: in expansion of macro '_' coreutils-9.5-build/coreutils-9.5/separate/lib/error.h:408:28: note: in definition of macro '__gl_error_call' coreutils-9.5-build/coreutils-9.5/src/tee.c:267:11: note: in expansion of macro 'error' coreutils-9.5-build/coreutils-9.5/separate/lib/error.h:471:7: note: in expansion of macro '__gl_error_call' coreutils-9.5-build/coreutils-9.5/src/tee.c:267:11: note: in expansion of macro 'error' coreutils-9.5-build/coreutils-9.5/separate/lib/error.h:413:10: note: in expansion of macro '__gl_error_call1' coreutils-9.5-build/coreutils-9.5/separate/lib/error.h:471:7: note: in expansion of macro '__gl_error_call' coreutils-9.5-build/coreutils-9.5/src/tee.c:267:11: note: in expansion of macro 'error' # 260| { # 261| /* Do not treat "-" specially - as mandated by POSIX. */ # 262|-> descriptors[i] = fopen (files[i], mode_string); # 263| if (descriptors[i] == nullptr) # 264| { Error: GCC_ANALYZER_WARNING (CWE-401): [#def66] coreutils-9.5-build/coreutils-9.5/src/tsort.c:422:6: warning[-Wanalyzer-malloc-leak]: leak of 'xzalloc(56)' coreutils-9.5-build/coreutils-9.5/src/tsort.c: scope_hint: In function 'tsort' coreutils-9.5-build/coreutils-9.5/src/tsort.c: scope_hint: In function 'tsort' # 420| walk_tree (struct item *root, bool (*action) (struct item *)) # 421| { # 422|-> if (root->right) # 423| recurse_tree (root->right, action); # 424| } Error: GCC_ANALYZER_WARNING (CWE-401): [#def67] coreutils-9.5-build/coreutils-9.5/src/tsort.c:443:3: warning[-Wanalyzer-malloc-leak]: leak of 'xzalloc(56)' coreutils-9.5-build/coreutils-9.5/src/tsort.c: scope_hint: In function 'tsort' coreutils-9.5-build/coreutils-9.5/lib/assure.h:23: included_from: Included from here. coreutils-9.5-build/coreutils-9.5/src/tsort.c:28: included_from: Included from here. coreutils-9.5-build/coreutils-9.5/src/tsort.c:458:7: note: in expansion of macro 'affirm' # 441| error (EXIT_FAILURE, errno, "%s", quotef (file)); # 442| # 443|-> fadvise (stdin, FADVISE_SEQUENTIAL); # 444| # 445| init_tokenbuffer (&tokenbuffer); Error: COMPILER_WARNING: [#def68] coreutils-9.5-build/coreutils-9.5/src/wc_avx2.c: scope_hint: In function 'wc_lines_avx2' coreutils-9.5-build/coreutils-9.5/src/wc_avx2.c:38:5: warning[-Wpsabi]: AVX vector return without AVX enabled changes the ABI # 36| # 37| __m256i # 38|-> zeroes = _mm256_setzero_si256 (), # 39| endlines = _mm256_set1_epi8 ('\n'); # 40| Error: GCC_ANALYZER_WARNING (CWE-401): [#def69] coreutils-9.5-build/coreutils-9.5/src/who.c: scope_hint: In function 'print_user' coreutils-9.5-build/coreutils-9.5/src/who.c:432:1: warning[-Wanalyzer-malloc-leak]: leak of 'host' coreutils-9.5-build/coreutils-9.5/src/who.c:685:1: note: in expansion of macro 'main' coreutils-9.5-build/coreutils-9.5/lib/dirname.h:29: included_from: Included from here. coreutils-9.5-build/coreutils-9.5/src/system.h:257: included_from: Included from here. coreutils-9.5-build/coreutils-9.5/src/who.c:31: included_from: Included from here. coreutils-9.5-build/coreutils-9.5/lib/filename.h:93:23: note: in definition of macro 'ISSLASH' coreutils-9.5-build/coreutils-9.5/src/who.c:339:7: note: in expansion of macro 'IS_ABSOLUTE_FILE_NAME' coreutils-9.5-build/coreutils-9.5/src/who.c: scope_hint: In function 'print_user' # 430| time_string (utmp_ent), idlestr, pidstr, # 431| hoststr ? hoststr : "", ""); # 432|-> } # 433| # 434| static void
| analyzer-version-clippy | 1.80.1 |
| analyzer-version-cppcheck | 2.15.0 |
| analyzer-version-gcc | 14.2.1 |
| analyzer-version-gcc-analyzer | 14.2.1 |
| analyzer-version-shellcheck | 0.10.0 |
| analyzer-version-unicontrol | 0.0.2 |
| diffbase-analyzer-version-clippy | 1.80.1 |
| diffbase-analyzer-version-cppcheck | 2.15.0 |
| diffbase-analyzer-version-gcc | 14.2.1 |
| diffbase-analyzer-version-gcc-analyzer | 14.2.1 |
| diffbase-analyzer-version-shellcheck | 0.10.0 |
| diffbase-analyzer-version-unicontrol | 0.0.2 |
| diffbase-enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| diffbase-exit-code | 0 |
| diffbase-host | ip-172-16-1-124.us-west-2.compute.internal |
| diffbase-mock-config | fedora-rawhide-x86_64 |
| diffbase-project-name | coreutils-9.5-9.fc41 |
| diffbase-store-results-to | /tmp/csmockxcr7zk4i/coreutils-9.5-9.fc41/run0 |
| diffbase-time-created | 2024-09-05 14:09:38 |
| diffbase-time-finished | 2024-09-05 14:15:11 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,gcc,cppcheck,clippy,shellcheck' '-o' '/tmp/tmptplaqzyp/coreutils-9.5-9.fc41.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--diff-patches' '/tmp/tmptplaqzyp/coreutils-9.5-9.fc41.src.rpm' |
| diffbase-tool-version | csmock-3.6.1-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-124.us-west-2.compute.internal |
| mock-config | fedora-rawhide-x86_64 |
| project-name | coreutils-9.5-9.fc41 |
| store-results-to | /tmp/tmptplaqzyp/coreutils-9.5-9.fc41.tar.xz |
| time-created | 2024-09-05 14:09:38 |
| time-finished | 2024-09-05 14:21:18 |
| title | coreutils-9.5-9.fc41 - Defects in Patches |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,gcc,cppcheck,clippy,shellcheck' '-o' '/tmp/tmptplaqzyp/coreutils-9.5-9.fc41.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--diff-patches' '/tmp/tmptplaqzyp/coreutils-9.5-9.fc41.src.rpm' |
| tool-version | csmock-3.6.1-1.el9 |