coreutils-9.9-1.fc44

List of Findings

Error: SHELLCHECK_WARNING (CWE-758): [#def1]
/etc/profile.d/colorls.sh:1:1: error[SC2148]: Tips depend on target shell and yours is unknown. Add a shebang or a 'shell' directive.
#    1|-> # color-ls initialization
#    2|   
#    3|   # Skip all for noninteractive shells.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
coreutils-9.9/gnulib-tests/bench-digest.h:56:7: warning[-Wanalyzer-malloc-leak]: leak of 'memblock'
coreutils-9.9/gnulib-tests/bench-digest.h:25:6: branch_false: following 'false' branch (when 'argc == 3')...
coreutils-9.9/gnulib-tests/bench-digest.h:31:17: branch_false: ...to here
coreutils-9.9/gnulib-tests/bench-digest.h:34:29: acquire_memory: allocated here
coreutils-9.9/gnulib-tests/bench-digest.h:35:6: branch_false: following 'false' branch (when 'memblock' is non-NULL)...
coreutils-9.9/gnulib-tests/bench-digest.h:35:6: branch_false: ...to here
coreutils-9.9/gnulib-tests/bench-digest.h:53:19: branch_true: following 'true' branch...
coreutils-9.9/gnulib-tests/bench-digest.h:56:7: branch_true: ...to here
coreutils-9.9/gnulib-tests/bench-digest.h:56:7: throw: if 'sha3_224_buffer' throws an exception...
coreutils-9.9/gnulib-tests/bench-digest.h:56:7: danger: 'memblock' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#   54|       {
#   55|         char digest[64];
#   56|->       FUNC (memblock, size, digest);
#   57|       }
#   58|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def3]
coreutils-9.9/lib/asnprintf.c:31:12: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
coreutils-9.9/lib/asnprintf.c:30:3: acquire_resource: 'va_start' called here
coreutils-9.9/lib/asnprintf.c:31:12: throw: if 'vasnprintf' throws an exception...
coreutils-9.9/lib/asnprintf.c:31:12: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   29|   
#   30|     va_start (args, format);
#   31|->   result = vasnprintf (resultbuf, lengthp, format, args);
#   32|     va_end (args);
#   33|     return result;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def4]
coreutils-9.9/lib/aszprintf.c:31:12: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
coreutils-9.9/lib/aszprintf.c:30:3: acquire_resource: 'va_start' called here
coreutils-9.9/lib/aszprintf.c:31:12: throw: if 'vaszprintf' throws an exception...
coreutils-9.9/lib/aszprintf.c:31:12: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   29|   
#   30|     va_start (args, format);
#   31|->   result = vaszprintf (resultp, format, args);
#   32|     va_end (args);
#   33|     return result;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def5]
coreutils-9.9/lib/backupfile.c:237:33: warning[-Wanalyzer-malloc-leak]: leak of 'dirp'
coreutils-9.9/lib/backupfile.c:311:1: enter_function: entry to 'backupfile_internal'
coreutils-9.9/lib/backupfile.c:330:6: branch_false: following 'false' branch...
coreutils-9.9/lib/backupfile.c:333:8: branch_false: ...to here
coreutils-9.9/lib/backupfile.c:341:10: branch_false: following 'false' branch (when 'backup_type != 1')...
coreutils-9.9/lib/backupfile.c:344:17: branch_false: ...to here
coreutils-9.9/lib/backupfile.c:344:17: call_function: calling 'numbered_backup' from 'backupfile_internal'
#  235|       }
#  236|   
#  237|->   for (struct dirent *dp; (dp = readdir (dirp)) != NULL; )
#  238|       {
#  239|         if (_D_EXACT_NAMLEN (dp) < baselen + 4)

Error: CPPCHECK_WARNING (CWE-476): [#def6]
coreutils-9.9/lib/canonicalize.c:454: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
#  452|     if (!result)
#  453|       xalloc_die ();
#  454|->   return memcpy (result, rname, dest - rname);
#  455|   }
#  456|   

Error: COMPILER_WARNING (CWE-562): [#def7]
coreutils-9.9/lib/careadlinkat.c: scope_hint: In function 'careadlinkat.constprop'
coreutils-9.9/lib/careadlinkat.c:180:10: warning[-Wreturn-local-addr]: function may return address of local variable
#  180 |   return readlink_stk (fd, filename, buffer, buffer_size, alloc,
#      |          ^
coreutils-9.9/lib/careadlinkat.c:179:8: note: declared here
#  179 |   char stack_buf[STACK_BUF_SIZE];
#      |        ^
#  178|     #endif
#  179|     char stack_buf[STACK_BUF_SIZE];
#  180|->   return readlink_stk (fd, filename, buffer, buffer_size, alloc,
#  181|                          preadlinkat, stack_buf);
#  182|   }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def8]
coreutils-9.9/lib/creat-safer.c:30:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'creat(file,  mode)'
coreutils-9.9/lib/creat-safer.c:30:10: acquire_resource: opened here
coreutils-9.9/lib/creat-safer.c:30:10: danger: 'creat(file,  mode)' leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   28|   creat_safer (char const *file, mode_t mode)
#   29|   {
#   30|->   return fd_safer (creat (file, mode));
#   31|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def9]
coreutils-9.9/lib/di-set.c:120:22: warning[-Wanalyzer-malloc-leak]: leak of 'dis'
coreutils-9.9/lib/di-set.c:116:24: acquire_memory: allocated here
coreutils-9.9/lib/di-set.c:117:6: branch_true: following 'true' branch (when 'dis' is non-NULL)...
coreutils-9.9/lib/di-set.c:120:22: branch_true: ...to here
coreutils-9.9/lib/di-set.c:120:22: throw: if 'hash_initialize' throws an exception...
coreutils-9.9/lib/di-set.c:120:22: danger: 'dis' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  118|       {
#  119|         enum { INITIAL_DEV_MAP_SIZE = 11 };
#  120|->       dis->dev_map = hash_initialize (INITIAL_DEV_MAP_SIZE, NULL,
#  121|                                         di_ent_hash, di_ent_compare,
#  122|                                         di_ent_free);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def10]
coreutils-9.9/lib/error.c:157:15: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
/usr/include/bits/error.h:37:1: enter_function: entry to 'error'
coreutils-9.9/lib/error.c:288:3: acquire_resource: 'va_start' called here
coreutils-9.9/lib/error.c:289:3: call_function: calling 'verror' from 'error'
#  155|   #   error Please port fcntl to your platform
#  156|   #  endif
#  157|->   return 0 <= fcntl (fd, F_GETFL);
#  158|   # endif
#  159|   }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def11]
coreutils-9.9/lib/error.c:184:5: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
/usr/include/bits/error.h:37:1: enter_function: entry to 'error'
coreutils-9.9/lib/error.c:288:3: acquire_resource: 'va_start' called here
coreutils-9.9/lib/error.c:289:3: call_function: calling 'verror' from 'error'
#  182|     if (0 <= stdout_fd && is_open (stdout_fd))
#  183|   #endif
#  184|->     fflush (stdout);
#  185|   }
#  186|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def12]
coreutils-9.9/lib/error.c:266:5: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
/usr/include/bits/error.h:37:1: enter_function: entry to 'error'
coreutils-9.9/lib/error.c:288:3: acquire_resource: 'va_start' called here
coreutils-9.9/lib/error.c:289:3: call_function: calling 'verror' from 'error'
#  264|   #endif
#  265|     if (error_print_progname)
#  266|->     (*error_print_progname) ();
#  267|     else
#  268|       {

Error: GCC_ANALYZER_WARNING (CWE-404): [#def13]
coreutils-9.9/lib/error.c:332:5: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
/usr/include/bits/error.h:64:1: enter_function: entry to 'error_at_line'
coreutils-9.9/lib/error.c:363:3: acquire_resource: 'va_start' called here
coreutils-9.9/lib/error.c:364:3: call_function: calling 'verror_at_line' from 'error_at_line'
#  330|   #endif
#  331|     if (error_print_progname)
#  332|->     (*error_print_progname) ();
#  333|     else
#  334|       {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def14]
coreutils-9.9/lib/exclude.c:136:33: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(pattern)'
coreutils-9.9/lib/exclude.c:508:1: enter_function: entry to 'add_exclude'
coreutils-9.9/lib/exclude.c:510:6: branch_true: following 'true' branch...
coreutils-9.9/lib/exclude.c:511:10: branch_true: ...to here
coreutils-9.9/lib/exclude.c:510:7: branch_true: following 'true' branch...
coreutils-9.9/lib/exclude.c:513:14: branch_true: ...to here
coreutils-9.9/lib/exclude.c:525:10: branch_false: following 'false' branch...
coreutils-9.9/lib/exclude.c:561:15: branch_false: ...to here
coreutils-9.9/lib/exclude.c:561:14: branch_true: following 'true' branch...
coreutils-9.9/lib/exclude.c:563:27: branch_true: ...to here
coreutils-9.9/lib/exclude.c:565:15: call_function: calling 'exclude_add_pattern_buffer' from 'add_exclude'
#  134|   exclude_add_pattern_buffer (struct exclude *ex, char *buf)
#  135|   {
#  136|->   struct pattern_buffer *pbuf = xmalloc (sizeof *pbuf);
#  137|     pbuf->base = buf;
#  138|     pbuf->next = ex->patbuf;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def15]
coreutils-9.9/lib/exclude.c:272:39: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(40)'
coreutils-9.9/lib/exclude.c:508:1: enter_function: entry to 'add_exclude'
coreutils-9.9/lib/exclude.c:577:9: call_function: calling 'new_exclude_segment' from 'add_exclude'
#  270|                                         ? string_hasher_ci
#  271|                                         : string_hasher),
#  272|->                                      (options & FNM_CASEFOLD
#  273|                                         ? string_compare_ci
#  274|                                         : string_compare),

Error: GCC_ANALYZER_WARNING (CWE-401): [#def16]
coreutils-9.9/lib/exclude.c:429:15: warning[-Wanalyzer-malloc-leak]: leak of 'filename'
coreutils-9.9/lib/exclude.c:460:1: enter_function: entry to 'excluded_file_name'
coreutils-9.9/lib/exclude.c:463:6: branch_false: following 'false' branch...
coreutils-9.9/lib/exclude.c:463:6: branch_false: ...to here
coreutils-9.9/lib/exclude.c:475:10: branch_true: following 'true' branch...
coreutils-9.9/lib/exclude.c:477:14: branch_true: ...to here
coreutils-9.9/lib/exclude.c:477:14: branch_true: following 'true' branch (when 'filename' is NULL)...
coreutils-9.9/lib/exclude.c:478:33: branch_true: ...to here
coreutils-9.9/lib/exclude.c:479:15: call_function: calling 'file_name_matches' from 'excluded_file_name'
#  427|         while (true)
#  428|           {
#  429|->           if (hash_lookup (table, buffer))
#  430|               return true;
#  431|             if (options & FNM_LEADING_DIR)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def17]
coreutils-9.9/lib/exclude.c:580:11: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(pattern)'
coreutils-9.9/lib/exclude.c:582:11: throw: if 'hash_insert' throws an exception...
coreutils-9.9/lib/exclude.c:580:11: danger: 'xstrdup(pattern)' leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#  578|   
#  579|         char *str = xstrdup (pattern);
#  580|->       if ((options & (EXCLUDE_WILDCARDS | FNM_NOESCAPE)) == EXCLUDE_WILDCARDS)
#  581|           unescape_pattern (str);
#  582|         if (hash_insert (ex->head->v.table, str) != str)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def18]
coreutils-9.9/lib/exclude.c:605:7: warning[-Wanalyzer-null-dereference]: dereference of NULL 'buf'
coreutils-9.9/lib/exclude.c:658:1: enter_function: entry to 'add_exclude_file'
coreutils-9.9/lib/exclude.c:662:6: branch_false: following 'false' branch (when the strings are non-equal)...
coreutils-9.9/lib/exclude.c:665:14: branch_false: ...to here
coreutils-9.9/lib/exclude.c:666:6: branch_false: following 'false' branch...
coreutils-9.9/lib/exclude.c:668:12: branch_false: ...to here
coreutils-9.9/lib/exclude.c:668:12: call_function: calling 'add_exclude_fp' from 'add_exclude_file'
#  603|         if (buf_count == buf_alloc)
#  604|           buf = xpalloc (buf, &buf_alloc, 1, -1, 1);
#  605|->       buf[buf_count++] = c;
#  606|       }
#  607|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def19]
coreutils-9.9/lib/fcntl.c:328:22: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
coreutils-9.9/lib/fcntl.c:210:3: acquire_resource: 'va_start' called here
coreutils-9.9/lib/fcntl.c:328:22: throw: if 'fcntl' throws an exception...
coreutils-9.9/lib/fcntl.c:328:22: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  326|             #endif
#  327|               /* These actions take no argument.  */
#  328|->             result = fcntl (fd, action);
#  329|               break;
#  330|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def20]
coreutils-9.9/lib/fcntl.c:418:24: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
coreutils-9.9/lib/fcntl.c:210:3: acquire_resource: 'va_start' called here
coreutils-9.9/lib/fcntl.c:418:24: throw: if 'fcntl' throws an exception...
coreutils-9.9/lib/fcntl.c:418:24: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  416|               {
#  417|                 int x = va_arg (arg, int);
#  418|->               result = fcntl (fd, action, x);
#  419|               }
#  420|               break;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def21]
coreutils-9.9/lib/fcntl.c:426:24: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
coreutils-9.9/lib/fcntl.c:210:3: acquire_resource: 'va_start' called here
coreutils-9.9/lib/fcntl.c:426:24: throw: if 'fcntl' throws an exception...
coreutils-9.9/lib/fcntl.c:426:24: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  424|               {
#  425|                 void *p = va_arg (arg, void *);
#  426|->               result = fcntl (fd, action, p);
#  427|               }
#  428|               break;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def22]
coreutils-9.9/lib/fcntl.c:476:12: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
coreutils-9.9/lib/fcntl.c:202:1: enter_function: entry to 'rpl_fcntl'
coreutils-9.9/lib/fcntl.c:210:3: acquire_resource: 'va_start' called here
coreutils-9.9/lib/fcntl.c:216:18: call_function: inlined call to 'rpl_fcntl_DUPFD' from 'rpl_fcntl'
#  474|       }
#  475|   #else
#  476|->   result = fcntl (fd, F_DUPFD, target);
#  477|   #endif
#  478|     return result;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def23]
coreutils-9.9/lib/fcntl.c:506:16: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
coreutils-9.9/lib/fcntl.c:202:1: enter_function: entry to 'rpl_fcntl'
coreutils-9.9/lib/fcntl.c:210:3: acquire_resource: 'va_start' called here
coreutils-9.9/lib/fcntl.c:223:18: call_function: calling 'rpl_fcntl_DUPFD_CLOEXEC' from 'rpl_fcntl'
#  504|     if (0 <= have_dupfd_cloexec)
#  505|       {
#  506|->       result = fcntl (fd, F_DUPFD_CLOEXEC, target);
#  507|         if (0 <= result || errno != EINVAL)
#  508|           {

Error: GCC_ANALYZER_WARNING (CWE-404): [#def24]
coreutils-9.9/lib/fcntl.c:527:19: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
coreutils-9.9/lib/fcntl.c:202:1: enter_function: entry to 'rpl_fcntl'
coreutils-9.9/lib/fcntl.c:210:3: acquire_resource: 'va_start' called here
coreutils-9.9/lib/fcntl.c:223:18: call_function: calling 'rpl_fcntl_DUPFD_CLOEXEC' from 'rpl_fcntl'
#  525|     if (0 <= result && have_dupfd_cloexec == -1)
#  526|       {
#  527|->       int flags = fcntl (result, F_GETFD);
#  528|         if (flags < 0 || fcntl (result, F_SETFD, flags | FD_CLOEXEC) == -1)
#  529|           {

Error: GCC_ANALYZER_WARNING (CWE-404): [#def25]
coreutils-9.9/lib/fcntl.c:528:24: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
coreutils-9.9/lib/fcntl.c:202:1: enter_function: entry to 'rpl_fcntl'
coreutils-9.9/lib/fcntl.c:210:3: acquire_resource: 'va_start' called here
coreutils-9.9/lib/fcntl.c:223:18: call_function: calling 'rpl_fcntl_DUPFD_CLOEXEC' from 'rpl_fcntl'
#  526|       {
#  527|         int flags = fcntl (result, F_GETFD);
#  528|->       if (flags < 0 || fcntl (result, F_SETFD, flags | FD_CLOEXEC) == -1)
#  529|           {
#  530|             int saved_errno = errno;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def26]
coreutils-9.9/lib/fcntl.c:531:11: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
coreutils-9.9/lib/fcntl.c:202:1: enter_function: entry to 'rpl_fcntl'
coreutils-9.9/lib/fcntl.c:210:3: acquire_resource: 'va_start' called here
coreutils-9.9/lib/fcntl.c:223:18: call_function: calling 'rpl_fcntl_DUPFD_CLOEXEC' from 'rpl_fcntl'
#  529|           {
#  530|             int saved_errno = errno;
#  531|->           close (result);
#  532|             errno = saved_errno;
#  533|             result = -1;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def27]
coreutils-9.9/lib/fd-reopen.c:42:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd2'
coreutils-9.9/lib/fd-reopen.c:36:6: branch_false: following 'false' branch...
coreutils-9.9/lib/fd-reopen.c:40:17: branch_false: ...to here
coreutils-9.9/lib/fd-reopen.c:40:17: acquire_resource: opened here
coreutils-9.9/lib/fd-reopen.c:42:7: throw: if 'close' throws an exception...
coreutils-9.9/lib/fd-reopen.c:42:7: danger: 'fd2' leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#   40|         int fd2 = dup2 (fd, desired_fd);
#   41|         int saved_errno = errno;
#   42|->       close (fd);
#   43|         errno = saved_errno;
#   44|         return fd2;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def28]
coreutils-9.9/lib/file-has-acl.c:177:25: warning[-Wanalyzer-malloc-leak]: leak of 'ai.buf'
coreutils-9.9/lib/file-has-acl.c:982:1: enter_function: entry to 'file_has_acl'
coreutils-9.9/lib/file-has-acl.c:988:11: call_function: calling 'file_has_aclinfo' from 'file_has_acl'
#  175|           {
#  176|             ai->size = (fd < 0
#  177|->                       ? lsxattr (name, ai->buf, acl_alloc)
#  178|                         : flistxattr (fd, ai->buf, acl_alloc));
#  179|             if (0 < ai->size)

Error: CPPCHECK_WARNING (CWE-457): [#def29]
coreutils-9.9/lib/file-has-acl.c:497: error[uninitvar]: Uninitialized variable: buf
#  495|     int ret = (fd < 0
#  496|                ? ((flags & ACL_SYMLINK_FOLLOW ? getxattr : lgetxattr)
#  497|->                 (name, XATTR_NAME_NFSV4_ACL, buf, sizeof buf))
#  498|                : fgetxattr (fd, XATTR_NAME_NFSV4_ACL, buf, sizeof buf));
#  499|     if (ret < 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def30]
coreutils-9.9/lib/file-set.c:37:15: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(24)'
coreutils-9.9/lib/file-set.c:33:6: branch_false: following 'false' branch (when 'ht' is non-NULL)...
coreutils-9.9/lib/file-set.c:36:9: branch_false: ...to here
coreutils-9.9/lib/file-set.c:37:15: throw: if 'xstrdup' throws an exception...
coreutils-9.9/lib/file-set.c:37:15: danger: 'xmalloc(24)' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#   35|   
#   36|     ent = xmalloc (sizeof *ent);
#   37|->   ent->name = xstrdup (file);
#   38|     ent->st_ino = stats->st_ino;
#   39|     ent->st_dev = stats->st_dev;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def31]
coreutils-9.9/lib/file-set.c:38:17: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(24)'
coreutils-9.9/lib/file-set.c:33:6: branch_false: following 'false' branch (when 'ht' is non-NULL)...
coreutils-9.9/lib/file-set.c:36:9: branch_false: ...to here
coreutils-9.9/lib/file-set.c:42:39: throw: if 'hash_insert' throws an exception...
coreutils-9.9/lib/file-set.c:38:17: danger: 'xmalloc(24)' leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#   36|     ent = xmalloc (sizeof *ent);
#   37|     ent->name = xstrdup (file);
#   38|->   ent->st_ino = stats->st_ino;
#   39|     ent->st_dev = stats->st_dev;
#   40|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def32]
coreutils-9.9/lib/file-set.c:42:39: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
coreutils-9.9/lib/file-set.c:33:6: branch_false: following 'false' branch (when 'ht' is non-NULL)...
coreutils-9.9/lib/file-set.c:36:9: branch_false: ...to here
coreutils-9.9/lib/file-set.c:42:39: throw: if 'hash_insert' throws an exception...
coreutils-9.9/lib/file-set.c:42:39: danger: '<unknown>' leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
#   40|   
#   41|     {
#   42|->     struct F_triple *ent_from_table = hash_insert (ht, ent);
#   43|       if (ent_from_table == NULL)
#   44|         {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def33]
coreutils-9.9/lib/findprog-in.c:258:15: warning[-Wanalyzer-malloc-leak]: leak of 'path_rest'
coreutils-9.9/lib/findprog-in.c:89:8: branch_false: following 'false' branch (when 'has_slash == 0')...
coreutils-9.9/lib/findprog-in.c:215:6: branch_false: ...to here
coreutils-9.9/lib/findprog-in.c:222:23: acquire_memory: allocated here
coreutils-9.9/lib/findprog-in.c:223:8: branch_false: following 'false' branch (when 'path_copy' is non-NULL)...
coreutils-9.9/lib/findprog-in.c:223:8: branch_false: ...to here
coreutils-9.9/lib/findprog-in.c:245:30: branch_false: following 'false' branch...
coreutils-9.9/lib/findprog-in.c:248:9: branch_false: ...to here
coreutils-9.9/lib/findprog-in.c:251:12: branch_true: following 'true' branch (when 'path_rest == cp')...
coreutils-9.9/lib/findprog-in.c:251:12: branch_true: ...to here
coreutils-9.9/lib/findprog-in.c:255:12: branch_true: following 'true' branch...
coreutils-9.9/lib/findprog-in.c:258:15: throw: if 'concatenated_filename' throws an exception...
coreutils-9.9/lib/findprog-in.c:258:15: danger: 'path_rest' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  256|             {
#  257|               dir_as_prefix_to_free =
#  258|->               concatenated_filename (directory, dir, NULL);
#  259|               if (dir_as_prefix_to_free == NULL)
#  260|                 {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def34]
coreutils-9.9/lib/findprog-in.c:286:19: warning[-Wanalyzer-malloc-leak]: leak of 'path_rest'
coreutils-9.9/lib/findprog-in.c:89:8: branch_false: following 'false' branch (when 'has_slash == 0')...
coreutils-9.9/lib/findprog-in.c:215:6: branch_false: ...to here
coreutils-9.9/lib/findprog-in.c:222:23: acquire_memory: allocated here
coreutils-9.9/lib/findprog-in.c:223:8: branch_false: following 'false' branch (when 'path_copy' is non-NULL)...
coreutils-9.9/lib/findprog-in.c:223:8: branch_false: ...to here
coreutils-9.9/lib/findprog-in.c:245:30: branch_false: following 'false' branch...
coreutils-9.9/lib/findprog-in.c:248:9: branch_false: ...to here
coreutils-9.9/lib/findprog-in.c:251:12: branch_true: following 'true' branch (when 'path_rest == cp')...
coreutils-9.9/lib/findprog-in.c:251:12: branch_true: ...to here
coreutils-9.9/lib/findprog-in.c:255:12: branch_false: following 'false' branch (when 'directory' is NULL)...
coreutils-9.9/lib/findprog-in.c:274:9: branch_false: ...to here
coreutils-9.9/lib/findprog-in.c:274:21: branch_true: following 'true' branch (when 'i == 0')...
coreutils-9.9/lib/findprog-in.c:286:19: branch_true: ...to here
coreutils-9.9/lib/findprog-in.c:286:19: throw: if 'concatenated_filename' throws an exception...
coreutils-9.9/lib/findprog-in.c:286:19: danger: 'path_rest' leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  284|                   /* Concatenate dir_as_prefix, progname, and suffix.  */
#  285|                   char *progpathname =
#  286|->                   concatenated_filename (dir_as_prefix, progname, suffix);
#  287|   
#  288|                   if (progpathname == NULL)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def35]
coreutils-9.9/lib/fopen-safer.c:39:11: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(file,  mode)'
coreutils-9.9/lib/fopen-safer.c:33:14: acquire_resource: opened here
coreutils-9.9/lib/fopen-safer.c:35:6: branch_true: following 'true' branch...
coreutils-9.9/lib/fopen-safer.c:37:16: branch_true: ...to here
coreutils-9.9/lib/fopen-safer.c:39:10: branch_true: following 'true' branch...
coreutils-9.9/lib/fopen-safer.c:41:19: branch_true: ...to here
coreutils-9.9/lib/fopen-safer.c:41:19: throw: if 'dup_safer' throws an exception...
coreutils-9.9/lib/fopen-safer.c:39:11: danger: 'fopen(file,  mode)' leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   37|         int fd = fileno (fp);
#   38|   
#   39|->       if (0 <= fd && fd <= STDERR_FILENO)
#   40|           {
#   41|             int f = dup_safer (fd);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def36]
coreutils-9.9/lib/fopen-safer.c:39:11: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(file,  mode)'
coreutils-9.9/lib/fopen-safer.c:33:14: acquire_memory: allocated here
coreutils-9.9/lib/fopen-safer.c:35:6: branch_true: following 'true' branch...
coreutils-9.9/lib/fopen-safer.c:37:16: branch_true: ...to here
coreutils-9.9/lib/fopen-safer.c:39:10: branch_true: following 'true' branch...
coreutils-9.9/lib/fopen-safer.c:41:19: branch_true: ...to here
coreutils-9.9/lib/fopen-safer.c:41:19: throw: if 'dup_safer' throws an exception...
coreutils-9.9/lib/fopen-safer.c:39:11: danger: 'fopen(file,  mode)' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   37|         int fd = fileno (fp);
#   38|   
#   39|->       if (0 <= fd && fd <= STDERR_FILENO)
#   40|           {
#   41|             int f = dup_safer (fd);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def37]
coreutils-9.9/lib/fts-cycle.c:92:23: warning[-Wanalyzer-malloc-leak]: leak of 'ad'
coreutils-9.9/lib/fts-cycle.c:79:31: acquire_memory: allocated here
coreutils-9.9/lib/fts-cycle.c:82:10: branch_false: following 'false' branch (when 'ad' is non-NULL)...
coreutils-9.9/lib/fts-cycle.c:85:17: branch_false: ...to here
coreutils-9.9/lib/fts-cycle.c:92:23: throw: if 'hash_insert' throws an exception...
coreutils-9.9/lib/fts-cycle.c:92:23: danger: 'ad' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   90|            This can happen when following symlinks as well as
#   91|            with a corrupted directory hierarchy. */
#   92|->       ad_from_table = hash_insert (fts->fts_cycle.ht, ad);
#   93|   
#   94|         if (ad_from_table != ad)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def38]
coreutils-9.9/lib/fts-cycle.c:120:1: warning[-Wanalyzer-malloc-leak]: leak of 'ad'
coreutils-9.9/lib/fts-cycle.c:79:31: acquire_memory: allocated here
coreutils-9.9/lib/fts-cycle.c:82:10: branch_false: following 'false' branch (when 'ad' is non-NULL)...
coreutils-9.9/lib/fts-cycle.c:85:17: branch_false: ...to here
coreutils-9.9/lib/fts-cycle.c:94:10: branch_false: following 'false' branch...
coreutils-9.9/lib/fts-cycle.c:94:10: branch_false: ...to here
coreutils-9.9/lib/fts-cycle.c:120:1: danger: 'ad' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  118|   
#  119|     return true;
#  120|-> }
#  121|   
#  122|   /* Leave a directory during a file tree walk.  */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def39]
coreutils-9.9/lib/fts.c:740:17: warning[-Wanalyzer-malloc-leak]: leak of 't2'
coreutils-9.9/lib/fts.c:1273:1: enter_function: entry to 'fts_build'
coreutils-9.9/lib/fts.c:1313:16: branch_false: following 'false' branch...
coreutils-9.9/lib/fts.c:1325:38: branch_false: ...to here
coreutils-9.9/lib/fts.c:1385:12: branch_false: following 'false' branch...
coreutils-9.9/lib/fts.c:1395:23: branch_false: ...to here
coreutils-9.9/lib/fts.c:1395:23: branch_true: following 'true' branch (when 'type != 2')...
coreutils-9.9/lib/fts.c:1396:30: branch_true: ...to here
coreutils-9.9/lib/fts.c:1395:23: branch_false: following 'false' branch...
coreutils-9.9/lib/fts.c:1396:30: branch_false: following 'false' branch...
coreutils-9.9/lib/fts.c:1398:33: branch_false: ...to here
coreutils-9.9/lib/fts.c:1396:30: branch_false: following 'false' branch...
coreutils-9.9/lib/fts.c:1399:34: branch_false: ...to here
coreutils-9.9/lib/fts.c:1399:34: call_function: calling 'leaf_optimization' from 'fts_build'
#  738|             t2->f_type = fs_buf.f_type;
#  739|   
#  740|->           ent = hash_insert (h, t2);
#  741|             if (ent)
#  742|               fts_assert (ent == t2);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def40]
coreutils-9.9/lib/fts.c:748:10: warning[-Wanalyzer-malloc-leak]: leak of 't2'
coreutils-9.9/lib/fts.c:1273:1: enter_function: entry to 'fts_build'
coreutils-9.9/lib/fts.c:1313:16: branch_false: following 'false' branch...
coreutils-9.9/lib/fts.c:1325:38: branch_false: ...to here
coreutils-9.9/lib/fts.c:1385:12: branch_false: following 'false' branch...
coreutils-9.9/lib/fts.c:1395:23: branch_false: ...to here
coreutils-9.9/lib/fts.c:1395:23: branch_true: following 'true' branch (when 'type != 2')...
coreutils-9.9/lib/fts.c:1396:30: branch_true: ...to here
coreutils-9.9/lib/fts.c:1395:23: branch_false: following 'false' branch...
coreutils-9.9/lib/fts.c:1396:30: branch_false: following 'false' branch...
coreutils-9.9/lib/fts.c:1398:33: branch_false: ...to here
coreutils-9.9/lib/fts.c:1396:30: branch_false: following 'false' branch...
coreutils-9.9/lib/fts.c:1399:34: branch_false: ...to here
coreutils-9.9/lib/fts.c:1399:34: call_function: calling 'leaf_optimization' from 'fts_build'
#  746|       }
#  747|   
#  748|->   return fs_buf.f_type;
#  749|   }
#  750|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def41]
coreutils-9.9/lib/fts.c:1313:16: warning[-Wanalyzer-malloc-leak]: leak of '**sp.fts_cur.fts_dirp'
coreutils-9.9/lib/fts.c:1293:12: branch_false: following 'false' branch...
coreutils-9.9/lib/fts.c:1313:34: branch_false: ...to here
coreutils-9.9/lib/fts.c:1313:34: acquire_memory: allocated here
coreutils-9.9/lib/fts.c:1313:16: danger: '**sp.fts_cur.fts_dirp' leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
# 1311|               /* Open the directory for reading.  If this fails, we're done.
# 1312|                  If being called from fts_read, set the fts_info field. */
# 1313|->             if ((cur->fts_dirp = fts_opendir(cur->fts_accpath, &dir_fd)) == NULL)
# 1314|                 {
# 1315|                   if (type == BREAD)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def42]
coreutils-9.9/lib/getndelim2.c:111:16: warning[-Wanalyzer-malloc-leak]: leak of 'ptr'
coreutils-9.9/lib/getndelim2.c:76:6: branch_true: following 'true' branch (when 'ptr' is NULL)...
coreutils-9.9/lib/getndelim2.c:78:7: branch_true: ...to here
coreutils-9.9/lib/getndelim2.c:79:13: acquire_memory: allocated here
coreutils-9.9/lib/getndelim2.c:80:10: branch_false: following 'false' branch (when 'ptr' is non-NULL)...
coreutils-9.9/lib/getndelim2.c:84:6: branch_false: ...to here
coreutils-9.9/lib/getndelim2.c:84:6: branch_false: following 'false' branch (when 'size >= offset')...
coreutils-9.9/lib/getndelim2.c:87:3: branch_false: ...to here
coreutils-9.9/lib/getndelim2.c:90:6: branch_false: following 'false' branch...
coreutils-9.9/lib/getndelim2.c:94:6: branch_false: ...to here
coreutils-9.9/lib/getndelim2.c:111:16: throw: if 'freadptr' throws an exception...
coreutils-9.9/lib/getndelim2.c:111:16: danger: 'ptr' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  109|         size_t buffer_len;
#  110|   
#  111|->       buffer = freadptr (stream, &buffer_len);
#  112|         if (buffer)
#  113|           {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def43]
coreutils-9.9/lib/gl_openssl.h:81:10: warning[-Wanalyzer-malloc-leak]: leak of 'buffer'
coreutils-9.9/lib/md5-stream.c:58:1: enter_function: entry to 'md5_stream'
coreutils-9.9/lib/md5-stream.c:66:18: acquire_memory: allocated here
coreutils-9.9/lib/md5-stream.c:67:6: branch_false: following 'false' branch (when 'buffer' is non-NULL)...
coreutils-9.9/lib/md5-stream.c:71:3: call_function: inlined call to 'md5_init_ctx' from 'md5_stream'
#   79|   GL_OPENSSL_INLINE void
#   80|   GL_CRYPTO_FN (_init_ctx) (struct _gl_ctx *ctx)
#   81|-> { (void) OPENSSL_FN (_Init) ((_gl_CTX *) ctx); }
#   82|   
#   83|   /* These were never exposed by gnulib.  */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def44]
coreutils-9.9/lib/gl_openssl.h:96:3: warning[-Wanalyzer-malloc-leak]: leak of 'buffer'
coreutils-9.9/lib/sha256-stream.c:131:1: enter_function: entry to 'sha224_stream'
coreutils-9.9/lib/sha256-stream.c:133:10: call_function: calling 'shaxxx_stream' from 'sha224_stream'
#   94|   GL_OPENSSL_INLINE void *
#   95|   GL_CRYPTO_FN (_finish_ctx) (struct _gl_ctx *ctx, void *restrict res)
#   96|-> { OPENSSL_FN (_Final) ((unsigned char *) res, (_gl_CTX *) ctx); return res; }
#   97|   
#   98|   GL_OPENSSL_INLINE void *

Error: GCC_ANALYZER_WARNING (CWE-401): [#def45]
coreutils-9.9/lib/gl_openssl.h:100:10: warning[-Wanalyzer-malloc-leak]: leak of 'memblock'
coreutils-9.9/gnulib-tests/bench-digest.h:23:1: enter_function: entry to 'main'
coreutils-9.9/gnulib-tests/bench-digest.h:25:6: branch_false: following 'false' branch (when 'argc == 3')...
coreutils-9.9/gnulib-tests/bench-digest.h:31:17: branch_false: ...to here
coreutils-9.9/gnulib-tests/bench-digest.h:34:29: acquire_memory: allocated here
coreutils-9.9/gnulib-tests/bench-digest.h:35:6: branch_false: following 'false' branch (when 'memblock' is non-NULL)...
coreutils-9.9/gnulib-tests/bench-digest.h:35:6: branch_false: ...to here
coreutils-9.9/gnulib-tests/bench-digest.h:53:19: branch_true: following 'true' branch...
coreutils-9.9/gnulib-tests/bench-digest.h:56:7: call_function: inlined call to 'md5_buffer' from 'main'
#   98|   GL_OPENSSL_INLINE void *
#   99|   GL_CRYPTO_FN (_buffer) (const char *buf, size_t len, void *restrict res)
#  100|-> { return OPENSSL_FN () ((const unsigned char *) buf, len, (unsigned char *) res); }
#  101|   
#  102|   GL_OPENSSL_INLINE void *

Error: GCC_ANALYZER_WARNING (CWE-401): [#def46]
coreutils-9.9/lib/hash.c:236:14: warning[-Wanalyzer-malloc-leak]: leak of 'storage.bucket'
coreutils-9.9/lib/hash.c:854:1: enter_function: entry to 'hash_insert_if_absent'
coreutils-9.9/lib/hash.c:863:6: branch_false: following 'false' branch (when 'entry' is non-NULL)...
coreutils-9.9/lib/hash.c:867:15: branch_false: ...to here
coreutils-9.9/lib/hash.c:867:15: call_function: calling 'find_entry' from 'hash_insert_if_absent'
coreutils-9.9/lib/hash.c:867:15: return_function: returning to 'hash_insert_if_absent' from 'find_entry'
coreutils-9.9/lib/hash.c:867:6: branch_false: following 'false' branch...
coreutils-9.9/lib/hash.c:879:7: branch_false: ...to here
coreutils-9.9/lib/hash.c:879:6: branch_true: following 'true' branch...
coreutils-9.9/lib/hash.c:884:7: branch_true: ...to here
coreutils-9.9/lib/hash.c:885:10: branch_true: following 'true' branch...
coreutils-9.9/lib/hash.c:890:14: branch_true: ...to here
coreutils-9.9/lib/hash.c:895:14: branch_false: following 'false' branch (when 'candidate < 1.84467441e+19f')...
coreutils-9.9/lib/hash.c:902:16: branch_false: ...to here
coreutils-9.9/lib/hash.c:902:16: call_function: calling 'hash_rehash' from 'hash_insert_if_absent'
#  234|   safe_hasher (const Hash_table *table, const void *key)
#  235|   {
#  236|->   size_t n = table->hasher (key, table->n_buckets);
#  237|     if (! (n < table->n_buckets))
#  238|       abort ();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def47]
coreutils-9.9/lib/heap.c:51:17: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(32)'
coreutils-9.9/lib/heap.c:51:17: throw: if 'xnmalloc' throws an exception...
coreutils-9.9/lib/heap.c:51:17: danger: 'xmalloc(32)' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   49|       n_reserve = 1;
#   50|   
#   51|->   heap->array = xnmalloc (n_reserve, sizeof *(heap->array));
#   52|   
#   53|     heap->array[0] = nullptr;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def48]
coreutils-9.9/lib/ino-map.c:89:17: warning[-Wanalyzer-malloc-leak]: leak of 'im'
coreutils-9.9/lib/ino-map.c:84:24: acquire_memory: allocated here
coreutils-9.9/lib/ino-map.c:86:6: branch_true: following 'true' branch (when 'im' is non-NULL)...
coreutils-9.9/lib/ino-map.c:89:17: branch_true: ...to here
coreutils-9.9/lib/ino-map.c:89:17: throw: if 'hash_initialize' throws an exception...
coreutils-9.9/lib/ino-map.c:89:17: danger: 'im' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   87|       {
#   88|         enum { INITIAL_INO_MAP_TABLE_SIZE = 1021 };
#   89|->       im->map = hash_initialize (INITIAL_INO_MAP_TABLE_SIZE, NULL,
#   90|                                    ino_hash, ino_compare, free);
#   91|         if (! im->map)

Error: GCC_ANALYZER_WARNING (CWE-404): [#def49]
coreutils-9.9/lib/long-options.c:74:13: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
coreutils-9.9/lib/long-options.c:61:6: branch_true: following 'true' branch (when 'argc == 2')...
coreutils-9.9/lib/long-options.c:62:15: branch_true: ...to here
coreutils-9.9/lib/long-options.c:61:7: branch_true: following 'true' branch (when 'c != -1')...
coreutils-9.9/lib/long-options.c:64:7: branch_true: ...to here
coreutils-9.9/lib/long-options.c:73:13: acquire_resource: 'va_start' called here
coreutils-9.9/lib/long-options.c:74:13: throw: if 'version_etc_va' throws an exception...
coreutils-9.9/lib/long-options.c:74:13: danger: missing call to 'va_end' to match 'va_start' at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
#   72|               va_list authors;
#   73|               va_start (authors, usage_func);
#   74|->             version_etc_va (stdout, command_name, package, version, authors);
#   75|               exit (EXIT_SUCCESS);
#   76|             }

Error: CPPCHECK_WARNING (CWE-664): [#def50]
coreutils-9.9/lib/long-options.c:76: error[va_end_missing]: va_list 'authors' was opened but not closed by va_end().
#   74|               version_etc_va (stdout, command_name, package, version, authors);
#   75|               exit (EXIT_SUCCESS);
#   76|->           }
#   77|   
#   78|           default:

Error: GCC_ANALYZER_WARNING (CWE-404): [#def51]
coreutils-9.9/lib/long-options.c:127:13: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
coreutils-9.9/lib/long-options.c:115:6: branch_true: following 'true' branch (when 'c != -1')...
coreutils-9.9/lib/long-options.c:117:7: branch_true: ...to here
coreutils-9.9/lib/long-options.c:126:13: acquire_resource: 'va_start' called here
coreutils-9.9/lib/long-options.c:127:13: throw: if 'version_etc_va' throws an exception...
coreutils-9.9/lib/long-options.c:127:13: danger: missing call to 'va_end' to match 'va_start' at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#  125|               va_list authors;
#  126|               va_start (authors, usage_func);
#  127|->             version_etc_va (stdout, command_name, package, version, authors);
#  128|               exit (EXIT_SUCCESS);
#  129|             }

Error: CPPCHECK_WARNING (CWE-664): [#def52]
coreutils-9.9/lib/long-options.c:129: error[va_end_missing]: va_list 'authors' was opened but not closed by va_end().
#  127|               version_etc_va (stdout, command_name, package, version, authors);
#  128|               exit (EXIT_SUCCESS);
#  129|->           }
#  130|   
#  131|           default:

Error: GCC_ANALYZER_WARNING (CWE-401): [#def53]
coreutils-9.9/lib/mbfile.h:93:7: warning[-Wanalyzer-malloc-leak]: leak of 'ximalloc((long int)((long unsigned int)max_column_width * 32))'
coreutils-9.9/src/unexpand.c:107:1: enter_function: entry to 'unexpand'
coreutils-9.9/src/unexpand.c:124:6: branch_false: following 'false' branch...
coreutils-9.9/src/unexpand.c:127:3: branch_false: ...to here
coreutils-9.9/src/unexpand.c:185:13: call_function: calling 'mbfile_multi_getc' from 'unexpand'
coreutils-9.9/src/unexpand.c:185:13: return_function: returning to 'unexpand' from 'mbfile_multi_getc'
coreutils-9.9/src/unexpand.c:186:16: branch_true: following 'true' branch...
coreutils-9.9/src/unexpand.c:186:41: branch_true: ...to here
coreutils-9.9/src/unexpand.c:186:41: throw: if 'next_file' throws an exception...
coreutils-9.9/lib/mbfile.h:93:7: danger: 'ximalloc((long int)((long unsigned int)max_column_width * 32))' leaks here; was allocated at [(4)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/3)
#   91|   
#   92|     /* Return character pushed back, if there is one.  */
#   93|->   if (mbf->pushback_count > 0)
#   94|       {
#   95|         mb_copy (mbc, &mbf->pushback[mbf->pushback_count - 1]);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def54]
coreutils-9.9/lib/mgetgroups.c:96:16: warning[-Wanalyzer-malloc-leak]: leak of 'g'
coreutils-9.9/lib/mgetgroups.c:66:1: enter_function: entry to 'mgetgroups'
coreutils-9.9/lib/mgetgroups.c:81:6: branch_true: following 'true' branch (when 'username' is non-NULL)...
coreutils-9.9/lib/mgetgroups.c:84:7: branch_true: ...to here
coreutils-9.9/lib/mgetgroups.c:86:11: call_function: calling 'realloc_groupbuf' from 'mgetgroups'
coreutils-9.9/lib/mgetgroups.c:86:11: return_function: returning to 'mgetgroups' from 'realloc_groupbuf'
coreutils-9.9/lib/mgetgroups.c:87:10: branch_false: following 'false' branch...
coreutils-9.9/lib/mgetgroups.c:87:10: branch_false: ...to here
coreutils-9.9/lib/mgetgroups.c:96:16: throw: if 'getgrouplist' throws an exception...
coreutils-9.9/lib/mgetgroups.c:96:16: danger: 'g' leaks here; was allocated at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
#   94|   
#   95|             /* getgrouplist updates max_n_groups to num required.  */
#   96|->           ng = getgrouplist (username, gid, g, &max_n_groups);
#   97|   
#   98|             /* Some systems (like Darwin) have a bug where they

Error: GCC_ANALYZER_WARNING (CWE-401): [#def55]
coreutils-9.9/lib/mountlist.c:537:30: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(56)'
coreutils-9.9/lib/mountlist.c:462:1: enter_function: entry to 'read_file_system_list'
coreutils-9.9/lib/mountlist.c:481:8: branch_true: following 'true' branch...
coreutils-9.9/lib/mountlist.c:483:15: branch_true: ...to here
coreutils-9.9/lib/mountlist.c:486:16: branch_true: following 'true' branch...
coreutils-9.9/lib/mountlist.c:491:18: branch_true: ...to here
coreutils-9.9/lib/mountlist.c:503:27: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.9/lib/mountlist.c:503:27: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.9/lib/mountlist.c:504:16: branch_false: following 'false' branch...
coreutils-9.9/lib/mountlist.c:508:19: branch_false: ...to here
coreutils-9.9/lib/mountlist.c:509:21: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.9/lib/mountlist.c:509:21: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.9/lib/mountlist.c:510:16: branch_false: following 'false' branch...
coreutils-9.9/lib/mountlist.c:514:26: branch_false: ...to here
coreutils-9.9/lib/mountlist.c:520:21: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.9/lib/mountlist.c:520:21: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.9/lib/mountlist.c:526:19: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.9/lib/mountlist.c:526:19: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.9/lib/mountlist.c:537:30: throw: if 'xstrdup' throws an exception...
coreutils-9.9/lib/mountlist.c:537:30: danger: 'xmalloc(56)' leaks here; was allocated at [(31)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/30)
#  535|               me = xmalloc (sizeof *me);
#  536|   
#  537|->             me->me_devname = xstrdup (source);
#  538|               me->me_mountdir = xstrdup (target);
#  539|               me->me_mntroot = xstrdup (mntroot);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def56]
coreutils-9.9/lib/mountlist.c:538:31: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
coreutils-9.9/lib/mountlist.c:462:1: enter_function: entry to 'read_file_system_list'
coreutils-9.9/lib/mountlist.c:481:8: branch_true: following 'true' branch...
coreutils-9.9/lib/mountlist.c:483:15: branch_true: ...to here
coreutils-9.9/lib/mountlist.c:486:16: branch_true: following 'true' branch...
coreutils-9.9/lib/mountlist.c:491:18: branch_true: ...to here
coreutils-9.9/lib/mountlist.c:503:27: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.9/lib/mountlist.c:503:27: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.9/lib/mountlist.c:504:16: branch_false: following 'false' branch...
coreutils-9.9/lib/mountlist.c:508:19: branch_false: ...to here
coreutils-9.9/lib/mountlist.c:509:21: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.9/lib/mountlist.c:509:21: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.9/lib/mountlist.c:510:16: branch_false: following 'false' branch...
coreutils-9.9/lib/mountlist.c:514:26: branch_false: ...to here
coreutils-9.9/lib/mountlist.c:520:21: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.9/lib/mountlist.c:520:21: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.9/lib/mountlist.c:526:19: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.9/lib/mountlist.c:526:19: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.9/lib/mountlist.c:538:31: danger: '<unknown>' leaks here; was allocated at [(31)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/30)
#  536|   
#  537|               me->me_devname = xstrdup (source);
#  538|->             me->me_mountdir = xstrdup (target);
#  539|               me->me_mntroot = xstrdup (mntroot);
#  540|               me->me_type = xstrdup (fstype);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def57]
coreutils-9.9/lib/mountlist.c:538:31: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(56)'
coreutils-9.9/lib/mountlist.c:462:1: enter_function: entry to 'read_file_system_list'
coreutils-9.9/lib/mountlist.c:481:8: branch_true: following 'true' branch...
coreutils-9.9/lib/mountlist.c:483:15: branch_true: ...to here
coreutils-9.9/lib/mountlist.c:486:16: branch_true: following 'true' branch...
coreutils-9.9/lib/mountlist.c:491:18: branch_true: ...to here
coreutils-9.9/lib/mountlist.c:503:27: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.9/lib/mountlist.c:503:27: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.9/lib/mountlist.c:504:16: branch_false: following 'false' branch...
coreutils-9.9/lib/mountlist.c:508:19: branch_false: ...to here
coreutils-9.9/lib/mountlist.c:509:21: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.9/lib/mountlist.c:509:21: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.9/lib/mountlist.c:510:16: branch_false: following 'false' branch...
coreutils-9.9/lib/mountlist.c:514:26: branch_false: ...to here
coreutils-9.9/lib/mountlist.c:520:21: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.9/lib/mountlist.c:520:21: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.9/lib/mountlist.c:526:19: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.9/lib/mountlist.c:526:19: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.9/lib/mountlist.c:538:31: throw: if 'xstrdup' throws an exception...
coreutils-9.9/lib/mountlist.c:538:31: danger: 'xmalloc(56)' leaks here; was allocated at [(31)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/30)
#  536|   
#  537|               me->me_devname = xstrdup (source);
#  538|->             me->me_mountdir = xstrdup (target);
#  539|               me->me_mntroot = xstrdup (mntroot);
#  540|               me->me_type = xstrdup (fstype);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def58]
coreutils-9.9/lib/mountlist.c:539:30: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
coreutils-9.9/lib/mountlist.c:462:1: enter_function: entry to 'read_file_system_list'
coreutils-9.9/lib/mountlist.c:481:8: branch_true: following 'true' branch...
coreutils-9.9/lib/mountlist.c:483:15: branch_true: ...to here
coreutils-9.9/lib/mountlist.c:486:16: branch_true: following 'true' branch...
coreutils-9.9/lib/mountlist.c:491:18: branch_true: ...to here
coreutils-9.9/lib/mountlist.c:503:27: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.9/lib/mountlist.c:503:27: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.9/lib/mountlist.c:504:16: branch_false: following 'false' branch...
coreutils-9.9/lib/mountlist.c:508:19: branch_false: ...to here
coreutils-9.9/lib/mountlist.c:509:21: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.9/lib/mountlist.c:509:21: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.9/lib/mountlist.c:510:16: branch_false: following 'false' branch...
coreutils-9.9/lib/mountlist.c:514:26: branch_false: ...to here
coreutils-9.9/lib/mountlist.c:520:21: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.9/lib/mountlist.c:520:21: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.9/lib/mountlist.c:526:19: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.9/lib/mountlist.c:526:19: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.9/lib/mountlist.c:539:30: danger: '<unknown>' leaks here; was allocated at [(31)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/30)
#  537|               me->me_devname = xstrdup (source);
#  538|               me->me_mountdir = xstrdup (target);
#  539|->             me->me_mntroot = xstrdup (mntroot);
#  540|               me->me_type = xstrdup (fstype);
#  541|               me->me_type_malloced = 1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def59]
coreutils-9.9/lib/mountlist.c:539:30: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(56)'
coreutils-9.9/lib/mountlist.c:462:1: enter_function: entry to 'read_file_system_list'
coreutils-9.9/lib/mountlist.c:481:8: branch_true: following 'true' branch...
coreutils-9.9/lib/mountlist.c:483:15: branch_true: ...to here
coreutils-9.9/lib/mountlist.c:486:16: branch_true: following 'true' branch...
coreutils-9.9/lib/mountlist.c:491:18: branch_true: ...to here
coreutils-9.9/lib/mountlist.c:503:27: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.9/lib/mountlist.c:503:27: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.9/lib/mountlist.c:504:16: branch_false: following 'false' branch...
coreutils-9.9/lib/mountlist.c:508:19: branch_false: ...to here
coreutils-9.9/lib/mountlist.c:509:21: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.9/lib/mountlist.c:509:21: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.9/lib/mountlist.c:510:16: branch_false: following 'false' branch...
coreutils-9.9/lib/mountlist.c:514:26: branch_false: ...to here
coreutils-9.9/lib/mountlist.c:520:21: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.9/lib/mountlist.c:520:21: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.9/lib/mountlist.c:526:19: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.9/lib/mountlist.c:526:19: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.9/lib/mountlist.c:539:30: throw: if 'xstrdup' throws an exception...
coreutils-9.9/lib/mountlist.c:539:30: danger: 'xmalloc(56)' leaks here; was allocated at [(31)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/30)
#  537|               me->me_devname = xstrdup (source);
#  538|               me->me_mountdir = xstrdup (target);
#  539|->             me->me_mntroot = xstrdup (mntroot);
#  540|               me->me_type = xstrdup (fstype);
#  541|               me->me_type_malloced = 1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def60]
coreutils-9.9/lib/mountlist.c:540:27: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
coreutils-9.9/lib/mountlist.c:462:1: enter_function: entry to 'read_file_system_list'
coreutils-9.9/lib/mountlist.c:481:8: branch_true: following 'true' branch...
coreutils-9.9/lib/mountlist.c:483:15: branch_true: ...to here
coreutils-9.9/lib/mountlist.c:486:16: branch_true: following 'true' branch...
coreutils-9.9/lib/mountlist.c:491:18: branch_true: ...to here
coreutils-9.9/lib/mountlist.c:503:27: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.9/lib/mountlist.c:503:27: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.9/lib/mountlist.c:504:16: branch_false: following 'false' branch...
coreutils-9.9/lib/mountlist.c:508:19: branch_false: ...to here
coreutils-9.9/lib/mountlist.c:509:21: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.9/lib/mountlist.c:509:21: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.9/lib/mountlist.c:510:16: branch_false: following 'false' branch...
coreutils-9.9/lib/mountlist.c:514:26: branch_false: ...to here
coreutils-9.9/lib/mountlist.c:520:21: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.9/lib/mountlist.c:520:21: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.9/lib/mountlist.c:526:19: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.9/lib/mountlist.c:526:19: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.9/lib/mountlist.c:540:27: danger: '<unknown>' leaks here; was allocated at [(31)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/30)
#  538|               me->me_mountdir = xstrdup (target);
#  539|               me->me_mntroot = xstrdup (mntroot);
#  540|->             me->me_type = xstrdup (fstype);
#  541|               me->me_type_malloced = 1;
#  542|               me->me_dev = makedev (devmaj, devmin);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def61]
coreutils-9.9/lib/mountlist.c:540:27: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(56)'
coreutils-9.9/lib/mountlist.c:462:1: enter_function: entry to 'read_file_system_list'
coreutils-9.9/lib/mountlist.c:481:8: branch_true: following 'true' branch...
coreutils-9.9/lib/mountlist.c:483:15: branch_true: ...to here
coreutils-9.9/lib/mountlist.c:486:16: branch_true: following 'true' branch...
coreutils-9.9/lib/mountlist.c:491:18: branch_true: ...to here
coreutils-9.9/lib/mountlist.c:503:27: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.9/lib/mountlist.c:503:27: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.9/lib/mountlist.c:504:16: branch_false: following 'false' branch...
coreutils-9.9/lib/mountlist.c:508:19: branch_false: ...to here
coreutils-9.9/lib/mountlist.c:509:21: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.9/lib/mountlist.c:509:21: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.9/lib/mountlist.c:510:16: branch_false: following 'false' branch...
coreutils-9.9/lib/mountlist.c:514:26: branch_false: ...to here
coreutils-9.9/lib/mountlist.c:520:21: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.9/lib/mountlist.c:520:21: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.9/lib/mountlist.c:526:19: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.9/lib/mountlist.c:526:19: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.9/lib/mountlist.c:540:27: throw: if 'xstrdup' throws an exception...
coreutils-9.9/lib/mountlist.c:540:27: danger: 'xmalloc(56)' leaks here; was allocated at [(31)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/30)
#  538|               me->me_mountdir = xstrdup (target);
#  539|               me->me_mntroot = xstrdup (mntroot);
#  540|->             me->me_type = xstrdup (fstype);
#  541|               me->me_type_malloced = 1;
#  542|               me->me_dev = makedev (devmaj, devmin);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def62]
coreutils-9.9/lib/mountlist.c:583:39: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(56)'
coreutils-9.9/lib/mountlist.c:481:8: branch_false: following 'false' branch...
coreutils-9.9/lib/mountlist.c:574:14: branch_false: ...to here
coreutils-9.9/lib/mountlist.c:575:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
coreutils-9.9/lib/mountlist.c:575:12: branch_false: ...to here
coreutils-9.9/lib/mountlist.c:578:16: branch_true: following 'true' branch (when 'mnt' is non-NULL)...
coreutils-9.9/lib/mountlist.c:580:25: branch_true: ...to here
coreutils-9.9/lib/mountlist.c:583:30: throw: if 'xstrdup' throws an exception...
coreutils-9.9/lib/mountlist.c:583:39: danger: 'xmalloc(56)' leaks here; was allocated at [(7)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/6)
#  581|   
#  582|               me = xmalloc (sizeof *me);
#  583|->             me->me_devname = xstrdup (mnt->mnt_fsname);
#  584|               me->me_mountdir = xstrdup (mnt->mnt_dir);
#  585|               me->me_mntroot = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def63]
coreutils-9.9/lib/mountlist.c:584:31: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
coreutils-9.9/lib/mountlist.c:481:8: branch_false: following 'false' branch...
coreutils-9.9/lib/mountlist.c:574:14: branch_false: ...to here
coreutils-9.9/lib/mountlist.c:575:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
coreutils-9.9/lib/mountlist.c:575:12: branch_false: ...to here
coreutils-9.9/lib/mountlist.c:578:16: branch_true: following 'true' branch (when 'mnt' is non-NULL)...
coreutils-9.9/lib/mountlist.c:580:25: branch_true: ...to here
coreutils-9.9/lib/mountlist.c:584:31: danger: '<unknown>' leaks here; was allocated at [(7)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/6)
#  582|               me = xmalloc (sizeof *me);
#  583|               me->me_devname = xstrdup (mnt->mnt_fsname);
#  584|->             me->me_mountdir = xstrdup (mnt->mnt_dir);
#  585|               me->me_mntroot = NULL;
#  586|               me->me_type = xstrdup (mnt->mnt_type);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def64]
coreutils-9.9/lib/mountlist.c:586:27: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
coreutils-9.9/lib/mountlist.c:481:8: branch_false: following 'false' branch...
coreutils-9.9/lib/mountlist.c:574:14: branch_false: ...to here
coreutils-9.9/lib/mountlist.c:575:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
coreutils-9.9/lib/mountlist.c:575:12: branch_false: ...to here
coreutils-9.9/lib/mountlist.c:578:16: branch_true: following 'true' branch (when 'mnt' is non-NULL)...
coreutils-9.9/lib/mountlist.c:580:25: branch_true: ...to here
coreutils-9.9/lib/mountlist.c:586:27: danger: '<unknown>' leaks here; was allocated at [(7)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/6)
#  584|               me->me_mountdir = xstrdup (mnt->mnt_dir);
#  585|               me->me_mntroot = NULL;
#  586|->             me->me_type = xstrdup (mnt->mnt_type);
#  587|               me->me_type_malloced = 1;
#  588|               me->me_dummy = ME_DUMMY (me->me_devname, me->me_type, bind);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def65]
coreutils-9.9/lib/posixtm.c:55:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*digit_pair'
coreutils-9.9/lib/posixtm.c:92:1: enter_function: entry to 'posix_time_parse'
coreutils-9.9/lib/posixtm.c:111:6: branch_false: following 'false' branch...
coreutils-9.9/lib/posixtm.c:119:21: branch_false: following 'false' branch (when 'i >= len')...
coreutils-9.9/lib/posixtm.c:123:9: branch_false: ...to here
coreutils-9.9/lib/posixtm.c:123:6: branch_true: following 'true' branch...
coreutils-9.9/lib/posixtm.c:125:13: branch_true: ...to here
coreutils-9.9/lib/posixtm.c:125:13: call_function: calling 'year' from 'posix_time_parse'
#   53|       {
#   54|       case 1:
#   55|->       tm->tm_year = *digit_pair;
#   56|         /* Deduce the century based on the year.
#   57|            POSIX requires that 00-68 be interpreted as 2000-2068,

Error: GCC_ANALYZER_WARNING (CWE-457): [#def66]
coreutils-9.9/lib/posixtm.c:70:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*digit_pair'
coreutils-9.9/lib/posixtm.c:92:1: enter_function: entry to 'posix_time_parse'
coreutils-9.9/lib/posixtm.c:111:6: branch_false: following 'false' branch...
coreutils-9.9/lib/posixtm.c:119:21: branch_false: following 'false' branch (when 'i >= len')...
coreutils-9.9/lib/posixtm.c:123:9: branch_false: ...to here
coreutils-9.9/lib/posixtm.c:123:6: branch_true: following 'true' branch...
coreutils-9.9/lib/posixtm.c:125:13: branch_true: ...to here
coreutils-9.9/lib/posixtm.c:125:13: call_function: calling 'year' from 'posix_time_parse'
#   68|         if (! (syntax_bits & PDS_CENTURY))
#   69|           return false;
#   70|->       tm->tm_year = digit_pair[0] * 100 + digit_pair[1] - 1900;
#   71|         break;
#   72|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def67]
coreutils-9.9/lib/posixtm.c:70:43: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'digit_pair[1]'
coreutils-9.9/lib/posixtm.c:92:1: enter_function: entry to 'posix_time_parse'
coreutils-9.9/lib/posixtm.c:111:6: branch_false: following 'false' branch...
coreutils-9.9/lib/posixtm.c:119:21: branch_true: following 'true' branch (when 'i < len')...
coreutils-9.9/lib/posixtm.c:120:23: branch_true: ...to here
coreutils-9.9/lib/posixtm.c:119:21: branch_false: following 'false' branch (when 'i >= len')...
coreutils-9.9/lib/posixtm.c:123:9: branch_false: ...to here
coreutils-9.9/lib/posixtm.c:123:6: branch_true: following 'true' branch...
coreutils-9.9/lib/posixtm.c:125:13: branch_true: ...to here
coreutils-9.9/lib/posixtm.c:125:13: call_function: calling 'year' from 'posix_time_parse'
#   68|         if (! (syntax_bits & PDS_CENTURY))
#   69|           return false;
#   70|->       tm->tm_year = digit_pair[0] * 100 + digit_pair[1] - 1900;
#   71|         break;
#   72|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def68]
coreutils-9.9/lib/randint.c:74:3: warning[-Wanalyzer-malloc-leak]: leak of 'randread_new(name,  bytes_bound)'
coreutils-9.9/lib/randint.c:84:1: enter_function: entry to 'randint_all_new'
coreutils-9.9/lib/randint.c:86:36: acquire_memory: allocated here
coreutils-9.9/lib/randint.c:87:10: branch_true: following 'true' branch...
coreutils-9.9/lib/randint.c:87:20: branch_true: ...to here
coreutils-9.9/lib/randint.c:87:20: call_function: calling 'randint_new' from 'randint_all_new'
#   72|   {
#   73|     struct randint_source *s = xmalloc (sizeof *s);
#   74|->   s->source = source;
#   75|     s->randnum = s->randmax = 0;
#   76|     return s;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def69]
coreutils-9.9/lib/randint.h:52:10: warning[-Wanalyzer-malloc-leak]: leak of 'sv'
coreutils-9.9/lib/randperm.c:149:1: enter_function: entry to 'randperm_new'
coreutils-9.9/lib/randperm.c:193:23: branch_true: following 'true' branch...
coreutils-9.9/lib/randperm.c:200:18: call_function: calling 'sparse_new' from 'randperm_new'
coreutils-9.9/lib/randperm.c:200:18: return_function: returning to 'randperm_new' from 'sparse_new'
coreutils-9.9/lib/randperm.c:201:16: branch_false: following 'false' branch...
coreutils-9.9/lib/randperm.c:203:17: branch_false: ...to here
coreutils-9.9/lib/randperm.c:213:21: branch_true: following 'true' branch (when 'i < h')...
coreutils-9.9/lib/randperm.c:215:47: branch_true: ...to here
coreutils-9.9/lib/randperm.c:215:28: call_function: inlined call to 'randint_choose' from 'randperm_new'
#   50|   randint_choose (struct randint_source *s, randint choices)
#   51|   {
#   52|->   return randint_genmax (s, choices - 1);
#   53|   }
#   54|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def70]
coreutils-9.9/lib/randint.h:52:10: warning[-Wanalyzer-malloc-leak]: leak of 'v'
coreutils-9.9/lib/randperm.c:149:1: enter_function: entry to 'randperm_new'
coreutils-9.9/lib/randperm.c:213:21: branch_true: following 'true' branch (when 'i < h')...
coreutils-9.9/lib/randperm.c:215:47: branch_true: ...to here
coreutils-9.9/lib/randperm.c:215:28: call_function: inlined call to 'randint_choose' from 'randperm_new'
#   50|   randint_choose (struct randint_source *s, randint choices)
#   51|   {
#   52|->   return randint_genmax (s, choices - 1);
#   53|   }
#   54|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def71]
coreutils-9.9/lib/randint.h:52:10: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(8)'
coreutils-9.9/lib/randperm.c:149:1: enter_function: entry to 'randperm_new'
coreutils-9.9/lib/randperm.c:161:14: call_function: inlined call to 'randint_choose' from 'randperm_new'
#   50|   randint_choose (struct randint_source *s, randint choices)
#   51|   {
#   52|->   return randint_genmax (s, choices - 1);
#   53|   }
#   54|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def72]
coreutils-9.9/lib/randperm.c:111:28: warning[-Wanalyzer-malloc-leak]: leak of 'sv'
coreutils-9.9/lib/randperm.c:149:1: enter_function: entry to 'randperm_new'
coreutils-9.9/lib/randperm.c:193:23: branch_true: following 'true' branch...
coreutils-9.9/lib/randperm.c:200:18: call_function: calling 'sparse_new' from 'randperm_new'
coreutils-9.9/lib/randperm.c:200:18: return_function: returning to 'randperm_new' from 'sparse_new'
coreutils-9.9/lib/randperm.c:201:16: branch_false: following 'false' branch...
coreutils-9.9/lib/randperm.c:203:17: branch_false: ...to here
coreutils-9.9/lib/randperm.c:213:21: branch_true: following 'true' branch (when 'i < h')...
coreutils-9.9/lib/randperm.c:215:47: branch_true: ...to here
coreutils-9.9/lib/randperm.c:216:16: branch_true: following 'true' branch (when 'sparse != 0')...
coreutils-9.9/lib/randperm.c:217:15: branch_true: ...to here
coreutils-9.9/lib/randperm.c:217:15: call_function: calling 'sparse_swap' from 'randperm_new'
#  109|   sparse_swap (sparse_map *sv, size_t *v, size_t i, size_t j)
#  110|   {
#  111|->   struct sparse_ent_ *v1 = hash_remove (sv, &(struct sparse_ent_) {i,0});
#  112|     struct sparse_ent_ *v2 = hash_remove (sv, &(struct sparse_ent_) {j,0});
#  113|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def73]
coreutils-9.9/lib/randperm.c:111:28: warning[-Wanalyzer-malloc-leak]: leak of 'v'
coreutils-9.9/lib/randperm.c:149:1: enter_function: entry to 'randperm_new'
coreutils-9.9/lib/randperm.c:193:23: branch_true: following 'true' branch...
coreutils-9.9/lib/randperm.c:201:16: branch_false: following 'false' branch...
coreutils-9.9/lib/randperm.c:203:17: branch_false: ...to here
coreutils-9.9/lib/randperm.c:213:21: branch_true: following 'true' branch (when 'i < h')...
coreutils-9.9/lib/randperm.c:215:47: branch_true: ...to here
coreutils-9.9/lib/randperm.c:216:16: branch_true: following 'true' branch (when 'sparse != 0')...
coreutils-9.9/lib/randperm.c:217:15: branch_true: ...to here
coreutils-9.9/lib/randperm.c:217:15: call_function: calling 'sparse_swap' from 'randperm_new'
#  109|   sparse_swap (sparse_map *sv, size_t *v, size_t i, size_t j)
#  110|   {
#  111|->   struct sparse_ent_ *v1 = hash_remove (sv, &(struct sparse_ent_) {i,0});
#  112|     struct sparse_ent_ *v2 = hash_remove (sv, &(struct sparse_ent_) {j,0});
#  113|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def74]
coreutils-9.9/lib/randperm.c:112:28: warning[-Wanalyzer-malloc-leak]: leak of 'v'
coreutils-9.9/lib/randperm.c:149:1: enter_function: entry to 'randperm_new'
coreutils-9.9/lib/randperm.c:193:23: branch_true: following 'true' branch...
coreutils-9.9/lib/randperm.c:201:16: branch_false: following 'false' branch...
coreutils-9.9/lib/randperm.c:203:17: branch_false: ...to here
coreutils-9.9/lib/randperm.c:213:21: branch_true: following 'true' branch (when 'i < h')...
coreutils-9.9/lib/randperm.c:215:47: branch_true: ...to here
coreutils-9.9/lib/randperm.c:216:16: branch_true: following 'true' branch (when 'sparse != 0')...
coreutils-9.9/lib/randperm.c:217:15: branch_true: ...to here
coreutils-9.9/lib/randperm.c:217:15: call_function: calling 'sparse_swap' from 'randperm_new'
#  110|   {
#  111|     struct sparse_ent_ *v1 = hash_remove (sv, &(struct sparse_ent_) {i,0});
#  112|->   struct sparse_ent_ *v2 = hash_remove (sv, &(struct sparse_ent_) {j,0});
#  113|   
#  114|     /* FIXME: reduce the frequency of these mallocs.  */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def75]
coreutils-9.9/lib/randperm.c:117:12: warning[-Wanalyzer-malloc-leak]: leak of 'v'
coreutils-9.9/lib/randperm.c:149:1: enter_function: entry to 'randperm_new'
coreutils-9.9/lib/randperm.c:193:23: branch_true: following 'true' branch...
coreutils-9.9/lib/randperm.c:201:16: branch_false: following 'false' branch...
coreutils-9.9/lib/randperm.c:203:17: branch_false: ...to here
coreutils-9.9/lib/randperm.c:213:21: branch_true: following 'true' branch (when 'i < h')...
coreutils-9.9/lib/randperm.c:215:47: branch_true: ...to here
coreutils-9.9/lib/randperm.c:216:16: branch_true: following 'true' branch (when 'sparse != 0')...
coreutils-9.9/lib/randperm.c:217:15: branch_true: ...to here
coreutils-9.9/lib/randperm.c:217:15: call_function: calling 'sparse_swap' from 'randperm_new'
#  115|     if (!v1)
#  116|       {
#  117|->       v1 = xmalloc (sizeof *v1);
#  118|         v1->index = v1->val = i;
#  119|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def76]
coreutils-9.9/lib/randperm.c:122:12: warning[-Wanalyzer-malloc-leak]: leak of 'v'
coreutils-9.9/lib/randperm.c:149:1: enter_function: entry to 'randperm_new'
coreutils-9.9/lib/randperm.c:193:23: branch_true: following 'true' branch...
coreutils-9.9/lib/randperm.c:201:16: branch_false: following 'false' branch...
coreutils-9.9/lib/randperm.c:203:17: branch_false: ...to here
coreutils-9.9/lib/randperm.c:213:21: branch_true: following 'true' branch (when 'i < h')...
coreutils-9.9/lib/randperm.c:215:47: branch_true: ...to here
coreutils-9.9/lib/randperm.c:216:16: branch_true: following 'true' branch (when 'sparse != 0')...
coreutils-9.9/lib/randperm.c:217:15: branch_true: ...to here
coreutils-9.9/lib/randperm.c:217:15: call_function: calling 'sparse_swap' from 'randperm_new'
#  120|     if (!v2)
#  121|       {
#  122|->       v2 = xmalloc (sizeof *v2);
#  123|         v2->index = v2->val = j;
#  124|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def77]
coreutils-9.9/lib/randperm.c:122:12: warning[-Wanalyzer-malloc-leak]: leak of 'v1'
coreutils-9.9/lib/randperm.c:115:6: branch_true: following 'true' branch...
coreutils-9.9/lib/randperm.c:117:12: branch_true: ...to here
coreutils-9.9/lib/randperm.c:120:6: branch_true: following 'true' branch...
coreutils-9.9/lib/randperm.c:122:12: branch_true: ...to here
coreutils-9.9/lib/randperm.c:122:12: throw: if 'xmalloc' throws an exception...
coreutils-9.9/lib/randperm.c:122:12: danger: 'v1' leaks here; was allocated at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
#  120|     if (!v2)
#  121|       {
#  122|->       v2 = xmalloc (sizeof *v2);
#  123|         v2->index = v2->val = j;
#  124|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def78]
coreutils-9.9/lib/randperm.c:129:8: warning[-Wanalyzer-malloc-leak]: leak of 'v'
coreutils-9.9/lib/randperm.c:149:1: enter_function: entry to 'randperm_new'
coreutils-9.9/lib/randperm.c:193:23: branch_true: following 'true' branch...
coreutils-9.9/lib/randperm.c:201:16: branch_false: following 'false' branch...
coreutils-9.9/lib/randperm.c:203:17: branch_false: ...to here
coreutils-9.9/lib/randperm.c:213:21: branch_true: following 'true' branch (when 'i < h')...
coreutils-9.9/lib/randperm.c:215:47: branch_true: ...to here
coreutils-9.9/lib/randperm.c:216:16: branch_true: following 'true' branch (when 'sparse != 0')...
coreutils-9.9/lib/randperm.c:217:15: branch_true: ...to here
coreutils-9.9/lib/randperm.c:217:15: call_function: calling 'sparse_swap' from 'randperm_new'
#  127|     v1->val = v2->val;
#  128|     v2->val = t;
#  129|->   if (!hash_insert (sv, v1))
#  130|       xalloc_die ();
#  131|     if (!hash_insert (sv, v2))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def79]
coreutils-9.9/lib/randperm.c:129:8: warning[-Wanalyzer-malloc-leak]: leak of 'v1'
coreutils-9.9/lib/randperm.c:115:6: branch_true: following 'true' branch...
coreutils-9.9/lib/randperm.c:117:12: branch_true: ...to here
coreutils-9.9/lib/randperm.c:120:6: branch_false: following 'false' branch...
coreutils-9.9/lib/randperm.c:126:10: branch_false: ...to here
coreutils-9.9/lib/randperm.c:129:8: throw: if 'hash_insert' throws an exception...
coreutils-9.9/lib/randperm.c:129:8: danger: 'v1' leaks here; was allocated at [(3)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/2)
#  127|     v1->val = v2->val;
#  128|     v2->val = t;
#  129|->   if (!hash_insert (sv, v1))
#  130|       xalloc_die ();
#  131|     if (!hash_insert (sv, v2))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def80]
coreutils-9.9/lib/randperm.c:129:8: warning[-Wanalyzer-malloc-leak]: leak of 'v2'
coreutils-9.9/lib/randperm.c:115:6: branch_false: following 'false' branch...
coreutils-9.9/lib/randperm.c:120:6: branch_false: ...to here
coreutils-9.9/lib/randperm.c:120:6: branch_true: following 'true' branch...
coreutils-9.9/lib/randperm.c:122:12: branch_true: ...to here
coreutils-9.9/lib/randperm.c:129:8: throw: if 'hash_insert' throws an exception...
coreutils-9.9/lib/randperm.c:129:8: danger: 'v2' leaks here; was allocated at [(5)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/4)
#  127|     v1->val = v2->val;
#  128|     v2->val = t;
#  129|->   if (!hash_insert (sv, v1))
#  130|       xalloc_die ();
#  131|     if (!hash_insert (sv, v2))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def81]
coreutils-9.9/lib/randperm.c:130:5: warning[-Wanalyzer-malloc-leak]: leak of 'v1'
coreutils-9.9/lib/randperm.c:115:6: branch_true: following 'true' branch...
coreutils-9.9/lib/randperm.c:117:12: branch_true: ...to here
coreutils-9.9/lib/randperm.c:120:6: branch_false: following 'false' branch...
coreutils-9.9/lib/randperm.c:126:10: branch_false: ...to here
coreutils-9.9/lib/randperm.c:129:6: branch_true: following 'true' branch...
coreutils-9.9/lib/randperm.c:130:5: branch_true: ...to here
coreutils-9.9/lib/randperm.c:130:5: throw: if 'xalloc_die' throws an exception...
coreutils-9.9/lib/randperm.c:130:5: danger: 'v1' leaks here; was allocated at [(3)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/2)
#  128|     v2->val = t;
#  129|     if (!hash_insert (sv, v1))
#  130|->     xalloc_die ();
#  131|     if (!hash_insert (sv, v2))
#  132|       xalloc_die ();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def82]
coreutils-9.9/lib/randperm.c:130:5: warning[-Wanalyzer-malloc-leak]: leak of 'v2'
coreutils-9.9/lib/randperm.c:115:6: branch_false: following 'false' branch...
coreutils-9.9/lib/randperm.c:120:6: branch_false: ...to here
coreutils-9.9/lib/randperm.c:120:6: branch_true: following 'true' branch...
coreutils-9.9/lib/randperm.c:122:12: branch_true: ...to here
coreutils-9.9/lib/randperm.c:129:6: branch_true: following 'true' branch...
coreutils-9.9/lib/randperm.c:130:5: branch_true: ...to here
coreutils-9.9/lib/randperm.c:130:5: throw: if 'xalloc_die' throws an exception...
coreutils-9.9/lib/randperm.c:130:5: danger: 'v2' leaks here; was allocated at [(5)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/4)
#  128|     v2->val = t;
#  129|     if (!hash_insert (sv, v1))
#  130|->     xalloc_die ();
#  131|     if (!hash_insert (sv, v2))
#  132|       xalloc_die ();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def83]
coreutils-9.9/lib/randperm.c:131:8: warning[-Wanalyzer-malloc-leak]: leak of 'v1'
coreutils-9.9/lib/randperm.c:115:6: branch_true: following 'true' branch...
coreutils-9.9/lib/randperm.c:117:12: branch_true: ...to here
coreutils-9.9/lib/randperm.c:120:6: branch_false: following 'false' branch...
coreutils-9.9/lib/randperm.c:126:10: branch_false: ...to here
coreutils-9.9/lib/randperm.c:129:6: branch_false: following 'false' branch...
coreutils-9.9/lib/randperm.c:131:8: branch_false: ...to here
coreutils-9.9/lib/randperm.c:131:8: throw: if 'hash_insert' throws an exception...
coreutils-9.9/lib/randperm.c:131:8: danger: 'v1' leaks here; was allocated at [(3)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/2)
#  129|     if (!hash_insert (sv, v1))
#  130|       xalloc_die ();
#  131|->   if (!hash_insert (sv, v2))
#  132|       xalloc_die ();
#  133|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def84]
coreutils-9.9/lib/randperm.c:131:8: warning[-Wanalyzer-malloc-leak]: leak of 'v2'
coreutils-9.9/lib/randperm.c:115:6: branch_false: following 'false' branch...
coreutils-9.9/lib/randperm.c:120:6: branch_false: ...to here
coreutils-9.9/lib/randperm.c:120:6: branch_true: following 'true' branch...
coreutils-9.9/lib/randperm.c:122:12: branch_true: ...to here
coreutils-9.9/lib/randperm.c:129:6: branch_false: following 'false' branch...
coreutils-9.9/lib/randperm.c:131:8: branch_false: ...to here
coreutils-9.9/lib/randperm.c:131:8: throw: if 'hash_insert' throws an exception...
coreutils-9.9/lib/randperm.c:131:8: danger: 'v2' leaks here; was allocated at [(5)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/4)
#  129|     if (!hash_insert (sv, v1))
#  130|       xalloc_die ();
#  131|->   if (!hash_insert (sv, v2))
#  132|       xalloc_die ();
#  133|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def85]
coreutils-9.9/lib/randperm.c:132:5: warning[-Wanalyzer-malloc-leak]: leak of 'v1'
coreutils-9.9/lib/randperm.c:115:6: branch_true: following 'true' branch...
coreutils-9.9/lib/randperm.c:117:12: branch_true: ...to here
coreutils-9.9/lib/randperm.c:120:6: branch_false: following 'false' branch...
coreutils-9.9/lib/randperm.c:126:10: branch_false: ...to here
coreutils-9.9/lib/randperm.c:129:6: branch_false: following 'false' branch...
coreutils-9.9/lib/randperm.c:131:8: branch_false: ...to here
coreutils-9.9/lib/randperm.c:131:6: branch_true: following 'true' branch...
coreutils-9.9/lib/randperm.c:132:5: branch_true: ...to here
coreutils-9.9/lib/randperm.c:132:5: throw: if 'xalloc_die' throws an exception...
coreutils-9.9/lib/randperm.c:132:5: danger: 'v1' leaks here; was allocated at [(3)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/2)
#  130|       xalloc_die ();
#  131|     if (!hash_insert (sv, v2))
#  132|->     xalloc_die ();
#  133|   
#  134|     v[i] = v1->val;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def86]
coreutils-9.9/lib/randperm.c:132:5: warning[-Wanalyzer-malloc-leak]: leak of 'v2'
coreutils-9.9/lib/randperm.c:115:6: branch_false: following 'false' branch...
coreutils-9.9/lib/randperm.c:120:6: branch_false: ...to here
coreutils-9.9/lib/randperm.c:120:6: branch_true: following 'true' branch...
coreutils-9.9/lib/randperm.c:122:12: branch_true: ...to here
coreutils-9.9/lib/randperm.c:129:6: branch_false: following 'false' branch...
coreutils-9.9/lib/randperm.c:131:8: branch_false: ...to here
coreutils-9.9/lib/randperm.c:131:6: branch_true: following 'true' branch...
coreutils-9.9/lib/randperm.c:132:5: branch_true: ...to here
coreutils-9.9/lib/randperm.c:132:5: throw: if 'xalloc_die' throws an exception...
coreutils-9.9/lib/randperm.c:132:5: danger: 'v2' leaks here; was allocated at [(5)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/4)
#  130|       xalloc_die ();
#  131|     if (!hash_insert (sv, v2))
#  132|->     xalloc_die ();
#  133|   
#  134|     v[i] = v1->val;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def87]
coreutils-9.9/lib/randperm.c:135:1: warning[-Wanalyzer-malloc-leak]: leak of 'v1'
coreutils-9.9/lib/randperm.c:115:6: branch_true: following 'true' branch...
coreutils-9.9/lib/randperm.c:117:12: branch_true: ...to here
coreutils-9.9/lib/randperm.c:120:6: branch_false: following 'false' branch...
coreutils-9.9/lib/randperm.c:126:10: branch_false: ...to here
coreutils-9.9/lib/randperm.c:129:6: branch_false: following 'false' branch...
coreutils-9.9/lib/randperm.c:131:8: branch_false: ...to here
coreutils-9.9/lib/randperm.c:131:6: branch_false: following 'false' branch...
coreutils-9.9/lib/randperm.c:134:4: branch_false: ...to here
coreutils-9.9/lib/randperm.c:135:1: danger: 'v1' leaks here; was allocated at [(3)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/2)
#  133|   
#  134|     v[i] = v1->val;
#  135|-> }
#  136|   
#  137|   static void

Error: GCC_ANALYZER_WARNING (CWE-401): [#def88]
coreutils-9.9/lib/randperm.c:135:1: warning[-Wanalyzer-malloc-leak]: leak of 'v2'
coreutils-9.9/lib/randperm.c:115:6: branch_false: following 'false' branch...
coreutils-9.9/lib/randperm.c:120:6: branch_false: ...to here
coreutils-9.9/lib/randperm.c:120:6: branch_true: following 'true' branch...
coreutils-9.9/lib/randperm.c:122:12: branch_true: ...to here
coreutils-9.9/lib/randperm.c:129:6: branch_false: following 'false' branch...
coreutils-9.9/lib/randperm.c:131:8: branch_false: ...to here
coreutils-9.9/lib/randperm.c:131:6: branch_false: following 'false' branch...
coreutils-9.9/lib/randperm.c:134:4: branch_false: ...to here
coreutils-9.9/lib/randperm.c:135:1: danger: 'v2' leaks here; was allocated at [(5)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/4)
#  133|   
#  134|     v[i] = v1->val;
#  135|-> }
#  136|   
#  137|   static void

Error: GCC_ANALYZER_WARNING (CWE-401): [#def89]
coreutils-9.9/lib/randperm.c:203:17: warning[-Wanalyzer-malloc-leak]: leak of 'sparse_new(h * 2)'
coreutils-9.9/lib/randperm.c:149:1: enter_function: entry to 'randperm_new'
coreutils-9.9/lib/randperm.c:193:23: branch_true: following 'true' branch...
coreutils-9.9/lib/randperm.c:200:18: call_function: calling 'sparse_new' from 'randperm_new'
coreutils-9.9/lib/randperm.c:200:18: return_function: returning to 'randperm_new' from 'sparse_new'
coreutils-9.9/lib/randperm.c:201:16: branch_false: following 'false' branch...
coreutils-9.9/lib/randperm.c:203:17: branch_false: ...to here
coreutils-9.9/lib/randperm.c:203:17: throw: if 'xnmalloc' throws an exception...
coreutils-9.9/lib/randperm.c:203:17: danger: 'sparse_new(h * 2)' leaks here; was allocated at [(8)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/7)
#  201|               if (sv == nullptr)
#  202|                 xalloc_die ();
#  203|->             v = xnmalloc (h, sizeof *v);
#  204|             }
#  205|           else

Error: GCC_ANALYZER_WARNING (CWE-401): [#def90]
coreutils-9.9/lib/randread.c:119:31: warning[-Wanalyzer-malloc-leak]: leak of 'source'
coreutils-9.9/lib/randread.c:173:1: enter_function: entry to 'randread_new'
coreutils-9.9/lib/randread.c:175:6: branch_false: following 'false' branch (when 'bytes_bound != 0')...
coreutils-9.9/lib/randread.c:182:10: branch_false: ...to here
coreutils-9.9/lib/randread.c:182:10: branch_true: following 'true' branch (when 'name' is non-NULL)...
coreutils-9.9/lib/randread.c:183:25: branch_true: ...to here
coreutils-9.9/lib/randread.c:183:25: acquire_memory: allocated here
coreutils-9.9/lib/randread.c:183:12: branch_false: following 'false' branch...
coreutils-9.9/lib/randread.c:186:11: call_function: inlined call to 'simple_new' from 'randread_new'
#  117|   simple_new (FILE *source, void const *handler_arg)
#  118|   {
#  119|->   struct randread_source *s = xmalloc (sizeof *s);
#  120|     s->source = source;
#  121|     s->handler = randread_error;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def91]
coreutils-9.9/lib/randread.c:203:28: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(4152)'
coreutils-9.9/lib/randread.c:173:1: enter_function: entry to 'randread_new'
coreutils-9.9/lib/randread.c:175:6: branch_false: following 'false' branch (when 'bytes_bound != 0')...
coreutils-9.9/lib/randread.c:182:10: branch_false: ...to here
coreutils-9.9/lib/randread.c:182:10: branch_false: following 'false' branch (when 'name' is NULL)...
coreutils-9.9/lib/randread.c:186:11: call_function: inlined call to 'simple_new' from 'randread_new'
coreutils-9.9/lib/randread.c:188:10: branch_false: following 'false' branch (when 'source' is NULL)...
coreutils-9.9/lib/randread.c:202:11: branch_false: ...to here
coreutils-9.9/lib/randread.c:203:17: call_function: calling 'get_nonce' from 'randread_new'
#  201|                <https://eprint.iacr.org/2006/438>.  */
#  202|             s->buf.isaac.buffered = 0;
#  203|->           if (! get_nonce (s->buf.isaac.state.m,
#  204|                              sizeof s->buf.isaac.state.m))
#  205|               {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def92]
coreutils-9.9/lib/read-file.c:199:7: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(filename,  mode)'
coreutils-9.9/lib/read-file.c:190:1: enter_function: entry to 'read_file'
coreutils-9.9/lib/read-file.c:193:18: acquire_resource: opened here
coreutils-9.9/lib/read-file.c:196:6: branch_false: following 'false' branch...
coreutils-9.9/lib/read-file.c:199:7: branch_false: ...to here
coreutils-9.9/lib/read-file.c:202:9: call_function: calling 'fread_file' from 'read_file'
#  197|       return NULL;
#  198|   
#  199|->   if (flags & RF_SENSITIVE)
#  200|       setvbuf (stream, NULL, _IONBF, 0);
#  201|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def93]
coreutils-9.9/lib/read-file.c:199:7: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(filename,  mode)'
coreutils-9.9/lib/read-file.c:190:1: enter_function: entry to 'read_file'
coreutils-9.9/lib/read-file.c:193:18: acquire_memory: allocated here
coreutils-9.9/lib/read-file.c:196:6: branch_false: following 'false' branch...
coreutils-9.9/lib/read-file.c:199:7: branch_false: ...to here
coreutils-9.9/lib/read-file.c:202:9: call_function: calling 'fread_file' from 'read_file'
#  197|       return NULL;
#  198|   
#  199|->   if (flags & RF_SENSITIVE)
#  200|       setvbuf (stream, NULL, _IONBF, 0);
#  201|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def94]
coreutils-9.9/lib/readtokens.c:110:13: warning[-Wanalyzer-malloc-leak]: leak of 'lengths'
coreutils-9.9/lib/readtokens.c:139:1: enter_function: entry to 'readtokens'
coreutils-9.9/lib/readtokens.c:165:29: call_function: calling 'readtoken' from 'readtokens'
#  108|   
#  109|         if (i == n)
#  110|->         p = xpalloc (p, &n, 1, -1, sizeof *p);
#  111|   
#  112|         if (c < 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def95]
coreutils-9.9/lib/readtokens.c:110:13: warning[-Wanalyzer-malloc-leak]: leak of 'tokens'
coreutils-9.9/lib/readtokens.c:139:1: enter_function: entry to 'readtokens'
coreutils-9.9/lib/readtokens.c:165:29: call_function: calling 'readtoken' from 'readtokens'
#  108|   
#  109|         if (i == n)
#  110|->         p = xpalloc (p, &n, 1, -1, sizeof *p);
#  111|   
#  112|         if (c < 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def96]
coreutils-9.9/lib/readtokens.c:158:13: warning[-Wanalyzer-malloc-leak]: leak of 'xnmalloc(projected_n_tokens, 8)'
coreutils-9.9/lib/readtokens.c:158:13: throw: if 'xnmalloc' throws an exception...
coreutils-9.9/lib/readtokens.c:158:13: danger: 'xnmalloc(projected_n_tokens, 8)' leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  156|     sz = projected_n_tokens;
#  157|     tokens = xnmalloc (sz, sizeof *tokens);
#  158|->   lengths = xnmalloc (sz, sizeof *lengths);
#  159|   
#  160|     n_tokens = 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def97]
coreutils-9.9/lib/readutmp.c:251:3: warning[-Wanalyzer-null-dereference]: dereference of NULL 'p'
coreutils-9.9/lib/readutmp.c:977:1: enter_function: entry to 'read_utmp'
coreutils-9.9/lib/readutmp.c:981:6: branch_true: following 'true' branch (when the strings are equal)...
coreutils-9.9/lib/readutmp.c:983:12: branch_true: ...to here
coreutils-9.9/lib/readutmp.c:983:12: call_function: calling 'read_utmp_from_systemd' from 'read_utmp'
#  249|     char *stringlim = (char *) a.utmp + a.alloc_bytes;
#  250|     char *p = stringlim - a.string_bytes;
#  251|->   *--p = '\0'; /* NUL-terminate ut->ut_user */
#  252|     ut->ut_user = p = memcpy (p - user_len, user, user_len);
#  253|     *--p = '\0'; /* NUL-terminate ut->ut_id */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def98]
coreutils-9.9/lib/readutmp.c:752:31: warning[-Wanalyzer-malloc-leak]: leak of 'opendir("/dev/pts")'
coreutils-9.9/lib/readutmp.c:977:1: enter_function: entry to 'read_utmp'
coreutils-9.9/lib/readutmp.c:981:6: branch_true: following 'true' branch (when the strings are equal)...
coreutils-9.9/lib/readutmp.c:983:12: branch_true: ...to here
coreutils-9.9/lib/readutmp.c:983:12: call_function: calling 'read_utmp_from_systemd' from 'read_utmp'
#  750|         for (;;)
#  751|           {
#  752|->           struct dirent *dp = readdir (dirp);
#  753|             if (dp == NULL)
#  754|               break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def99]
coreutils-9.9/lib/sha1-stream.c:59:3: warning[-Wanalyzer-malloc-leak]: leak of 'buffer'
coreutils-9.9/lib/sha1-stream.c:54:18: acquire_memory: allocated here
coreutils-9.9/lib/sha1-stream.c:55:6: branch_false: following 'false' branch (when 'buffer' is non-NULL)...
coreutils-9.9/lib/sha1-stream.c:59:3: branch_false: ...to here
coreutils-9.9/lib/sha1-stream.c:59:3: throw: if 'sha1_init_ctx' throws an exception...
coreutils-9.9/lib/sha1-stream.c:59:3: danger: 'buffer' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   57|   
#   58|     struct sha1_ctx ctx;
#   59|->   sha1_init_ctx (&ctx);
#   60|     size_t sum;
#   61|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def100]
coreutils-9.9/lib/sha256-stream.c:61:3: warning[-Wanalyzer-malloc-leak]: leak of 'buffer'
coreutils-9.9/lib/sha256-stream.c:131:1: enter_function: entry to 'sha224_stream'
coreutils-9.9/lib/sha256-stream.c:133:10: call_function: calling 'shaxxx_stream' from 'sha224_stream'
#   59|   
#   60|     struct sha256_ctx ctx;
#   61|->   init_ctx (&ctx);
#   62|     size_t sum;
#   63|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def101]
coreutils-9.9/lib/sha3-stream.c:57:9: warning[-Wanalyzer-malloc-leak]: leak of 'buffer'
coreutils-9.9/lib/sha3-stream.c:166:1: enter_function: entry to 'sha3_512_stream'
coreutils-9.9/lib/sha3-stream.c:168:10: call_function: calling 'sha3_xxx_stream' from 'sha3_512_stream'
#   55|   
#   56|     struct sha3_ctx ctx;
#   57|->   if (! init_ctx (&ctx))
#   58|       {
#   59|         free (buffer);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def102]
coreutils-9.9/lib/sha512-stream.c:61:3: warning[-Wanalyzer-malloc-leak]: leak of 'buffer'
coreutils-9.9/lib/sha512-stream.c:131:1: enter_function: entry to 'sha384_stream'
coreutils-9.9/lib/sha512-stream.c:133:10: call_function: calling 'shaxxx_stream' from 'sha384_stream'
#   59|   
#   60|     struct sha512_ctx ctx;
#   61|->   init_ctx (&ctx);
#   62|     size_t sum;
#   63|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def103]
coreutils-9.9/lib/sm3-stream.c:56:3: warning[-Wanalyzer-malloc-leak]: leak of 'buffer'
coreutils-9.9/lib/sm3-stream.c:51:18: acquire_memory: allocated here
coreutils-9.9/lib/sm3-stream.c:52:6: branch_false: following 'false' branch (when 'buffer' is non-NULL)...
coreutils-9.9/lib/sm3-stream.c:56:3: branch_false: ...to here
coreutils-9.9/lib/sm3-stream.c:56:3: throw: if 'sm3_init_ctx' throws an exception...
coreutils-9.9/lib/sm3-stream.c:56:3: danger: 'buffer' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   54|   
#   55|     /* Initialize the computation context.  */
#   56|->   sm3_init_ctx (&ctx);
#   57|   
#   58|     /* Iterate over full file contents.  */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def104]
coreutils-9.9/lib/time_rz.c:100:22: warning[-Wanalyzer-malloc-leak]: leak of 'tzalloc(getenv("TZ"))'
coreutils-9.9/separate/lib/time.h:1133:1: enter_function: entry to 'mktime_z'
coreutils-9.9/lib/time_rz.c:292:6: branch_false: following 'false' branch (when 'tz' is non-NULL)...
coreutils-9.9/lib/time_rz.c:296:27: branch_false: ...to here
coreutils-9.9/lib/time_rz.c:296:27: call_function: calling 'set_tz' from 'mktime_z'
#   98|   {
#   99|     size_t name_size = name ? strlen (name) + 1 : 0;
#  100|->   size_t abbr_size = name_size < ABBR_SIZE_MIN ? ABBR_SIZE_MIN : name_size + 1;
#  101|     timezone_t tz = malloc (FLEXSIZEOF (struct tm_zone, abbrs, abbr_size));
#  102|     if (tz)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def105]
coreutils-9.9/lib/time_rz.c:218:10: warning[-Wanalyzer-malloc-leak]: leak of 'set_tz(tz)'
coreutils-9.9/separate/lib/time.h:1133:1: enter_function: entry to 'mktime_z'
coreutils-9.9/lib/time_rz.c:292:6: branch_false: following 'false' branch (when 'tz' is non-NULL)...
coreutils-9.9/lib/time_rz.c:296:27: branch_false: ...to here
coreutils-9.9/lib/time_rz.c:296:27: call_function: calling 'set_tz' from 'mktime_z'
coreutils-9.9/lib/time_rz.c:296:27: return_function: returning to 'mktime_z' from 'set_tz'
coreutils-9.9/lib/time_rz.c:297:10: branch_true: following 'true' branch...
coreutils-9.9/lib/time_rz.c:300:25: branch_true: ...to here
coreutils-9.9/lib/time_rz.c:311:15: call_function: calling 'revert_tz' from 'mktime_z'
#  216|     if (env_tz
#  217|         ? tz->tz_is_set && streq (tz->abbrs, env_tz)
#  218|->       : !tz->tz_is_set)
#  219|       return local_tz;
#  220|     else

Error: GCC_ANALYZER_WARNING (CWE-401): [#def106]
coreutils-9.9/lib/userspec.c:156:33: warning[-Wanalyzer-malloc-leak]: leak of 'u'
coreutils-9.9/lib/userspec.c:258:1: enter_function: entry to 'parse_user_spec_warn'
coreutils-9.9/lib/userspec.c:263:5: call_function: calling 'parse_with_separator' from 'parse_user_spec_warn'
#  154|       {
#  155|         /* If it starts with "+", skip the look-up.  */
#  156|->       pwd = (*u == '+' ? NULL : getpwnam (u));
#  157|         if (pwd == NULL)
#  158|           {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def107]
coreutils-9.9/lib/userspec.c:170:19: warning[-Wanalyzer-malloc-leak]: leak of 'u'
coreutils-9.9/lib/userspec.c:258:1: enter_function: entry to 'parse_user_spec_warn'
coreutils-9.9/lib/userspec.c:263:5: call_function: calling 'parse_with_separator' from 'parse_user_spec_warn'
#  168|               {
#  169|                 unsigned long int tmp;
#  170|->               if (xstrtoul (u, NULL, 10, &tmp, "") == LONGINT_OK
#  171|                     && tmp <= MAXUID && (uid_t) tmp != (uid_t) -1)
#  172|                   unum = tmp;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def108]
coreutils-9.9/lib/userspec.c:191:7: warning[-Wanalyzer-malloc-leak]: leak of 'u'
coreutils-9.9/lib/userspec.c:258:1: enter_function: entry to 'parse_user_spec_warn'
coreutils-9.9/lib/userspec.c:263:5: call_function: calling 'parse_with_separator' from 'parse_user_spec_warn'
#  189|               }
#  190|           }
#  191|->       endpwent ();
#  192|       }
#  193|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def109]
coreutils-9.9/lib/xalloc.h:149:10: warning[-Wanalyzer-malloc-leak]: leak of 'v'
coreutils-9.9/lib/randperm.c:149:1: enter_function: entry to 'randperm_new'
coreutils-9.9/lib/randperm.c:213:21: branch_true: following 'true' branch (when 'i < h')...
coreutils-9.9/lib/randperm.c:215:47: branch_true: ...to here
coreutils-9.9/lib/randperm.c:216:16: branch_false: following 'false' branch (when 'sparse == 0')...
coreutils-9.9/lib/randperm.c:219:15: call_function: inlined call to 'swap' from 'randperm_new'
coreutils-9.9/lib/randperm.c:216:16: branch_false: following 'false' branch (when 'sparse == 0')...
coreutils-9.9/lib/randperm.c:219:15: call_function: inlined call to 'swap' from 'randperm_new'
coreutils-9.9/lib/randperm.c:222:12: branch_false: following 'false' branch (when 'sparse == 0')...
coreutils-9.9/lib/randperm.c:225:15: call_function: inlined call to 'xnrealloc' from 'randperm_new'
#  147|   xnrealloc (void *p, size_t n, size_t s)
#  148|   {
#  149|->   return xreallocarray (p, n, s);
#  150|   }
#  151|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def110]
coreutils-9.9/lib/xasprintf.c:30:12: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
coreutils-9.9/lib/xasprintf.c:29:3: acquire_resource: 'va_start' called here
coreutils-9.9/lib/xasprintf.c:30:12: throw: if 'xvasprintf' throws an exception...
coreutils-9.9/lib/xasprintf.c:30:12: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   28|   
#   29|     va_start (args, format);
#   30|->   result = xvasprintf (format, args);
#   31|     va_end (args);
#   32|   

Error: CPPCHECK_WARNING (CWE-457): [#def111]
coreutils-9.9/lib/xdectoint.c:75: warning[uninitvar]: Uninitialized variable: overflow_errno
#   73|       }
#   74|   
#   75|->   int e = s_err == LONGINT_OVERFLOW ? overflow_errno : 0;
#   76|   
#   77|     if (! (s_err == LONGINT_OK

Error: CPPCHECK_WARNING (CWE-457): [#def112]
coreutils-9.9/lib/xdectoint.c:83: warning[uninitvar]: Uninitialized variable: r
#   81|   
#   82|     errno = e;
#   83|->   return r;
#   84|   }
#   85|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def113]
coreutils-9.9/lib/xprintf.c:46:20: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
coreutils-9.9/lib/xprintf.c:32:1: enter_function: entry to 'xprintf'
coreutils-9.9/lib/xprintf.c:36:3: acquire_resource: 'va_start' called here
coreutils-9.9/lib/xprintf.c:37:12: call_function: calling 'xvprintf' from 'xprintf'
#   44|   xvprintf (char const *restrict format, va_list args)
#   45|   {
#   46|->   off64_t retval = vzprintf (format, args);
#   47|     if (retval < 0 && ! ferror (stdout))
#   48|       error (exit_failure, errno, _("cannot perform formatted output"));

Error: GCC_ANALYZER_WARNING (CWE-404): [#def114]
coreutils-9.9/lib/xprintf.c:68:20: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
coreutils-9.9/lib/xprintf.c:54:1: enter_function: entry to 'xfprintf'
coreutils-9.9/lib/xprintf.c:58:3: acquire_resource: 'va_start' called here
coreutils-9.9/lib/xprintf.c:59:12: call_function: calling 'xvfprintf' from 'xfprintf'
#   66|   xvfprintf (FILE *restrict stream, char const *restrict format, va_list args)
#   67|   {
#   68|->   off64_t retval = vfzprintf (stream, format, args);
#   69|     if (retval < 0 && ! ferror (stream))
#   70|       error (exit_failure, errno, _("cannot perform formatted output"));

Error: GCC_ANALYZER_WARNING (CWE-457): [#def115]
coreutils-9.9/separate/parse-datetime.c:1829:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*<unknown>'
coreutils-9.9/separate/parse-datetime.y:2389:1: enter_function: entry to 'parse_datetime'
coreutils-9.9/separate/parse-datetime.y:2394:6: branch_false: following 'false' branch...
coreutils-9.9/separate/parse-datetime.y:2396:13: branch_false: ...to here
coreutils-9.9/separate/parse-datetime.y:2396:13: call_function: calling 'parse_datetime_body' from 'parse_datetime'
# 1827|        unconditionally makes the parser a bit smaller, and it avoids a
# 1828|        GCC warning that YYVAL may be used uninitialized.  */
# 1829|->   yyval = yyvsp[1-yylen];
# 1830|   
# 1831|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def116]
coreutils-9.9/single/parse-datetime.c:1829:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*<unknown>'
coreutils-9.9/single/parse-datetime.y:2389:1: enter_function: entry to 'parse_datetime'
coreutils-9.9/single/parse-datetime.y:2394:6: branch_false: following 'false' branch...
coreutils-9.9/single/parse-datetime.y:2396:13: branch_false: ...to here
coreutils-9.9/single/parse-datetime.y:2396:13: call_function: calling 'parse_datetime_body' from 'parse_datetime'
# 1827|        unconditionally makes the parser a bit smaller, and it avoids a
# 1828|        GCC warning that YYVAL may be used uninitialized.  */
# 1829|->   yyval = yyvsp[1-yylen];
# 1830|   
# 1831|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def117]
coreutils-9.9/src/basename.c:106:3: warning[-Wanalyzer-malloc-leak]: leak of 'base_name(string)'
coreutils-9.9/src/basename.c:106:3: throw: if 'strip_trailing_slashes' throws an exception...
coreutils-9.9/src/basename.c:106:3: danger: 'base_name(string)' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  104|   {
#  105|     char *name = base_name (string);
#  106|->   strip_trailing_slashes (name);
#  107|   
#  108|     /* Per POSIX, 'basename // /' must return '//' on platforms with

Error: GCC_ANALYZER_WARNING (CWE-401): [#def118]
coreutils-9.9/src/basenc.c:1465:9: warning[-Wanalyzer-malloc-leak]: leak of 'outbuf'
coreutils-9.9/src/basenc.c:1472:1: enter_function: entry to 'do_encode'
coreutils-9.9/src/basenc.c:1501:10: branch_false: following 'false' branch (when 'sum <= 0')...
coreutils-9.9/src/basenc.c:1523:11: call_function: inlined call to 'feof_unlocked' from 'do_encode'
coreutils-9.9/src/basenc.c:1539:6: branch_false: following 'false' branch...
coreutils-9.9/src/basenc.c:1542:3: branch_false: ...to here
coreutils-9.9/src/basenc.c:1542:3: call_function: calling 'finish_and_exit' from 'do_encode'
# 1463|           error (EXIT_FAILURE, errno, _("closing standard input"));
# 1464|         else
# 1465|->         error (EXIT_FAILURE, errno, "%s", quotef (infile));
# 1466|       }
# 1467|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def119]
coreutils-9.9/src/basenc.c:1479:12: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(30720)'
coreutils-9.9/src/basenc.c:1614:1: enter_function: entry to 'main'
coreutils-9.9/src/basenc.c:1789:6: branch_false: following 'false' branch...
coreutils-9.9/src/basenc.c:1795:6: branch_false: ...to here
coreutils-9.9/src/basenc.c:1814:6: branch_false: following 'false' branch (when 'decode == 0')...
coreutils-9.9/src/basenc.c:1817:5: branch_false: ...to here
coreutils-9.9/src/basenc.c:1817:5: call_function: calling 'do_encode' from 'main'
# 1477|   
# 1478|     inbuf = xmalloc (ENC_BLOCKSIZE);
# 1479|->   outbuf = xmalloc (BASE_LENGTH (ENC_BLOCKSIZE));
# 1480|   
# 1481|   #if BASE_TYPE == 42

Error: GCC_ANALYZER_WARNING (CWE-401): [#def120]
coreutils-9.9/src/basenc.c:1479:21: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(30720)'
coreutils-9.9/src/basenc.c:1479:21: throw: if the called function throws an exception...
coreutils-9.9/src/basenc.c:1479:21: danger: 'xmalloc(30720)' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
# 1477|   
# 1478|     inbuf = xmalloc (ENC_BLOCKSIZE);
# 1479|->   outbuf = xmalloc (BASE_LENGTH (ENC_BLOCKSIZE));
# 1480|   
# 1481|   #if BASE_TYPE == 42

Error: GCC_ANALYZER_WARNING (CWE-401): [#def121]
coreutils-9.9/src/basenc.c:1486:5: warning[-Wanalyzer-malloc-leak]: leak of 'outbuf'
coreutils-9.9/src/basenc.c:1485:6: branch_true: following 'true' branch...
coreutils-9.9/src/basenc.c:1486:5: branch_true: ...to here
coreutils-9.9/src/basenc.c:1486:5: throw: if the called function throws an exception...
coreutils-9.9/src/basenc.c:1486:5: danger: 'outbuf' leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
# 1484|     bool use_ctx = (base_encode_ctx_init != nullptr);
# 1485|     if (use_ctx)
# 1486|->     base_encode_ctx_init (&encode_ctx);
# 1487|   #endif
# 1488|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def122]
coreutils-9.9/src/basenc.c:1496:15: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(40960)'
coreutils-9.9/src/basenc.c:1614:1: enter_function: entry to 'main'
coreutils-9.9/src/basenc.c:1789:6: branch_false: following 'false' branch...
coreutils-9.9/src/basenc.c:1795:6: branch_false: ...to here
coreutils-9.9/src/basenc.c:1814:6: branch_false: following 'false' branch (when 'decode == 0')...
coreutils-9.9/src/basenc.c:1817:5: branch_false: ...to here
coreutils-9.9/src/basenc.c:1817:5: call_function: calling 'do_encode' from 'main'
# 1494|         do
# 1495|           {
# 1496|->           n = fread (inbuf + sum, 1, ENC_BLOCKSIZE - sum, in);
# 1497|             sum += n;
# 1498|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def123]
coreutils-9.9/src/basenc.c:1496:15: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(49152)'
coreutils-9.9/src/basenc.c:1614:1: enter_function: entry to 'main'
coreutils-9.9/src/basenc.c:1789:6: branch_false: following 'false' branch...
coreutils-9.9/src/basenc.c:1795:6: branch_false: ...to here
coreutils-9.9/src/basenc.c:1814:6: branch_false: following 'false' branch (when 'decode == 0')...
coreutils-9.9/src/basenc.c:1817:5: branch_false: ...to here
coreutils-9.9/src/basenc.c:1817:5: call_function: calling 'do_encode' from 'main'
# 1494|         do
# 1495|           {
# 1496|->           n = fread (inbuf + sum, 1, ENC_BLOCKSIZE - sum, in);
# 1497|             sum += n;
# 1498|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def124]
coreutils-9.9/src/basenc.c:1507:15: warning[-Wanalyzer-malloc-leak]: leak of 'outbuf'
coreutils-9.9/src/basenc.c:1504:14: branch_true: following 'true' branch...
coreutils-9.9/src/basenc.c:1506:21: branch_true: ...to here
coreutils-9.9/src/basenc.c:1507:15: throw: if the called function throws an exception...
coreutils-9.9/src/basenc.c:1507:15: danger: 'outbuf' leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
# 1505|               {
# 1506|                 idx_t outlen = 0;
# 1507|->               base_encode_ctx (&encode_ctx, inbuf, sum, outbuf, &outlen);
# 1508|   
# 1509|                 wrap_write (outbuf, outlen, wrap_column, &current_column, out);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def125]
coreutils-9.9/src/basenc.c:1516:15: warning[-Wanalyzer-malloc-leak]: leak of 'outbuf'
coreutils-9.9/src/basenc.c:1504:14: branch_false: following 'false' branch...
coreutils-9.9/src/basenc.c:1516:15: branch_false: ...to here
coreutils-9.9/src/basenc.c:1516:15: throw: if the called function throws an exception...
coreutils-9.9/src/basenc.c:1516:15: danger: 'outbuf' leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
# 1514|                 /* Process input one block at a time.  Note that ENC_BLOCKSIZE
# 1515|                    is sized so that no pad chars will appear in output. */
# 1516|->               base_encode (inbuf, sum, outbuf, BASE_LENGTH (sum));
# 1517|   
# 1518|                 wrap_write (outbuf, BASE_LENGTH (sum), wrap_column,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def126]
coreutils-9.9/src/basenc.c:1528:22: warning[-Wanalyzer-malloc-leak]: leak of 'outbuf'
coreutils-9.9/src/basenc.c:1472:1: enter_function: entry to 'do_encode'
coreutils-9.9/src/basenc.c:1501:10: branch_false: following 'false' branch (when 'sum <= 0')...
coreutils-9.9/src/basenc.c:1523:11: call_function: inlined call to 'feof_unlocked' from 'do_encode'
coreutils-9.9/src/basenc.c:1526:6: branch_true: following 'true' branch...
coreutils-9.9/src/basenc.c:1528:22: throw: if the called function throws an exception...
coreutils-9.9/src/basenc.c:1528:22: danger: 'outbuf' leaks here; was allocated at [(2)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/1)
# 1526|     if (use_ctx && base_encode_ctx_finalize)
# 1527|       {
# 1528|->       idx_t outlen = BASE_LENGTH (ENC_BLOCKSIZE);
# 1529|         base_encode_ctx_finalize (&encode_ctx, &outbuf, &outlen);
# 1530|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def127]
coreutils-9.9/src/basenc.c:1529:7: warning[-Wanalyzer-malloc-leak]: leak of 'outbuf'
coreutils-9.9/src/basenc.c:1472:1: enter_function: entry to 'do_encode'
coreutils-9.9/src/basenc.c:1501:10: branch_false: following 'false' branch (when 'sum <= 0')...
coreutils-9.9/src/basenc.c:1523:11: call_function: inlined call to 'feof_unlocked' from 'do_encode'
coreutils-9.9/src/basenc.c:1526:6: branch_true: following 'true' branch...
coreutils-9.9/src/basenc.c:1529:7: throw: if the called function throws an exception...
coreutils-9.9/src/basenc.c:1529:7: danger: 'outbuf' leaks here; was allocated at [(2)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/1)
# 1527|       {
# 1528|         idx_t outlen = BASE_LENGTH (ENC_BLOCKSIZE);
# 1529|->       base_encode_ctx_finalize (&encode_ctx, &outbuf, &outlen);
# 1530|   
# 1531|         wrap_write (outbuf, outlen, wrap_column, &current_column, out);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def128]
coreutils-9.9/src/basenc.c:1553:12: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc((long unsigned int)base_length(4200))'
coreutils-9.9/src/basenc.c:1553:12: throw: if 'xmalloc' throws an exception...
coreutils-9.9/src/basenc.c:1553:12: danger: 'xmalloc((long unsigned int)base_length(4200))' leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
# 1551|   
# 1552|     inbuf = xmalloc (BASE_LENGTH (DEC_BLOCKSIZE));
# 1553|->   outbuf = xmalloc (DEC_BLOCKSIZE);
# 1554|   
# 1555|   #if BASE_TYPE == 42

Error: GCC_ANALYZER_WARNING (CWE-401): [#def129]
coreutils-9.9/src/basenc.c:1553:12: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(4096)'
coreutils-9.9/src/basenc.c:1553:12: throw: if 'xmalloc' throws an exception...
coreutils-9.9/src/basenc.c:1553:12: danger: 'xmalloc(4096)' leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
# 1551|   
# 1552|     inbuf = xmalloc (BASE_LENGTH (DEC_BLOCKSIZE));
# 1553|->   outbuf = xmalloc (DEC_BLOCKSIZE);
# 1554|   
# 1555|   #if BASE_TYPE == 42

Error: GCC_ANALYZER_WARNING (CWE-401): [#def130]
coreutils-9.9/src/basenc.c:1553:12: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(8192)'
coreutils-9.9/src/basenc.c:1553:12: throw: if 'xmalloc' throws an exception...
coreutils-9.9/src/basenc.c:1553:12: danger: 'xmalloc(8192)' leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
# 1551|   
# 1552|     inbuf = xmalloc (BASE_LENGTH (DEC_BLOCKSIZE));
# 1553|->   outbuf = xmalloc (DEC_BLOCKSIZE);
# 1554|   
# 1555|   #if BASE_TYPE == 42

Error: GCC_ANALYZER_WARNING (CWE-401): [#def131]
coreutils-9.9/src/basenc.c:1558:3: warning[-Wanalyzer-malloc-leak]: leak of 'outbuf'
coreutils-9.9/src/basenc.c:1558:3: throw: if the called function throws an exception...
coreutils-9.9/src/basenc.c:1558:3: danger: 'outbuf' leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
# 1556|     ctx.inbuf = nullptr;
# 1557|   #endif
# 1558|->   base_decode_ctx_init (&ctx);
# 1559|   
# 1560|     do

Error: GCC_ANALYZER_WARNING (CWE-401): [#def132]
coreutils-9.9/src/basenc.c:1558:3: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc((long unsigned int)base_length(4200))'
coreutils-9.9/src/basenc.c:1558:3: throw: if the called function throws an exception...
coreutils-9.9/src/basenc.c:1558:3: danger: 'xmalloc((long unsigned int)base_length(4200))' leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
# 1556|     ctx.inbuf = nullptr;
# 1557|   #endif
# 1558|->   base_decode_ctx_init (&ctx);
# 1559|   
# 1560|     do

Error: GCC_ANALYZER_WARNING (CWE-401): [#def133]
coreutils-9.9/src/basenc.c:1567:21: warning[-Wanalyzer-malloc-leak]: leak of 'outbuf'
coreutils-9.9/src/basenc.c:1567:21: throw: if the called function throws an exception...
coreutils-9.9/src/basenc.c:1567:21: danger: 'outbuf' leaks here; was allocated at [(1)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/0)
# 1565|         do
# 1566|           {
# 1567|->           idx_t n = fread (inbuf + sum,
# 1568|                              1, BASE_LENGTH (DEC_BLOCKSIZE) - sum, in);
# 1569|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def134]
coreutils-9.9/src/basenc.c:1574:23: warning[-Wanalyzer-malloc-leak]: leak of 'outbuf'
coreutils-9.9/src/basenc.c:1570:14: branch_true: following 'true' branch (when 'ignore_garbage != 0')...
coreutils-9.9/src/basenc.c:1570:14: branch_true: ...to here
coreutils-9.9/src/basenc.c:1574:23: throw: if the called function throws an exception...
coreutils-9.9/src/basenc.c:1574:23: danger: 'outbuf' leaks here; was allocated at [(1)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/0)
# 1572|                 for (idx_t i = 0; n > 0 && i < n;)
# 1573|                   {
# 1574|->                   if (isubase (inbuf[sum + i])
# 1575|                         || (REQUIRED_PADDING (1) && inbuf[sum + i] == '='))
# 1576|                       i++;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def135]
coreutils-9.9/src/basenc.c:1575:27: warning[-Wanalyzer-malloc-leak]: leak of 'outbuf'
coreutils-9.9/src/basenc.c:1570:14: branch_true: following 'true' branch (when 'ignore_garbage != 0')...
coreutils-9.9/src/basenc.c:1570:14: branch_true: ...to here
coreutils-9.9/src/basenc.c:1574:22: branch_false: following 'false' branch...
coreutils-9.9/src/basenc.c:1575:27: branch_false: ...to here
coreutils-9.9/src/basenc.c:1575:27: throw: if the called function throws an exception...
coreutils-9.9/src/basenc.c:1575:27: danger: 'outbuf' leaks here; was allocated at [(1)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/0)
# 1573|                   {
# 1574|                     if (isubase (inbuf[sum + i])
# 1575|->                       || (REQUIRED_PADDING (1) && inbuf[sum + i] == '='))
# 1576|                       i++;
# 1577|                     else

Error: GCC_ANALYZER_WARNING (CWE-401): [#def136]
coreutils-9.9/src/basenc.c:1587:20: warning[-Wanalyzer-malloc-leak]: leak of 'outbuf'
coreutils-9.9/src/basenc.c:1570:14: branch_true: following 'true' branch (when 'ignore_garbage != 0')...
coreutils-9.9/src/basenc.c:1570:14: branch_true: ...to here
coreutils-9.9/src/basenc.c:1572:33: branch_false: following 'false' branch...
coreutils-9.9/src/basenc.c:1582:11: branch_false: ...to here
coreutils-9.9/src/basenc.c:1584:14: branch_false: following 'false' branch...
coreutils-9.9/src/basenc.c:1587:20: branch_false: ...to here
coreutils-9.9/src/basenc.c:1587:20: throw: if the called function throws an exception...
coreutils-9.9/src/basenc.c:1587:20: danger: 'outbuf' leaks here; was allocated at [(1)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/0)
# 1585|               error (EXIT_FAILURE, errno, _("read error"));
# 1586|           }
# 1587|->       while (sum < BASE_LENGTH (DEC_BLOCKSIZE) && !feof (in));
# 1588|   
# 1589|         while (sum || feof (in))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def137]
coreutils-9.9/src/basenc.c:1593:18: warning[-Wanalyzer-malloc-leak]: leak of 'outbuf'
coreutils-9.9/src/basenc.c:1546:1: enter_function: entry to 'do_decode'
coreutils-9.9/src/basenc.c:1570:14: branch_true: following 'true' branch (when 'ignore_garbage != 0')...
coreutils-9.9/src/basenc.c:1570:14: branch_true: ...to here
coreutils-9.9/src/basenc.c:1584:14: branch_false: following 'false' branch...
coreutils-9.9/src/basenc.c:1587:14: branch_false: ...to here
coreutils-9.9/src/basenc.c:1587:14: branch_true: following 'true' branch (when 'sum <= 4095')...
coreutils-9.9/src/basenc.c:1587:52: call_function: inlined call to 'feof_unlocked' from 'do_decode'
coreutils-9.9/src/basenc.c:1589:14: branch_true: following 'true' branch (when 'sum != 0')...
coreutils-9.9/src/basenc.c:1591:17: branch_true: ...to here
coreutils-9.9/src/basenc.c:1593:18: throw: if 'base64_decode_ctx' throws an exception...
coreutils-9.9/src/basenc.c:1593:18: danger: 'outbuf' leaks here; was allocated at [(2)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/1)
# 1591|             idx_t n = DEC_BLOCKSIZE;
# 1592|             if (sum)
# 1593|->             ok = base_decode_ctx (&ctx, inbuf, sum, outbuf, &n);
# 1594|             else
# 1595|               ok = base_decode_ctx_finalize (&ctx, &outbuf, &n);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def138]
coreutils-9.9/src/basenc.c:1595:18: warning[-Wanalyzer-malloc-leak]: leak of 'outbuf'
coreutils-9.9/src/basenc.c:1546:1: enter_function: entry to 'do_decode'
coreutils-9.9/src/basenc.c:1570:14: branch_true: following 'true' branch (when 'ignore_garbage != 0')...
coreutils-9.9/src/basenc.c:1570:14: branch_true: ...to here
coreutils-9.9/src/basenc.c:1572:33: branch_false: following 'false' branch...
coreutils-9.9/src/basenc.c:1582:11: branch_false: ...to here
coreutils-9.9/src/basenc.c:1584:14: branch_false: following 'false' branch...
coreutils-9.9/src/basenc.c:1587:20: branch_false: ...to here
coreutils-9.9/src/basenc.c:1589:14: branch_false: following 'false' branch (when 'sum == 0')...
coreutils-9.9/src/basenc.c:1589:21: call_function: inlined call to 'feof_unlocked' from 'do_decode'
coreutils-9.9/src/basenc.c:1589:14: branch_true: following 'true' branch...
coreutils-9.9/src/basenc.c:1591:17: branch_true: ...to here
coreutils-9.9/src/basenc.c:1595:18: throw: if the called function throws an exception...
coreutils-9.9/src/basenc.c:1595:18: danger: 'outbuf' leaks here; was allocated at [(2)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/1)
# 1593|               ok = base_decode_ctx (&ctx, inbuf, sum, outbuf, &n);
# 1594|             else
# 1595|->             ok = base_decode_ctx_finalize (&ctx, &outbuf, &n);
# 1596|   
# 1597|             if (fwrite (outbuf, 1, n, out) < n)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def139]
coreutils-9.9/src/basenc.c:1812:3: warning[-Wanalyzer-file-leak]: leak of FILE 'input_fh'
coreutils-9.9/src/basenc.c:1789:6: branch_false: following 'false' branch...
coreutils-9.9/src/basenc.c:1795:6: branch_false: ...to here
coreutils-9.9/src/basenc.c:1800:6: branch_false: following 'false' branch (when the strings are non-equal)...
coreutils-9.9/src/basenc.c:1807:18: branch_false: ...to here
coreutils-9.9/src/basenc.c:1807:18: acquire_resource: opened here
coreutils-9.9/src/basenc.c:1808:10: branch_false: following 'false' branch...
coreutils-9.9/src/basenc.c:1812:3: branch_false: ...to here
coreutils-9.9/src/basenc.c:1812:3: throw: if 'fadvise' throws an exception...
coreutils-9.9/src/basenc.c:1812:3: danger: 'input_fh' leaks here; was opened at [(5)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/4)
# 1810|       }
# 1811|   
# 1812|->   fadvise (input_fh, FADVISE_SEQUENTIAL);
# 1813|   
# 1814|     if (decode)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def140]
coreutils-9.9/src/basenc.c:1812:3: warning[-Wanalyzer-malloc-leak]: leak of 'input_fh'
coreutils-9.9/src/basenc.c:1789:6: branch_false: following 'false' branch...
coreutils-9.9/src/basenc.c:1795:6: branch_false: ...to here
coreutils-9.9/src/basenc.c:1800:6: branch_false: following 'false' branch (when the strings are non-equal)...
coreutils-9.9/src/basenc.c:1807:18: branch_false: ...to here
coreutils-9.9/src/basenc.c:1807:18: acquire_memory: allocated here
coreutils-9.9/src/basenc.c:1808:10: branch_false: following 'false' branch...
coreutils-9.9/src/basenc.c:1812:3: branch_false: ...to here
coreutils-9.9/src/basenc.c:1812:3: throw: if 'fadvise' throws an exception...
coreutils-9.9/src/basenc.c:1812:3: danger: 'input_fh' leaks here; was allocated at [(5)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/4)
# 1810|       }
# 1811|   
# 1812|->   fadvise (input_fh, FADVISE_SEQUENTIAL);
# 1813|   
# 1814|     if (decode)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def141]
coreutils-9.9/src/blake2/b2sum.c:88:3: warning[-Wanalyzer-malloc-leak]: leak of 'buffer'
coreutils-9.9/src/blake2/b2sum.c:84:34: acquire_memory: allocated here
coreutils-9.9/src/blake2/b2sum.c:86:5: branch_false: following 'false' branch (when 'buffer' is non-NULL)...
coreutils-9.9/src/blake2/b2sum.c:88:3: branch_false: ...to here
coreutils-9.9/src/blake2/b2sum.c:88:3: throw: if 'blake2b_init' throws an exception...
coreutils-9.9/src/blake2/b2sum.c:88:3: danger: 'buffer' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   86|     if( !buffer ) return -1;
#   87|   
#   88|->   blake2b_init( S, outbytes );
#   89|   
#   90|     while( 1 )

Error: GCC_ANALYZER_WARNING (CWE-476): [#def142]
coreutils-9.9/src/chmod.c:545:13: warning[-Wanalyzer-null-dereference]: dereference of NULL 'mode'
coreutils-9.9/src/chmod.c:482:10: branch_true: following 'true' branch (when 'c != -1')...
coreutils-9.9/src/chmod.c:488:7: branch_true: ...to here
coreutils-9.9/src/chmod.c:542:16: branch_false: following 'false' branch...
coreutils-9.9/src/chmod.c:545:17: branch_false: ...to here
coreutils-9.9/src/chmod.c:545:13: danger: dereference of NULL 'mode + (sizetype)mode_len'
#  543|                 mode = xpalloc (mode, &mode_alloc,
#  544|                                 new_mode_len + 1 - mode_alloc, -1, 1);
#  545|->             mode[mode_len] = ',';
#  546|               memcpy (mode + mode_comma_len, arg, arg_len + 1);
#  547|               mode_len = new_mode_len;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def143]
coreutils-9.9/src/chown-core.c:94:10: warning[-Wanalyzer-malloc-leak]: leak of 'new_usr'
coreutils-9.9/src/chown-core.c:284:1: enter_function: entry to 'change_file_owner'
coreutils-9.9/src/chown-core.c:415:6: branch_false: following 'false' branch (when 'do_chown == 0')...
coreutils-9.9/src/chown-core.c:484:7: branch_false: ...to here
coreutils-9.9/src/chown-core.c:484:6: branch_true: following 'true' branch...
coreutils-9.9/src/chown-core.c:487:11: branch_true: ...to here
coreutils-9.9/src/chown-core.c:487:9: branch_false: following 'false' branch...
coreutils-9.9/src/chown-core.c:491:11: branch_false: ...to here
coreutils-9.9/src/chown-core.c:491:11: branch_true: following 'true' branch...
coreutils-9.9/src/chown-core.c:494:13: branch_true: ...to here
coreutils-9.9/src/chown-core.c:494:13: branch_false: following 'false' branch (when 'ok == 0')...
coreutils-9.9/src/chown-core.c:498:27: branch_false: ...to here
coreutils-9.9/src/chown-core.c:498:27: branch_false: following 'false' branch (when 'file_stats' is NULL)...
coreutils-9.9/src/chown-core.c:502:27: branch_false: ...to here
coreutils-9.9/src/chown-core.c:502:27: branch_false: following 'false' branch...
coreutils-9.9/src/chown-core.c:503:48: branch_false: ...to here
coreutils-9.9/src/chown-core.c:503:48: branch_true: following 'true' branch (when 'uid != 4294967295')...
coreutils-9.9/src/chown-core.c:504:50: branch_true: ...to here
coreutils-9.9/src/chown-core.c:504:50: call_function: calling 'uid_to_str' from 'change_file_owner'
coreutils-9.9/src/chown-core.c:504:50: return_function: returning to 'change_file_owner' from 'uid_to_str'
coreutils-9.9/src/chown-core.c:505:27: branch_false: following 'false' branch...
coreutils-9.9/src/chown-core.c:506:49: branch_false: ...to here
coreutils-9.9/src/chown-core.c:506:49: branch_true: following 'true' branch (when 'gid != 4294967295')...
coreutils-9.9/src/chown-core.c:507:50: branch_true: ...to here
coreutils-9.9/src/chown-core.c:507:50: call_function: calling 'gid_to_str' from 'change_file_owner'
#   92|   {
#   93|     char buf[INT_BUFSIZE_BOUND (intmax_t)];
#   94|->   return xstrdup (TYPE_SIGNED (gid_t) ? imaxtostr (gid, buf)
#   95|                     : umaxtostr (gid, buf));
#   96|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def144]
coreutils-9.9/src/chown-core.c:94:19: warning[-Wanalyzer-malloc-leak]: leak of 'new_usr'
coreutils-9.9/src/chown-core.c:284:1: enter_function: entry to 'change_file_owner'
coreutils-9.9/src/chown-core.c:415:6: branch_false: following 'false' branch (when 'do_chown == 0')...
coreutils-9.9/src/chown-core.c:484:7: branch_false: ...to here
coreutils-9.9/src/chown-core.c:484:6: branch_true: following 'true' branch...
coreutils-9.9/src/chown-core.c:487:11: branch_true: ...to here
coreutils-9.9/src/chown-core.c:487:9: branch_false: following 'false' branch...
coreutils-9.9/src/chown-core.c:491:11: branch_false: ...to here
coreutils-9.9/src/chown-core.c:491:11: branch_true: following 'true' branch...
coreutils-9.9/src/chown-core.c:494:13: branch_true: ...to here
coreutils-9.9/src/chown-core.c:494:13: branch_false: following 'false' branch (when 'ok == 0')...
coreutils-9.9/src/chown-core.c:498:27: branch_false: ...to here
coreutils-9.9/src/chown-core.c:498:27: branch_false: following 'false' branch (when 'file_stats' is NULL)...
coreutils-9.9/src/chown-core.c:502:27: branch_false: ...to here
coreutils-9.9/src/chown-core.c:502:27: branch_false: following 'false' branch...
coreutils-9.9/src/chown-core.c:503:48: branch_false: ...to here
coreutils-9.9/src/chown-core.c:503:48: branch_true: following 'true' branch (when 'uid != 4294967295')...
coreutils-9.9/src/chown-core.c:504:50: branch_true: ...to here
coreutils-9.9/src/chown-core.c:504:50: call_function: calling 'uid_to_str' from 'change_file_owner'
coreutils-9.9/src/chown-core.c:504:50: return_function: returning to 'change_file_owner' from 'uid_to_str'
coreutils-9.9/src/chown-core.c:505:27: branch_false: following 'false' branch...
coreutils-9.9/src/chown-core.c:506:49: branch_false: ...to here
coreutils-9.9/src/chown-core.c:506:49: branch_true: following 'true' branch (when 'gid != 4294967295')...
coreutils-9.9/src/chown-core.c:507:50: branch_true: ...to here
coreutils-9.9/src/chown-core.c:507:50: call_function: calling 'gid_to_str' from 'change_file_owner'
#   92|   {
#   93|     char buf[INT_BUFSIZE_BOUND (intmax_t)];
#   94|->   return xstrdup (TYPE_SIGNED (gid_t) ? imaxtostr (gid, buf)
#   95|                     : umaxtostr (gid, buf));
#   96|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def145]
coreutils-9.9/src/chown-core.c:117:25: warning[-Wanalyzer-malloc-leak]: leak of 'uid_to_name(*file_stats.st_uid)'
coreutils-9.9/src/chown-core.c:284:1: enter_function: entry to 'change_file_owner'
coreutils-9.9/src/chown-core.c:484:6: branch_true: following 'true' branch...
coreutils-9.9/src/chown-core.c:487:11: branch_true: ...to here
coreutils-9.9/src/chown-core.c:491:11: branch_true: following 'true' branch...
coreutils-9.9/src/chown-core.c:494:13: branch_true: ...to here
coreutils-9.9/src/chown-core.c:498:27: branch_true: following 'true' branch (when 'file_stats' is non-NULL)...
coreutils-9.9/src/chown-core.c:499:43: branch_true: ...to here
coreutils-9.9/src/chown-core.c:499:30: call_function: calling 'uid_to_name' from 'change_file_owner'
coreutils-9.9/src/chown-core.c:499:30: return_function: returning to 'change_file_owner' from 'uid_to_name'
coreutils-9.9/src/chown-core.c:501:30: call_function: calling 'gid_to_name' from 'change_file_owner'
#  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): [#def146]
coreutils-9.9/src/chown.c:307:26: warning[-Wanalyzer-malloc-leak]: leak of 'chopt.user_name'
coreutils-9.9/src/chown.c:285:6: branch_false: following 'false' branch...
coreutils-9.9/src/chown.c:294:6: branch_false: ...to here
coreutils-9.9/src/chown.c:294:6: branch_true: following 'true' branch...
coreutils-9.9/src/chown.c:297:11: branch_true: ...to here
coreutils-9.9/src/chown.c:297:10: branch_false: following 'false' branch...
coreutils-9.9/src/chown.c:301:11: branch_false: ...to here
coreutils-9.9/src/chown.c:301:10: branch_true: following 'true' branch...
coreutils-9.9/src/chown.c:303:17: branch_true: ...to here
coreutils-9.9/src/chown.c:307:26: throw: if 'gid_to_name' throws an exception...
coreutils-9.9/src/chown.c:307:26: danger: 'chopt.user_name' leaks here; was allocated at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
#  305|           }
#  306|         gid = ref_stats.st_gid;
#  307|->       chopt.group_name = gid_to_name (ref_stats.st_gid);
#  308|       }
#  309|     else

Error: GCC_ANALYZER_WARNING (CWE-401): [#def147]
coreutils-9.9/src/chown.c:348:8: warning[-Wanalyzer-malloc-leak]: leak of 'chopt.group_name'
coreutils-9.9/src/chown.c:285:6: branch_false: following 'false' branch...
coreutils-9.9/src/chown.c:294:6: branch_false: ...to here
coreutils-9.9/src/chown.c:294:6: branch_true: following 'true' branch...
coreutils-9.9/src/chown.c:297:11: branch_true: ...to here
coreutils-9.9/src/chown.c:297:10: branch_false: following 'false' branch...
coreutils-9.9/src/chown.c:301:11: branch_false: ...to here
coreutils-9.9/src/chown.c:348:8: throw: if 'chown_files' throws an exception...
coreutils-9.9/src/chown.c:348:8: danger: 'chopt.group_name' leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
#  346|   
#  347|     bit_flags |= FTS_DEFER_STAT;
#  348|->   ok = chown_files (argv + optind, bit_flags,
#  349|                       uid, gid,
#  350|                       required_uid, required_gid, &chopt);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def148]
coreutils-9.9/src/chown.c:348:8: warning[-Wanalyzer-malloc-leak]: leak of 'chopt.user_name'
coreutils-9.9/src/chown.c:285:6: branch_false: following 'false' branch...
coreutils-9.9/src/chown.c:294:6: branch_false: ...to here
coreutils-9.9/src/chown.c:294:6: branch_false: following 'false' branch...
coreutils-9.9/src/chown.c:311:22: branch_false: ...to here
coreutils-9.9/src/chown.c:332:10: branch_true: following 'true' branch...
coreutils-9.9/src/chown.c:348:8: throw: if 'chown_files' throws an exception...
coreutils-9.9/src/chown.c:348:8: danger: 'chopt.user_name' leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
#  346|   
#  347|     bit_flags |= FTS_DEFER_STAT;
#  348|->   ok = chown_files (argv + optind, bit_flags,
#  349|                       uid, gid,
#  350|                       required_uid, required_gid, &chopt);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def149]
coreutils-9.9/src/chroot.c:110:11: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(groups)'
coreutils-9.9/src/chroot.c:105:36: branch_true: following 'true' branch (when 'tmp' is non-NULL)...
coreutils-9.9/src/chroot.c:110:11: branch_true: ...to here
coreutils-9.9/src/chroot.c:110:11: throw: if 'xstrtoumax' throws an exception...
coreutils-9.9/src/chroot.c:110:11: danger: 'xstrdup(groups)' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  108|         uintmax_t value;
#  109|   
#  110|->       if (xstrtoumax (tmp, nullptr, 10, &value, "") == LONGINT_OK
#  111|             && value <= MAXGID)
#  112|           {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def150]
coreutils-9.9/src/chroot.c:111:14: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(groups)'
coreutils-9.9/src/chroot.c:105:36: branch_true: following 'true' branch (when 'tmp' is non-NULL)...
coreutils-9.9/src/chroot.c:110:11: branch_true: ...to here
coreutils-9.9/src/chroot.c:110:10: branch_true: following 'true' branch...
coreutils-9.9/src/chroot.c:111:14: branch_true: ...to here
coreutils-9.9/src/chroot.c:110:11: branch_true: following 'true' branch...
coreutils-9.9/src/chroot.c:110:11: branch_true: ...to here
coreutils-9.9/src/chroot.c:115:14: branch_true: following 'true' branch...
coreutils-9.9/src/chroot.c:118:19: branch_true: ...to here
coreutils-9.9/src/chroot.c:118:19: throw: if 'getgrnam' throws an exception...
coreutils-9.9/src/chroot.c:111:14: danger: 'xstrdup(groups)' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  109|   
#  110|         if (xstrtoumax (tmp, nullptr, 10, &value, "") == LONGINT_OK
#  111|->           && value <= MAXGID)
#  112|           {
#  113|             while (isspace (to_uchar (*tmp)))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def151]
coreutils-9.9/src/chroot.c:127:15: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(groups)'
coreutils-9.9/src/chroot.c:105:36: branch_true: following 'true' branch (when 'tmp' is non-NULL)...
coreutils-9.9/src/chroot.c:110:11: branch_true: ...to here
coreutils-9.9/src/chroot.c:127:15: throw: if 'getgrnam' throws an exception...
coreutils-9.9/src/chroot.c:127:15: danger: 'xstrdup(groups)' leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#  125|         else
#  126|           {
#  127|->           g = getgrnam (tmp);
#  128|             if (g != nullptr)
#  129|               value = g->gr_gid;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def152]
coreutils-9.9/src/chroot.c:129:21: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(groups)'
coreutils-9.9/src/chroot.c:105:36: branch_true: following 'true' branch (when 'tmp' is non-NULL)...
coreutils-9.9/src/chroot.c:110:11: branch_true: ...to here
coreutils-9.9/src/chroot.c:128:14: branch_true: following 'true' branch...
coreutils-9.9/src/chroot.c:129:21: branch_true: ...to here
coreutils-9.9/src/chroot.c:145:10: branch_true: following 'true' branch...
coreutils-9.9/src/chroot.c:146:16: branch_true: ...to here
coreutils-9.9/src/chroot.c:146:16: throw: if 'xpalloc' throws an exception...
coreutils-9.9/src/chroot.c:129:21: danger: 'xstrdup(groups)' leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#  127|             g = getgrnam (tmp);
#  128|             if (g != nullptr)
#  129|->             value = g->gr_gid;
#  130|           }
#  131|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def153]
coreutils-9.9/src/chroot.c:138:15: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(groups)'
coreutils-9.9/src/chroot.c:105:36: branch_true: following 'true' branch (when 'tmp' is non-NULL)...
coreutils-9.9/src/chroot.c:110:11: branch_true: ...to here
coreutils-9.9/src/chroot.c:128:14: branch_false: following 'false' branch...
coreutils-9.9/src/chroot.c:136:14: branch_false: ...to here
coreutils-9.9/src/chroot.c:136:14: branch_true: following 'true' branch (when 'show_errors != 0')...
coreutils-9.9/src/chroot.c:138:15: branch_true: ...to here
coreutils-9.9/src/chroot.c:138:15: throw: if 'quote' throws an exception...
coreutils-9.9/src/chroot.c:138:15: danger: 'xstrdup(groups)' leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
#  136|             if (show_errors)
#  137|               {
#  138|->               error (0, errno, _("invalid group %s"), quote (tmp));
#  139|                 continue;
#  140|               }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def154]
coreutils-9.9/src/chroot.c:147:7: warning[-Wanalyzer-null-dereference]: dereference of NULL 'gids'
coreutils-9.9/src/chroot.c:105:36: branch_true: following 'true' branch (when 'tmp' is non-NULL)...
coreutils-9.9/src/chroot.c:110:11: branch_true: ...to here
coreutils-9.9/src/chroot.c:128:14: branch_true: following 'true' branch...
coreutils-9.9/src/chroot.c:129:21: branch_true: ...to here
coreutils-9.9/src/chroot.c:145:10: branch_false: following 'false' branch...
coreutils-9.9/src/chroot.c:147:7: branch_false: ...to here
coreutils-9.9/src/chroot.c:147:7: danger: dereference of NULL 'gids + (long unsigned int)n_gids * 4'
#  145|         if (n_gids == n_gids_allocated)
#  146|           gids = xpalloc (gids, &n_gids_allocated, 1, -1, sizeof *gids);
#  147|->       gids[n_gids++] = value;
#  148|       }
#  149|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def155]
coreutils-9.9/src/chroot.c:150:7: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(groups)'
coreutils-9.9/src/chroot.c:217:1: enter_function: entry to 'main'
coreutils-9.9/src/chroot.c:242:10: branch_true: following 'true' branch (when 'c != -1')...
coreutils-9.9/src/chroot.c:244:7: branch_true: ...to here
coreutils-9.9/src/chroot.c:275:6: branch_false: following 'false' branch...
coreutils-9.9/src/chroot.c:281:29: branch_false: ...to here
coreutils-9.9/src/chroot.c:284:6: branch_false: following 'false' branch...
coreutils-9.9/src/chroot.c:291:6: branch_false: ...to here
coreutils-9.9/src/chroot.c:328:6: branch_false: following 'false' branch...
coreutils-9.9/src/chroot.c:332:6: branch_false: ...to here
coreutils-9.9/src/chroot.c:332:7: branch_false: following 'false' branch...
coreutils-9.9/src/chroot.c:335:15: branch_false: ...to here
coreutils-9.9/src/chroot.c:335:6: branch_true: following 'true' branch...
coreutils-9.9/src/chroot.c:338:21: branch_true: ...to here
coreutils-9.9/src/chroot.c:353:6: branch_false: following 'false' branch (when 'userspec' is NULL)...
coreutils-9.9/src/chroot.c:364:7: branch_false: ...to here
coreutils-9.9/src/chroot.c:364:6: branch_false: following 'false' branch...
coreutils-9.9/src/chroot.c:381:16: branch_false: ...to here
coreutils-9.9/src/chroot.c:383:6: branch_true: following 'true' branch...
coreutils-9.9/src/chroot.c:385:11: call_function: calling 'parse_additional_groups' from 'main'
#  148|       }
#  149|   
#  150|->   if (ret == 0 && n_gids == 0)
#  151|       {
#  152|         if (show_errors)

Error: COMPILER_WARNING: [#def156]
coreutils-9.9/src/cksum_avx2.c:46:3: warning[-Wpsabi]: AVX vector return without AVX enabled changes the ABI
#   44|        "Fast CRC Computation for Generic Polynomials Using PCLMULQDQ Instruction"
#   45|     */
#   46|->   single_mult_constant = _mm256_set_epi64x (0x569700E5, 0x75BE46B7,
#   47|                                               0x569700E5, 0x75BE46B7);
#   48|     four_mult_constant = _mm256_set_epi64x (0x10BD4D7C, 0x567FDDEB,

Error: COMPILER_WARNING: [#def157]
coreutils-9.9/src/cksum_avx2.c:46:26: note[note]: called from here
#   44|        "Fast CRC Computation for Generic Polynomials Using PCLMULQDQ Instruction"
#   45|     */
#   46|->   single_mult_constant = _mm256_set_epi64x (0x569700E5, 0x75BE46B7,
#   47|                                               0x569700E5, 0x75BE46B7);
#   48|     four_mult_constant = _mm256_set_epi64x (0x10BD4D7C, 0x567FDDEB,

Error: COMPILER_WARNING: [#def158]
coreutils-9.9/src/cksum_avx2.c:48:24: note[note]: called from here
#   46|     single_mult_constant = _mm256_set_epi64x (0x569700E5, 0x75BE46B7,
#   47|                                               0x569700E5, 0x75BE46B7);
#   48|->   four_mult_constant = _mm256_set_epi64x (0x10BD4D7C, 0x567FDDEB,
#   49|                                               0x10BD4D7C, 0x567FDDEB);
#   50|   

Error: COMPILER_WARNING: [#def159]
coreutils-9.9/src/cksum_avx2.c:52:22: note[note]: called from here
#   50|   
#   51|     /* Constant to byteswap a full AVX2 register */
#   52|->   shuffle_constant = _mm256_set_epi8 (0, 1, 2, 3, 4, 5, 6, 7, 8,
#   53|                                         9, 10, 11, 12, 13, 14, 15,
#   54|                                         0, 1, 2, 3, 4, 5, 6, 7, 8,

Error: COMPILER_WARNING: [#def160]
coreutils-9.9/src/cksum_avx2.c:82:18: note[note]: called from here
#   80|         if (bytes_read >= 16 * 8 * 2)
#   81|           {
#   82|->           data = _mm256_loadu_si256 (datap);
#   83|             data = _mm256_shuffle_epi8 (data, shuffle_constant);
#   84|             /* XOR in initial CRC value (for us 0 so no effect), or CRC value

Error: COMPILER_WARNING: [#def161]
coreutils-9.9/src/cksum_avx2.c:83:18: note[note]: called from here
#   81|           {
#   82|             data = _mm256_loadu_si256 (datap);
#   83|->           data = _mm256_shuffle_epi8 (data, shuffle_constant);
#   84|             /* XOR in initial CRC value (for us 0 so no effect), or CRC value
#   85|                calculated for previous BUFLEN buffer from fread */

Error: COMPILER_WARNING: [#def162]
coreutils-9.9/src/cksum_avx2.c:86:21: note[note]: called from here
#   84|             /* XOR in initial CRC value (for us 0 so no effect), or CRC value
#   85|                calculated for previous BUFLEN buffer from fread */
#   86|->           xor_crc = _mm256_set_epi32 (0, 0, 0, 0, crc, 0, 0, 0);
#   87|             crc = 0;
#   88|             data = _mm256_xor_si256 (data, xor_crc);

Error: COMPILER_WARNING: [#def163]
coreutils-9.9/src/cksum_avx2.c:88:18: note[note]: called from here
#   86|             xor_crc = _mm256_set_epi32 (0, 0, 0, 0, crc, 0, 0, 0);
#   87|             crc = 0;
#   88|->           data = _mm256_xor_si256 (data, xor_crc);
#   89|             data3 = _mm256_loadu_si256 (datap + 1);
#   90|             data3 = _mm256_shuffle_epi8 (data3, shuffle_constant);

Error: COMPILER_WARNING: [#def164]
coreutils-9.9/src/cksum_avx2.c:89:19: note[note]: called from here
#   87|             crc = 0;
#   88|             data = _mm256_xor_si256 (data, xor_crc);
#   89|->           data3 = _mm256_loadu_si256 (datap + 1);
#   90|             data3 = _mm256_shuffle_epi8 (data3, shuffle_constant);
#   91|             data5 = _mm256_loadu_si256 (datap + 2);

Error: COMPILER_WARNING: [#def165]
coreutils-9.9/src/cksum_avx2.c:90:19: note[note]: called from here
#   88|             data = _mm256_xor_si256 (data, xor_crc);
#   89|             data3 = _mm256_loadu_si256 (datap + 1);
#   90|->           data3 = _mm256_shuffle_epi8 (data3, shuffle_constant);
#   91|             data5 = _mm256_loadu_si256 (datap + 2);
#   92|             data5 = _mm256_shuffle_epi8 (data5, shuffle_constant);

Error: COMPILER_WARNING: [#def166]
coreutils-9.9/src/cksum_avx2.c:91:19: note[note]: called from here
#   89|             data3 = _mm256_loadu_si256 (datap + 1);
#   90|             data3 = _mm256_shuffle_epi8 (data3, shuffle_constant);
#   91|->           data5 = _mm256_loadu_si256 (datap + 2);
#   92|             data5 = _mm256_shuffle_epi8 (data5, shuffle_constant);
#   93|             data7 = _mm256_loadu_si256 (datap + 3);

Error: COMPILER_WARNING: [#def167]
coreutils-9.9/src/cksum_avx2.c:92:19: note[note]: called from here
#   90|             data3 = _mm256_shuffle_epi8 (data3, shuffle_constant);
#   91|             data5 = _mm256_loadu_si256 (datap + 2);
#   92|->           data5 = _mm256_shuffle_epi8 (data5, shuffle_constant);
#   93|             data7 = _mm256_loadu_si256 (datap + 3);
#   94|             data7 = _mm256_shuffle_epi8 (data7, shuffle_constant);

Error: COMPILER_WARNING: [#def168]
coreutils-9.9/src/cksum_avx2.c:93:19: note[note]: called from here
#   91|             data5 = _mm256_loadu_si256 (datap + 2);
#   92|             data5 = _mm256_shuffle_epi8 (data5, shuffle_constant);
#   93|->           data7 = _mm256_loadu_si256 (datap + 3);
#   94|             data7 = _mm256_shuffle_epi8 (data7, shuffle_constant);
#   95|   

Error: COMPILER_WARNING: [#def169]
coreutils-9.9/src/cksum_avx2.c:94:19: note[note]: called from here
#   92|             data5 = _mm256_shuffle_epi8 (data5, shuffle_constant);
#   93|             data7 = _mm256_loadu_si256 (datap + 3);
#   94|->           data7 = _mm256_shuffle_epi8 (data7, shuffle_constant);
#   95|   
#   96|             while (bytes_read >= 16 * 8 * 2)

Error: COMPILER_WARNING: [#def170]
coreutils-9.9/src/cksum_avx2.c:101:23: note[note]: called from here
#   99|   
#  100|                 /* Do multiplication here for 8x consecutive 16 byte blocks */
#  101|->               data2 = _mm256_clmulepi64_epi128 (data, four_mult_constant,
#  102|                                                   0x00);
#  103|                 data = _mm256_clmulepi64_epi128 (data, four_mult_constant,

Error: COMPILER_WARNING: [#def171]
coreutils-9.9/src/cksum_avx2.c:103:22: note[note]: called from here
#  101|                 data2 = _mm256_clmulepi64_epi128 (data, four_mult_constant,
#  102|                                                   0x00);
#  103|->               data = _mm256_clmulepi64_epi128 (data, four_mult_constant,
#  104|                                                  0x11);
#  105|                 data4 = _mm256_clmulepi64_epi128 (data3, four_mult_constant,

Error: COMPILER_WARNING: [#def172]
coreutils-9.9/src/cksum_avx2.c:105:23: note[note]: called from here
#  103|                 data = _mm256_clmulepi64_epi128 (data, four_mult_constant,
#  104|                                                  0x11);
#  105|->               data4 = _mm256_clmulepi64_epi128 (data3, four_mult_constant,
#  106|                                                   0x00);
#  107|                 data3 = _mm256_clmulepi64_epi128 (data3, four_mult_constant,

Error: COMPILER_WARNING: [#def173]
coreutils-9.9/src/cksum_avx2.c:107:23: note[note]: called from here
#  105|                 data4 = _mm256_clmulepi64_epi128 (data3, four_mult_constant,
#  106|                                                   0x00);
#  107|->               data3 = _mm256_clmulepi64_epi128 (data3, four_mult_constant,
#  108|                                                   0x11);
#  109|                 data6 = _mm256_clmulepi64_epi128 (data5, four_mult_constant,

Error: COMPILER_WARNING: [#def174]
coreutils-9.9/src/cksum_avx2.c:109:23: note[note]: called from here
#  107|                 data3 = _mm256_clmulepi64_epi128 (data3, four_mult_constant,
#  108|                                                   0x11);
#  109|->               data6 = _mm256_clmulepi64_epi128 (data5, four_mult_constant,
#  110|                                                   0x00);
#  111|                 data5 = _mm256_clmulepi64_epi128 (data5, four_mult_constant,

Error: COMPILER_WARNING: [#def175]
coreutils-9.9/src/cksum_avx2.c:111:23: note[note]: called from here
#  109|                 data6 = _mm256_clmulepi64_epi128 (data5, four_mult_constant,
#  110|                                                   0x00);
#  111|->               data5 = _mm256_clmulepi64_epi128 (data5, four_mult_constant,
#  112|                                                   0x11);
#  113|                 data8 = _mm256_clmulepi64_epi128 (data7, four_mult_constant,

Error: COMPILER_WARNING: [#def176]
coreutils-9.9/src/cksum_avx2.c:113:23: note[note]: called from here
#  111|                 data5 = _mm256_clmulepi64_epi128 (data5, four_mult_constant,
#  112|                                                   0x11);
#  113|->               data8 = _mm256_clmulepi64_epi128 (data7, four_mult_constant,
#  114|                                                   0x00);
#  115|                 data7 = _mm256_clmulepi64_epi128 (data7, four_mult_constant,

Error: COMPILER_WARNING: [#def177]
coreutils-9.9/src/cksum_avx2.c:115:23: note[note]: called from here
#  113|                 data8 = _mm256_clmulepi64_epi128 (data7, four_mult_constant,
#  114|                                                   0x00);
#  115|->               data7 = _mm256_clmulepi64_epi128 (data7, four_mult_constant,
#  116|                                                   0x11);
#  117|   

Error: COMPILER_WARNING: [#def178]
coreutils-9.9/src/cksum_avx2.c:123:22: note[note]: called from here
#  121|                    Keep xor result in variables for multiplication in next
#  122|                    round of loop. */
#  123|->               data = _mm256_xor_si256 (data, data2);
#  124|                 data2 = _mm256_loadu_si256 (datap);
#  125|                 data2 = _mm256_shuffle_epi8 (data2, shuffle_constant);

Error: COMPILER_WARNING: [#def179]
coreutils-9.9/src/cksum_avx2.c:124:23: note[note]: called from here
#  122|                    round of loop. */
#  123|                 data = _mm256_xor_si256 (data, data2);
#  124|->               data2 = _mm256_loadu_si256 (datap);
#  125|                 data2 = _mm256_shuffle_epi8 (data2, shuffle_constant);
#  126|                 data = _mm256_xor_si256 (data, data2);

Error: COMPILER_WARNING: [#def180]
coreutils-9.9/src/cksum_avx2.c:125:23: note[note]: called from here
#  123|                 data = _mm256_xor_si256 (data, data2);
#  124|                 data2 = _mm256_loadu_si256 (datap);
#  125|->               data2 = _mm256_shuffle_epi8 (data2, shuffle_constant);
#  126|                 data = _mm256_xor_si256 (data, data2);
#  127|   

Error: COMPILER_WARNING: [#def181]
coreutils-9.9/src/cksum_avx2.c:126:22: note[note]: called from here
#  124|                 data2 = _mm256_loadu_si256 (datap);
#  125|                 data2 = _mm256_shuffle_epi8 (data2, shuffle_constant);
#  126|->               data = _mm256_xor_si256 (data, data2);
#  127|   
#  128|                 data3 = _mm256_xor_si256 (data3, data4);

Error: COMPILER_WARNING: [#def182]
coreutils-9.9/src/cksum_avx2.c:128:23: note[note]: called from here
#  126|                 data = _mm256_xor_si256 (data, data2);
#  127|   
#  128|->               data3 = _mm256_xor_si256 (data3, data4);
#  129|                 data4 = _mm256_loadu_si256 (datap + 1);
#  130|                 data4 = _mm256_shuffle_epi8 (data4, shuffle_constant);

Error: COMPILER_WARNING: [#def183]
coreutils-9.9/src/cksum_avx2.c:129:23: note[note]: called from here
#  127|   
#  128|                 data3 = _mm256_xor_si256 (data3, data4);
#  129|->               data4 = _mm256_loadu_si256 (datap + 1);
#  130|                 data4 = _mm256_shuffle_epi8 (data4, shuffle_constant);
#  131|                 data3 = _mm256_xor_si256 (data3, data4);

Error: COMPILER_WARNING: [#def184]
coreutils-9.9/src/cksum_avx2.c:130:23: note[note]: called from here
#  128|                 data3 = _mm256_xor_si256 (data3, data4);
#  129|                 data4 = _mm256_loadu_si256 (datap + 1);
#  130|->               data4 = _mm256_shuffle_epi8 (data4, shuffle_constant);
#  131|                 data3 = _mm256_xor_si256 (data3, data4);
#  132|   

Error: COMPILER_WARNING: [#def185]
coreutils-9.9/src/cksum_avx2.c:131:23: note[note]: called from here
#  129|                 data4 = _mm256_loadu_si256 (datap + 1);
#  130|                 data4 = _mm256_shuffle_epi8 (data4, shuffle_constant);
#  131|->               data3 = _mm256_xor_si256 (data3, data4);
#  132|   
#  133|                 data5 = _mm256_xor_si256 (data5, data6);

Error: COMPILER_WARNING: [#def186]
coreutils-9.9/src/cksum_avx2.c:133:23: note[note]: called from here
#  131|                 data3 = _mm256_xor_si256 (data3, data4);
#  132|   
#  133|->               data5 = _mm256_xor_si256 (data5, data6);
#  134|                 data6 = _mm256_loadu_si256 (datap + 2);
#  135|                 data6 = _mm256_shuffle_epi8 (data6, shuffle_constant);

Error: COMPILER_WARNING: [#def187]
coreutils-9.9/src/cksum_avx2.c:134:23: note[note]: called from here
#  132|   
#  133|                 data5 = _mm256_xor_si256 (data5, data6);
#  134|->               data6 = _mm256_loadu_si256 (datap + 2);
#  135|                 data6 = _mm256_shuffle_epi8 (data6, shuffle_constant);
#  136|                 data5 = _mm256_xor_si256 (data5, data6);

Error: COMPILER_WARNING: [#def188]
coreutils-9.9/src/cksum_avx2.c:135:23: note[note]: called from here
#  133|                 data5 = _mm256_xor_si256 (data5, data6);
#  134|                 data6 = _mm256_loadu_si256 (datap + 2);
#  135|->               data6 = _mm256_shuffle_epi8 (data6, shuffle_constant);
#  136|                 data5 = _mm256_xor_si256 (data5, data6);
#  137|   

Error: COMPILER_WARNING: [#def189]
coreutils-9.9/src/cksum_avx2.c:136:23: note[note]: called from here
#  134|                 data6 = _mm256_loadu_si256 (datap + 2);
#  135|                 data6 = _mm256_shuffle_epi8 (data6, shuffle_constant);
#  136|->               data5 = _mm256_xor_si256 (data5, data6);
#  137|   
#  138|                 data7 = _mm256_xor_si256 (data7, data8);

Error: COMPILER_WARNING: [#def190]
coreutils-9.9/src/cksum_avx2.c:138:23: note[note]: called from here
#  136|                 data5 = _mm256_xor_si256 (data5, data6);
#  137|   
#  138|->               data7 = _mm256_xor_si256 (data7, data8);
#  139|                 data8 = _mm256_loadu_si256 (datap + 3);
#  140|                 data8 = _mm256_shuffle_epi8 (data8, shuffle_constant);

Error: COMPILER_WARNING: [#def191]
coreutils-9.9/src/cksum_avx2.c:139:23: note[note]: called from here
#  137|   
#  138|                 data7 = _mm256_xor_si256 (data7, data8);
#  139|->               data8 = _mm256_loadu_si256 (datap + 3);
#  140|                 data8 = _mm256_shuffle_epi8 (data8, shuffle_constant);
#  141|                 data7 = _mm256_xor_si256 (data7, data8);

Error: COMPILER_WARNING: [#def192]
coreutils-9.9/src/cksum_avx2.c:140:23: note[note]: called from here
#  138|                 data7 = _mm256_xor_si256 (data7, data8);
#  139|                 data8 = _mm256_loadu_si256 (datap + 3);
#  140|->               data8 = _mm256_shuffle_epi8 (data8, shuffle_constant);
#  141|                 data7 = _mm256_xor_si256 (data7, data8);
#  142|   

Error: COMPILER_WARNING: [#def193]
coreutils-9.9/src/cksum_avx2.c:141:23: note[note]: called from here
#  139|                 data8 = _mm256_loadu_si256 (datap + 3);
#  140|                 data8 = _mm256_shuffle_epi8 (data8, shuffle_constant);
#  141|->               data7 = _mm256_xor_si256 (data7, data8);
#  142|   
#  143|                 bytes_read -= (16 * 4 * 2);

Error: COMPILER_WARNING: [#def194]
coreutils-9.9/src/cksum_avx2.c:147:18: note[note]: called from here
#  145|             /* At end of loop we write out results from variables back into
#  146|                the buffer, for use in single fold loop */
#  147|->           data = _mm256_shuffle_epi8 (data, shuffle_constant);
#  148|             _mm256_storeu_si256 (datap, data);
#  149|             data3 = _mm256_shuffle_epi8 (data3, shuffle_constant);

Error: COMPILER_WARNING: [#def195]
coreutils-9.9/src/cksum_avx2.c:148:11: note[note]: called from here
#  146|                the buffer, for use in single fold loop */
#  147|             data = _mm256_shuffle_epi8 (data, shuffle_constant);
#  148|->           _mm256_storeu_si256 (datap, data);
#  149|             data3 = _mm256_shuffle_epi8 (data3, shuffle_constant);
#  150|             _mm256_storeu_si256 (datap + 1, data3);

Error: COMPILER_WARNING: [#def196]
coreutils-9.9/src/cksum_avx2.c:149:19: note[note]: called from here
#  147|             data = _mm256_shuffle_epi8 (data, shuffle_constant);
#  148|             _mm256_storeu_si256 (datap, data);
#  149|->           data3 = _mm256_shuffle_epi8 (data3, shuffle_constant);
#  150|             _mm256_storeu_si256 (datap + 1, data3);
#  151|             data5 = _mm256_shuffle_epi8 (data5, shuffle_constant);

Error: COMPILER_WARNING: [#def197]
coreutils-9.9/src/cksum_avx2.c:150:11: note[note]: called from here
#  148|             _mm256_storeu_si256 (datap, data);
#  149|             data3 = _mm256_shuffle_epi8 (data3, shuffle_constant);
#  150|->           _mm256_storeu_si256 (datap + 1, data3);
#  151|             data5 = _mm256_shuffle_epi8 (data5, shuffle_constant);
#  152|             _mm256_storeu_si256 (datap + 2, data5);

Error: COMPILER_WARNING: [#def198]
coreutils-9.9/src/cksum_avx2.c:151:19: note[note]: called from here
#  149|             data3 = _mm256_shuffle_epi8 (data3, shuffle_constant);
#  150|             _mm256_storeu_si256 (datap + 1, data3);
#  151|->           data5 = _mm256_shuffle_epi8 (data5, shuffle_constant);
#  152|             _mm256_storeu_si256 (datap + 2, data5);
#  153|             data7 = _mm256_shuffle_epi8 (data7, shuffle_constant);

Error: COMPILER_WARNING: [#def199]
coreutils-9.9/src/cksum_avx2.c:152:11: note[note]: called from here
#  150|             _mm256_storeu_si256 (datap + 1, data3);
#  151|             data5 = _mm256_shuffle_epi8 (data5, shuffle_constant);
#  152|->           _mm256_storeu_si256 (datap + 2, data5);
#  153|             data7 = _mm256_shuffle_epi8 (data7, shuffle_constant);
#  154|             _mm256_storeu_si256 (datap + 3, data7);

Error: COMPILER_WARNING: [#def200]
coreutils-9.9/src/cksum_avx2.c:153:19: note[note]: called from here
#  151|             data5 = _mm256_shuffle_epi8 (data5, shuffle_constant);
#  152|             _mm256_storeu_si256 (datap + 2, data5);
#  153|->           data7 = _mm256_shuffle_epi8 (data7, shuffle_constant);
#  154|             _mm256_storeu_si256 (datap + 3, data7);
#  155|           }

Error: COMPILER_WARNING: [#def201]
coreutils-9.9/src/cksum_avx2.c:154:11: note[note]: called from here
#  152|             _mm256_storeu_si256 (datap + 2, data5);
#  153|             data7 = _mm256_shuffle_epi8 (data7, shuffle_constant);
#  154|->           _mm256_storeu_si256 (datap + 3, data7);
#  155|           }
#  156|   

Error: COMPILER_WARNING: [#def202]
coreutils-9.9/src/cksum_avx2.c:160:18: note[note]: called from here
#  158|         if (bytes_read >= 64)
#  159|           {
#  160|->           data = _mm256_loadu_si256 (datap);
#  161|             data = _mm256_shuffle_epi8 (data, shuffle_constant);
#  162|             xor_crc = _mm256_set_epi32 (0, 0, 0, 0, crc, 0, 0, 0);

Error: COMPILER_WARNING: [#def203]
coreutils-9.9/src/cksum_avx2.c:161:18: note[note]: called from here
#  159|           {
#  160|             data = _mm256_loadu_si256 (datap);
#  161|->           data = _mm256_shuffle_epi8 (data, shuffle_constant);
#  162|             xor_crc = _mm256_set_epi32 (0, 0, 0, 0, crc, 0, 0, 0);
#  163|             crc = 0;

Error: COMPILER_WARNING: [#def204]
coreutils-9.9/src/cksum_avx2.c:162:21: note[note]: called from here
#  160|             data = _mm256_loadu_si256 (datap);
#  161|             data = _mm256_shuffle_epi8 (data, shuffle_constant);
#  162|->           xor_crc = _mm256_set_epi32 (0, 0, 0, 0, crc, 0, 0, 0);
#  163|             crc = 0;
#  164|             data = _mm256_xor_si256 (data, xor_crc);

Error: COMPILER_WARNING: [#def205]
coreutils-9.9/src/cksum_avx2.c:164:18: note[note]: called from here
#  162|             xor_crc = _mm256_set_epi32 (0, 0, 0, 0, crc, 0, 0, 0);
#  163|             crc = 0;
#  164|->           data = _mm256_xor_si256 (data, xor_crc);
#  165|             while (bytes_read >= 64)
#  166|               {

Error: COMPILER_WARNING: [#def206]
coreutils-9.9/src/cksum_avx2.c:169:23: note[note]: called from here
#  167|                 datap++;
#  168|   
#  169|->               data2 = _mm256_clmulepi64_epi128 (data, single_mult_constant,
#  170|                                                   0x00);
#  171|                 data = _mm256_clmulepi64_epi128 (data, single_mult_constant,

Error: COMPILER_WARNING: [#def207]
coreutils-9.9/src/cksum_avx2.c:171:22: note[note]: called from here
#  169|                 data2 = _mm256_clmulepi64_epi128 (data, single_mult_constant,
#  170|                                                   0x00);
#  171|->               data = _mm256_clmulepi64_epi128 (data, single_mult_constant,
#  172|                                                  0x11);
#  173|                 fold_data = _mm256_loadu_si256 (datap);

Error: COMPILER_WARNING: [#def208]
coreutils-9.9/src/cksum_avx2.c:173:27: note[note]: called from here
#  171|                 data = _mm256_clmulepi64_epi128 (data, single_mult_constant,
#  172|                                                  0x11);
#  173|->               fold_data = _mm256_loadu_si256 (datap);
#  174|                 fold_data = _mm256_shuffle_epi8 (fold_data, shuffle_constant);
#  175|                 data = _mm256_xor_si256 (data, data2);

Error: COMPILER_WARNING: [#def209]
coreutils-9.9/src/cksum_avx2.c:174:27: note[note]: called from here
#  172|                                                  0x11);
#  173|                 fold_data = _mm256_loadu_si256 (datap);
#  174|->               fold_data = _mm256_shuffle_epi8 (fold_data, shuffle_constant);
#  175|                 data = _mm256_xor_si256 (data, data2);
#  176|                 data = _mm256_xor_si256 (data, fold_data);

Error: COMPILER_WARNING: [#def210]
coreutils-9.9/src/cksum_avx2.c:175:22: note[note]: called from here
#  173|                 fold_data = _mm256_loadu_si256 (datap);
#  174|                 fold_data = _mm256_shuffle_epi8 (fold_data, shuffle_constant);
#  175|->               data = _mm256_xor_si256 (data, data2);
#  176|                 data = _mm256_xor_si256 (data, fold_data);
#  177|                 bytes_read -= 32;

Error: COMPILER_WARNING: [#def211]
coreutils-9.9/src/cksum_avx2.c:176:22: note[note]: called from here
#  174|                 fold_data = _mm256_shuffle_epi8 (fold_data, shuffle_constant);
#  175|                 data = _mm256_xor_si256 (data, data2);
#  176|->               data = _mm256_xor_si256 (data, fold_data);
#  177|                 bytes_read -= 32;
#  178|               }

Error: COMPILER_WARNING: [#def212]
coreutils-9.9/src/cksum_avx2.c:179:18: note[note]: called from here
#  177|                 bytes_read -= 32;
#  178|               }
#  179|->           data = _mm256_shuffle_epi8 (data, shuffle_constant);
#  180|             _mm256_storeu_si256 (datap, data);
#  181|           }

Error: COMPILER_WARNING: [#def213]
coreutils-9.9/src/cksum_avx2.c:180:11: note[note]: called from here
#  178|               }
#  179|             data = _mm256_shuffle_epi8 (data, shuffle_constant);
#  180|->           _mm256_storeu_si256 (datap, data);
#  181|           }
#  182|   

Error: COMPILER_WARNING: [#def214]
coreutils-9.9/src/cksum_avx512.c:45:3: warning[-Wpsabi]: AVX512F vector return without AVX512F enabled changes the ABI
#   43|        "Fast CRC Computation for Generic Polynomials Using PCLMULQDQ Instruction"
#   44|     */
#   45|->   single_mult_constant = _mm512_set_epi64 (0x8833794C, 0xE6228B11,
#   46|                                              0x8833794C, 0xE6228B11,
#   47|                                              0x8833794C, 0xE6228B11,

Error: COMPILER_WARNING: [#def215]
coreutils-9.9/src/cksum_avx512.c:45:26: note[note]: called from here
#   43|        "Fast CRC Computation for Generic Polynomials Using PCLMULQDQ Instruction"
#   44|     */
#   45|->   single_mult_constant = _mm512_set_epi64 (0x8833794C, 0xE6228B11,
#   46|                                              0x8833794C, 0xE6228B11,
#   47|                                              0x8833794C, 0xE6228B11,

Error: COMPILER_WARNING: [#def216]
coreutils-9.9/src/cksum_avx512.c:49:24: note[note]: called from here
#   47|                                              0x8833794C, 0xE6228B11,
#   48|                                              0x8833794C, 0xE6228B11);
#   49|->   four_mult_constant = _mm512_set_epi64 (0xCBCF3BCB, 0x88FE2237,
#   50|                                            0xCBCF3BCB, 0x88FE2237,
#   51|                                            0xCBCF3BCB, 0x88FE2237,

Error: COMPILER_WARNING: [#def217]
coreutils-9.9/src/cksum_avx512.c:55:22: note[note]: called from here
#   53|   
#   54|     /* Constant to byteswap a full AVX512 register */
#   55|->   shuffle_constant = _mm512_set_epi8 (0, 1, 2, 3, 4, 5, 6, 7, 8,
#   56|                                         9, 10, 11, 12, 13, 14, 15,
#   57|                                         0, 1, 2, 3, 4, 5, 6, 7, 8,

Error: COMPILER_WARNING: [#def218]
coreutils-9.9/src/cksum_avx512.c:89:18: note[note]: called from here
#   87|         if (bytes_read >= 16 * 8 * 4)
#   88|           {
#   89|->           data = _mm512_loadu_si512 (datap);
#   90|             data = _mm512_shuffle_epi8 (data, shuffle_constant);
#   91|             /* XOR in initial CRC value (for us 0 so no effect), or CRC value

Error: COMPILER_WARNING: [#def219]
coreutils-9.9/src/cksum_avx512.c:90:18: note[note]: called from here
#   88|           {
#   89|             data = _mm512_loadu_si512 (datap);
#   90|->           data = _mm512_shuffle_epi8 (data, shuffle_constant);
#   91|             /* XOR in initial CRC value (for us 0 so no effect), or CRC value
#   92|                calculated for previous BUFLEN buffer from fread */

Error: COMPILER_WARNING: [#def220]
coreutils-9.9/src/cksum_avx512.c:93:21: note[note]: called from here
#   91|             /* XOR in initial CRC value (for us 0 so no effect), or CRC value
#   92|                calculated for previous BUFLEN buffer from fread */
#   93|->           xor_crc = _mm512_set_epi32 (0, 0, 0, 0, 0, 0, 0, 0,
#   94|                                         0, 0, 0, 0, crc, 0, 0, 0);
#   95|             crc = 0;

Error: COMPILER_WARNING: [#def221]
coreutils-9.9/src/cksum_avx512.c:96:18: note[note]: called from here
#   94|                                         0, 0, 0, 0, crc, 0, 0, 0);
#   95|             crc = 0;
#   96|->           data = _mm512_xor_si512 (data, xor_crc);
#   97|             data3 = _mm512_loadu_si512 (datap + 1);
#   98|             data3 = _mm512_shuffle_epi8 (data3, shuffle_constant);

Error: COMPILER_WARNING: [#def222]
coreutils-9.9/src/cksum_avx512.c:97:19: note[note]: called from here
#   95|             crc = 0;
#   96|             data = _mm512_xor_si512 (data, xor_crc);
#   97|->           data3 = _mm512_loadu_si512 (datap + 1);
#   98|             data3 = _mm512_shuffle_epi8 (data3, shuffle_constant);
#   99|             data5 = _mm512_loadu_si512 (datap + 2);

Error: COMPILER_WARNING: [#def223]
coreutils-9.9/src/cksum_avx512.c:98:19: note[note]: called from here
#   96|             data = _mm512_xor_si512 (data, xor_crc);
#   97|             data3 = _mm512_loadu_si512 (datap + 1);
#   98|->           data3 = _mm512_shuffle_epi8 (data3, shuffle_constant);
#   99|             data5 = _mm512_loadu_si512 (datap + 2);
#  100|             data5 = _mm512_shuffle_epi8 (data5, shuffle_constant);

Error: COMPILER_WARNING: [#def224]
coreutils-9.9/src/cksum_avx512.c:99:19: note[note]: called from here
#   97|             data3 = _mm512_loadu_si512 (datap + 1);
#   98|             data3 = _mm512_shuffle_epi8 (data3, shuffle_constant);
#   99|->           data5 = _mm512_loadu_si512 (datap + 2);
#  100|             data5 = _mm512_shuffle_epi8 (data5, shuffle_constant);
#  101|             data7 = _mm512_loadu_si512 (datap + 3);

Error: COMPILER_WARNING: [#def225]
coreutils-9.9/src/cksum_avx512.c:100:19: note[note]: called from here
#   98|             data3 = _mm512_shuffle_epi8 (data3, shuffle_constant);
#   99|             data5 = _mm512_loadu_si512 (datap + 2);
#  100|->           data5 = _mm512_shuffle_epi8 (data5, shuffle_constant);
#  101|             data7 = _mm512_loadu_si512 (datap + 3);
#  102|             data7 = _mm512_shuffle_epi8 (data7, shuffle_constant);

Error: COMPILER_WARNING: [#def226]
coreutils-9.9/src/cksum_avx512.c:101:19: note[note]: called from here
#   99|             data5 = _mm512_loadu_si512 (datap + 2);
#  100|             data5 = _mm512_shuffle_epi8 (data5, shuffle_constant);
#  101|->           data7 = _mm512_loadu_si512 (datap + 3);
#  102|             data7 = _mm512_shuffle_epi8 (data7, shuffle_constant);
#  103|   

Error: COMPILER_WARNING: [#def227]
coreutils-9.9/src/cksum_avx512.c:102:19: note[note]: called from here
#  100|             data5 = _mm512_shuffle_epi8 (data5, shuffle_constant);
#  101|             data7 = _mm512_loadu_si512 (datap + 3);
#  102|->           data7 = _mm512_shuffle_epi8 (data7, shuffle_constant);
#  103|   
#  104|             while (bytes_read >= 16 * 8 * 4)

Error: COMPILER_WARNING: [#def228]
coreutils-9.9/src/cksum_avx512.c:109:23: note[note]: called from here
#  107|   
#  108|                 /* Do multiplication here for 16x consecutive 16 byte blocks */
#  109|->               data2 = _mm512_clmulepi64_epi128 (data, four_mult_constant,
#  110|                                                   0x00);
#  111|                 data = _mm512_clmulepi64_epi128 (data, four_mult_constant,

Error: COMPILER_WARNING: [#def229]
coreutils-9.9/src/cksum_avx512.c:111:22: note[note]: called from here
#  109|                 data2 = _mm512_clmulepi64_epi128 (data, four_mult_constant,
#  110|                                                   0x00);
#  111|->               data = _mm512_clmulepi64_epi128 (data, four_mult_constant,
#  112|                                                  0x11);
#  113|                 data4 = _mm512_clmulepi64_epi128 (data3, four_mult_constant,

Error: COMPILER_WARNING: [#def230]
coreutils-9.9/src/cksum_avx512.c:113:23: note[note]: called from here
#  111|                 data = _mm512_clmulepi64_epi128 (data, four_mult_constant,
#  112|                                                  0x11);
#  113|->               data4 = _mm512_clmulepi64_epi128 (data3, four_mult_constant,
#  114|                                                   0x00);
#  115|                 data3 = _mm512_clmulepi64_epi128 (data3, four_mult_constant,

Error: COMPILER_WARNING: [#def231]
coreutils-9.9/src/cksum_avx512.c:115:23: note[note]: called from here
#  113|                 data4 = _mm512_clmulepi64_epi128 (data3, four_mult_constant,
#  114|                                                   0x00);
#  115|->               data3 = _mm512_clmulepi64_epi128 (data3, four_mult_constant,
#  116|                                                   0x11);
#  117|                 data6 = _mm512_clmulepi64_epi128 (data5, four_mult_constant,

Error: COMPILER_WARNING: [#def232]
coreutils-9.9/src/cksum_avx512.c:117:23: note[note]: called from here
#  115|                 data3 = _mm512_clmulepi64_epi128 (data3, four_mult_constant,
#  116|                                                   0x11);
#  117|->               data6 = _mm512_clmulepi64_epi128 (data5, four_mult_constant,
#  118|                                                   0x00);
#  119|                 data5 = _mm512_clmulepi64_epi128 (data5, four_mult_constant,

Error: COMPILER_WARNING: [#def233]
coreutils-9.9/src/cksum_avx512.c:119:23: note[note]: called from here
#  117|                 data6 = _mm512_clmulepi64_epi128 (data5, four_mult_constant,
#  118|                                                   0x00);
#  119|->               data5 = _mm512_clmulepi64_epi128 (data5, four_mult_constant,
#  120|                                                   0x11);
#  121|                 data8 = _mm512_clmulepi64_epi128 (data7, four_mult_constant,

Error: COMPILER_WARNING: [#def234]
coreutils-9.9/src/cksum_avx512.c:121:23: note[note]: called from here
#  119|                 data5 = _mm512_clmulepi64_epi128 (data5, four_mult_constant,
#  120|                                                   0x11);
#  121|->               data8 = _mm512_clmulepi64_epi128 (data7, four_mult_constant,
#  122|                                                   0x00);
#  123|                 data7 = _mm512_clmulepi64_epi128 (data7, four_mult_constant,

Error: COMPILER_WARNING: [#def235]
coreutils-9.9/src/cksum_avx512.c:123:23: note[note]: called from here
#  121|                 data8 = _mm512_clmulepi64_epi128 (data7, four_mult_constant,
#  122|                                                   0x00);
#  123|->               data7 = _mm512_clmulepi64_epi128 (data7, four_mult_constant,
#  124|                                                   0x11);
#  125|   

Error: COMPILER_WARNING: [#def236]
coreutils-9.9/src/cksum_avx512.c:131:22: note[note]: called from here
#  129|                    Keep xor result in variables for multiplication in next
#  130|                    round of loop. */
#  131|->               data = _mm512_xor_si512 (data, data2);
#  132|                 data2 = _mm512_loadu_si512 (datap);
#  133|                 data2 = _mm512_shuffle_epi8 (data2, shuffle_constant);

Error: COMPILER_WARNING: [#def237]
coreutils-9.9/src/cksum_avx512.c:132:23: note[note]: called from here
#  130|                    round of loop. */
#  131|                 data = _mm512_xor_si512 (data, data2);
#  132|->               data2 = _mm512_loadu_si512 (datap);
#  133|                 data2 = _mm512_shuffle_epi8 (data2, shuffle_constant);
#  134|                 data = _mm512_xor_si512 (data, data2);

Error: COMPILER_WARNING: [#def238]
coreutils-9.9/src/cksum_avx512.c:133:23: note[note]: called from here
#  131|                 data = _mm512_xor_si512 (data, data2);
#  132|                 data2 = _mm512_loadu_si512 (datap);
#  133|->               data2 = _mm512_shuffle_epi8 (data2, shuffle_constant);
#  134|                 data = _mm512_xor_si512 (data, data2);
#  135|   

Error: COMPILER_WARNING: [#def239]
coreutils-9.9/src/cksum_avx512.c:134:22: note[note]: called from here
#  132|                 data2 = _mm512_loadu_si512 (datap);
#  133|                 data2 = _mm512_shuffle_epi8 (data2, shuffle_constant);
#  134|->               data = _mm512_xor_si512 (data, data2);
#  135|   
#  136|                 data3 = _mm512_xor_si512 (data3, data4);

Error: COMPILER_WARNING: [#def240]
coreutils-9.9/src/cksum_avx512.c:136:23: note[note]: called from here
#  134|                 data = _mm512_xor_si512 (data, data2);
#  135|   
#  136|->               data3 = _mm512_xor_si512 (data3, data4);
#  137|                 data4 = _mm512_loadu_si512 (datap + 1);
#  138|                 data4 = _mm512_shuffle_epi8 (data4, shuffle_constant);

Error: COMPILER_WARNING: [#def241]
coreutils-9.9/src/cksum_avx512.c:137:23: note[note]: called from here
#  135|   
#  136|                 data3 = _mm512_xor_si512 (data3, data4);
#  137|->               data4 = _mm512_loadu_si512 (datap + 1);
#  138|                 data4 = _mm512_shuffle_epi8 (data4, shuffle_constant);
#  139|                 data3 = _mm512_xor_si512 (data3, data4);

Error: COMPILER_WARNING: [#def242]
coreutils-9.9/src/cksum_avx512.c:138:23: note[note]: called from here
#  136|                 data3 = _mm512_xor_si512 (data3, data4);
#  137|                 data4 = _mm512_loadu_si512 (datap + 1);
#  138|->               data4 = _mm512_shuffle_epi8 (data4, shuffle_constant);
#  139|                 data3 = _mm512_xor_si512 (data3, data4);
#  140|   

Error: COMPILER_WARNING: [#def243]
coreutils-9.9/src/cksum_avx512.c:139:23: note[note]: called from here
#  137|                 data4 = _mm512_loadu_si512 (datap + 1);
#  138|                 data4 = _mm512_shuffle_epi8 (data4, shuffle_constant);
#  139|->               data3 = _mm512_xor_si512 (data3, data4);
#  140|   
#  141|                 data5 = _mm512_xor_si512 (data5, data6);

Error: COMPILER_WARNING: [#def244]
coreutils-9.9/src/cksum_avx512.c:141:23: note[note]: called from here
#  139|                 data3 = _mm512_xor_si512 (data3, data4);
#  140|   
#  141|->               data5 = _mm512_xor_si512 (data5, data6);
#  142|                 data6 = _mm512_loadu_si512 (datap + 2);
#  143|                 data6 = _mm512_shuffle_epi8 (data6, shuffle_constant);

Error: COMPILER_WARNING: [#def245]
coreutils-9.9/src/cksum_avx512.c:142:23: note[note]: called from here
#  140|   
#  141|                 data5 = _mm512_xor_si512 (data5, data6);
#  142|->               data6 = _mm512_loadu_si512 (datap + 2);
#  143|                 data6 = _mm512_shuffle_epi8 (data6, shuffle_constant);
#  144|                 data5 = _mm512_xor_si512 (data5, data6);

Error: COMPILER_WARNING: [#def246]
coreutils-9.9/src/cksum_avx512.c:143:23: note[note]: called from here
#  141|                 data5 = _mm512_xor_si512 (data5, data6);
#  142|                 data6 = _mm512_loadu_si512 (datap + 2);
#  143|->               data6 = _mm512_shuffle_epi8 (data6, shuffle_constant);
#  144|                 data5 = _mm512_xor_si512 (data5, data6);
#  145|   

Error: COMPILER_WARNING: [#def247]
coreutils-9.9/src/cksum_avx512.c:144:23: note[note]: called from here
#  142|                 data6 = _mm512_loadu_si512 (datap + 2);
#  143|                 data6 = _mm512_shuffle_epi8 (data6, shuffle_constant);
#  144|->               data5 = _mm512_xor_si512 (data5, data6);
#  145|   
#  146|                 data7 = _mm512_xor_si512 (data7, data8);

Error: COMPILER_WARNING: [#def248]
coreutils-9.9/src/cksum_avx512.c:146:23: note[note]: called from here
#  144|                 data5 = _mm512_xor_si512 (data5, data6);
#  145|   
#  146|->               data7 = _mm512_xor_si512 (data7, data8);
#  147|                 data8 = _mm512_loadu_si512 (datap + 3);
#  148|                 data8 = _mm512_shuffle_epi8 (data8, shuffle_constant);

Error: COMPILER_WARNING: [#def249]
coreutils-9.9/src/cksum_avx512.c:147:23: note[note]: called from here
#  145|   
#  146|                 data7 = _mm512_xor_si512 (data7, data8);
#  147|->               data8 = _mm512_loadu_si512 (datap + 3);
#  148|                 data8 = _mm512_shuffle_epi8 (data8, shuffle_constant);
#  149|                 data7 = _mm512_xor_si512 (data7, data8);

Error: COMPILER_WARNING: [#def250]
coreutils-9.9/src/cksum_avx512.c:148:23: note[note]: called from here
#  146|                 data7 = _mm512_xor_si512 (data7, data8);
#  147|                 data8 = _mm512_loadu_si512 (datap + 3);
#  148|->               data8 = _mm512_shuffle_epi8 (data8, shuffle_constant);
#  149|                 data7 = _mm512_xor_si512 (data7, data8);
#  150|   

Error: COMPILER_WARNING: [#def251]
coreutils-9.9/src/cksum_avx512.c:149:23: note[note]: called from here
#  147|                 data8 = _mm512_loadu_si512 (datap + 3);
#  148|                 data8 = _mm512_shuffle_epi8 (data8, shuffle_constant);
#  149|->               data7 = _mm512_xor_si512 (data7, data8);
#  150|   
#  151|                 bytes_read -= (16 * 4 * 4);

Error: COMPILER_WARNING: [#def252]
coreutils-9.9/src/cksum_avx512.c:155:18: note[note]: called from here
#  153|             /* At end of loop we write out results from variables back into
#  154|                the buffer, for use in single fold loop */
#  155|->           data = _mm512_shuffle_epi8 (data, shuffle_constant);
#  156|             _mm512_storeu_si512 (datap, data);
#  157|             data3 = _mm512_shuffle_epi8 (data3, shuffle_constant);

Error: COMPILER_WARNING: [#def253]
coreutils-9.9/src/cksum_avx512.c:156:11: note[note]: called from here
#  154|                the buffer, for use in single fold loop */
#  155|             data = _mm512_shuffle_epi8 (data, shuffle_constant);
#  156|->           _mm512_storeu_si512 (datap, data);
#  157|             data3 = _mm512_shuffle_epi8 (data3, shuffle_constant);
#  158|             _mm512_storeu_si512 (datap + 1, data3);

Error: COMPILER_WARNING: [#def254]
coreutils-9.9/src/cksum_avx512.c:157:19: note[note]: called from here
#  155|             data = _mm512_shuffle_epi8 (data, shuffle_constant);
#  156|             _mm512_storeu_si512 (datap, data);
#  157|->           data3 = _mm512_shuffle_epi8 (data3, shuffle_constant);
#  158|             _mm512_storeu_si512 (datap + 1, data3);
#  159|             data5 = _mm512_shuffle_epi8 (data5, shuffle_constant);

Error: COMPILER_WARNING: [#def255]
coreutils-9.9/src/cksum_avx512.c:158:11: note[note]: called from here
#  156|             _mm512_storeu_si512 (datap, data);
#  157|             data3 = _mm512_shuffle_epi8 (data3, shuffle_constant);
#  158|->           _mm512_storeu_si512 (datap + 1, data3);
#  159|             data5 = _mm512_shuffle_epi8 (data5, shuffle_constant);
#  160|             _mm512_storeu_si512 (datap + 2, data5);

Error: COMPILER_WARNING: [#def256]
coreutils-9.9/src/cksum_avx512.c:159:19: note[note]: called from here
#  157|             data3 = _mm512_shuffle_epi8 (data3, shuffle_constant);
#  158|             _mm512_storeu_si512 (datap + 1, data3);
#  159|->           data5 = _mm512_shuffle_epi8 (data5, shuffle_constant);
#  160|             _mm512_storeu_si512 (datap + 2, data5);
#  161|             data7 = _mm512_shuffle_epi8 (data7, shuffle_constant);

Error: COMPILER_WARNING: [#def257]
coreutils-9.9/src/cksum_avx512.c:160:11: note[note]: called from here
#  158|             _mm512_storeu_si512 (datap + 1, data3);
#  159|             data5 = _mm512_shuffle_epi8 (data5, shuffle_constant);
#  160|->           _mm512_storeu_si512 (datap + 2, data5);
#  161|             data7 = _mm512_shuffle_epi8 (data7, shuffle_constant);
#  162|             _mm512_storeu_si512 (datap + 3, data7);

Error: COMPILER_WARNING: [#def258]
coreutils-9.9/src/cksum_avx512.c:161:19: note[note]: called from here
#  159|             data5 = _mm512_shuffle_epi8 (data5, shuffle_constant);
#  160|             _mm512_storeu_si512 (datap + 2, data5);
#  161|->           data7 = _mm512_shuffle_epi8 (data7, shuffle_constant);
#  162|             _mm512_storeu_si512 (datap + 3, data7);
#  163|           }

Error: COMPILER_WARNING: [#def259]
coreutils-9.9/src/cksum_avx512.c:162:11: note[note]: called from here
#  160|             _mm512_storeu_si512 (datap + 2, data5);
#  161|             data7 = _mm512_shuffle_epi8 (data7, shuffle_constant);
#  162|->           _mm512_storeu_si512 (datap + 3, data7);
#  163|           }
#  164|   

Error: COMPILER_WARNING: [#def260]
coreutils-9.9/src/cksum_avx512.c:168:18: note[note]: called from here
#  166|         if (bytes_read >= 128)
#  167|           {
#  168|->           data = _mm512_loadu_si512 (datap);
#  169|             data = _mm512_shuffle_epi8 (data, shuffle_constant);
#  170|             xor_crc = _mm512_set_epi32 (0, 0, 0, 0, 0, 0, 0, 0,

Error: COMPILER_WARNING: [#def261]
coreutils-9.9/src/cksum_avx512.c:169:18: note[note]: called from here
#  167|           {
#  168|             data = _mm512_loadu_si512 (datap);
#  169|->           data = _mm512_shuffle_epi8 (data, shuffle_constant);
#  170|             xor_crc = _mm512_set_epi32 (0, 0, 0, 0, 0, 0, 0, 0,
#  171|                                         0, 0, 0, 0, crc, 0, 0, 0);

Error: COMPILER_WARNING: [#def262]
coreutils-9.9/src/cksum_avx512.c:170:21: note[note]: called from here
#  168|             data = _mm512_loadu_si512 (datap);
#  169|             data = _mm512_shuffle_epi8 (data, shuffle_constant);
#  170|->           xor_crc = _mm512_set_epi32 (0, 0, 0, 0, 0, 0, 0, 0,
#  171|                                         0, 0, 0, 0, crc, 0, 0, 0);
#  172|             crc = 0;

Error: COMPILER_WARNING: [#def263]
coreutils-9.9/src/cksum_avx512.c:173:18: note[note]: called from here
#  171|                                         0, 0, 0, 0, crc, 0, 0, 0);
#  172|             crc = 0;
#  173|->           data = _mm512_xor_si512 (data, xor_crc);
#  174|             while (bytes_read >= 128)
#  175|               {

Error: COMPILER_WARNING: [#def264]
coreutils-9.9/src/cksum_avx512.c:178:23: note[note]: called from here
#  176|                 datap++;
#  177|   
#  178|->               data2 = _mm512_clmulepi64_epi128 (data, single_mult_constant,
#  179|                                                   0x00);
#  180|                 data = _mm512_clmulepi64_epi128 (data, single_mult_constant,

Error: COMPILER_WARNING: [#def265]
coreutils-9.9/src/cksum_avx512.c:180:22: note[note]: called from here
#  178|                 data2 = _mm512_clmulepi64_epi128 (data, single_mult_constant,
#  179|                                                   0x00);
#  180|->               data = _mm512_clmulepi64_epi128 (data, single_mult_constant,
#  181|                                                  0x11);
#  182|                 fold_data = _mm512_loadu_si512 (datap);

Error: COMPILER_WARNING: [#def266]
coreutils-9.9/src/cksum_avx512.c:182:27: note[note]: called from here
#  180|                 data = _mm512_clmulepi64_epi128 (data, single_mult_constant,
#  181|                                                  0x11);
#  182|->               fold_data = _mm512_loadu_si512 (datap);
#  183|                 fold_data = _mm512_shuffle_epi8 (fold_data, shuffle_constant);
#  184|                 data = _mm512_xor_si512 (data, data2);

Error: COMPILER_WARNING: [#def267]
coreutils-9.9/src/cksum_avx512.c:183:27: note[note]: called from here
#  181|                                                  0x11);
#  182|                 fold_data = _mm512_loadu_si512 (datap);
#  183|->               fold_data = _mm512_shuffle_epi8 (fold_data, shuffle_constant);
#  184|                 data = _mm512_xor_si512 (data, data2);
#  185|                 data = _mm512_xor_si512 (data, fold_data);

Error: COMPILER_WARNING: [#def268]
coreutils-9.9/src/cksum_avx512.c:184:22: note[note]: called from here
#  182|                 fold_data = _mm512_loadu_si512 (datap);
#  183|                 fold_data = _mm512_shuffle_epi8 (fold_data, shuffle_constant);
#  184|->               data = _mm512_xor_si512 (data, data2);
#  185|                 data = _mm512_xor_si512 (data, fold_data);
#  186|                 bytes_read -= 64;

Error: COMPILER_WARNING: [#def269]
coreutils-9.9/src/cksum_avx512.c:185:22: note[note]: called from here
#  183|                 fold_data = _mm512_shuffle_epi8 (fold_data, shuffle_constant);
#  184|                 data = _mm512_xor_si512 (data, data2);
#  185|->               data = _mm512_xor_si512 (data, fold_data);
#  186|                 bytes_read -= 64;
#  187|               }

Error: COMPILER_WARNING: [#def270]
coreutils-9.9/src/cksum_avx512.c:188:18: note[note]: called from here
#  186|                 bytes_read -= 64;
#  187|               }
#  188|->           data = _mm512_shuffle_epi8 (data, shuffle_constant);
#  189|             _mm512_storeu_si512 (datap, data);
#  190|           }

Error: COMPILER_WARNING: [#def271]
coreutils-9.9/src/cksum_avx512.c:189:11: note[note]: called from here
#  187|               }
#  188|             data = _mm512_shuffle_epi8 (data, shuffle_constant);
#  189|->           _mm512_storeu_si512 (datap, data);
#  190|           }
#  191|   

Error: COMPILER_WARNING: [#def272]
coreutils-9.9/src/cksum_pclmul.c:81:18: note[note]: called from here
#   79|           {
#   80|             data = _mm_loadu_si128 (datap);
#   81|->           data = _mm_shuffle_epi8 (data, shuffle_constant);
#   82|             /* XOR in initial CRC value (for us 0 so no effect), or CRC value
#   83|                calculated for previous BUFLEN buffer from fread */

Error: COMPILER_WARNING: [#def273]
coreutils-9.9/src/cksum_pclmul.c:88:19: note[note]: called from here
#   86|             data = _mm_xor_si128 (data, xor_crc);
#   87|             data3 = _mm_loadu_si128 (datap + 1);
#   88|->           data3 = _mm_shuffle_epi8 (data3, shuffle_constant);
#   89|             data5 = _mm_loadu_si128 (datap + 2);
#   90|             data5 = _mm_shuffle_epi8 (data5, shuffle_constant);

Error: COMPILER_WARNING: [#def274]
coreutils-9.9/src/cksum_pclmul.c:90:19: note[note]: called from here
#   88|             data3 = _mm_shuffle_epi8 (data3, shuffle_constant);
#   89|             data5 = _mm_loadu_si128 (datap + 2);
#   90|->           data5 = _mm_shuffle_epi8 (data5, shuffle_constant);
#   91|             data7 = _mm_loadu_si128 (datap + 3);
#   92|             data7 = _mm_shuffle_epi8 (data7, shuffle_constant);

Error: COMPILER_WARNING: [#def275]
coreutils-9.9/src/cksum_pclmul.c:92:19: note[note]: called from here
#   90|             data5 = _mm_shuffle_epi8 (data5, shuffle_constant);
#   91|             data7 = _mm_loadu_si128 (datap + 3);
#   92|->           data7 = _mm_shuffle_epi8 (data7, shuffle_constant);
#   93|   
#   94|   

Error: COMPILER_WARNING: [#def276]
coreutils-9.9/src/cksum_pclmul.c:100:23: note[note]: called from here
#   98|   
#   99|                 /* Do multiplication here for four consecutive 16 byte blocks */
#  100|->               data2 = _mm_clmulepi64_si128 (data, four_mult_constant, 0x00);
#  101|                 data = _mm_clmulepi64_si128 (data, four_mult_constant, 0x11);
#  102|                 data4 = _mm_clmulepi64_si128 (data3, four_mult_constant, 0x00);

Error: COMPILER_WARNING: [#def277]
coreutils-9.9/src/cksum_pclmul.c:101:22: note[note]: called from here
#   99|                 /* Do multiplication here for four consecutive 16 byte blocks */
#  100|                 data2 = _mm_clmulepi64_si128 (data, four_mult_constant, 0x00);
#  101|->               data = _mm_clmulepi64_si128 (data, four_mult_constant, 0x11);
#  102|                 data4 = _mm_clmulepi64_si128 (data3, four_mult_constant, 0x00);
#  103|                 data3 = _mm_clmulepi64_si128 (data3, four_mult_constant, 0x11);

Error: COMPILER_WARNING: [#def278]
coreutils-9.9/src/cksum_pclmul.c:102:23: note[note]: called from here
#  100|                 data2 = _mm_clmulepi64_si128 (data, four_mult_constant, 0x00);
#  101|                 data = _mm_clmulepi64_si128 (data, four_mult_constant, 0x11);
#  102|->               data4 = _mm_clmulepi64_si128 (data3, four_mult_constant, 0x00);
#  103|                 data3 = _mm_clmulepi64_si128 (data3, four_mult_constant, 0x11);
#  104|                 data6 = _mm_clmulepi64_si128 (data5, four_mult_constant, 0x00);

Error: COMPILER_WARNING: [#def279]
coreutils-9.9/src/cksum_pclmul.c:103:23: note[note]: called from here
#  101|                 data = _mm_clmulepi64_si128 (data, four_mult_constant, 0x11);
#  102|                 data4 = _mm_clmulepi64_si128 (data3, four_mult_constant, 0x00);
#  103|->               data3 = _mm_clmulepi64_si128 (data3, four_mult_constant, 0x11);
#  104|                 data6 = _mm_clmulepi64_si128 (data5, four_mult_constant, 0x00);
#  105|                 data5 = _mm_clmulepi64_si128 (data5, four_mult_constant, 0x11);

Error: COMPILER_WARNING: [#def280]
coreutils-9.9/src/cksum_pclmul.c:104:23: note[note]: called from here
#  102|                 data4 = _mm_clmulepi64_si128 (data3, four_mult_constant, 0x00);
#  103|                 data3 = _mm_clmulepi64_si128 (data3, four_mult_constant, 0x11);
#  104|->               data6 = _mm_clmulepi64_si128 (data5, four_mult_constant, 0x00);
#  105|                 data5 = _mm_clmulepi64_si128 (data5, four_mult_constant, 0x11);
#  106|                 data8 = _mm_clmulepi64_si128 (data7, four_mult_constant, 0x00);

Error: COMPILER_WARNING: [#def281]
coreutils-9.9/src/cksum_pclmul.c:105:23: note[note]: called from here
#  103|                 data3 = _mm_clmulepi64_si128 (data3, four_mult_constant, 0x11);
#  104|                 data6 = _mm_clmulepi64_si128 (data5, four_mult_constant, 0x00);
#  105|->               data5 = _mm_clmulepi64_si128 (data5, four_mult_constant, 0x11);
#  106|                 data8 = _mm_clmulepi64_si128 (data7, four_mult_constant, 0x00);
#  107|                 data7 = _mm_clmulepi64_si128 (data7, four_mult_constant, 0x11);

Error: COMPILER_WARNING: [#def282]
coreutils-9.9/src/cksum_pclmul.c:106:23: note[note]: called from here
#  104|                 data6 = _mm_clmulepi64_si128 (data5, four_mult_constant, 0x00);
#  105|                 data5 = _mm_clmulepi64_si128 (data5, four_mult_constant, 0x11);
#  106|->               data8 = _mm_clmulepi64_si128 (data7, four_mult_constant, 0x00);
#  107|                 data7 = _mm_clmulepi64_si128 (data7, four_mult_constant, 0x11);
#  108|   

Error: COMPILER_WARNING: [#def283]
coreutils-9.9/src/cksum_pclmul.c:107:23: note[note]: called from here
#  105|                 data5 = _mm_clmulepi64_si128 (data5, four_mult_constant, 0x11);
#  106|                 data8 = _mm_clmulepi64_si128 (data7, four_mult_constant, 0x00);
#  107|->               data7 = _mm_clmulepi64_si128 (data7, four_mult_constant, 0x11);
#  108|   
#  109|                 /* Now multiplication results for the four blocks is xor:ed with

Error: COMPILER_WARNING: [#def284]
coreutils-9.9/src/cksum_pclmul.c:116:23: note[note]: called from here
#  114|                 data = _mm_xor_si128 (data, data2);
#  115|                 data2 = _mm_loadu_si128 (datap);
#  116|->               data2 = _mm_shuffle_epi8 (data2, shuffle_constant);
#  117|                 data = _mm_xor_si128 (data, data2);
#  118|   

Error: COMPILER_WARNING: [#def285]
coreutils-9.9/src/cksum_pclmul.c:121:23: note[note]: called from here
#  119|                 data3 = _mm_xor_si128 (data3, data4);
#  120|                 data4 = _mm_loadu_si128 (datap + 1);
#  121|->               data4 = _mm_shuffle_epi8 (data4, shuffle_constant);
#  122|                 data3 = _mm_xor_si128 (data3, data4);
#  123|   

Error: COMPILER_WARNING: [#def286]
coreutils-9.9/src/cksum_pclmul.c:126:23: note[note]: called from here
#  124|                 data5 = _mm_xor_si128 (data5, data6);
#  125|                 data6 = _mm_loadu_si128 (datap + 2);
#  126|->               data6 = _mm_shuffle_epi8 (data6, shuffle_constant);
#  127|                 data5 = _mm_xor_si128 (data5, data6);
#  128|   

Error: COMPILER_WARNING: [#def287]
coreutils-9.9/src/cksum_pclmul.c:131:23: note[note]: called from here
#  129|                 data7 = _mm_xor_si128 (data7, data8);
#  130|                 data8 = _mm_loadu_si128 (datap + 3);
#  131|->               data8 = _mm_shuffle_epi8 (data8, shuffle_constant);
#  132|                 data7 = _mm_xor_si128 (data7, data8);
#  133|   

Error: COMPILER_WARNING: [#def288]
coreutils-9.9/src/cksum_pclmul.c:138:18: note[note]: called from here
#  136|             /* At end of loop we write out results from variables back into
#  137|                the buffer, for use in single fold loop */
#  138|->           data = _mm_shuffle_epi8 (data, shuffle_constant);
#  139|             _mm_storeu_si128 (datap, data);
#  140|             data3 = _mm_shuffle_epi8 (data3, shuffle_constant);

Error: COMPILER_WARNING: [#def289]
coreutils-9.9/src/cksum_pclmul.c:140:19: note[note]: called from here
#  138|             data = _mm_shuffle_epi8 (data, shuffle_constant);
#  139|             _mm_storeu_si128 (datap, data);
#  140|->           data3 = _mm_shuffle_epi8 (data3, shuffle_constant);
#  141|             _mm_storeu_si128 (datap + 1, data3);
#  142|             data5 = _mm_shuffle_epi8 (data5, shuffle_constant);

Error: COMPILER_WARNING: [#def290]
coreutils-9.9/src/cksum_pclmul.c:142:19: note[note]: called from here
#  140|             data3 = _mm_shuffle_epi8 (data3, shuffle_constant);
#  141|             _mm_storeu_si128 (datap + 1, data3);
#  142|->           data5 = _mm_shuffle_epi8 (data5, shuffle_constant);
#  143|             _mm_storeu_si128 (datap + 2, data5);
#  144|             data7 = _mm_shuffle_epi8 (data7, shuffle_constant);

Error: COMPILER_WARNING: [#def291]
coreutils-9.9/src/cksum_pclmul.c:144:19: note[note]: called from here
#  142|             data5 = _mm_shuffle_epi8 (data5, shuffle_constant);
#  143|             _mm_storeu_si128 (datap + 2, data5);
#  144|->           data7 = _mm_shuffle_epi8 (data7, shuffle_constant);
#  145|             _mm_storeu_si128 (datap + 3, data7);
#  146|           }

Error: COMPILER_WARNING: [#def292]
coreutils-9.9/src/cksum_pclmul.c:152:18: note[note]: called from here
#  150|           {
#  151|             data = _mm_loadu_si128 (datap);
#  152|->           data = _mm_shuffle_epi8 (data, shuffle_constant);
#  153|             xor_crc = _mm_set_epi32 (crc, 0, 0, 0);
#  154|             crc = 0;

Error: COMPILER_WARNING: [#def293]
coreutils-9.9/src/cksum_pclmul.c:160:23: note[note]: called from here
#  158|                 datap++;
#  159|   
#  160|->               data2 = _mm_clmulepi64_si128 (data, single_mult_constant, 0x00);
#  161|                 data = _mm_clmulepi64_si128 (data, single_mult_constant, 0x11);
#  162|                 fold_data = _mm_loadu_si128 (datap);

Error: COMPILER_WARNING: [#def294]
coreutils-9.9/src/cksum_pclmul.c:161:22: note[note]: called from here
#  159|   
#  160|                 data2 = _mm_clmulepi64_si128 (data, single_mult_constant, 0x00);
#  161|->               data = _mm_clmulepi64_si128 (data, single_mult_constant, 0x11);
#  162|                 fold_data = _mm_loadu_si128 (datap);
#  163|                 fold_data = _mm_shuffle_epi8 (fold_data, shuffle_constant);

Error: COMPILER_WARNING: [#def295]
coreutils-9.9/src/cksum_pclmul.c:163:27: note[note]: called from here
#  161|                 data = _mm_clmulepi64_si128 (data, single_mult_constant, 0x11);
#  162|                 fold_data = _mm_loadu_si128 (datap);
#  163|->               fold_data = _mm_shuffle_epi8 (fold_data, shuffle_constant);
#  164|                 data = _mm_xor_si128 (data, data2);
#  165|                 data = _mm_xor_si128 (data, fold_data);

Error: COMPILER_WARNING: [#def296]
coreutils-9.9/src/cksum_pclmul.c:168:18: note[note]: called from here
#  166|                 bytes_read -= 16;
#  167|               }
#  168|->           data = _mm_shuffle_epi8 (data, shuffle_constant);
#  169|             _mm_storeu_si128 (datap, data);
#  170|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def297]
coreutils-9.9/src/comm.c:292:7: warning[-Wanalyzer-malloc-leak]: leak of 'streams[i]'
coreutils-9.9/src/comm.c:278:15: branch_true: following 'true' branch (when 'i != 2')...
coreutils-9.9/src/comm.c:278:15: branch_true: ...to here
coreutils-9.9/src/comm.c:280:19: branch_true: following 'true' branch (when 'j != 4')...
coreutils-9.9/src/comm.c:282:11: branch_true: ...to here
coreutils-9.9/src/comm.c:288:20: branch_false: following 'false' branch (when the strings are non-equal)...
coreutils-9.9/src/comm.c:288:55: branch_false: ...to here
coreutils-9.9/src/comm.c:288:55: acquire_memory: allocated here
coreutils-9.9/src/comm.c:289:10: branch_false: following 'false' branch...
coreutils-9.9/src/comm.c:292:7: branch_false: ...to here
coreutils-9.9/src/comm.c:292:7: throw: if 'fadvise' throws an exception...
coreutils-9.9/src/comm.c:292:7: danger: 'streams[i]' leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
#  290|           error (EXIT_FAILURE, errno, "%s", quotef (infiles[i]));
#  291|   
#  292|->       fadvise (streams[i], FADVISE_SEQUENTIAL);
#  293|   
#  294|         thisline[i] = readlinebuffer_delim (all_line[i][alt[i][0]], streams[i],

Error: GCC_ANALYZER_WARNING (CWE-401): [#def298]
coreutils-9.9/src/copy.c:413:24: warning[-Wanalyzer-malloc-leak]: leak of 'namep'
coreutils-9.9/src/copy.c:394:16: acquire_memory: allocated here
coreutils-9.9/src/copy.c:395:6: branch_false: following 'false' branch...
coreutils-9.9/src/copy.c:405:7: branch_false: ...to here
coreutils-9.9/src/copy.c:405:6: branch_false: following 'false' branch...
coreutils-9.9/src/copy.c:410:9: branch_false: ...to here
coreutils-9.9/src/copy.c:410:10: branch_true: following 'true' branch...
coreutils-9.9/src/copy.c:413:24: branch_true: ...to here
coreutils-9.9/src/copy.c:413:24: throw: if 'file_name_concat' throws an exception...
coreutils-9.9/src/copy.c:413:24: danger: 'namep' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  411|       {
#  412|         bool local_copy_into_self;
#  413|->       char *src_name = file_name_concat (src_name_in, namep, nullptr);
#  414|         char *dst_name = file_name_concat (dst_name_in, namep, nullptr);
#  415|         bool first_dir_created = *first_dir_created_per_command_line_arg;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def299]
coreutils-9.9/src/copy.c:414:24: warning[-Wanalyzer-malloc-leak]: leak of 'file_name_concat(src_name_in,  namep, 0)'
coreutils-9.9/src/copy.c:395:6: branch_false: following 'false' branch...
coreutils-9.9/src/copy.c:405:7: branch_false: ...to here
coreutils-9.9/src/copy.c:405:6: branch_false: following 'false' branch...
coreutils-9.9/src/copy.c:410:9: branch_false: ...to here
coreutils-9.9/src/copy.c:410:10: branch_true: following 'true' branch...
coreutils-9.9/src/copy.c:413:24: branch_true: ...to here
coreutils-9.9/src/copy.c:414:24: throw: if 'file_name_concat' throws an exception...
coreutils-9.9/src/copy.c:414:24: danger: 'file_name_concat(src_name_in,  namep, 0)' leaks here; was allocated at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
#  412|         bool local_copy_into_self;
#  413|         char *src_name = file_name_concat (src_name_in, namep, nullptr);
#  414|->       char *dst_name = file_name_concat (dst_name_in, namep, nullptr);
#  415|         bool first_dir_created = *first_dir_created_per_command_line_arg;
#  416|         bool rename_succeeded;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def300]
coreutils-9.9/src/copy.c:414:24: warning[-Wanalyzer-malloc-leak]: leak of 'namep'
coreutils-9.9/src/copy.c:394:16: acquire_memory: allocated here
coreutils-9.9/src/copy.c:395:6: branch_false: following 'false' branch...
coreutils-9.9/src/copy.c:405:7: branch_false: ...to here
coreutils-9.9/src/copy.c:405:6: branch_false: following 'false' branch...
coreutils-9.9/src/copy.c:410:9: branch_false: ...to here
coreutils-9.9/src/copy.c:410:10: branch_true: following 'true' branch...
coreutils-9.9/src/copy.c:413:24: branch_true: ...to here
coreutils-9.9/src/copy.c:414:24: throw: if 'file_name_concat' throws an exception...
coreutils-9.9/src/copy.c:414:24: danger: 'namep' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  412|         bool local_copy_into_self;
#  413|         char *src_name = file_name_concat (src_name_in, namep, nullptr);
#  414|->       char *dst_name = file_name_concat (dst_name_in, namep, nullptr);
#  415|         bool first_dir_created = *first_dir_created_per_command_line_arg;
#  416|         bool rename_succeeded;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def301]
coreutils-9.9/src/copy.c:415:32: warning[-Wanalyzer-malloc-leak]: leak of 'file_name_concat(dst_name_in,  namep, 0)'
coreutils-9.9/src/copy.c:382:1: enter_function: entry to 'copy_dir'
coreutils-9.9/src/copy.c:395:6: branch_false: following 'false' branch...
coreutils-9.9/src/copy.c:405:7: branch_false: ...to here
coreutils-9.9/src/copy.c:405:6: branch_false: following 'false' branch...
coreutils-9.9/src/copy.c:410:9: branch_false: ...to here
coreutils-9.9/src/copy.c:410:10: branch_true: following 'true' branch...
coreutils-9.9/src/copy.c:413:24: branch_true: ...to here
coreutils-9.9/src/copy.c:418:13: call_function: calling 'copy_internal' from 'copy_dir'
#  413|         char *src_name = file_name_concat (src_name_in, namep, nullptr);
#  414|         char *dst_name = file_name_concat (dst_name_in, namep, nullptr);
#  415|->       bool first_dir_created = *first_dir_created_per_command_line_arg;
#  416|         bool rename_succeeded;
#  417|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def302]
coreutils-9.9/src/copy.c:415:32: warning[-Wanalyzer-malloc-leak]: leak of 'file_name_concat(src_name_in,  namep, 0)'
coreutils-9.9/src/copy.c:382:1: enter_function: entry to 'copy_dir'
coreutils-9.9/src/copy.c:395:6: branch_false: following 'false' branch...
coreutils-9.9/src/copy.c:405:7: branch_false: ...to here
coreutils-9.9/src/copy.c:405:6: branch_false: following 'false' branch...
coreutils-9.9/src/copy.c:410:9: branch_false: ...to here
coreutils-9.9/src/copy.c:410:10: branch_true: following 'true' branch...
coreutils-9.9/src/copy.c:413:24: branch_true: ...to here
coreutils-9.9/src/copy.c:418:13: call_function: calling 'copy_internal' from 'copy_dir'
#  413|         char *src_name = file_name_concat (src_name_in, namep, nullptr);
#  414|         char *dst_name = file_name_concat (dst_name_in, namep, nullptr);
#  415|->       bool first_dir_created = *first_dir_created_per_command_line_arg;
#  416|         bool rename_succeeded;
#  417|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def303]
coreutils-9.9/src/copy.c:1660:25: warning[-Wanalyzer-malloc-leak]: leak of 'namep'
coreutils-9.9/src/copy.c:382:1: enter_function: entry to 'copy_dir'
coreutils-9.9/src/copy.c:394:16: acquire_memory: allocated here
coreutils-9.9/src/copy.c:395:6: branch_false: following 'false' branch...
coreutils-9.9/src/copy.c:405:7: branch_false: ...to here
coreutils-9.9/src/copy.c:405:6: branch_false: following 'false' branch...
coreutils-9.9/src/copy.c:410:9: branch_false: ...to here
coreutils-9.9/src/copy.c:410:10: branch_true: following 'true' branch...
coreutils-9.9/src/copy.c:413:24: branch_true: ...to here
coreutils-9.9/src/copy.c:418:13: call_function: calling 'copy_internal' from 'copy_dir'
# 1658|       {
# 1659|         if (rename_errno < 0)
# 1660|->         rename_errno = (renameatu (AT_FDCWD, src_name, dst_dirfd, drelname,
# 1661|                                      RENAME_NOREPLACE)
# 1662|                           ? errno : 0);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def304]
coreutils-9.9/src/copy.c:1678:11: warning[-Wanalyzer-malloc-leak]: leak of 'namep'
coreutils-9.9/src/copy.c:382:1: enter_function: entry to 'copy_dir'
coreutils-9.9/src/copy.c:394:16: acquire_memory: allocated here
coreutils-9.9/src/copy.c:395:6: branch_false: following 'false' branch...
coreutils-9.9/src/copy.c:405:7: branch_false: ...to here
coreutils-9.9/src/copy.c:405:6: branch_false: following 'false' branch...
coreutils-9.9/src/copy.c:410:9: branch_false: ...to here
coreutils-9.9/src/copy.c:410:10: branch_true: following 'true' branch...
coreutils-9.9/src/copy.c:413:24: branch_true: ...to here
coreutils-9.9/src/copy.c:418:13: call_function: calling 'copy_internal' from 'copy_dir'
# 1676|         if (follow_fstatat (dirfd, relname, &src_sb, fstatat_flags) != 0)
# 1677|           {
# 1678|->           error (0, errno, _("cannot stat %s"), quoteaf (name));
# 1679|             return false;
# 1680|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def305]
coreutils-9.9/src/copy.c:1686:11: warning[-Wanalyzer-malloc-leak]: leak of 'namep'
coreutils-9.9/src/copy.c:382:1: enter_function: entry to 'copy_dir'
coreutils-9.9/src/copy.c:394:16: acquire_memory: allocated here
coreutils-9.9/src/copy.c:395:6: branch_false: following 'false' branch...
coreutils-9.9/src/copy.c:405:7: branch_false: ...to here
coreutils-9.9/src/copy.c:405:6: branch_false: following 'false' branch...
coreutils-9.9/src/copy.c:410:9: branch_false: ...to here
coreutils-9.9/src/copy.c:410:10: branch_true: following 'true' branch...
coreutils-9.9/src/copy.c:413:24: branch_true: ...to here
coreutils-9.9/src/copy.c:418:13: call_function: calling 'copy_internal' from 'copy_dir'
# 1684|         if (S_ISDIR (src_mode) && !x->recursive)
# 1685|           {
# 1686|->           error (0, 0, ! x->install_mode /* cp */
# 1687|                    ? _("-r not specified; omitting directory %s")
# 1688|                    : _("omitting directory %s"),

Error: GCC_ANALYZER_WARNING (CWE-401): [#def306]
coreutils-9.9/src/copy.c:1770:15: warning[-Wanalyzer-malloc-leak]: leak of 'namep'
coreutils-9.9/src/copy.c:382:1: enter_function: entry to 'copy_dir'
coreutils-9.9/src/copy.c:394:16: acquire_memory: allocated here
coreutils-9.9/src/copy.c:395:6: branch_false: following 'false' branch...
coreutils-9.9/src/copy.c:405:7: branch_false: ...to here
coreutils-9.9/src/copy.c:405:6: branch_false: following 'false' branch...
coreutils-9.9/src/copy.c:410:9: branch_false: ...to here
coreutils-9.9/src/copy.c:410:10: branch_true: following 'true' branch...
coreutils-9.9/src/copy.c:413:24: branch_true: ...to here
coreutils-9.9/src/copy.c:418:13: call_function: calling 'copy_internal' from 'copy_dir'
# 1768|             else
# 1769|               {
# 1770|->               error (0, errno, _("cannot stat %s"), quoteaf (dst_name));
# 1771|                 return false;
# 1772|               }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def307]
coreutils-9.9/src/cp-hash.c:121:15: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(24)'
coreutils-9.9/src/cp-hash.c:121:15: throw: if 'xstrdup' throws an exception...
coreutils-9.9/src/cp-hash.c:121:15: danger: 'xmalloc(24)' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  119|   
#  120|     ent = xmalloc (sizeof *ent);
#  121|->   ent->name = xstrdup (name);
#  122|     ent->st_ino = ino;
#  123|     ent->st_dev = dev;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def308]
coreutils-9.9/src/cp-hash.c:125:20: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
#  123|     ent->st_dev = dev;
#  124|   
#  125|->   ent_from_table = hash_insert (src_to_dest, ent);
#  126|     if (ent_from_table == nullptr)
#  127|       {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def309]
coreutils-9.9/src/cp-hash.c:125:20: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(24)'
coreutils-9.9/src/cp-hash.c:125:20: throw: if 'hash_insert' throws an exception...
coreutils-9.9/src/cp-hash.c:125:20: danger: 'xmalloc(24)' leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  123|     ent->st_dev = dev;
#  124|   
#  125|->   ent_from_table = hash_insert (src_to_dest, ent);
#  126|     if (ent_from_table == nullptr)
#  127|       {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def310]
coreutils-9.9/src/cp.c:483:17: warning[-Wanalyzer-malloc-leak]: leak of 'attr_list'
coreutils-9.9/src/cp.c:614:1: enter_function: entry to 'do_copy'
coreutils-9.9/src/cp.c:621:6: branch_false: following 'false' branch...
coreutils-9.9/src/cp.c:631:3: branch_false: ...to here
coreutils-9.9/src/cp.c:633:6: branch_false: following 'false' branch (when 'no_target_directory == 0')...
coreutils-9.9/src/cp.c:645:11: branch_false: ...to here
coreutils-9.9/src/cp.c:648:10: branch_false: following 'false' branch...
coreutils-9.9/src/cp.c:685:6: branch_false: ...to here
coreutils-9.9/src/cp.c:685:6: branch_true: following 'true' branch (when 'target_directory' is non-NULL)...
coreutils-9.9/src/cp.c:694:10: branch_true: ...to here
coreutils-9.9/src/cp.c:700:23: branch_true: following 'true' branch (when 'n_files > i')...
coreutils-9.9/src/cp.c:706:27: branch_true: ...to here
coreutils-9.9/src/cp.c:713:14: branch_true: following 'true' branch...
coreutils-9.9/src/cp.c:721:15: branch_true: ...to here
coreutils-9.9/src/cp.c:733:17: branch_true: following 'true' branch...
coreutils-9.9/src/cp.c:734:29: branch_true: ...to here
coreutils-9.9/src/cp.c:733:17: call_function: calling 'make_dir_parents_private' from 'do_copy'
#  481|   
#  482|             /* If required set the default context for created dirs.  */
#  483|->           if (! set_process_security_ctx (src, dir,
#  484|                                             missing_dir ? new->st.st_mode : 0,
#  485|                                             missing_dir, x))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def311]
coreutils-9.9/src/cp.c:545:46: warning[-Wanalyzer-malloc-leak]: leak of 'attr_list'
coreutils-9.9/src/cp.c:614:1: enter_function: entry to 'do_copy'
coreutils-9.9/src/cp.c:621:6: branch_false: following 'false' branch...
coreutils-9.9/src/cp.c:631:3: branch_false: ...to here
coreutils-9.9/src/cp.c:633:6: branch_false: following 'false' branch (when 'no_target_directory == 0')...
coreutils-9.9/src/cp.c:645:11: branch_false: ...to here
coreutils-9.9/src/cp.c:648:10: branch_false: following 'false' branch...
coreutils-9.9/src/cp.c:685:6: branch_false: ...to here
coreutils-9.9/src/cp.c:685:6: branch_true: following 'true' branch (when 'target_directory' is non-NULL)...
coreutils-9.9/src/cp.c:694:10: branch_true: ...to here
coreutils-9.9/src/cp.c:700:23: branch_true: following 'true' branch (when 'n_files > i')...
coreutils-9.9/src/cp.c:706:27: branch_true: ...to here
coreutils-9.9/src/cp.c:713:14: branch_true: following 'true' branch...
coreutils-9.9/src/cp.c:721:15: branch_true: ...to here
coreutils-9.9/src/cp.c:733:17: branch_true: following 'true' branch...
coreutils-9.9/src/cp.c:734:29: branch_true: ...to here
coreutils-9.9/src/cp.c:733:17: call_function: calling 'make_dir_parents_private' from 'do_copy'
#  543|                   {
#  544|                     if (omitted_permissions & ~stats.st_mode)
#  545|->                     omitted_permissions &= ~ cached_umask ();
#  546|                     if (omitted_permissions & ~stats.st_mode
#  547|                         || (stats.st_mode & S_IRWXU) != S_IRWXU)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def312]
coreutils-9.9/src/cp.c:735:20: warning[-Wanalyzer-malloc-leak]: leak of 'file_name_concat(target_directory,  __builtin___memcpy_chk(__new,  arg,  __len,  __builtin_object_size(__new, 0)), &arg_in_concat)'
coreutils-9.9/src/cp.c:614:1: enter_function: entry to 'do_copy'
coreutils-9.9/src/cp.c:621:6: branch_false: following 'false' branch...
coreutils-9.9/src/cp.c:631:3: branch_false: ...to here
coreutils-9.9/src/cp.c:633:6: branch_false: following 'false' branch (when 'no_target_directory == 0')...
coreutils-9.9/src/cp.c:645:11: branch_false: ...to here
coreutils-9.9/src/cp.c:648:10: branch_false: following 'false' branch...
coreutils-9.9/src/cp.c:685:6: branch_false: ...to here
coreutils-9.9/src/cp.c:685:6: branch_true: following 'true' branch (when 'target_directory' is non-NULL)...
coreutils-9.9/src/cp.c:694:10: branch_true: ...to here
coreutils-9.9/src/cp.c:700:23: branch_true: following 'true' branch (when 'n_files > i')...
coreutils-9.9/src/cp.c:706:27: branch_true: ...to here
coreutils-9.9/src/cp.c:713:14: branch_true: following 'true' branch...
coreutils-9.9/src/cp.c:721:15: branch_true: ...to here
coreutils-9.9/src/cp.c:733:17: branch_true: following 'true' branch...
coreutils-9.9/src/cp.c:734:29: branch_true: ...to here
coreutils-9.9/src/cp.c:733:17: call_function: calling 'make_dir_parents_private' from 'do_copy'
#  733|                   (make_dir_parents_private
#  734|                    (dst_name, arg_in_concat - dst_name, target_dirfd,
#  735|->                   (x->verbose ? "%s -> %s\n" : nullptr),
#  736|                     &attr_list, &new_dst, x));
#  737|               }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def313]
coreutils-9.9/src/cp.c:763:21: warning[-Wanalyzer-malloc-leak]: leak of 'dst_name'
coreutils-9.9/src/cp.c:621:6: branch_false: following 'false' branch...
coreutils-9.9/src/cp.c:631:3: branch_false: ...to here
coreutils-9.9/src/cp.c:633:6: branch_false: following 'false' branch (when 'no_target_directory == 0')...
coreutils-9.9/src/cp.c:645:11: branch_false: ...to here
coreutils-9.9/src/cp.c:648:10: branch_false: following 'false' branch...
coreutils-9.9/src/cp.c:685:6: branch_false: ...to here
coreutils-9.9/src/cp.c:685:6: branch_true: following 'true' branch (when 'target_directory' is non-NULL)...
coreutils-9.9/src/cp.c:694:10: branch_true: ...to here
coreutils-9.9/src/cp.c:700:23: branch_true: following 'true' branch (when 'n_files > i')...
coreutils-9.9/src/cp.c:706:27: branch_true: ...to here
coreutils-9.9/src/cp.c:713:14: branch_false: following 'false' branch...
coreutils-9.9/src/cp.c:742:15: branch_false: ...to here
coreutils-9.9/src/cp.c:763:21: throw: if 'copy' throws an exception...
coreutils-9.9/src/cp.c:763:21: danger: 'dst_name' leaks here; was allocated at [(13)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/12)
#  761|   
#  762|                 bool copy_into_self;
#  763|->               ok &= copy (arg, dst_name, target_dirfd, dst_relname,
#  764|                             new_dst, x, &copy_into_self, nullptr);
#  765|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def314]
coreutils-9.9/src/cp.c:822:12: warning[-Wanalyzer-malloc-leak]: leak of 'dest'
coreutils-9.9/src/cp.c:614:1: enter_function: entry to 'do_copy'
coreutils-9.9/src/cp.c:621:6: branch_false: following 'false' branch...
coreutils-9.9/src/cp.c:631:3: branch_false: ...to here
coreutils-9.9/src/cp.c:635:10: branch_false: following 'false' branch (when 'target_directory' is NULL)...
coreutils-9.9/src/cp.c:639:10: branch_false: ...to here
coreutils-9.9/src/cp.c:639:10: branch_false: following 'false' branch (when 'n_files <= 2')...
coreutils-9.9/src/cp.c:685:6: branch_false: ...to here
coreutils-9.9/src/cp.c:685:6: branch_false: following 'false' branch (when 'target_directory' is NULL)...
coreutils-9.9/src/cp.c:786:19: branch_false: ...to here
coreutils-9.9/src/cp.c:790:10: branch_false: following 'false' branch...
coreutils-9.9/src/cp.c:803:11: branch_false: ...to here
coreutils-9.9/src/cp.c:803:10: branch_true: following 'true' branch...
coreutils-9.9/src/cp.c:804:14: branch_true: ...to here
coreutils-9.9/src/cp.c:803:11: branch_true: following 'true' branch...
coreutils-9.9/src/cp.c:805:14: call_function: inlined call to 'streq' from 'do_copy'
coreutils-9.9/src/cp.c:803:11: branch_true: following 'true' branch (when the strings are equal)...
coreutils-9.9/src/cp.c:806:14: branch_true: ...to here
coreutils-9.9/src/cp.c:803:11: branch_false: following 'false' branch...
coreutils-9.9/src/cp.c:807:15: branch_false: ...to here
coreutils-9.9/src/cp.c:807:14: branch_true: following 'true' branch...
coreutils-9.9/src/cp.c:822:12: throw: if 'copy' throws an exception...
coreutils-9.9/src/cp.c:822:12: danger: 'dest' leaks here; was allocated at [(23)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/22)
#  820|           }
#  821|   
#  822|->       ok = copy (source, dest, AT_FDCWD, dest, -new_dst, x, &unused, nullptr);
#  823|       }
#  824|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def315]
coreutils-9.9/src/cp.c:825:10: warning[-Wanalyzer-malloc-leak]: leak of 'dest'
coreutils-9.9/src/cp.c:614:1: enter_function: entry to 'do_copy'
coreutils-9.9/src/cp.c:621:6: branch_false: following 'false' branch...
coreutils-9.9/src/cp.c:631:3: branch_false: ...to here
coreutils-9.9/src/cp.c:635:10: branch_false: following 'false' branch (when 'target_directory' is NULL)...
coreutils-9.9/src/cp.c:639:10: branch_false: ...to here
coreutils-9.9/src/cp.c:639:10: branch_false: following 'false' branch (when 'n_files <= 2')...
coreutils-9.9/src/cp.c:685:6: branch_false: ...to here
coreutils-9.9/src/cp.c:685:6: branch_false: following 'false' branch (when 'target_directory' is NULL)...
coreutils-9.9/src/cp.c:786:19: branch_false: ...to here
coreutils-9.9/src/cp.c:790:10: branch_false: following 'false' branch...
coreutils-9.9/src/cp.c:803:11: branch_false: ...to here
coreutils-9.9/src/cp.c:803:10: branch_true: following 'true' branch...
coreutils-9.9/src/cp.c:804:14: branch_true: ...to here
coreutils-9.9/src/cp.c:803:11: branch_true: following 'true' branch...
coreutils-9.9/src/cp.c:805:14: call_function: inlined call to 'streq' from 'do_copy'
coreutils-9.9/src/cp.c:803:11: branch_true: following 'true' branch (when the strings are equal)...
coreutils-9.9/src/cp.c:806:14: branch_true: ...to here
coreutils-9.9/src/cp.c:803:11: branch_false: following 'false' branch...
coreutils-9.9/src/cp.c:807:15: branch_false: ...to here
coreutils-9.9/src/cp.c:807:14: branch_true: following 'true' branch...
coreutils-9.9/src/cp.c:825:10: danger: 'dest' leaks here; was allocated at [(23)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/22)
#  823|       }
#  824|   
#  825|->   return ok;
#  826|   }
#  827|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def316]
coreutils-9.9/src/cp.c:922:13: warning[-Wanalyzer-malloc-leak]: leak of 's'
coreutils-9.9/src/cp.c:918:10: branch_false: following 'false' branch (when 'comma' is NULL)...
coreutils-9.9/src/cp.c:922:13: branch_false: ...to here
coreutils-9.9/src/cp.c:922:13: branch_true: following 'true' branch (when 'on_off != 0')...
coreutils-9.9/src/cp.c:922:13: branch_true: ...to here
coreutils-9.9/src/cp.c:922:13: throw: if '__xargmatch_internal' throws an exception...
coreutils-9.9/src/cp.c:922:13: danger: 's' leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
#  920|   
#  921|         /* process S.  */
#  922|->       val = XARGMATCH (on_off ? "--preserve" : "--no-preserve",
#  923|                          s, preserve_args, preserve_vals);
#  924|         switch (val)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def317]
coreutils-9.9/src/cp.c:922:13: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(arg)'
coreutils-9.9/src/cp.c:918:10: branch_true: following 'true' branch (when 'comma' is non-NULL)...
coreutils-9.9/src/cp.c:919:10: branch_true: ...to here
coreutils-9.9/src/cp.c:922:13: branch_true: following 'true' branch (when 'on_off != 0')...
coreutils-9.9/src/cp.c:922:13: branch_true: ...to here
coreutils-9.9/src/cp.c:959:14: branch_true: following 'true' branch...
coreutils-9.9/src/cp.c:960:13: branch_true: ...to here
coreutils-9.9/src/cp.c:969:10: branch_true: following 'true' branch (when 'comma' is non-NULL)...
coreutils-9.9/src/cp.c:969:10: branch_true: ...to here
coreutils-9.9/src/cp.c:918:10: branch_true: following 'true' branch (when 'comma' is non-NULL)...
coreutils-9.9/src/cp.c:919:10: branch_true: ...to here
coreutils-9.9/src/cp.c:922:13: branch_true: following 'true' branch (when 'on_off != 0')...
coreutils-9.9/src/cp.c:922:13: branch_true: ...to here
coreutils-9.9/src/cp.c:922:13: throw: if '__xargmatch_internal' throws an exception...
coreutils-9.9/src/cp.c:922:13: danger: 'xstrdup(arg)' leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
#  920|   
#  921|         /* process S.  */
#  922|->       val = XARGMATCH (on_off ? "--preserve" : "--no-preserve",
#  923|                          s, preserve_args, preserve_vals);
#  924|         switch (val)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def318]
coreutils-9.9/src/csplit.c:312:7: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(1312)'
coreutils-9.9/src/csplit.c:455:1: enter_function: entry to 'load_buffer'
coreutils-9.9/src/csplit.c:473:10: branch_true: following 'true' branch...
coreutils-9.9/src/csplit.c:475:15: branch_true: ...to here
coreutils-9.9/src/csplit.c:481:24: call_function: calling 'read_input' from 'load_buffer'
coreutils-9.9/src/csplit.c:481:24: return_function: returning to 'load_buffer' from 'read_input'
coreutils-9.9/src/csplit.c:483:11: call_function: calling 'record_line_starts' from 'load_buffer'
#  310|   
#  311|     /* If existing area for lines is full, get more. */
#  312|->   if (b->curr_line->used == CTRL_SIZE)
#  313|       {
#  314|         b->curr_line->next = new_line_control ();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def319]
coreutils-9.9/src/csplit.c:409:24: warning[-Wanalyzer-malloc-leak]: leak of 'get_new_buffer(bytes_wanted)'
coreutils-9.9/src/csplit.c:455:1: enter_function: entry to 'load_buffer'
coreutils-9.9/src/csplit.c:467:33: call_function: calling 'get_new_buffer' from 'load_buffer'
coreutils-9.9/src/csplit.c:467:33: return_function: returning to 'load_buffer' from 'get_new_buffer'
coreutils-9.9/src/csplit.c:473:10: branch_true: following 'true' branch...
coreutils-9.9/src/csplit.c:475:15: branch_true: ...to here
coreutils-9.9/src/csplit.c:481:24: call_function: calling 'read_input' from 'load_buffer'
#  407|     struct buffer_record *new_buffer = xmalloc (sizeof *new_buffer);
#  408|     new_buffer->bytes_alloc = 0;
#  409|->   new_buffer->buffer = xpalloc (nullptr, &new_buffer->bytes_alloc, min_size,
#  410|                                   -1, 1);
#  411|     new_buffer->bytes_used = 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def320]
coreutils-9.9/src/csplit.c:409:24: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(72)'
coreutils-9.9/src/csplit.c:455:1: enter_function: entry to 'load_buffer'
coreutils-9.9/src/csplit.c:467:33: call_function: calling 'get_new_buffer' from 'load_buffer'
#  407|     struct buffer_record *new_buffer = xmalloc (sizeof *new_buffer);
#  408|     new_buffer->bytes_alloc = 0;
#  409|->   new_buffer->buffer = xpalloc (nullptr, &new_buffer->bytes_alloc, min_size,
#  410|                                   -1, 1);
#  411|     new_buffer->bytes_used = 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def321]
coreutils-9.9/src/csplit.c:1366:3: warning[-Wanalyzer-malloc-leak]: leak of 'ximalloc(__real__ <unknown>)'
coreutils-9.9/src/csplit.c:1349:6: branch_false: following 'false' branch...
coreutils-9.9/src/csplit.c:1358:22: branch_false: ...to here
coreutils-9.9/src/csplit.c:1364:6: branch_false: following 'false' branch...
coreutils-9.9/src/csplit.c:1366:20: branch_false: ...to here
coreutils-9.9/src/csplit.c:1366:3: danger: 'ximalloc(__real__ <unknown>)' leaks here; was allocated at [(5)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/4)
# 1364|     if (ckd_add (&filename_size, prefix_len, max_digit_string_len + 1))
# 1365|       xalloc_die ();
# 1366|->   filename_space = ximalloc (filename_size);
# 1367|   
# 1368|     set_input_file (argv[optind++]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def322]
coreutils-9.9/src/cut.c:835:3: warning[-Wanalyzer-file-leak]: leak of FILE 'stream'
coreutils-9.9/src/cut.c:855:1: enter_function: entry to 'single_binary_main_cut'
coreutils-9.9/src/cut.c:977:6: branch_false: following 'false' branch...
coreutils-9.9/src/cut.c:980:6: branch_false: ...to here
coreutils-9.9/src/cut.c:980:6: branch_false: following 'false' branch (when 'delim_specified == 0')...
coreutils-9.9/src/cut.c:984:7: branch_false: ...to here
coreutils-9.9/src/cut.c:992:6: branch_false: following 'false' branch (when 'delim_specified == 0')...
coreutils-9.9/src/cut.c:994:7: branch_false: ...to here
coreutils-9.9/src/cut.c:1003:6: branch_false: following 'false' branch...
coreutils-9.9/src/cut.c:1023:7: branch_false: ...to here
coreutils-9.9/src/cut.c:1023:6: branch_true: following 'true' branch...
coreutils-9.9/src/cut.c:1024:10: branch_true: ...to here
coreutils-9.9/src/cut.c:1024:10: call_function: calling 'cut_file' from 'single_binary_main_cut'
#  833|       }
#  834|   
#  835|->   fadvise (stream, FADVISE_SEQUENTIAL);
#  836|   
#  837|     cut_stream (stream);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def323]
coreutils-9.9/src/cut.c:835:3: warning[-Wanalyzer-malloc-leak]: leak of 'stream'
coreutils-9.9/src/cut.c:855:1: enter_function: entry to 'single_binary_main_cut'
coreutils-9.9/src/cut.c:977:6: branch_false: following 'false' branch...
coreutils-9.9/src/cut.c:980:6: branch_false: ...to here
coreutils-9.9/src/cut.c:980:6: branch_false: following 'false' branch (when 'delim_specified == 0')...
coreutils-9.9/src/cut.c:984:7: branch_false: ...to here
coreutils-9.9/src/cut.c:992:6: branch_false: following 'false' branch (when 'delim_specified == 0')...
coreutils-9.9/src/cut.c:994:7: branch_false: ...to here
coreutils-9.9/src/cut.c:1003:6: branch_false: following 'false' branch...
coreutils-9.9/src/cut.c:1023:7: branch_false: ...to here
coreutils-9.9/src/cut.c:1023:6: branch_true: following 'true' branch...
coreutils-9.9/src/cut.c:1024:10: branch_true: ...to here
coreutils-9.9/src/cut.c:1024:10: call_function: calling 'cut_file' from 'single_binary_main_cut'
#  833|       }
#  834|   
#  835|->   fadvise (stream, FADVISE_SEQUENTIAL);
#  836|   
#  837|     cut_stream (stream);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def324]
coreutils-9.9/src/date.c:315:32: warning[-Wanalyzer-malloc-leak]: leak of 'adjust_resolution(format)'
coreutils-9.9/src/date.c:465:1: enter_function: entry to 'main'
coreutils-9.9/src/date.c:573:6: branch_false: following 'false' branch (when 'option_specified_date <= 1')...
coreutils-9.9/src/date.c:580:16: branch_false: ...to here
coreutils-9.9/src/date.c:580:6: branch_false: following 'false' branch...
coreutils-9.9/src/date.c:587:6: branch_false: ...to here
coreutils-9.9/src/date.c:587:6: branch_false: following 'false' branch (when 'discarded_datestr == 0')...
coreutils-9.9/src/date.c:590:6: branch_false: ...to here
coreutils-9.9/src/date.c:590:6: branch_false: following 'false' branch (when 'discarded_set_datestr == 0')...
coreutils-9.9/src/date.c:593:7: branch_false: ...to here
coreutils-9.9/src/date.c:618:6: branch_true: following 'true' branch (when 'format' is NULL)...
coreutils-9.9/src/date.c:620:10: branch_true: ...to here
coreutils-9.9/src/date.c:638:23: call_function: calling 'adjust_resolution' from 'main'
coreutils-9.9/src/date.c:638:23: return_function: returning to 'main' from 'adjust_resolution'
coreutils-9.9/src/date.c:315:32: danger: 'adjust_resolution(format)' leaks here; was allocated at [(18)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/17)
#  313|     char *copy = nullptr;
#  314|   
#  315|->   for (char const *f = format; *f; f++)
#  316|       if (f[0] == '%')
#  317|         {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def325]
coreutils-9.9/src/date.c:322:42: warning[-Wanalyzer-malloc-leak]: leak of 'copy'
coreutils-9.9/src/date.c:315:32: branch_true: following 'true' branch...
coreutils-9.9/src/date.c:316:8: branch_true: ...to here
coreutils-9.9/src/date.c:316:8: branch_true: following 'true' branch...
coreutils-9.9/src/date.c:318:13: branch_true: ...to here
coreutils-9.9/src/date.c:318:12: branch_true: following 'true' branch...
coreutils-9.9/src/date.c:320:16: branch_true: following 'true' branch (when 'copy' is NULL)...
coreutils-9.9/src/date.c:321:22: branch_true: ...to here
coreutils-9.9/src/date.c:322:42: throw: if 'gettime_res' throws an exception...
coreutils-9.9/src/date.c:322:42: danger: 'copy' leaks here; was allocated at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
#  320|               if (!copy)
#  321|                 copy = xstrdup (format);
#  322|->             copy[f + 1 - format] = '0' + res_width (gettime_res ());
#  323|               f += 2;
#  324|             }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def326]
coreutils-9.9/src/date.c:364:5: warning[-Wanalyzer-malloc-leak]: leak of 'ret'
coreutils-9.9/src/date.c:362:15: branch_true: following 'true' branch...
coreutils-9.9/src/date.c:363:6: branch_true: following 'true' branch (when 'locale' is non-NULL)...
coreutils-9.9/src/date.c:364:5: branch_true: ...to here
coreutils-9.9/src/date.c:364:5: throw: if 'xsetenv' throws an exception...
coreutils-9.9/src/date.c:364:5: danger: 'ret' leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  362|     char *ret = (value == nullptr || *value == '\0' ? nullptr : xstrdup (value));
#  363|     if (locale != nullptr)
#  364|->     xsetenv ("LC_TIME", locale, 1);
#  365|     else
#  366|       unsetenv ("LC_TIME");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def327]
coreutils-9.9/src/date.c:641:19: warning[-Wanalyzer-malloc-leak]: leak of 'format_res'
coreutils-9.9/src/date.c:465:1: enter_function: entry to 'main'
coreutils-9.9/src/date.c:573:6: branch_false: following 'false' branch (when 'option_specified_date <= 1')...
coreutils-9.9/src/date.c:580:16: branch_false: ...to here
coreutils-9.9/src/date.c:580:6: branch_false: following 'false' branch...
coreutils-9.9/src/date.c:587:6: branch_false: ...to here
coreutils-9.9/src/date.c:587:6: branch_false: following 'false' branch (when 'discarded_datestr == 0')...
coreutils-9.9/src/date.c:590:6: branch_false: ...to here
coreutils-9.9/src/date.c:590:6: branch_false: following 'false' branch (when 'discarded_set_datestr == 0')...
coreutils-9.9/src/date.c:593:7: branch_false: ...to here
coreutils-9.9/src/date.c:618:6: branch_true: following 'true' branch (when 'format' is NULL)...
coreutils-9.9/src/date.c:620:10: branch_true: ...to here
coreutils-9.9/src/date.c:638:23: call_function: calling 'adjust_resolution' from 'main'
coreutils-9.9/src/date.c:638:23: return_function: returning to 'main' from 'adjust_resolution'
coreutils-9.9/src/date.c:639:28: branch_true: following 'true' branch...
coreutils-9.9/src/date.c:640:26: branch_true: ...to here
coreutils-9.9/src/date.c:641:19: throw: if 'tzalloc' throws an exception...
coreutils-9.9/src/date.c:641:19: danger: 'format_res' leaks here; was allocated at [(18)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/17)
#  639|     char const *format_res = format_copy ? format_copy : format;
#  640|     char const *tzstring = getenv ("TZ");
#  641|->   timezone_t tz = tzalloc (tzstring);
#  642|   
#  643|     if (batch_file != nullptr)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def328]
coreutils-9.9/src/date.c:659:28: warning[-Wanalyzer-malloc-leak]: leak of 'format_res'
coreutils-9.9/src/date.c:465:1: enter_function: entry to 'main'
coreutils-9.9/src/date.c:573:6: branch_false: following 'false' branch (when 'option_specified_date <= 1')...
coreutils-9.9/src/date.c:580:16: branch_false: ...to here
coreutils-9.9/src/date.c:580:6: branch_false: following 'false' branch...
coreutils-9.9/src/date.c:587:6: branch_false: ...to here
coreutils-9.9/src/date.c:587:6: branch_false: following 'false' branch (when 'discarded_datestr == 0')...
coreutils-9.9/src/date.c:590:6: branch_false: ...to here
coreutils-9.9/src/date.c:590:6: branch_false: following 'false' branch (when 'discarded_set_datestr == 0')...
coreutils-9.9/src/date.c:593:7: branch_false: ...to here
coreutils-9.9/src/date.c:618:6: branch_true: following 'true' branch (when 'format' is NULL)...
coreutils-9.9/src/date.c:620:10: branch_true: ...to here
coreutils-9.9/src/date.c:638:23: call_function: calling 'adjust_resolution' from 'main'
coreutils-9.9/src/date.c:638:23: return_function: returning to 'main' from 'adjust_resolution'
coreutils-9.9/src/date.c:639:28: branch_true: following 'true' branch...
coreutils-9.9/src/date.c:640:26: branch_true: ...to here
coreutils-9.9/src/date.c:643:6: branch_false: following 'false' branch (when 'batch_file' is NULL)...
coreutils-9.9/src/date.c:643:6: branch_false: ...to here
coreutils-9.9/src/date.c:651:10: branch_true: following 'true' branch...
coreutils-9.9/src/date.c:653:15: branch_true: ...to here
coreutils-9.9/src/date.c:653:14: branch_true: following 'true' branch...
coreutils-9.9/src/date.c:658:29: branch_true: ...to here
coreutils-9.9/src/date.c:659:28: throw: if 'posixtime' throws an exception...
coreutils-9.9/src/date.c:659:28: danger: 'format_res' leaks here; was allocated at [(18)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/17)
#  657|                 set_date = true;
#  658|                 datestr = argv[optind];
#  659|->               valid_date = posixtime (&when.tv_sec,
#  660|                                         datestr,
#  661|                                         (PDS_TRAILING_YEAR

Error: GCC_ANALYZER_WARNING (CWE-401): [#def329]
coreutils-9.9/src/date.c:668:15: warning[-Wanalyzer-malloc-leak]: leak of 'format_res'
coreutils-9.9/src/date.c:465:1: enter_function: entry to 'main'
coreutils-9.9/src/date.c:573:6: branch_false: following 'false' branch (when 'option_specified_date <= 1')...
coreutils-9.9/src/date.c:580:16: branch_false: ...to here
coreutils-9.9/src/date.c:580:6: branch_false: following 'false' branch...
coreutils-9.9/src/date.c:587:6: branch_false: ...to here
coreutils-9.9/src/date.c:587:6: branch_false: following 'false' branch (when 'discarded_datestr == 0')...
coreutils-9.9/src/date.c:590:6: branch_false: ...to here
coreutils-9.9/src/date.c:590:6: branch_false: following 'false' branch (when 'discarded_set_datestr == 0')...
coreutils-9.9/src/date.c:593:7: branch_false: ...to here
coreutils-9.9/src/date.c:618:6: branch_true: following 'true' branch (when 'format' is NULL)...
coreutils-9.9/src/date.c:620:10: branch_true: ...to here
coreutils-9.9/src/date.c:638:23: call_function: calling 'adjust_resolution' from 'main'
coreutils-9.9/src/date.c:638:23: return_function: returning to 'main' from 'adjust_resolution'
coreutils-9.9/src/date.c:639:28: branch_true: following 'true' branch...
coreutils-9.9/src/date.c:640:26: branch_true: ...to here
coreutils-9.9/src/date.c:643:6: branch_false: following 'false' branch (when 'batch_file' is NULL)...
coreutils-9.9/src/date.c:643:6: branch_false: ...to here
coreutils-9.9/src/date.c:651:10: branch_true: following 'true' branch...
coreutils-9.9/src/date.c:653:15: branch_true: ...to here
coreutils-9.9/src/date.c:653:14: branch_false: following 'false' branch...
coreutils-9.9/src/date.c:668:15: branch_false: ...to here
coreutils-9.9/src/date.c:668:15: throw: if 'gettime' throws an exception...
coreutils-9.9/src/date.c:668:15: danger: 'format_res' leaks here; was allocated at [(18)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/17)
#  666|               {
#  667|                 /* Prepare to print the current date/time.  */
#  668|->               gettime (&when);
#  669|               }
#  670|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def330]
coreutils-9.9/src/date.c:697:9: warning[-Wanalyzer-malloc-leak]: leak of 'format_res'
coreutils-9.9/src/date.c:465:1: enter_function: entry to 'main'
coreutils-9.9/src/date.c:573:6: branch_false: following 'false' branch (when 'option_specified_date <= 1')...
coreutils-9.9/src/date.c:580:16: branch_false: ...to here
coreutils-9.9/src/date.c:580:6: branch_false: following 'false' branch...
coreutils-9.9/src/date.c:587:6: branch_false: ...to here
coreutils-9.9/src/date.c:587:6: branch_false: following 'false' branch (when 'discarded_datestr == 0')...
coreutils-9.9/src/date.c:590:6: branch_false: ...to here
coreutils-9.9/src/date.c:590:6: branch_false: following 'false' branch (when 'discarded_set_datestr == 0')...
coreutils-9.9/src/date.c:593:7: branch_false: ...to here
coreutils-9.9/src/date.c:618:6: branch_true: following 'true' branch (when 'format' is NULL)...
coreutils-9.9/src/date.c:620:10: branch_true: ...to here
coreutils-9.9/src/date.c:638:23: call_function: calling 'adjust_resolution' from 'main'
coreutils-9.9/src/date.c:638:23: return_function: returning to 'main' from 'adjust_resolution'
coreutils-9.9/src/date.c:639:28: branch_true: following 'true' branch...
coreutils-9.9/src/date.c:640:26: branch_true: ...to here
coreutils-9.9/src/date.c:643:6: branch_false: following 'false' branch (when 'batch_file' is NULL)...
coreutils-9.9/src/date.c:643:6: branch_false: ...to here
coreutils-9.9/src/date.c:651:10: branch_true: following 'true' branch...
coreutils-9.9/src/date.c:653:15: branch_true: ...to here
coreutils-9.9/src/date.c:653:14: branch_true: following 'true' branch...
coreutils-9.9/src/date.c:658:29: branch_true: ...to here
coreutils-9.9/src/date.c:696:10: branch_false: following 'false' branch (when 'valid_date == 0')...
coreutils-9.9/src/date.c:697:9: branch_false: ...to here
coreutils-9.9/src/date.c:697:9: throw: if 'quote' throws an exception...
coreutils-9.9/src/date.c:697:9: danger: 'format_res' leaks here; was allocated at [(18)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/17)
#  695|   
#  696|         if (! valid_date)
#  697|->         error (EXIT_FAILURE, 0, _("invalid date %s"), quote (datestr));
#  698|   
#  699|         if (set_date)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def331]
coreutils-9.9/src/date.c:703:15: warning[-Wanalyzer-malloc-leak]: leak of 'format_res'
coreutils-9.9/src/date.c:465:1: enter_function: entry to 'main'
coreutils-9.9/src/date.c:573:6: branch_false: following 'false' branch (when 'option_specified_date <= 1')...
coreutils-9.9/src/date.c:580:16: branch_false: ...to here
coreutils-9.9/src/date.c:580:6: branch_false: following 'false' branch...
coreutils-9.9/src/date.c:587:6: branch_false: ...to here
coreutils-9.9/src/date.c:587:6: branch_false: following 'false' branch (when 'discarded_datestr == 0')...
coreutils-9.9/src/date.c:590:6: branch_false: ...to here
coreutils-9.9/src/date.c:590:6: branch_false: following 'false' branch (when 'discarded_set_datestr == 0')...
coreutils-9.9/src/date.c:593:7: branch_false: ...to here
coreutils-9.9/src/date.c:618:6: branch_true: following 'true' branch (when 'format' is NULL)...
coreutils-9.9/src/date.c:620:10: branch_true: ...to here
coreutils-9.9/src/date.c:638:23: call_function: calling 'adjust_resolution' from 'main'
coreutils-9.9/src/date.c:638:23: return_function: returning to 'main' from 'adjust_resolution'
coreutils-9.9/src/date.c:639:28: branch_true: following 'true' branch...
coreutils-9.9/src/date.c:640:26: branch_true: ...to here
coreutils-9.9/src/date.c:643:6: branch_false: following 'false' branch (when 'batch_file' is NULL)...
coreutils-9.9/src/date.c:643:6: branch_false: ...to here
coreutils-9.9/src/date.c:651:10: branch_true: following 'true' branch...
coreutils-9.9/src/date.c:653:15: branch_true: ...to here
coreutils-9.9/src/date.c:653:14: branch_true: following 'true' branch...
coreutils-9.9/src/date.c:658:29: branch_true: ...to here
coreutils-9.9/src/date.c:696:10: branch_true: following 'true' branch (when 'valid_date != 0')...
coreutils-9.9/src/date.c:699:10: branch_true: ...to here
coreutils-9.9/src/date.c:699:10: branch_true: following 'true' branch (when 'set_date != 0')...
coreutils-9.9/src/date.c:703:15: branch_true: ...to here
coreutils-9.9/src/date.c:703:15: throw: if 'settime' throws an exception...
coreutils-9.9/src/date.c:703:15: danger: 'format_res' leaks here; was allocated at [(18)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/17)
#  701|             /* Set the system clock to the specified date, then regardless of
#  702|                the success of that operation, format and print that date.  */
#  703|->           if (settime (&when) != 0)
#  704|               {
#  705|                 error (0, errno, _("cannot set date"));

Error: GCC_ANALYZER_WARNING (CWE-404): [#def332]
coreutils-9.9/src/dd.c:527:3: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
coreutils-9.9/src/dd.c:2413:1: enter_function: entry to 'main'
coreutils-9.9/src/dd.c:2438:15: branch_true: following 'true' branch (when 'i != 256')...
coreutils-9.9/src/dd.c:2439:5: branch_true: ...to here
coreutils-9.9/src/dd.c:2442:3: call_function: calling 'scanargs' from 'main'
#  525|     va_list ap;
#  526|     va_start (ap, fmt);
#  527|->   verror (0, errnum, fmt, ap);
#  528|     va_end (ap);
#  529|   }

Error: GCC_ANALYZER_WARNING (CWE-1341): [#def333]
coreutils-9.9/src/dd.c:922:12: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'fd'
coreutils-9.9/src/dd.c:920:10: branch_false: following 'false' branch...
coreutils-9.9/src/dd.c:922:12: branch_false: ...to here
coreutils-9.9/src/dd.c:922:12: release_resource: first 'close' here
coreutils-9.9/src/dd.c:922:12: branch_true: following 'true' branch...
coreutils-9.9/src/dd.c:920:10: branch_false: following 'false' branch...
coreutils-9.9/src/dd.c:922:12: branch_false: ...to here
coreutils-9.9/src/dd.c:922:12: danger: second 'close' here; first 'close' was at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  920|         if (errno != EINTR)
#  921|           return -1;
#  922|->     while (close (fd) != 0 && errno != EBADF);
#  923|   
#  924|     return 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def334]
coreutils-9.9/src/df.c:361:7: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(dev_name)'
coreutils-9.9/src/df.c:1455:1: enter_function: entry to 'get_entry'
coreutils-9.9/src/df.c:1457:6: branch_true: following 'true' branch...
coreutils-9.9/src/df.c:1459:24: branch_true: ...to here
coreutils-9.9/src/df.c:1460:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.9/src/df.c:1462:11: branch_true: ...to here
coreutils-9.9/src/df.c:1462:11: call_function: calling 'get_dev' from 'get_entry'
#  359|   {
#  360|     static int tty_out = -1;
#  361|->   if (tty_out < 0)
#  362|       tty_out = isatty (STDOUT_FILENO);
#  363|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def335]
coreutils-9.9/src/df.c:375:13: warning[-Wanalyzer-malloc-leak]: leak of 'resolved'
coreutils-9.9/src/df.c:1455:1: enter_function: entry to 'get_entry'
coreutils-9.9/src/df.c:1457:6: branch_true: following 'true' branch...
coreutils-9.9/src/df.c:1459:24: branch_true: ...to here
coreutils-9.9/src/df.c:1459:24: acquire_memory: allocated here
coreutils-9.9/src/df.c:1460:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.9/src/df.c:1462:11: branch_true: ...to here
coreutils-9.9/src/df.c:1462:11: call_function: calling 'get_dev' from 'get_entry'
#  373|   {
#  374|     if (nrows == nrows_alloc)
#  375|->     table = xpalloc (table, &nrows_alloc, 1, -1, sizeof *table);
#  376|     table[nrows++] = xinmalloc (ncolumns, sizeof *table[0]);
#  377|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def336]
coreutils-9.9/src/df.c:376:20: warning[-Wanalyzer-malloc-leak]: leak of 'resolved'
coreutils-9.9/src/df.c:1455:1: enter_function: entry to 'get_entry'
coreutils-9.9/src/df.c:1457:6: branch_true: following 'true' branch...
coreutils-9.9/src/df.c:1459:24: branch_true: ...to here
coreutils-9.9/src/df.c:1459:24: acquire_memory: allocated here
coreutils-9.9/src/df.c:1460:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.9/src/df.c:1462:11: branch_true: ...to here
coreutils-9.9/src/df.c:1462:11: call_function: calling 'get_dev' from 'get_entry'
#  374|     if (nrows == nrows_alloc)
#  375|       table = xpalloc (table, &nrows_alloc, 1, -1, sizeof *table);
#  376|->   table[nrows++] = xinmalloc (ncolumns, sizeof *table[0]);
#  377|   }
#  378|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def337]
coreutils-9.9/src/df.c:419:15: warning[-Wanalyzer-malloc-leak]: leak of 's'
coreutils-9.9/src/df.c:1584:1: enter_function: entry to 'main'
coreutils-9.9/src/df.c:1617:10: branch_false: following 'false' branch (when 'c != -1')...
coreutils-9.9/src/df.c:1620:7: branch_false: ...to here
coreutils-9.9/src/df.c:1700:14: branch_false: following 'false' branch...
coreutils-9.9/src/df.c:1705:14: branch_false: ...to here
coreutils-9.9/src/df.c:1705:14: branch_false: following 'false' branch (when 'posix_format == 0')...
coreutils-9.9/src/df.c:1710:15: branch_false: ...to here
coreutils-9.9/src/df.c:1710:14: branch_false: following 'false' branch...
coreutils-9.9/src/df.c:1715:11: branch_false: ...to here
coreutils-9.9/src/df.c:1716:14: branch_true: following 'true' branch...
coreutils-9.9/src/df.c:1717:13: branch_true: ...to here
coreutils-9.9/src/df.c:1717:13: call_function: calling 'decode_output_arg' from 'main'
#  417|   {
#  418|     if (ncolumns == ncolumns_alloc)
#  419|->     columns = xpalloc (columns, &ncolumns_alloc, 1, -1, sizeof *columns);
#  420|     columns[ncolumns++] = &field_data[f];
#  421|     if (c != nullptr)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def338]
coreutils-9.9/src/df.c:451:15: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(arg)'
coreutils-9.9/src/df.c:1584:1: enter_function: entry to 'main'
coreutils-9.9/src/df.c:1617:10: branch_false: following 'false' branch (when 'c != -1')...
coreutils-9.9/src/df.c:1620:7: branch_false: ...to here
coreutils-9.9/src/df.c:1700:14: branch_false: following 'false' branch...
coreutils-9.9/src/df.c:1705:14: branch_false: ...to here
coreutils-9.9/src/df.c:1705:14: branch_false: following 'false' branch (when 'posix_format == 0')...
coreutils-9.9/src/df.c:1710:15: branch_false: ...to here
coreutils-9.9/src/df.c:1710:14: branch_false: following 'false' branch...
coreutils-9.9/src/df.c:1715:11: branch_false: ...to here
coreutils-9.9/src/df.c:1716:14: branch_true: following 'true' branch...
coreutils-9.9/src/df.c:1717:13: branch_true: ...to here
coreutils-9.9/src/df.c:1717:13: call_function: calling 'decode_output_arg' from 'main'
#  449|         for (idx_t i = 0; i < countof (field_data); i++)
#  450|           {
#  451|->           if (streq (field_data[i].arg, s))
#  452|               {
#  453|                 field = i;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def339]
coreutils-9.9/src/df.c:466:11: warning[-Wanalyzer-malloc-leak]: leak of 's'
coreutils-9.9/src/df.c:1584:1: enter_function: entry to 'single_binary_main_df'
coreutils-9.9/src/df.c:1617:10: branch_false: following 'false' branch (when 'c != -1')...
coreutils-9.9/src/df.c:1620:7: branch_false: ...to here
coreutils-9.9/src/df.c:1700:14: branch_false: following 'false' branch...
coreutils-9.9/src/df.c:1705:14: branch_false: ...to here
coreutils-9.9/src/df.c:1705:14: branch_false: following 'false' branch (when 'posix_format == 0')...
coreutils-9.9/src/df.c:1710:15: branch_false: ...to here
coreutils-9.9/src/df.c:1710:14: branch_false: following 'false' branch...
coreutils-9.9/src/df.c:1715:11: branch_false: ...to here
coreutils-9.9/src/df.c:1716:14: branch_true: following 'true' branch...
coreutils-9.9/src/df.c:1717:13: branch_true: ...to here
coreutils-9.9/src/df.c:1717:13: call_function: calling 'decode_output_arg' from 'single_binary_main_df'
#  464|           {
#  465|             /* Prevent the fields from being used more than once.  */
#  466|->           error (0, 0, _("option --output: field %s used more than once"),
#  467|                    quote (field_data[field].arg));
#  468|             usage (EXIT_FAILURE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def340]
coreutils-9.9/src/df.c:651:7: warning[-Wanalyzer-malloc-leak]: leak of 'find_mount_point(point,  statp)'
coreutils-9.9/src/df.c:1455:1: enter_function: entry to 'get_entry'
coreutils-9.9/src/df.c:1468:6: branch_false: following 'false' branch...
coreutils-9.9/src/df.c:1472:3: branch_false: ...to here
coreutils-9.9/src/df.c:1472:3: call_function: calling 'get_point' from 'get_entry'
#  649|     const struct fs_type_list *fsp;
#  650|   
#  651|->   if (fs_select_list == nullptr || fstype == nullptr)
#  652|       return true;
#  653|     for (fsp = fs_select_list; fsp; fsp = fsp->fs_next)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def341]
coreutils-9.9/src/df.c:810:30: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(32)'
coreutils-9.9/src/df.c:1479:1: enter_function: entry to 'get_all_entries'
coreutils-9.9/src/df.c:1483:3: call_function: calling 'filter_mount_list' from 'get_all_entries'
#  808|             struct devlist *devlist = xmalloc (sizeof *devlist);
#  809|             devlist->me = me;
#  810|->           devlist->dev_num = buf.st_dev;
#  811|             devlist->next = device_list;
#  812|             device_list = devlist;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def342]
coreutils-9.9/src/df.c:883:17: warning[-Wanalyzer-malloc-leak]: leak of 'dev_name'
coreutils-9.9/src/df.c:1455:1: enter_function: entry to 'get_entry'
coreutils-9.9/src/df.c:1457:6: branch_true: following 'true' branch...
coreutils-9.9/src/df.c:1459:24: branch_true: ...to here
coreutils-9.9/src/df.c:1460:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.9/src/df.c:1462:11: branch_true: ...to here
coreutils-9.9/src/df.c:1462:11: call_function: calling 'get_dev' from 'get_entry'
#  881|     else
#  882|       {
#  883|->       char *p = human_readable (negative ? -n : n, buf + negative,
#  884|                                   human_output_opts, input_units, output_units);
#  885|         if (negative)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def343]
coreutils-9.9/src/df.c:1036:12: warning[-Wanalyzer-malloc-leak]: leak of 'resolved'
coreutils-9.9/src/df.c:1455:1: enter_function: entry to 'get_entry'
coreutils-9.9/src/df.c:1457:6: branch_true: following 'true' branch...
coreutils-9.9/src/df.c:1459:24: branch_true: ...to here
coreutils-9.9/src/df.c:1459:24: acquire_memory: allocated here
coreutils-9.9/src/df.c:1460:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.9/src/df.c:1462:11: branch_true: ...to here
coreutils-9.9/src/df.c:1462:11: call_function: calling 'get_dev' from 'get_entry'
# 1034|     if (force_fsu)
# 1035|       fsu = *force_fsu;
# 1036|->   else if (get_fs_usage (stat_file, device, &fsu))
# 1037|       {
# 1038|         /* If we can't access a system provided entry due

Error: GCC_ANALYZER_WARNING (CWE-401): [#def344]
coreutils-9.9/src/df.c:1053:11: warning[-Wanalyzer-malloc-leak]: leak of 'resolved'
coreutils-9.9/src/df.c:1455:1: enter_function: entry to 'get_entry'
coreutils-9.9/src/df.c:1457:6: branch_true: following 'true' branch...
coreutils-9.9/src/df.c:1459:24: branch_true: ...to here
coreutils-9.9/src/df.c:1459:24: acquire_memory: allocated here
coreutils-9.9/src/df.c:1460:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.9/src/df.c:1462:11: branch_true: ...to here
coreutils-9.9/src/df.c:1462:11: call_function: calling 'get_dev' from 'get_entry'
# 1051|         else
# 1052|           {
# 1053|->           error (0, errno, "%s", quotef (stat_file));
# 1054|             exit_status = EXIT_FAILURE;
# 1055|             return;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def345]
coreutils-9.9/src/df.c:1093:20: warning[-Wanalyzer-malloc-leak]: leak of 'resolved'
coreutils-9.9/src/df.c:1455:1: enter_function: entry to 'get_entry'
coreutils-9.9/src/df.c:1457:6: branch_true: following 'true' branch...
coreutils-9.9/src/df.c:1459:24: branch_true: ...to here
coreutils-9.9/src/df.c:1459:24: acquire_memory: allocated here
coreutils-9.9/src/df.c:1460:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.9/src/df.c:1462:11: branch_true: ...to here
coreutils-9.9/src/df.c:1462:11: call_function: calling 'get_dev' from 'get_entry'
# 1091|       file = "-";			/* unspecified */
# 1092|   
# 1093|->   char *dev_name = xstrdup (device);
# 1094|     char *resolved_dev;
# 1095|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def346]
coreutils-9.9/src/df.c:1145:18: warning[-Wanalyzer-malloc-leak]: leak of 'dev_name'
coreutils-9.9/src/df.c:1455:1: enter_function: entry to 'get_entry'
coreutils-9.9/src/df.c:1457:6: branch_true: following 'true' branch...
coreutils-9.9/src/df.c:1459:24: branch_true: ...to here
coreutils-9.9/src/df.c:1460:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.9/src/df.c:1462:11: branch_true: ...to here
coreutils-9.9/src/df.c:1462:11: call_function: calling 'get_dev' from 'get_entry'
# 1143|           {
# 1144|           case SOURCE_FIELD:
# 1145|->           cell = xstrdup (dev_name);
# 1146|             break;
# 1147|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def347]
coreutils-9.9/src/df.c:1145:18: warning[-Wanalyzer-malloc-leak]: leak of 'resolved'
coreutils-9.9/src/df.c:1455:1: enter_function: entry to 'get_entry'
coreutils-9.9/src/df.c:1457:6: branch_true: following 'true' branch...
coreutils-9.9/src/df.c:1459:24: branch_true: ...to here
coreutils-9.9/src/df.c:1459:24: acquire_memory: allocated here
coreutils-9.9/src/df.c:1460:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.9/src/df.c:1462:11: branch_true: ...to here
coreutils-9.9/src/df.c:1462:11: call_function: calling 'get_dev' from 'get_entry'
# 1143|           {
# 1144|           case SOURCE_FIELD:
# 1145|->           cell = xstrdup (dev_name);
# 1146|             break;
# 1147|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def348]
coreutils-9.9/src/df.c:1149:18: warning[-Wanalyzer-malloc-leak]: leak of 'dev_name'
coreutils-9.9/src/df.c:1455:1: enter_function: entry to 'get_entry'
coreutils-9.9/src/df.c:1457:6: branch_true: following 'true' branch...
coreutils-9.9/src/df.c:1459:24: branch_true: ...to here
coreutils-9.9/src/df.c:1460:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.9/src/df.c:1462:11: branch_true: ...to here
coreutils-9.9/src/df.c:1462:11: call_function: calling 'get_dev' from 'get_entry'
# 1147|   
# 1148|           case FSTYPE_FIELD:
# 1149|->           cell = xstrdup (fstype);
# 1150|             break;
# 1151|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def349]
coreutils-9.9/src/df.c:1154:18: warning[-Wanalyzer-malloc-leak]: leak of 'dev_name'
coreutils-9.9/src/df.c:1455:1: enter_function: entry to 'get_entry'
coreutils-9.9/src/df.c:1457:6: branch_true: following 'true' branch...
coreutils-9.9/src/df.c:1459:24: branch_true: ...to here
coreutils-9.9/src/df.c:1460:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.9/src/df.c:1462:11: branch_true: ...to here
coreutils-9.9/src/df.c:1462:11: call_function: calling 'get_dev' from 'get_entry'
# 1152|           case SIZE_FIELD:
# 1153|           case ITOTAL_FIELD:
# 1154|->           cell = xstrdup (df_readable (false, v->total, buf,
# 1155|                                          v->input_units, v->output_units));
# 1156|             break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def350]
coreutils-9.9/src/df.c:1154:18: warning[-Wanalyzer-null-dereference]: dereference of NULL 'v'
coreutils-9.9/src/df.c:1455:1: enter_function: entry to 'get_entry'
coreutils-9.9/src/df.c:1457:6: branch_true: following 'true' branch...
coreutils-9.9/src/df.c:1459:24: branch_true: ...to here
coreutils-9.9/src/df.c:1460:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.9/src/df.c:1462:11: branch_true: ...to here
coreutils-9.9/src/df.c:1462:11: call_function: calling 'get_dev' from 'get_entry'
# 1152|           case SIZE_FIELD:
# 1153|           case ITOTAL_FIELD:
# 1154|->           cell = xstrdup (df_readable (false, v->total, buf,
# 1155|                                          v->input_units, v->output_units));
# 1156|             break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def351]
coreutils-9.9/src/df.c:1160:18: warning[-Wanalyzer-malloc-leak]: leak of 'dev_name'
coreutils-9.9/src/df.c:1455:1: enter_function: entry to 'get_entry'
coreutils-9.9/src/df.c:1457:6: branch_true: following 'true' branch...
coreutils-9.9/src/df.c:1459:24: branch_true: ...to here
coreutils-9.9/src/df.c:1460:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.9/src/df.c:1462:11: branch_true: ...to here
coreutils-9.9/src/df.c:1462:11: call_function: calling 'get_dev' from 'get_entry'
# 1158|           case USED_FIELD:
# 1159|           case IUSED_FIELD:
# 1160|->           cell = xstrdup (df_readable (v->negate_used, v->used, buf,
# 1161|                                          v->input_units, v->output_units));
# 1162|             break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def352]
coreutils-9.9/src/df.c:1160:18: warning[-Wanalyzer-null-dereference]: dereference of NULL 'v'
coreutils-9.9/src/df.c:1455:1: enter_function: entry to 'get_entry'
coreutils-9.9/src/df.c:1457:6: branch_true: following 'true' branch...
coreutils-9.9/src/df.c:1459:24: branch_true: ...to here
coreutils-9.9/src/df.c:1460:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.9/src/df.c:1462:11: branch_true: ...to here
coreutils-9.9/src/df.c:1462:11: call_function: calling 'get_dev' from 'get_entry'
# 1158|           case USED_FIELD:
# 1159|           case IUSED_FIELD:
# 1160|->           cell = xstrdup (df_readable (v->negate_used, v->used, buf,
# 1161|                                          v->input_units, v->output_units));
# 1162|             break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def353]
coreutils-9.9/src/df.c:1166:18: warning[-Wanalyzer-malloc-leak]: leak of 'dev_name'
coreutils-9.9/src/df.c:1455:1: enter_function: entry to 'get_entry'
coreutils-9.9/src/df.c:1457:6: branch_true: following 'true' branch...
coreutils-9.9/src/df.c:1459:24: branch_true: ...to here
coreutils-9.9/src/df.c:1460:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.9/src/df.c:1462:11: branch_true: ...to here
coreutils-9.9/src/df.c:1462:11: call_function: calling 'get_dev' from 'get_entry'
# 1164|           case AVAIL_FIELD:
# 1165|           case IAVAIL_FIELD:
# 1166|->           cell = xstrdup (df_readable (v->negate_available, v->available, buf,
# 1167|                                          v->input_units, v->output_units));
# 1168|             break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def354]
coreutils-9.9/src/df.c:1166:18: warning[-Wanalyzer-null-dereference]: dereference of NULL 'v'
coreutils-9.9/src/df.c:1455:1: enter_function: entry to 'get_entry'
coreutils-9.9/src/df.c:1457:6: branch_true: following 'true' branch...
coreutils-9.9/src/df.c:1459:24: branch_true: ...to here
coreutils-9.9/src/df.c:1460:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.9/src/df.c:1462:11: branch_true: ...to here
coreutils-9.9/src/df.c:1462:11: call_function: calling 'get_dev' from 'get_entry'
# 1164|           case AVAIL_FIELD:
# 1165|           case IAVAIL_FIELD:
# 1166|->           cell = xstrdup (df_readable (v->negate_available, v->available, buf,
# 1167|                                          v->input_units, v->output_units));
# 1168|             break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def355]
coreutils-9.9/src/df.c:1174:19: warning[-Wanalyzer-null-dereference]: dereference of NULL 'v'
coreutils-9.9/src/df.c:1455:1: enter_function: entry to 'get_entry'
coreutils-9.9/src/df.c:1457:6: branch_true: following 'true' branch...
coreutils-9.9/src/df.c:1459:24: branch_true: ...to here
coreutils-9.9/src/df.c:1460:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.9/src/df.c:1462:11: branch_true: ...to here
coreutils-9.9/src/df.c:1462:11: call_function: calling 'get_dev' from 'get_entry'
# 1172|             {
# 1173|               double pct = -1;
# 1174|->             if (! known_value (v->used) || ! known_value (v->available))
# 1175|                 ;
# 1176|               else if (!v->negate_used

Error: GCC_ANALYZER_WARNING (CWE-401): [#def356]
coreutils-9.9/src/df.c:1209:30: warning[-Wanalyzer-malloc-leak]: leak of 'dev_name'
coreutils-9.9/src/df.c:1455:1: enter_function: entry to 'get_entry'
coreutils-9.9/src/df.c:1457:6: branch_true: following 'true' branch...
coreutils-9.9/src/df.c:1459:24: branch_true: ...to here
coreutils-9.9/src/df.c:1460:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.9/src/df.c:1462:11: branch_true: ...to here
coreutils-9.9/src/df.c:1462:11: call_function: calling 'get_dev' from 'get_entry'
# 1207|                 }
# 1208|   
# 1209|->             cell = pct < 0 ? xstrdup ("-") : xasprintf ("%.0f%%", pct);
# 1210|               break;
# 1211|             }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def357]
coreutils-9.9/src/df.c:1209:46: warning[-Wanalyzer-malloc-leak]: leak of 'dev_name'
coreutils-9.9/src/df.c:1455:1: enter_function: entry to 'get_entry'
coreutils-9.9/src/df.c:1457:6: branch_true: following 'true' branch...
coreutils-9.9/src/df.c:1459:24: branch_true: ...to here
coreutils-9.9/src/df.c:1460:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.9/src/df.c:1462:11: branch_true: ...to here
coreutils-9.9/src/df.c:1462:11: call_function: calling 'get_dev' from 'get_entry'
# 1207|                 }
# 1208|   
# 1209|->             cell = pct < 0 ? xstrdup ("-") : xasprintf ("%.0f%%", pct);
# 1210|               break;
# 1211|             }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def358]
coreutils-9.9/src/df.c:1214:18: warning[-Wanalyzer-malloc-leak]: leak of 'dev_name'
coreutils-9.9/src/df.c:1455:1: enter_function: entry to 'get_entry'
coreutils-9.9/src/df.c:1457:6: branch_true: following 'true' branch...
coreutils-9.9/src/df.c:1459:24: branch_true: ...to here
coreutils-9.9/src/df.c:1460:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.9/src/df.c:1462:11: branch_true: ...to here
coreutils-9.9/src/df.c:1462:11: call_function: calling 'get_dev' from 'get_entry'
# 1212|   
# 1213|           case FILE_FIELD:
# 1214|->           cell = xstrdup (file);
# 1215|             break;
# 1216|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def359]
coreutils-9.9/src/df.c:1227:18: warning[-Wanalyzer-malloc-leak]: leak of 'dev_name'
coreutils-9.9/src/df.c:1455:1: enter_function: entry to 'get_entry'
coreutils-9.9/src/df.c:1457:6: branch_true: following 'true' branch...
coreutils-9.9/src/df.c:1459:24: branch_true: ...to here
coreutils-9.9/src/df.c:1460:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.9/src/df.c:1462:11: branch_true: ...to here
coreutils-9.9/src/df.c:1462:11: call_function: calling 'get_dev' from 'get_entry'
# 1225|               mount_point += 8;
# 1226|   #endif
# 1227|->           cell = xstrdup (mount_point);
# 1228|             break;
# 1229|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def360]
coreutils-9.9/src/df.c:1238:24: warning[-Wanalyzer-malloc-leak]: leak of 'cell'
coreutils-9.9/src/df.c:1455:1: enter_function: entry to 'get_entry'
coreutils-9.9/src/df.c:1457:6: branch_true: following 'true' branch...
coreutils-9.9/src/df.c:1459:24: branch_true: ...to here
coreutils-9.9/src/df.c:1460:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.9/src/df.c:1462:11: branch_true: ...to here
coreutils-9.9/src/df.c:1462:11: call_function: calling 'get_dev' from 'get_entry'
# 1236|   
# 1237|         replace_problematic_chars (cell);
# 1238|->       int cell_width = mbswidth (cell, MBSWIDTH_FLAGS);
# 1239|         columns[col]->width = MAX (columns[col]->width, cell_width);
# 1240|         table[nrows - 1][col] = cell;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def361]
coreutils-9.9/src/df.c:1238:24: warning[-Wanalyzer-malloc-leak]: leak of 'dev_name'
coreutils-9.9/src/df.c:1455:1: enter_function: entry to 'get_entry'
coreutils-9.9/src/df.c:1457:6: branch_true: following 'true' branch...
coreutils-9.9/src/df.c:1459:24: branch_true: ...to here
coreutils-9.9/src/df.c:1460:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.9/src/df.c:1462:11: branch_true: ...to here
coreutils-9.9/src/df.c:1462:11: call_function: calling 'get_dev' from 'get_entry'
# 1236|   
# 1237|         replace_problematic_chars (cell);
# 1238|->       int cell_width = mbswidth (cell, MBSWIDTH_FLAGS);
# 1239|         columns[col]->width = MAX (columns[col]->width, cell_width);
# 1240|         table[nrows - 1][col] = cell;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def362]
coreutils-9.9/src/df.c:1266:14: warning[-Wanalyzer-malloc-leak]: leak of 'devname'
coreutils-9.9/src/df.c:1455:1: enter_function: entry to 'get_entry'
coreutils-9.9/src/df.c:1468:6: branch_true: following 'true' branch...
coreutils-9.9/src/df.c:1469:10: branch_true: ...to here
coreutils-9.9/src/df.c:1469:10: call_function: calling 'get_device' from 'get_entry'
# 1264|           return canon_dev;
# 1265|         free (canon_dev);
# 1266|->       return xstrdup (le->me_devname);
# 1267|       }
# 1268|     else

Error: GCC_ANALYZER_WARNING (CWE-401): [#def363]
coreutils-9.9/src/df.c:1266:14: warning[-Wanalyzer-malloc-leak]: leak of 'resolved'
coreutils-9.9/src/df.c:1455:1: enter_function: entry to 'get_entry'
coreutils-9.9/src/df.c:1468:6: branch_true: following 'true' branch...
coreutils-9.9/src/df.c:1469:10: branch_true: ...to here
coreutils-9.9/src/df.c:1469:10: call_function: calling 'get_device' from 'get_entry'
# 1264|           return canon_dev;
# 1265|         free (canon_dev);
# 1266|->       return xstrdup (le->me_devname);
# 1267|       }
# 1268|     else

Error: GCC_ANALYZER_WARNING (CWE-401): [#def364]
coreutils-9.9/src/df.c:1789:57: warning[-Wanalyzer-malloc-leak]: leak of 'xnmalloc((long unsigned int)(argc - optind), 144)'
coreutils-9.9/src/df.c:1584:1: enter_function: entry to 'main'
coreutils-9.9/src/df.c:1777:8: branch_false: following 'false' branch (when 'match == 0')...
coreutils-9.9/src/df.c:1781:7: branch_false: ...to here
coreutils-9.9/src/df.c:1781:6: branch_true: following 'true' branch...
coreutils-9.9/src/df.c:1786:25: branch_true: ...to here
coreutils-9.9/src/df.c:1787:28: branch_true: following 'true' branch (when 'i < argc')...
coreutils-9.9/src/df.c:1789:57: branch_true: ...to here
coreutils-9.9/src/df.c:1789:21: call_function: calling 'automount_stat_err' from 'main'
# 1787|         for (int i = optind; i < argc; ++i)
# 1788|           {
# 1789|->           int err = automount_stat_err (argv[i], &stats[i - optind]);
# 1790|             if (err != 0)
# 1791|               {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def365]
coreutils-9.9/src/df.c:1800:5: warning[-Wanalyzer-malloc-leak]: leak of 'stats'
coreutils-9.9/src/df.c:1777:8: branch_false: following 'false' branch (when 'match == 0')...
coreutils-9.9/src/df.c:1781:7: branch_false: ...to here
coreutils-9.9/src/df.c:1781:6: branch_true: following 'true' branch...
coreutils-9.9/src/df.c:1786:25: branch_true: ...to here
coreutils-9.9/src/df.c:1800:5: throw: if 'read_file_system_list' throws an exception...
coreutils-9.9/src/df.c:1800:5: danger: 'stats' leaks here; was allocated at [(5)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/4)
# 1798|   
# 1799|     mount_list =
# 1800|->     read_file_system_list ((fs_select_list != nullptr
# 1801|                               || fs_exclude_list != nullptr
# 1802|                               || print_type

Error: GCC_ANALYZER_WARNING (CWE-835): [#def366]
coreutils-9.9/src/digest.c:959:10: warning[-Wanalyzer-infinite-loop]: infinite loop
coreutils-9.9/src/digest.c:959:10: danger: infinite loop here
coreutils-9.9/src/digest.c:959:10: branch_true: if it ever follows 'true' branch, it will always do so...
coreutils-9.9/src/digest.c:959:27: branch_true: ...to here
#  957|     size_t digest_base64_bytes = digest_hex_bytes;
#  958|     size_t trailing_equals = 0;
#  959|->   for (; isubase64 (*hp); ++hp, ++digest_base64_bytes)
#  960|       ;
#  961|     for (; *hp == '='; ++hp, ++trailing_equals)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def367]
coreutils-9.9/src/digest.c:1137:3: warning[-Wanalyzer-malloc-leak]: leak of 'fp'
coreutils-9.9/src/digest.c:1110:6: branch_false: following 'false' branch (when the strings are non-equal)...
coreutils-9.9/src/digest.c:1124:12: branch_false: ...to here
coreutils-9.9/src/digest.c:1124:12: acquire_memory: allocated here
coreutils-9.9/src/digest.c:1125:10: branch_false: following 'false' branch...
coreutils-9.9/src/digest.c:1137:3: branch_false: ...to here
coreutils-9.9/src/digest.c:1137:3: throw: if 'fadvise' throws an exception...
coreutils-9.9/src/digest.c:1137:3: danger: 'fp' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
# 1135|       }
# 1136|   
# 1137|->   fadvise (fp, FADVISE_SEQUENTIAL);
# 1138|   
# 1139|   #if HASH_ALGO_CKSUM

Error: CPPCHECK_WARNING (CWE-457): [#def368]
coreutils-9.9/src/digest.c:1288: error[uninitvar]: Uninitialized variable: bin_buffer_unaligned
# 1286|     unsigned char bin_buffer_unaligned[DIGEST_BIN_BYTES + DIGEST_ALIGN];
# 1287|     /* Make sure bin_buffer is properly aligned. */
# 1288|->   unsigned char *bin_buffer = ptr_align (bin_buffer_unaligned, DIGEST_ALIGN);
# 1289|     uintmax_t line_number;
# 1290|     char *line;

Error: CPPCHECK_WARNING (CWE-457): [#def369]
coreutils-9.9/src/digest.c:1488: error[uninitvar]: Uninitialized variable: bin_buffer_unaligned
# 1486|     unsigned char bin_buffer_unaligned[DIGEST_BIN_BYTES + DIGEST_ALIGN];
# 1487|     /* Make sure bin_buffer is properly aligned. */
# 1488|->   unsigned char *bin_buffer = ptr_align (bin_buffer_unaligned, DIGEST_ALIGN);
# 1489|     bool do_check = false;
# 1490|     int opt;

Error: COMPILER_WARNING (CWE-704): [#def370]
coreutils-9.9/src/du.c: scope_hint: In function 'main'
coreutils-9.9/src/du.c:959:25: warning[-Wdiscarded-qualifiers]: initialization discards 'const' qualifier from pointer target type
#  959 |               char *p = strchr (time_style, '\n');
#      |                         ^~~~~~
#  957|                 /* Ignore anything after a newline, for compatibility
#  958|                    with ls.  */
#  959|->               char *p = strchr (time_style, '\n');
#  960|                 if (p)
#  961|                   *p = '\0';

Error: COMPILER_WARNING (CWE-704): [#def371]
coreutils-9.9/src/du.c:959:25: warning[-Wdiscarded-qualifiers]: initialization discards 'const' qualifier from pointer target type
#  957|                 /* Ignore anything after a newline, for compatibility
#  958|                    with ls.  */
#  959|->               char *p = strchr (time_style, '\n');
#  960|                 if (p)
#  961|                   *p = '\0';

Error: GCC_ANALYZER_WARNING (CWE-401): [#def372]
coreutils-9.9/src/du.c:1035:14: warning[-Wanalyzer-malloc-leak]: leak of 'ai'
coreutils-9.9/src/du.c:910:6: branch_true: following 'true' branch (when 'ok != 0')...
coreutils-9.9/src/du.c:913:7: branch_true: ...to here
coreutils-9.9/src/du.c:998:6: branch_false: following 'false' branch (when 'files_from' is NULL)...
coreutils-9.9/src/du.c:1022:23: branch_false: ...to here
coreutils-9.9/src/du.c:1023:12: acquire_memory: allocated here
coreutils-9.9/src/du.c:1031:6: branch_false: following 'false' branch (when 'ai' is non-NULL)...
coreutils-9.9/src/du.c:1035:14: branch_false: ...to here
coreutils-9.9/src/du.c:1035:14: throw: if 'di_set_alloc' throws an exception...
coreutils-9.9/src/du.c:1035:14: danger: 'ai' leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
# 1033|   
# 1034|     /* Initialize the set of dev,inode pairs.  */
# 1035|->   di_files = di_set_alloc ();
# 1036|     if (!di_files)
# 1037|       xalloc_die ();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def373]
coreutils-9.9/src/du.c:1037:5: warning[-Wanalyzer-malloc-leak]: leak of 'ai'
coreutils-9.9/src/du.c:910:6: branch_true: following 'true' branch (when 'ok != 0')...
coreutils-9.9/src/du.c:913:7: branch_true: ...to here
coreutils-9.9/src/du.c:998:6: branch_false: following 'false' branch (when 'files_from' is NULL)...
coreutils-9.9/src/du.c:1022:23: branch_false: ...to here
coreutils-9.9/src/du.c:1023:12: acquire_memory: allocated here
coreutils-9.9/src/du.c:1031:6: branch_false: following 'false' branch (when 'ai' is non-NULL)...
coreutils-9.9/src/du.c:1035:14: branch_false: ...to here
coreutils-9.9/src/du.c:1036:6: branch_true: following 'true' branch...
coreutils-9.9/src/du.c:1037:5: branch_true: ...to here
coreutils-9.9/src/du.c:1037:5: throw: if 'xalloc_die' throws an exception...
coreutils-9.9/src/du.c:1037:5: danger: 'ai' leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
# 1035|     di_files = di_set_alloc ();
# 1036|     if (!di_files)
# 1037|->     xalloc_die ();
# 1038|   
# 1039|     /* If not hashing everything, process_file won't find cycles on its

Error: GCC_ANALYZER_WARNING (CWE-401): [#def374]
coreutils-9.9/src/du.c:1051:25: warning[-Wanalyzer-malloc-leak]: leak of 'ai'
coreutils-9.9/src/du.c:910:6: branch_true: following 'true' branch (when 'ok != 0')...
coreutils-9.9/src/du.c:913:7: branch_true: ...to here
coreutils-9.9/src/du.c:998:6: branch_false: following 'false' branch (when 'files_from' is NULL)...
coreutils-9.9/src/du.c:1022:23: branch_false: ...to here
coreutils-9.9/src/du.c:1023:12: acquire_memory: allocated here
coreutils-9.9/src/du.c:1031:6: branch_false: following 'false' branch (when 'ai' is non-NULL)...
coreutils-9.9/src/du.c:1035:14: branch_false: ...to here
coreutils-9.9/src/du.c:1036:6: branch_false: following 'false' branch...
coreutils-9.9/src/du.c:1041:7: branch_false: ...to here
coreutils-9.9/src/du.c:1051:25: throw: if 'argv_iter' throws an exception...
coreutils-9.9/src/du.c:1051:25: danger: 'ai' leaks here; was allocated at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
# 1049|         bool skip_file = false;
# 1050|         enum argv_iter_err ai_err;
# 1051|->       char *file_name = argv_iter (ai, &ai_err);
# 1052|         if (!file_name)
# 1053|           {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def375]
coreutils-9.9/src/env.c:564:20: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(arg)'
coreutils-9.9/src/env.c:562:10: branch_true: following 'true' branch (when 'opt_sig' is non-NULL)...
coreutils-9.9/src/env.c:564:20: branch_true: ...to here
coreutils-9.9/src/env.c:564:20: throw: if 'operand2sig' throws an exception...
coreutils-9.9/src/env.c:564:20: danger: 'xstrdup(arg)' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  562|     while (opt_sig)
#  563|       {
#  564|->       int signum = operand2sig (opt_sig);
#  565|         /* operand2sig accepts signal 0 (EXIT) - but we reject it.  */
#  566|         if (signum == 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def376]
coreutils-9.9/src/env.c:567:9: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(arg)'
coreutils-9.9/src/env.c:562:10: branch_true: following 'true' branch (when 'opt_sig' is non-NULL)...
coreutils-9.9/src/env.c:564:20: branch_true: ...to here
coreutils-9.9/src/env.c:566:10: branch_true: following 'true' branch...
coreutils-9.9/src/env.c:567:9: branch_true: ...to here
coreutils-9.9/src/env.c:567:9: throw: if 'quote' throws an exception...
coreutils-9.9/src/env.c:567:9: danger: 'xstrdup(arg)' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  565|         /* operand2sig accepts signal 0 (EXIT) - but we reject it.  */
#  566|         if (signum == 0)
#  567|->         error (0, 0, _("%s: invalid signal"), quote (opt_sig));
#  568|         if (signum <= 0)
#  569|           usage (exit_failure);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def377]
coreutils-9.9/src/env.c:568:10: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(arg)'
coreutils-9.9/src/env.c:562:10: branch_true: following 'true' branch (when 'opt_sig' is non-NULL)...
coreutils-9.9/src/env.c:564:20: branch_true: ...to here
coreutils-9.9/src/env.c:568:10: danger: 'xstrdup(arg)' leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  566|         if (signum == 0)
#  567|           error (0, 0, _("%s: invalid signal"), quote (opt_sig));
#  568|->       if (signum <= 0)
#  569|           usage (exit_failure);
#  570|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def378]
coreutils-9.9/src/env.c:571:14: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(arg)'
coreutils-9.9/src/env.c:562:10: branch_true: following 'true' branch (when 'opt_sig' is non-NULL)...
coreutils-9.9/src/env.c:564:20: branch_true: ...to here
coreutils-9.9/src/env.c:568:10: branch_false: following 'false' branch...
coreutils-9.9/src/env.c:571:25: branch_false: ...to here
coreutils-9.9/src/env.c:571:25: branch_true: following 'true' branch (when 'set_default != 0')...
coreutils-9.9/src/env.c:571:14: branch_true: ...to here
coreutils-9.9/src/env.c:562:10: branch_true: following 'true' branch (when 'opt_sig' is non-NULL)...
coreutils-9.9/src/env.c:564:20: branch_true: ...to here
coreutils-9.9/src/env.c:564:20: throw: if 'operand2sig' throws an exception...
coreutils-9.9/src/env.c:571:14: danger: 'xstrdup(arg)' leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  569|           usage (exit_failure);
#  570|   
#  571|->       signals[signum] = set_default ? DEFAULT : IGNORE;
#  572|   
#  573|         opt_sig = strtok (nullptr, ",");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def379]
coreutils-9.9/src/env.c:653:20: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(arg)'
coreutils-9.9/src/env.c:651:10: branch_true: following 'true' branch (when 'opt_sig' is non-NULL)...
coreutils-9.9/src/env.c:653:20: branch_true: ...to here
coreutils-9.9/src/env.c:653:20: throw: if 'operand2sig' throws an exception...
coreutils-9.9/src/env.c:653:20: danger: 'xstrdup(arg)' leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#  651|     while (opt_sig)
#  652|       {
#  653|->       int signum = operand2sig (opt_sig);
#  654|         /* operand2sig accepts signal 0 (EXIT) - but we reject it.  */
#  655|         if (signum == 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def380]
coreutils-9.9/src/env.c:656:9: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(arg)'
coreutils-9.9/src/env.c:651:10: branch_true: following 'true' branch (when 'opt_sig' is non-NULL)...
coreutils-9.9/src/env.c:653:20: branch_true: ...to here
coreutils-9.9/src/env.c:655:10: branch_true: following 'true' branch...
coreutils-9.9/src/env.c:656:9: branch_true: ...to here
coreutils-9.9/src/env.c:656:9: throw: if 'quote' throws an exception...
coreutils-9.9/src/env.c:656:9: danger: 'xstrdup(arg)' leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#  654|         /* operand2sig accepts signal 0 (EXIT) - but we reject it.  */
#  655|         if (signum == 0)
#  656|->         error (0, 0, _("%s: invalid signal"), quote (opt_sig));
#  657|         if (signum <= 0)
#  658|           usage (exit_failure);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def381]
coreutils-9.9/src/env.c:657:10: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(arg)'
coreutils-9.9/src/env.c:651:10: branch_true: following 'true' branch (when 'opt_sig' is non-NULL)...
coreutils-9.9/src/env.c:653:20: branch_true: ...to here
coreutils-9.9/src/env.c:657:10: danger: 'xstrdup(arg)' leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#  655|         if (signum == 0)
#  656|           error (0, 0, _("%s: invalid signal"), quote (opt_sig));
#  657|->       if (signum <= 0)
#  658|           usage (exit_failure);
#  659|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def382]
coreutils-9.9/src/env.c:662:14: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(arg)'
coreutils-9.9/src/env.c:651:10: branch_true: following 'true' branch (when 'opt_sig' is non-NULL)...
coreutils-9.9/src/env.c:653:20: branch_true: ...to here
coreutils-9.9/src/env.c:657:10: branch_false: following 'false' branch...
coreutils-9.9/src/env.c:660:11: branch_false: ...to here
coreutils-9.9/src/env.c:660:11: branch_true: following 'true' branch...
coreutils-9.9/src/env.c:662:14: danger: 'xstrdup(arg)' leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
#  660|         if (sigaddset (block ? &block_signals : &unblock_signals, signum) == -1)
#  661|           {
#  662|->           if (block)
#  663|               error (EXIT_CANCELED, errno,
#  664|                      _("failed to block signal %d"), signum);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def383]
coreutils-9.9/src/expand-common.c:324:15: warning[-Wanalyzer-malloc-leak]: leak of 'ximemdup0(num_start,  len)'
coreutils-9.9/src/expand-common.c:252:1: enter_function: entry to 'parse_tab_stops'
coreutils-9.9/src/expand-common.c:261:10: branch_true: following 'true' branch...
coreutils-9.9/src/expand-common.c:263:10: branch_true: ...to here
coreutils-9.9/src/expand-common.c:263:10: branch_false: following 'false' branch...
coreutils-9.9/src/expand-common.c:288:15: branch_false: following 'false' branch...
coreutils-9.9/src/expand-common.c:299:15: branch_false: ...to here
coreutils-9.9/src/expand-common.c:299:15: branch_false: following 'false' branch...
coreutils-9.9/src/expand-common.c:299:15: branch_false: ...to here
coreutils-9.9/src/expand-common.c:310:16: call_function: inlined call to 'c_isdigit' from 'parse_tab_stops'
coreutils-9.9/src/expand-common.c:312:14: branch_true: ...to here
coreutils-9.9/src/expand-common.c:312:14: branch_false: following 'false' branch (when 'have_tabval == 0')...
coreutils-9.9/src/expand-common.c:312:14: branch_false: ...to here
coreutils-9.9/src/expand-common.c:324:15: throw: if 'quote' throws an exception...
coreutils-9.9/src/expand-common.c:324:15: danger: 'ximemdup0(num_start,  len)' leaks here; was allocated at [(15)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/14)
#  322|                 idx_t len = strspn (num_start, "0123456789");
#  323|                 char *bad_num = ximemdup0 (num_start, len);
#  324|->               error (0, 0, _("tab stop is too large %s"), quote (bad_num));
#  325|                 free (bad_num);
#  326|                 ok = false;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def384]
coreutils-9.9/src/expand-common.c:497:11: warning[-Wanalyzer-file-leak]: leak of FILE 'fp'
coreutils-9.9/src/expand-common.c:464:1: enter_function: entry to 'next_file'
coreutils-9.9/src/expand-common.c:485:10: branch_true: following 'true' branch (when 'file' is non-NULL)...
coreutils-9.9/src/expand-common.c:487:11: call_function: inlined call to 'streq' from 'next_file'
coreutils-9.9/src/expand-common.c:493:14: acquire_resource: opened here
coreutils-9.9/src/expand-common.c:497:11: throw: if 'fadvise' throws an exception...
coreutils-9.9/src/expand-common.c:497:11: danger: 'fp' leaks here; was opened at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#  495|           {
#  496|             prev_file = file;
#  497|->           fadvise (fp, FADVISE_SEQUENTIAL);
#  498|             return fp;
#  499|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def385]
coreutils-9.9/src/expand-common.c:497:11: warning[-Wanalyzer-malloc-leak]: leak of 'fp'
coreutils-9.9/src/expand-common.c:464:1: enter_function: entry to 'next_file'
coreutils-9.9/src/expand-common.c:485:10: branch_true: following 'true' branch (when 'file' is non-NULL)...
coreutils-9.9/src/expand-common.c:487:11: call_function: inlined call to 'streq' from 'next_file'
coreutils-9.9/src/expand-common.c:493:14: acquire_memory: allocated here
coreutils-9.9/src/expand-common.c:497:11: throw: if 'fadvise' throws an exception...
coreutils-9.9/src/expand-common.c:497:11: danger: 'fp' leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
#  495|           {
#  496|             prev_file = file;
#  497|->           fadvise (fp, FADVISE_SEQUENTIAL);
#  498|             return fp;
#  499|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def386]
coreutils-9.9/src/expr.c:367:12: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(24)'
coreutils-9.9/src/expr.c:679:1: enter_function: entry to 'eval6'
coreutils-9.9/src/expr.c:695:11: branch_true: following 'true' branch...
coreutils-9.9/src/expr.c:697:11: branch_true: ...to here
coreutils-9.9/src/expr.c:697:11: call_function: calling 'eval6' from 'eval6'
#  365|     VALUE *v = xmalloc (sizeof *v);
#  366|     v->type = string;
#  367|->   v->u.s = xstrdup (s);
#  368|     return v;
#  369|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def387]
coreutils-9.9/src/find-mount-point.c:103:9: warning[-Wanalyzer-malloc-leak]: leak of 'mp'
coreutils-9.9/src/find-mount-point.c:36:6: branch_false: following 'false' branch...
coreutils-9.9/src/find-mount-point.c:42:7: branch_false: ...to here
coreutils-9.9/src/find-mount-point.c:46:10: branch_false: following 'false' branch...
coreutils-9.9/src/find-mount-point.c:46:10: branch_false: ...to here
coreutils-9.9/src/find-mount-point.c:80:10: branch_false: following 'false' branch...
coreutils-9.9/src/find-mount-point.c:85:11: branch_false: ...to here
coreutils-9.9/src/find-mount-point.c:97:8: acquire_memory: allocated here
coreutils-9.9/src/find-mount-point.c:103:9: throw: if 'restore_cwd' throws an exception...
coreutils-9.9/src/find-mount-point.c:103:9: danger: 'mp' leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
#  101|     {
#  102|       int save_errno = errno;
#  103|->     if (restore_cwd (&cwd) != 0)
#  104|         error (EXIT_FAILURE, errno,
#  105|                _("failed to return to initial working directory"));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def388]
coreutils-9.9/src/find-mount-point.c:106:5: warning[-Wanalyzer-malloc-leak]: leak of 'mp'
coreutils-9.9/src/find-mount-point.c:36:6: branch_false: following 'false' branch...
coreutils-9.9/src/find-mount-point.c:42:7: branch_false: ...to here
coreutils-9.9/src/find-mount-point.c:46:10: branch_false: following 'false' branch...
coreutils-9.9/src/find-mount-point.c:46:10: branch_false: ...to here
coreutils-9.9/src/find-mount-point.c:80:10: branch_false: following 'false' branch...
coreutils-9.9/src/find-mount-point.c:85:11: branch_false: ...to here
coreutils-9.9/src/find-mount-point.c:97:8: acquire_memory: allocated here
coreutils-9.9/src/find-mount-point.c:103:8: branch_false: following 'false' branch...
coreutils-9.9/src/find-mount-point.c:106:5: branch_false: ...to here
coreutils-9.9/src/find-mount-point.c:106:5: throw: if 'free_cwd' throws an exception...
coreutils-9.9/src/find-mount-point.c:106:5: danger: 'mp' leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
#  104|         error (EXIT_FAILURE, errno,
#  105|                _("failed to return to initial working directory"));
#  106|->     free_cwd (&cwd);
#  107|       errno = save_errno;
#  108|     }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def389]
coreutils-9.9/src/fold.c:174:3: warning[-Wanalyzer-file-leak]: leak of FILE 'istream'
coreutils-9.9/src/fold.c:280:1: enter_function: entry to 'main'
coreutils-9.9/src/fold.c:341:6: branch_true: following 'true' branch...
coreutils-9.9/src/fold.c:342:10: branch_true: ...to here
coreutils-9.9/src/fold.c:342:10: call_function: calling 'fold_file' from 'main'
#  172|       }
#  173|   
#  174|->   fadvise (istream, FADVISE_SEQUENTIAL);
#  175|     mbbuf_init (&mbbuf, line_in, sizeof line_in, istream);
#  176|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def390]
coreutils-9.9/src/fold.c:174:3: warning[-Wanalyzer-malloc-leak]: leak of 'istream'
coreutils-9.9/src/fold.c:280:1: enter_function: entry to 'main'
coreutils-9.9/src/fold.c:341:6: branch_true: following 'true' branch...
coreutils-9.9/src/fold.c:342:10: branch_true: ...to here
coreutils-9.9/src/fold.c:342:10: call_function: calling 'fold_file' from 'main'
#  172|       }
#  173|   
#  174|->   fadvise (istream, FADVISE_SEQUENTIAL);
#  175|     mbbuf_init (&mbbuf, line_in, sizeof line_in, istream);
#  176|   

Error: CPPCHECK_WARNING (CWE-476): [#def391]
coreutils-9.9/src/head.c:380: warning[nullPointer]: Possible null pointer dereference: b
#  378|             if (! buffered_enough)
#  379|               {
#  380|->               b[i] = xmalloc (READ_BUFSIZE);
#  381|                 n_alloc = i + 1;
#  382|               }

Error: CPPCHECK_WARNING (CWE-476): [#def392]
coreutils-9.9/src/head.c:383: warning[nullPointer]: Possible null pointer dereference: b
#  381|                 n_alloc = i + 1;
#  382|               }
#  383|->           n_read = full_read (fd, b[i], READ_BUFSIZE);
#  384|             if (n_read < READ_BUFSIZE)
#  385|               {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def393]
coreutils-9.9/src/hostname.c:108:7: warning[-Wanalyzer-malloc-leak]: leak of 'xgethostname()'
coreutils-9.9/src/hostname.c:89:6: branch_false: following 'false' branch...
coreutils-9.9/src/hostname.c:95:6: branch_false: ...to here
coreutils-9.9/src/hostname.c:95:6: branch_false: following 'false' branch...
coreutils-9.9/src/hostname.c:105:18: branch_false: ...to here
coreutils-9.9/src/hostname.c:105:18: acquire_memory: allocated here
coreutils-9.9/src/hostname.c:106:10: branch_false: following 'false' branch...
coreutils-9.9/src/hostname.c:108:7: branch_false: ...to here
coreutils-9.9/src/hostname.c:108:7: danger: 'xgethostname()' leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#  106|         if (hostname == nullptr)
#  107|           error (EXIT_FAILURE, errno, _("cannot determine hostname"));
#  108|->       puts (hostname);
#  109|       }
#  110|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def394]
coreutils-9.9/src/install.c:766:8: warning[-Wanalyzer-malloc-leak]: leak of 'file_name_concat(to_dir,  last_component(from), &to_relname)'
coreutils-9.9/src/install.c:757:1: enter_function: entry to 'install_file_in_dir'
coreutils-9.9/src/install.c:766:6: branch_true: following 'true' branch...
coreutils-9.9/src/install.c:766:7: branch_true: ...to here
coreutils-9.9/src/install.c:766:7: branch_true: following 'true' branch (when 'mkdir_and_install != 0')...
coreutils-9.9/src/install.c:768:17: branch_true: ...to here
coreutils-9.9/src/install.c:768:17: call_function: calling 'mkancesdirs_safe_wd' from 'install_file_in_dir'
#  764|     bool ret = true;
#  765|   
#  766|->   if (!target_dirfd_valid (*target_dirfd)
#  767|         && (ret = mkdir_and_install)
#  768|         && (ret = mkancesdirs_safe_wd (from, to, (struct cp_options *) x, true)))

Error: GCC_ANALYZER_WARNING (CWE-457): [#def395]
coreutils-9.9/src/join.c:989:11: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'operand_status[1]'
coreutils-9.9/src/join.c:1003:1: enter_function: entry to 'main'
coreutils-9.9/src/join.c:1029:10: branch_true: following 'true' branch (when 'optc != -1')...
coreutils-9.9/src/join.c:1033:7: branch_true: ...to here
coreutils-9.9/src/join.c:1103:16: branch_false: following 'false' branch...
coreutils-9.9/src/join.c:1109:22: call_function: inlined call to 'streq' from 'main'
coreutils-9.9/src/join.c:1109:21: branch_false: following 'false' branch (when the strings are non-equal)...
coreutils-9.9/src/join.c:1116:26: call_function: inlined call to 'mcel_scanz' from 'main'
coreutils-9.9/src/join.c:1116:26: call_function: inlined call to 'mcel_scanz' from 'main'
coreutils-9.9/src/join.c:1117:20: branch_false: following 'false' branch...
coreutils-9.9/src/join.c:1120:17: branch_false: ...to here
coreutils-9.9/src/join.c:1122:16: branch_false: following 'false' branch...
coreutils-9.9/src/join.c:1124:13: branch_false: ...to here
coreutils-9.9/src/join.c:1029:10: branch_true: following 'true' branch (when 'optc != -1')...
coreutils-9.9/src/join.c:1033:7: branch_true: ...to here
coreutils-9.9/src/join.c:1142:11: call_function: calling 'add_file_name' from 'main'
#  987|         if (!op0)
#  988|           {
#  989|->           operand_status[0] = operand_status[1];
#  990|             names[0] = names[1];
#  991|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def396]
coreutils-9.9/src/libstdbuf.c:122:1: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
coreutils-9.9/src/libstdbuf.c:78:6: branch_false: following 'false' branch (when 'mode' is non-NULL)...
coreutils-9.9/src/libstdbuf.c:81:7: branch_false: ...to here
coreutils-9.9/src/libstdbuf.c:81:6: branch_false: following 'false' branch...
coreutils-9.9/src/libstdbuf.c:83:11: branch_false: ...to here
coreutils-9.9/src/libstdbuf.c:83:11: branch_false: following 'false' branch...
coreutils-9.9/src/libstdbuf.c:89:14: branch_false: ...to here
coreutils-9.9/src/libstdbuf.c:90:10: branch_false: following 'false' branch...
coreutils-9.9/src/libstdbuf.c:100:13: branch_true: following 'true' branch...
coreutils-9.9/src/libstdbuf.c:102:16: branch_true: ...to here
coreutils-9.9/src/libstdbuf.c:102:16: acquire_memory: allocated here
coreutils-9.9/src/libstdbuf.c:103:10: branch_false: following 'false' branch (when 'buf' is non-NULL)...
coreutils-9.9/src/libstdbuf.c:122:1: branch_false: ...to here
coreutils-9.9/src/libstdbuf.c:116:6: branch_false: following 'false' branch...
coreutils-9.9/src/libstdbuf.c:116:6: branch_false: ...to here
coreutils-9.9/src/libstdbuf.c:122:1: danger: 'buf' leaks here; was allocated at [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
#  120|         free (buf);
#  121|       }
#  122|-> }
#  123|   
#  124|   /* Use __attribute to avoid elision of __attribute__ on SUNPRO_C etc.  */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def397]
coreutils-9.9/src/ln.c:673:11: warning[-Wanalyzer-malloc-leak]: leak of 'file_name_concat(target_directory,  last_component(*<unknown>), &dest_base)'
coreutils-9.9/src/ln.c:578:6: branch_false: following 'false' branch (when 'n_files > 0')...
coreutils-9.9/src/ln.c:584:7: branch_false: ...to here
coreutils-9.9/src/ln.c:593:6: branch_false: following 'false' branch (when 'no_target_directory == 0')...
coreutils-9.9/src/ln.c:610:12: branch_false: ...to here
coreutils-9.9/src/ln.c:637:17: branch_false: following 'false' branch (when 'make_backups == 0')...
coreutils-9.9/src/ln.c:637:3: branch_false: ...to here
coreutils-9.9/src/ln.c:643:6: branch_true: following 'true' branch (when 'target_directory' is non-NULL)...
coreutils-9.9/src/ln.c:648:10: branch_true: ...to here
coreutils-9.9/src/ln.c:667:23: branch_true: following 'true' branch (when 'n_files > i')...
coreutils-9.9/src/ln.c:671:62: branch_true: ...to here
coreutils-9.9/src/ln.c:673:11: throw: if 'strip_trailing_slashes' throws an exception...
coreutils-9.9/src/ln.c:673:11: danger: 'file_name_concat(target_directory,  last_component(*<unknown>), &dest_base)' leaks here; was allocated at [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
#  671|                                            last_component (file[i]),
#  672|                                            &dest_base);
#  673|->           strip_trailing_slashes (dest_base);
#  674|             ok &= do_link (file[i], destdir_fd, dest_base, dest, -1);
#  675|             free (dest);

Error: COMPILER_WARNING (CWE-704): [#def398]
coreutils-9.9/src/ls.c: scope_hint: In function 'decode_switches'
coreutils-9.9/src/ls.c:2450:24: warning[-Wdiscarded-qualifiers]: initialization discards 'const' qualifier from pointer target type
# 2450 |           char *p0nl = strchr (p0, '\n');
#      |                        ^~~~~~
# 2448|           {
# 2449|             char const *p0 = style + 1;
# 2450|->           char *p0nl = strchr (p0, '\n');
# 2451|             char const *p1 = p0;
# 2452|             if (p0nl)

Error: COMPILER_WARNING (CWE-704): [#def399]
coreutils-9.9/src/ls.c:2450:24: warning[-Wdiscarded-qualifiers]: initialization discards 'const' qualifier from pointer target type
# 2448|           {
# 2449|             char const *p0 = style + 1;
# 2450|->           char *p0nl = strchr (p0, '\n');
# 2451|             char const *p1 = p0;
# 2452|             if (p0nl)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def400]
coreutils-9.9/src/ls.c:4520:11: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(quotearg_buffer(buf,  bufsize,  name, 18446744073709551615,  options) + 1)'
coreutils-9.9/src/ls.c:3914:1: enter_function: entry to 'fileinfo_name_width'
coreutils-9.9/src/ls.c:3918:12: call_function: calling 'quote_name_width' from 'fileinfo_name_width'
# 4518|           {
# 4519|             buf = xmalloc (len + 1);
# 4520|->           quotearg_buffer (buf, len + 1, name, -1, options);
# 4521|           }
# 4522|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def401]
coreutils-9.9/src/ls.c:4720:10: warning[-Wanalyzer-malloc-leak]: leak of 'xnmalloc(3, strlen(str) + 1)'
coreutils-9.9/src/ls.c:5208:1: enter_function: entry to 'print_with_separator'
coreutils-9.9/src/ls.c:5212:27: branch_true: following 'true' branch...
coreutils-9.9/src/ls.c:5214:45: branch_true: ...to here
coreutils-9.9/src/ls.c:5215:20: branch_false: following 'false' branch...
coreutils-9.9/src/ls.c:5217:10: branch_false: ...to here
coreutils-9.9/src/ls.c:5217:10: branch_false: following 'false' branch (when 'filesno == 0')...
coreutils-9.9/src/ls.c:5238:7: branch_false: ...to here
coreutils-9.9/src/ls.c:5238:7: call_function: calling 'print_file_name_and_frills' from 'print_with_separator'
# 4718|     char *esc = xnmalloc (3, strlen (str) + 1);
# 4719|     char *p = esc;
# 4720|->   while (*str)
# 4721|       {
# 4722|         if (path && ISSLASH (*str))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def402]
coreutils-9.9/src/ls.c:5323:3: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
coreutils-9.9/src/ls.c:5298:6: branch_true: following 'true' branch...
coreutils-9.9/src/ls.c:5301:21: branch_true: ...to here
coreutils-9.9/src/ls.c:5310:10: branch_false: following 'false' branch...
coreutils-9.9/src/ls.c:5311:14: branch_false: ...to here
coreutils-9.9/src/ls.c:5310:11: branch_false: following 'false' branch...
coreutils-9.9/src/ls.c:5313:19: branch_false: ...to here
coreutils-9.9/src/ls.c:5316:45: branch_true: following 'true' branch...
coreutils-9.9/src/ls.c:5318:22: branch_true: ...to here
coreutils-9.9/src/ls.c:5316:45: branch_false: following 'false' branch...
coreutils-9.9/src/ls.c:5323:3: branch_false: ...to here
coreutils-9.9/src/ls.c:5323:3: danger: '<unknown>' leaks here; was allocated at [(7)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/6)
# 5321|       }
# 5322|   
# 5323|->   for (idx_t i = 0; i < max_cols; ++i)
# 5324|       {
# 5325|         column_info[i].valid_len = true;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def403]
coreutils-9.9/src/ls.c:5330:1: warning[-Wanalyzer-malloc-leak]: leak of 'p'
coreutils-9.9/src/ls.c:5298:6: branch_true: following 'true' branch...
coreutils-9.9/src/ls.c:5301:21: branch_true: ...to here
coreutils-9.9/src/ls.c:5310:10: branch_false: following 'false' branch...
coreutils-9.9/src/ls.c:5311:14: branch_false: ...to here
coreutils-9.9/src/ls.c:5310:11: branch_false: following 'false' branch...
coreutils-9.9/src/ls.c:5313:19: branch_false: ...to here
coreutils-9.9/src/ls.c:5316:45: branch_false: following 'false' branch...
coreutils-9.9/src/ls.c:5323:3: branch_false: ...to here
coreutils-9.9/src/ls.c:5323:21: branch_false: following 'false' branch (when 'i >= max_cols')...
coreutils-9.9/src/ls.c:5330:1: branch_false: ...to here
coreutils-9.9/src/ls.c:5330:1: danger: 'p' leaks here; was allocated at [(7)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/6)
# 5328|           column_info[i].col_arr[j] = MIN_COLUMN_WIDTH;
# 5329|       }
# 5330|-> }
# 5331|   
# 5332|   /* Calculate the number of columns needed to represent the current set

Error: GCC_ANALYZER_WARNING (CWE-401): [#def404]
coreutils-9.9/src/mktemp.c:252:7: warning[-Wanalyzer-malloc-leak]: leak of 'template'
coreutils-9.9/src/mktemp.c:169:10: branch_true: following 'true' branch (when 'c != -1')...
coreutils-9.9/src/mktemp.c:171:7: branch_true: ...to here
coreutils-9.9/src/mktemp.c:206:6: branch_false: following 'false' branch (when 'n_args <= 1')...
coreutils-9.9/src/mktemp.c:212:6: branch_false: ...to here
coreutils-9.9/src/mktemp.c:222:6: branch_false: following 'false' branch (when 'suffix' is NULL)...
coreutils-9.9/src/mktemp.c:240:18: branch_false: ...to here
coreutils-9.9/src/mktemp.c:250:6: branch_true: following 'true' branch...
coreutils-9.9/src/mktemp.c:252:7: throw: if 'quote' throws an exception...
coreutils-9.9/src/mktemp.c:252:7: danger: 'template' leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
#  250|     if (suffix_len && last_component (suffix) != suffix)
#  251|       {
#  252|->       error (EXIT_FAILURE, 0,
#  253|                _("invalid suffix %s, contains directory separator"),
#  254|                quote (suffix));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def405]
coreutils-9.9/src/mktemp.c:262:7: warning[-Wanalyzer-malloc-leak]: leak of 'template'
coreutils-9.9/src/mktemp.c:169:10: branch_true: following 'true' branch (when 'c != -1')...
coreutils-9.9/src/mktemp.c:171:7: branch_true: ...to here
coreutils-9.9/src/mktemp.c:206:6: branch_false: following 'false' branch (when 'n_args <= 1')...
coreutils-9.9/src/mktemp.c:212:6: branch_false: ...to here
coreutils-9.9/src/mktemp.c:222:6: branch_false: following 'false' branch (when 'suffix' is NULL)...
coreutils-9.9/src/mktemp.c:240:18: branch_false: ...to here
coreutils-9.9/src/mktemp.c:257:6: branch_true: following 'true' branch (when 'n <= 2')...
coreutils-9.9/src/mktemp.c:260:10: branch_true: ...to here
coreutils-9.9/src/mktemp.c:262:7: throw: if 'quote' throws an exception...
coreutils-9.9/src/mktemp.c:262:7: danger: 'template' leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
#  260|         if (template == dest_name)
#  261|           template[suffix - template] = '\0';
#  262|->       error (EXIT_FAILURE, 0, _("too few X's in template %s"),
#  263|                quote (template));
#  264|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def406]
coreutils-9.9/src/mv.c:536:11: warning[-Wanalyzer-malloc-leak]: leak of 'file_name_concat(target_directory,  last_component(source), &dest_relname)'
coreutils-9.9/src/mv.c:316:1: enter_function: entry to 'main'
coreutils-9.9/src/mv.c:339:3: call_function: calling 'cp_option_init' from 'main'
coreutils-9.9/src/mv.c:339:3: return_function: returning to 'main' from 'cp_option_init'
coreutils-9.9/src/mv.c:418:6: branch_false: following 'false' branch...
coreutils-9.9/src/mv.c:429:3: branch_false: ...to here
coreutils-9.9/src/mv.c:431:6: branch_false: following 'false' branch (when 'no_target_directory == 0')...
coreutils-9.9/src/mv.c:443:11: branch_false: ...to here
coreutils-9.9/src/mv.c:443:11: branch_false: following 'false' branch (when 'target_directory' is NULL)...
coreutils-9.9/src/mv.c:452:34: branch_false: ...to here
coreutils-9.9/src/mv.c:457:10: branch_true: following 'true' branch...
coreutils-9.9/src/mv.c:459:20: branch_true: ...to here
coreutils-9.9/src/mv.c:460:14: branch_true: following 'true' branch...
coreutils-9.9/src/mv.c:462:15: branch_true: ...to here
coreutils-9.9/src/mv.c:497:6: branch_false: following 'false' branch...
coreutils-9.9/src/mv.c:500:6: branch_false: ...to here
coreutils-9.9/src/mv.c:500:6: branch_false: following 'false' branch (when 'make_backups == 0')...
coreutils-9.9/src/mv.c:511:3: branch_false: ...to here
coreutils-9.9/src/mv.c:519:6: branch_true: following 'true' branch (when 'target_directory' is non-NULL)...
coreutils-9.9/src/mv.c:524:10: branch_true: ...to here
coreutils-9.9/src/mv.c:528:23: branch_true: following 'true' branch (when 'n_files > i')...
coreutils-9.9/src/mv.c:530:25: branch_true: ...to here
coreutils-9.9/src/mv.c:536:11: throw: if 'strip_trailing_slashes' throws an exception...
coreutils-9.9/src/mv.c:536:11: danger: 'file_name_concat(target_directory,  last_component(source), &dest_relname)' leaks here; was allocated at [(24)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/23)
#  534|             char *dest = file_name_concat (target_directory, source_basename,
#  535|                                            &dest_relname);
#  536|->           strip_trailing_slashes (dest_relname);
#  537|             ok &= do_move (source, dest, target_dirfd, dest_relname, &x);
#  538|             free (dest);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def407]
coreutils-9.9/src/nl.c:458:3: warning[-Wanalyzer-file-leak]: leak of FILE 'stream'
coreutils-9.9/src/nl.c:442:6: branch_false: following 'false' branch (when the strings are non-equal)...
coreutils-9.9/src/nl.c:450:16: branch_false: ...to here
coreutils-9.9/src/nl.c:450:16: acquire_resource: opened here
coreutils-9.9/src/nl.c:451:10: branch_false: following 'false' branch...
coreutils-9.9/src/nl.c:458:3: branch_false: ...to here
coreutils-9.9/src/nl.c:458:3: throw: if 'fadvise' throws an exception...
coreutils-9.9/src/nl.c:458:3: danger: 'stream' leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  456|       }
#  457|   
#  458|->   fadvise (stream, FADVISE_SEQUENTIAL);
#  459|   
#  460|     process_file (stream);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def408]
coreutils-9.9/src/nl.c:458:3: warning[-Wanalyzer-malloc-leak]: leak of 'stream'
coreutils-9.9/src/nl.c:442:6: branch_false: following 'false' branch (when the strings are non-equal)...
coreutils-9.9/src/nl.c:450:16: branch_false: ...to here
coreutils-9.9/src/nl.c:450:16: acquire_memory: allocated here
coreutils-9.9/src/nl.c:451:10: branch_false: following 'false' branch...
coreutils-9.9/src/nl.c:458:3: branch_false: ...to here
coreutils-9.9/src/nl.c:458:3: throw: if 'fadvise' throws an exception...
coreutils-9.9/src/nl.c:458:3: danger: 'stream' leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  456|       }
#  457|   
#  458|->   fadvise (stream, FADVISE_SEQUENTIAL);
#  459|   
#  460|     process_file (stream);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def409]
coreutils-9.9/src/nohup.c:157:27: warning[-Wanalyzer-malloc-leak]: leak of 'file_name_concat(home, "nohup.out", 0)'
coreutils-9.9/src/nohup.c:111:6: branch_false: following 'false' branch...
coreutils-9.9/src/nohup.c:117:20: branch_false: ...to here
coreutils-9.9/src/nohup.c:119:22: branch_false: following 'false' branch...
coreutils-9.9/src/nohup.c:119:22: branch_false: ...to here
coreutils-9.9/src/nohup.c:125:6: branch_false: following 'false' branch...
coreutils-9.9/src/nohup.c:138:6: branch_false: ...to here
coreutils-9.9/src/nohup.c:138:6: branch_true: following 'true' branch...
coreutils-9.9/src/nohup.c:144:28: branch_true: ...to here
coreutils-9.9/src/nohup.c:145:16: branch_true: following 'true' branch...
coreutils-9.9/src/nohup.c:146:19: branch_true: ...to here
coreutils-9.9/src/nohup.c:149:10: branch_true: following 'true' branch (when 'out_fd < 0')...
coreutils-9.9/src/nohup.c:151:29: branch_true: ...to here
coreutils-9.9/src/nohup.c:153:14: branch_true: following 'true' branch (when 'home' is non-NULL)...
coreutils-9.9/src/nohup.c:155:25: branch_true: ...to here
coreutils-9.9/src/nohup.c:156:24: branch_true: following 'true' branch...
coreutils-9.9/src/nohup.c:157:27: branch_true: ...to here
coreutils-9.9/src/nohup.c:157:27: throw: if 'fd_reopen' throws an exception...
coreutils-9.9/src/nohup.c:157:27: danger: 'file_name_concat(home, "nohup.out", 0)' leaks here; was allocated at [(18)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/17)
#  155|                 in_home = file_name_concat (home, file, nullptr);
#  156|                 out_fd = (redirecting_stdout
#  157|->                         ? fd_reopen (STDOUT_FILENO, in_home, flags, mode)
#  158|                           : open (in_home, flags, mode));
#  159|               }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def410]
coreutils-9.9/src/nohup.c:163:15: warning[-Wanalyzer-malloc-leak]: leak of 'in_home'
coreutils-9.9/src/nohup.c:111:6: branch_false: following 'false' branch...
coreutils-9.9/src/nohup.c:117:20: branch_false: ...to here
coreutils-9.9/src/nohup.c:119:22: branch_false: following 'false' branch...
coreutils-9.9/src/nohup.c:119:22: branch_false: ...to here
coreutils-9.9/src/nohup.c:125:6: branch_false: following 'false' branch...
coreutils-9.9/src/nohup.c:138:6: branch_false: ...to here
coreutils-9.9/src/nohup.c:138:6: branch_true: following 'true' branch...
coreutils-9.9/src/nohup.c:144:28: branch_true: ...to here
coreutils-9.9/src/nohup.c:145:16: branch_true: following 'true' branch...
coreutils-9.9/src/nohup.c:146:19: branch_true: ...to here
coreutils-9.9/src/nohup.c:149:10: branch_true: following 'true' branch (when 'out_fd < 0')...
coreutils-9.9/src/nohup.c:151:29: branch_true: ...to here
coreutils-9.9/src/nohup.c:153:14: branch_true: following 'true' branch (when 'home' is non-NULL)...
coreutils-9.9/src/nohup.c:155:25: branch_true: ...to here
coreutils-9.9/src/nohup.c:156:24: branch_true: following 'true' branch...
coreutils-9.9/src/nohup.c:157:27: branch_true: ...to here
coreutils-9.9/src/nohup.c:160:14: branch_true: following 'true' branch (when 'out_fd < 0')...
coreutils-9.9/src/nohup.c:162:19: branch_true: ...to here
coreutils-9.9/src/nohup.c:163:15: throw: if 'quotearg_style' throws an exception...
coreutils-9.9/src/nohup.c:163:15: danger: 'in_home' leaks here; was allocated at [(18)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/17)
#  161|               {
#  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"),

Error: GCC_ANALYZER_WARNING (CWE-401): [#def411]
coreutils-9.9/src/nohup.c:165:17: warning[-Wanalyzer-malloc-leak]: leak of 'in_home'
coreutils-9.9/src/nohup.c:111:6: branch_false: following 'false' branch...
coreutils-9.9/src/nohup.c:117:20: branch_false: ...to here
coreutils-9.9/src/nohup.c:119:22: branch_false: following 'false' branch...
coreutils-9.9/src/nohup.c:119:22: branch_false: ...to here
coreutils-9.9/src/nohup.c:125:6: branch_false: following 'false' branch...
coreutils-9.9/src/nohup.c:138:6: branch_false: ...to here
coreutils-9.9/src/nohup.c:138:6: branch_true: following 'true' branch...
coreutils-9.9/src/nohup.c:144:28: branch_true: ...to here
coreutils-9.9/src/nohup.c:145:16: branch_true: following 'true' branch...
coreutils-9.9/src/nohup.c:146:19: branch_true: ...to here
coreutils-9.9/src/nohup.c:149:10: branch_true: following 'true' branch (when 'out_fd < 0')...
coreutils-9.9/src/nohup.c:151:29: branch_true: ...to here
coreutils-9.9/src/nohup.c:153:14: branch_true: following 'true' branch (when 'home' is non-NULL)...
coreutils-9.9/src/nohup.c:155:25: branch_true: ...to here
coreutils-9.9/src/nohup.c:156:24: branch_true: following 'true' branch...
coreutils-9.9/src/nohup.c:157:27: branch_true: ...to here
coreutils-9.9/src/nohup.c:160:14: branch_true: following 'true' branch (when 'out_fd < 0')...
coreutils-9.9/src/nohup.c:162:19: branch_true: ...to here
coreutils-9.9/src/nohup.c:164:18: branch_true: following 'true' branch (when 'in_home' is non-NULL)...
coreutils-9.9/src/nohup.c:165:17: branch_true: ...to here
coreutils-9.9/src/nohup.c:165:17: throw: if 'quotearg_style' throws an exception...
coreutils-9.9/src/nohup.c:165:17: danger: 'in_home' leaks here; was allocated at [(18)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/17)
#  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));
#  167|                 return exit_internal_failure;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def412]
coreutils-9.9/src/nohup.c:232:1: warning[-Wanalyzer-malloc-leak]: leak of 'in_home'
coreutils-9.9/src/nohup.c:111:6: branch_false: following 'false' branch...
coreutils-9.9/src/nohup.c:117:20: branch_false: ...to here
coreutils-9.9/src/nohup.c:119:22: branch_false: following 'false' branch...
coreutils-9.9/src/nohup.c:119:22: branch_false: ...to here
coreutils-9.9/src/nohup.c:125:6: branch_false: following 'false' branch...
coreutils-9.9/src/nohup.c:138:6: branch_false: ...to here
coreutils-9.9/src/nohup.c:138:6: branch_true: following 'true' branch...
coreutils-9.9/src/nohup.c:144:28: branch_true: ...to here
coreutils-9.9/src/nohup.c:145:16: branch_true: following 'true' branch...
coreutils-9.9/src/nohup.c:146:19: branch_true: ...to here
coreutils-9.9/src/nohup.c:149:10: branch_true: following 'true' branch (when 'out_fd < 0')...
coreutils-9.9/src/nohup.c:151:29: branch_true: ...to here
coreutils-9.9/src/nohup.c:153:14: branch_true: following 'true' branch (when 'home' is non-NULL)...
coreutils-9.9/src/nohup.c:155:25: branch_true: ...to here
coreutils-9.9/src/nohup.c:156:24: branch_true: following 'true' branch...
coreutils-9.9/src/nohup.c:157:27: branch_true: ...to here
coreutils-9.9/src/nohup.c:160:14: branch_true: following 'true' branch (when 'out_fd < 0')...
coreutils-9.9/src/nohup.c:162:19: branch_true: ...to here
coreutils-9.9/src/nohup.c:232:1: danger: 'in_home' leaks here; was allocated at [(18)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/17)
#  230|   
#  231|     return exit_status;
#  232|-> }

Error: CPPCHECK_WARNING (CWE-415): [#def413]
coreutils-9.9/src/numfmt.c:907: error[doubleFree]: Memory pointed to by 't_string' is freed twice.
#  905|       }
#  906|   
#  907|->   free (t_string);
#  908|   
#  909|     return n;

Error: COMPILER_WARNING (CWE-704): [#def414]
coreutils-9.9/src/numfmt.c: scope_hint: In function 'mbsmbchr'
coreutils-9.9/src/numfmt.c:1390:12: warning[-Wdiscarded-qualifiers]: return discards 'const' qualifier from pointer target type
# 1390 |     return strchr (s, uc);
#      |            ^~~~~~
# 1388|      /* GB18030 is the most restrictive for the 0x30 optimization below.  */
# 1389|     if (uc < 0x30 || MB_CUR_MAX == 1)
# 1390|->     return strchr (s, uc);
# 1391|     else if (is_utf8_charset ())
# 1392|       return uc < 0x80 ? strchr (s, uc) : strstr (s, c);

Error: COMPILER_WARNING (CWE-704): [#def415]
coreutils-9.9/src/numfmt.c:1392:39: warning[-Wdiscarded-qualifiers]: return discards 'const' qualifier from pointer target type
# 1392 |     return uc < 0x80 ? strchr (s, uc) : strstr (s, c);
#      |                                       ^
# 1390|       return strchr (s, uc);
# 1391|     else if (is_utf8_charset ())
# 1392|->     return uc < 0x80 ? strchr (s, uc) : strstr (s, c);
# 1393|     else
# 1394|       return *(c + 1) == '\0' ? mbschr (s, uc) : (char *) mbsstr (s, c);

Error: CPPCHECK_WARNING (CWE-823): [#def416]
coreutils-9.9/src/od.c:777: error[arrayIndexOutOfBounds]: Array 'integral_type_size[2]' accessed at index 8, which is out of bounds.
#  775|           }
#  776|   
#  777|->       size_spec = integral_type_size[size];
#  778|   
#  779|         switch (c)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def417]
coreutils-9.9/src/operand2sig.c:72:25: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(operand)'
coreutils-9.9/src/operand2sig.c:36:1: enter_function: entry to 'operand2sig'
coreutils-9.9/src/operand2sig.c:40:7: call_function: inlined call to 'c_isdigit' from 'operand2sig'
coreutils-9.9/src/operand2sig.c:70:23: branch_false: ...to here
coreutils-9.9/src/operand2sig.c:72:25: branch_true: following 'true' branch...
coreutils-9.9/src/operand2sig.c:73:13: branch_true: ...to here
coreutils-9.9/src/operand2sig.c:73:12: branch_false: following 'false' branch...
coreutils-9.9/src/operand2sig.c:72:29: branch_false: ...to here
coreutils-9.9/src/operand2sig.c:78:13: throw: if 'str2sig' throws an exception...
coreutils-9.9/src/operand2sig.c:72:25: danger: 'xstrdup(operand)' leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#   70|         char *upcased = xstrdup (operand);
#   71|         char *p;
#   72|->       for (p = upcased; *p; p++)
#   73|           if (strchr ("abcdefghijklmnopqrstuvwxyz", *p))
#   74|             *p += 'A' - 'a';

Error: GCC_ANALYZER_WARNING (CWE-401): [#def418]
coreutils-9.9/src/operand2sig.c:78:13: warning[-Wanalyzer-malloc-leak]: leak of 'p'
coreutils-9.9/src/operand2sig.c:36:1: enter_function: entry to 'operand2sig'
coreutils-9.9/src/operand2sig.c:40:7: call_function: inlined call to 'c_isdigit' from 'operand2sig'
coreutils-9.9/src/operand2sig.c:70:23: branch_false: ...to here
coreutils-9.9/src/operand2sig.c:72:25: branch_false: following 'false' branch...
coreutils-9.9/src/operand2sig.c:78:13: branch_false: ...to here
coreutils-9.9/src/operand2sig.c:78:13: throw: if 'str2sig' throws an exception...
coreutils-9.9/src/operand2sig.c:78:13: danger: 'p' leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
#   76|         /* Look for the signal name, possibly prefixed by "SIG",
#   77|            and possibly lowercased.  */
#   78|->       if (!(str2sig (upcased, &signum) == 0
#   79|               || (upcased[0] == 'S' && upcased[1] == 'I' && upcased[2] == 'G'
#   80|                   && str2sig (upcased + 3, &signum) == 0)))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def419]
coreutils-9.9/src/paste.c:180:20: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(nfiles + 2)'
coreutils-9.9/src/paste.c:451:1: enter_function: entry to 'main'
coreutils-9.9/src/paste.c:500:7: call_function: calling 'collapse_escapes' from 'main'
coreutils-9.9/src/paste.c:500:7: return_function: returning to 'main' from 'collapse_escapes'
coreutils-9.9/src/paste.c:500:6: branch_false: following 'false' branch...
coreutils-9.9/src/paste.c:509:28: branch_false: ...to here
coreutils-9.9/src/paste.c:509:14: branch_false: following 'false' branch...
coreutils-9.9/src/paste.c:509:14: branch_false: ...to here
coreutils-9.9/src/paste.c:509:13: call_function: calling 'paste_parallel' from 'main'
#  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): [#def420]
coreutils-9.9/src/paste.c:194:25: warning[-Wanalyzer-malloc-leak]: leak of 'xnmalloc(nfiles + 1, 8)'
coreutils-9.9/src/paste.c:451:1: enter_function: entry to 'main'
coreutils-9.9/src/paste.c:500:7: call_function: calling 'collapse_escapes' from 'main'
coreutils-9.9/src/paste.c:500:7: return_function: returning to 'main' from 'collapse_escapes'
coreutils-9.9/src/paste.c:500:6: branch_false: following 'false' branch...
coreutils-9.9/src/paste.c:509:28: branch_false: ...to here
coreutils-9.9/src/paste.c:509:14: branch_false: following 'false' branch...
coreutils-9.9/src/paste.c:509:14: branch_false: ...to here
coreutils-9.9/src/paste.c:509:13: call_function: calling 'paste_parallel' from 'main'
#  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-775): [#def421]
coreutils-9.9/src/paste.c:361:11: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(*fnamptr, "r")'
coreutils-9.9/src/paste.c:343:10: branch_true: following 'true' branch (when 'nfiles != 0')...
coreutils-9.9/src/paste.c:346:23: branch_true: ...to here
coreutils-9.9/src/paste.c:347:10: branch_false: following 'false' branch (when the strings are non-equal)...
coreutils-9.9/src/paste.c:354:21: branch_false: ...to here
coreutils-9.9/src/paste.c:354:21: acquire_resource: opened here
coreutils-9.9/src/paste.c:355:14: branch_false: following 'false' branch...
coreutils-9.9/src/paste.c:361:11: branch_false: ...to here
coreutils-9.9/src/paste.c:361:11: throw: if 'fadvise' throws an exception...
coreutils-9.9/src/paste.c:361:11: danger: 'fopen(*fnamptr, "r")' leaks here; was opened at [(5)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/4)
#  359|                 continue;
#  360|               }
#  361|->           fadvise (fileptr, FADVISE_SEQUENTIAL);
#  362|           }
#  363|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def422]
coreutils-9.9/src/paste.c:361:11: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(*fnamptr, "r")'
coreutils-9.9/src/paste.c:343:10: branch_true: following 'true' branch (when 'nfiles != 0')...
coreutils-9.9/src/paste.c:346:23: branch_true: ...to here
coreutils-9.9/src/paste.c:347:10: branch_false: following 'false' branch (when the strings are non-equal)...
coreutils-9.9/src/paste.c:354:21: branch_false: ...to here
coreutils-9.9/src/paste.c:354:21: acquire_memory: allocated here
coreutils-9.9/src/paste.c:355:14: branch_false: following 'false' branch...
coreutils-9.9/src/paste.c:361:11: branch_false: ...to here
coreutils-9.9/src/paste.c:361:11: throw: if 'fadvise' throws an exception...
coreutils-9.9/src/paste.c:361:11: danger: 'fopen(*fnamptr, "r")' leaks here; was allocated at [(5)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/4)
#  359|                 continue;
#  360|               }
#  361|->           fadvise (fileptr, FADVISE_SEQUENTIAL);
#  362|           }
#  363|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def423]
coreutils-9.9/src/pinky.c:312:1: warning[-Wanalyzer-malloc-leak]: leak of 'host'
coreutils-9.9/src/pinky.c:529:1: enter_function: entry to 'single_binary_main_pinky'
coreutils-9.9/src/pinky.c:612:6: branch_true: following 'true' branch...
coreutils-9.9/src/pinky.c:613:43: branch_true: ...to here
coreutils-9.9/src/pinky.c:613:5: call_function: calling 'short_pinky' from 'single_binary_main_pinky'
#  310|   
#  311|     putchar ('\n');
#  312|-> }
#  313|   
#  314|   /* Display a verbose line of information about UTMP_ENT. */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def424]
coreutils-9.9/src/printf.c:526:23: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(strlen(format) + 1)'
coreutils-9.9/src/printf.c:511:1: enter_function: entry to 'print_formatted'
coreutils-9.9/src/printf.c:526:23: branch_true: following 'true' branch...
coreutils-9.9/src/printf.c:528:7: branch_true: ...to here
coreutils-9.9/src/printf.c:535:14: branch_false: following 'false' branch...
coreutils-9.9/src/printf.c:541:16: branch_false: ...to here
coreutils-9.9/src/printf.c:541:16: call_function: calling 'get_curr_arg' from 'print_formatted'
coreutils-9.9/src/printf.c:541:16: return_function: returning to 'print_formatted' from 'get_curr_arg'
coreutils-9.9/src/printf.c:543:14: branch_false: following 'false' branch...
coreutils-9.9/src/printf.c:553:14: branch_false: ...to here
coreutils-9.9/src/printf.c:553:14: branch_true: following 'true' branch...
coreutils-9.9/src/printf.c:555:20: call_function: inlined call to 'get_curr_arg' from 'print_formatted'
coreutils-9.9/src/printf.c:556:18: branch_true: following 'true' branch (when 'argc > <unknown>')...
coreutils-9.9/src/printf.c:558:19: branch_true: ...to here
coreutils-9.9/src/printf.c:558:19: throw: if 'quotearg_style' throws an exception...
coreutils-9.9/src/printf.c:526:23: danger: 'xmalloc(strlen(format) + 1)' leaks here; was allocated at [(2)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/1)
#  524|     direc = xmalloc (strlen (format) + 1);
#  525|   
#  526|->   for (ac.f = format; *ac.f; ac.f++)
#  527|       {
#  528|         switch (*ac.f)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def425]
coreutils-9.9/src/pwd.c:94:12: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(24)'
coreutils-9.9/src/pwd.c:94:12: throw: if 'xmalloc' throws an exception...
coreutils-9.9/src/pwd.c:94:12: danger: 'xmalloc(24)' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   92|     p->n_alloc = init_alloc;
#   93|   
#   94|->   p->buf = xmalloc (init_alloc);
#   95|     p->start = p->buf + init_alloc - 1;
#   96|     p->start[0] = '\0';

Error: GCC_ANALYZER_WARNING (CWE-401): [#def426]
coreutils-9.9/src/pwd.c:95:14: warning[-Wanalyzer-malloc-leak]: leak of 'file_name_init()'
coreutils-9.9/src/pwd.c:325:1: enter_function: entry to 'main'
coreutils-9.9/src/pwd.c:378:6: branch_false: following 'false' branch...
coreutils-9.9/src/pwd.c:385:37: branch_false: ...to here
coreutils-9.9/src/pwd.c:385:37: call_function: calling 'file_name_init' from 'main'
coreutils-9.9/src/pwd.c:385:37: return_function: returning to 'main' from 'file_name_init'
coreutils-9.9/src/pwd.c:386:7: call_function: calling 'robust_getcwd' from 'main'
#   93|   
#   94|     p->buf = xmalloc (init_alloc);
#   95|->   p->start = p->buf + init_alloc - 1;
#   96|     p->start[0] = '\0';
#   97|     return p;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def427]
coreutils-9.9/src/pwd.c:162:5: warning[-Wanalyzer-malloc-leak]: leak of 'nth_parent(parent_height)'
coreutils-9.9/src/pwd.c:151:1: enter_function: entry to 'find_dir_entry'
coreutils-9.9/src/pwd.c:161:6: branch_true: following 'true' branch...
coreutils-9.9/src/pwd.c:162:5: branch_true: ...to here
coreutils-9.9/src/pwd.c:162:5: call_function: calling 'nth_parent' from 'find_dir_entry'
coreutils-9.9/src/pwd.c:162:5: return_function: returning to 'find_dir_entry' from 'nth_parent'
coreutils-9.9/src/pwd.c:162:5: danger: 'nth_parent(parent_height)' leaks here; was allocated at [(6)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/5)
#  160|     dirp = opendir ("..");
#  161|     if (dirp == nullptr)
#  162|->     error (EXIT_FAILURE, errno, _("cannot open directory %s"),
#  163|              quote (nth_parent (parent_height)));
#  164|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def428]
coreutils-9.9/src/pwd.c:167:5: warning[-Wanalyzer-malloc-leak]: leak of 'nth_parent(parent_height)'
coreutils-9.9/src/pwd.c:151:1: enter_function: entry to 'find_dir_entry'
coreutils-9.9/src/pwd.c:161:6: branch_false: following 'false' branch...
coreutils-9.9/src/pwd.c:165:8: branch_false: ...to here
coreutils-9.9/src/pwd.c:166:6: branch_true: following 'true' branch...
coreutils-9.9/src/pwd.c:167:5: branch_true: ...to here
coreutils-9.9/src/pwd.c:167:5: call_function: calling 'nth_parent' from 'find_dir_entry'
coreutils-9.9/src/pwd.c:167:5: return_function: returning to 'find_dir_entry' from 'nth_parent'
coreutils-9.9/src/pwd.c:167:5: danger: 'nth_parent(parent_height)' leaks here; was allocated at [(8)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/7)
#  165|     fd = dirfd (dirp);
#  166|     if ((0 <= fd ? fchdir (fd) : chdir ("..")) < 0)
#  167|->     error (EXIT_FAILURE, errno, _("failed to chdir to %s"),
#  168|              quote (nth_parent (parent_height)));
#  169|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def429]
coreutils-9.9/src/pwd.c:171:5: warning[-Wanalyzer-malloc-leak]: leak of 'nth_parent(parent_height)'
coreutils-9.9/src/pwd.c:151:1: enter_function: entry to 'find_dir_entry'
coreutils-9.9/src/pwd.c:161:6: branch_false: following 'false' branch...
coreutils-9.9/src/pwd.c:165:8: branch_false: ...to here
coreutils-9.9/src/pwd.c:166:6: branch_false: following 'false' branch...
coreutils-9.9/src/pwd.c:170:7: branch_false: ...to here
coreutils-9.9/src/pwd.c:170:6: branch_true: following 'true' branch...
coreutils-9.9/src/pwd.c:171:5: branch_true: ...to here
coreutils-9.9/src/pwd.c:171:5: call_function: calling 'nth_parent' from 'find_dir_entry'
coreutils-9.9/src/pwd.c:171:5: return_function: returning to 'find_dir_entry' from 'nth_parent'
coreutils-9.9/src/pwd.c:171:5: danger: 'nth_parent(parent_height)' leaks here; was allocated at [(10)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/9)
#  169|   
#  170|     if ((0 <= fd ? fstat (fd, &parent_sb) : stat (".", &parent_sb)) < 0)
#  171|->     error (EXIT_FAILURE, errno, _("failed to stat %s"),
#  172|              quote (nth_parent (parent_height)));
#  173|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def430]
coreutils-9.9/src/pwd.c:230:7: warning[-Wanalyzer-malloc-leak]: leak of 'nth_parent(parent_height)'
coreutils-9.9/src/pwd.c:151:1: enter_function: entry to 'find_dir_entry'
coreutils-9.9/src/pwd.c:161:6: branch_false: following 'false' branch...
coreutils-9.9/src/pwd.c:165:8: branch_false: ...to here
coreutils-9.9/src/pwd.c:166:6: branch_false: following 'false' branch...
coreutils-9.9/src/pwd.c:170:7: branch_false: ...to here
coreutils-9.9/src/pwd.c:170:6: branch_false: following 'false' branch...
coreutils-9.9/src/pwd.c:176:16: branch_false: ...to here
coreutils-9.9/src/pwd.c:186:10: branch_true: following 'true' branch...
coreutils-9.9/src/pwd.c:188:15: branch_true: ...to here
coreutils-9.9/src/pwd.c:230:7: call_function: calling 'nth_parent' from 'find_dir_entry'
coreutils-9.9/src/pwd.c:230:7: return_function: returning to 'find_dir_entry' from 'nth_parent'
coreutils-9.9/src/pwd.c:230:7: danger: 'nth_parent(parent_height)' leaks here; was allocated at [(12)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/11)
#  228|         /* Note that this diagnostic serves for both readdir
#  229|            and closedir failures.  */
#  230|->       error (EXIT_FAILURE, errno, _("reading directory %s"),
#  231|                quote (nth_parent (parent_height)));
#  232|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def431]
coreutils-9.9/src/pwd.c:235:5: warning[-Wanalyzer-malloc-leak]: leak of 'nth_parent(parent_height)'
coreutils-9.9/src/pwd.c:151:1: enter_function: entry to 'find_dir_entry'
coreutils-9.9/src/pwd.c:161:6: branch_false: following 'false' branch...
coreutils-9.9/src/pwd.c:165:8: branch_false: ...to here
coreutils-9.9/src/pwd.c:166:6: branch_false: following 'false' branch...
coreutils-9.9/src/pwd.c:170:7: branch_false: ...to here
coreutils-9.9/src/pwd.c:170:6: branch_false: following 'false' branch...
coreutils-9.9/src/pwd.c:176:16: branch_false: ...to here
coreutils-9.9/src/pwd.c:186:10: branch_true: following 'true' branch...
coreutils-9.9/src/pwd.c:188:15: branch_true: ...to here
coreutils-9.9/src/pwd.c:188:14: branch_false: following 'false' branch...
coreutils-9.9/src/pwd.c:198:11: branch_false: ...to here
coreutils-9.9/src/pwd.c:226:7: branch_false: following 'false' branch...
coreutils-9.9/src/pwd.c:234:6: branch_false: ...to here
coreutils-9.9/src/pwd.c:234:6: branch_false: following 'false' branch (when 'found == 0')...
coreutils-9.9/src/pwd.c:235:5: branch_false: ...to here
coreutils-9.9/src/pwd.c:235:5: call_function: calling 'nth_parent' from 'find_dir_entry'
coreutils-9.9/src/pwd.c:235:5: return_function: returning to 'find_dir_entry' from 'nth_parent'
coreutils-9.9/src/pwd.c:235:5: danger: 'nth_parent(parent_height)' leaks here; was allocated at [(18)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/17)
#  233|   
#  234|     if ( ! found)
#  235|->     error (EXIT_FAILURE, 0,
#  236|              _("couldn't find directory entry in %s with matching i-node"),
#  237|              quote (nth_parent (parent_height)));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def432]
coreutils-9.9/src/realpath.c:100:21: warning[-Wanalyzer-malloc-leak]: leak of 'realpath_canon(fname,  can_mode)'
coreutils-9.9/src/realpath.c:150:1: enter_function: entry to 'process_path'
coreutils-9.9/src/realpath.c:152:21: call_function: calling 'realpath_canon' from 'process_path'
coreutils-9.9/src/realpath.c:152:21: return_function: returning to 'process_path' from 'realpath_canon'
coreutils-9.9/src/realpath.c:153:6: branch_false: following 'false' branch...
coreutils-9.9/src/realpath.c:160:7: branch_false: ...to here
coreutils-9.9/src/realpath.c:160:6: branch_false: following 'false' branch...
coreutils-9.9/src/realpath.c:161:11: branch_false: ...to here
coreutils-9.9/src/realpath.c:162:31: throw: if 'relpath' throws an exception...
coreutils-9.9/src/realpath.c:100:21: danger: 'realpath_canon(fname,  can_mode)' leaks here; was allocated at [(4)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/3)
#   98|   realpath_canon (char const *fname, int can_mode)
#   99|   {
#  100|->   char *can_fname = canonicalize_filename_mode (fname, can_mode);
#  101|     if (logical && can_fname)  /* canonicalize again to resolve symlinks.  */
#  102|       {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def433]
coreutils-9.9/src/realpath.c:101:7: warning[-Wanalyzer-malloc-leak]: leak of 'canonicalize_filename_mode(fname, (enum canonicalize_mode_t)can_mode)'
coreutils-9.9/src/realpath.c:100:21: acquire_memory: allocated here
coreutils-9.9/src/realpath.c:101:6: branch_true: following 'true' branch...
coreutils-9.9/src/realpath.c:101:7: branch_true: ...to here
coreutils-9.9/src/realpath.c:101:7: branch_true: following 'true' branch...
coreutils-9.9/src/realpath.c:103:7: branch_true: ...to here
coreutils-9.9/src/realpath.c:104:26: throw: if 'canonicalize_filename_mode' throws an exception...
coreutils-9.9/src/realpath.c:101:7: danger: 'canonicalize_filename_mode(fname, (enum canonicalize_mode_t)can_mode)' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   99|   {
#  100|     char *can_fname = canonicalize_filename_mode (fname, can_mode);
#  101|->   if (logical && can_fname)  /* canonicalize again to resolve symlinks.  */
#  102|       {
#  103|         can_mode &= ~CAN_NOLINKS;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def434]
coreutils-9.9/src/remove.c:498:19: warning[-Wanalyzer-malloc-leak]: leak of 'file_name_concat(*ent.fts_accpath, "..", 0)'
coreutils-9.9/src/remove.c:449:10: branch_true: following 'true' branch...
coreutils-9.9/src/remove.c:462:11: branch_true: ...to here
coreutils-9.9/src/remove.c:462:10: branch_true: following 'true' branch...
coreutils-9.9/src/remove.c:467:46: branch_true: ...to here
coreutils-9.9/src/remove.c:490:14: branch_true: following 'true' branch...
coreutils-9.9/src/remove.c:493:30: branch_true: ...to here
coreutils-9.9/src/remove.c:496:19: branch_true: following 'true' branch...
coreutils-9.9/src/remove.c:498:19: branch_true: ...to here
coreutils-9.9/src/remove.c:498:19: throw: if 'quotearg_n_style' throws an exception...
coreutils-9.9/src/remove.c:498:19: danger: 'file_name_concat(*ent.fts_accpath, "..", 0)' leaks here; was allocated at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
#  496|                 if (!parent || lstat (parent, &statbuf))
#  497|                   {
#  498|->                   error (0, 0,
#  499|                            _("failed to stat %s: skipping %s"),
#  500|                            quoteaf_n (0, parent),

Error: GCC_ANALYZER_WARNING (CWE-401): [#def435]
coreutils-9.9/src/rmdir.c:272:23: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(dir)'
coreutils-9.9/src/rmdir.c:233:6: branch_false: following 'false' branch...
coreutils-9.9/src/rmdir.c:233:6: branch_false: ...to here
coreutils-9.9/src/rmdir.c:239:10: branch_true: following 'true' branch...
coreutils-9.9/src/rmdir.c:241:23: branch_true: ...to here
coreutils-9.9/src/rmdir.c:247:10: branch_true: following 'true' branch...
coreutils-9.9/src/rmdir.c:249:29: branch_true: ...to here
coreutils-9.9/src/rmdir.c:250:14: branch_false: following 'false' branch...
coreutils-9.9/src/rmdir.c:259:14: branch_false: ...to here
coreutils-9.9/src/rmdir.c:259:14: branch_true: following 'true' branch (when 'rmdir_errno == 20')...
coreutils-9.9/src/rmdir.c:261:45: branch_true: ...to here
coreutils-9.9/src/rmdir.c:262:18: branch_true: following 'true' branch...
coreutils-9.9/src/rmdir.c:268:26: branch_true: following 'true' branch...
coreutils-9.9/src/rmdir.c:271:39: branch_true: ...to here
coreutils-9.9/src/rmdir.c:272:23: throw: if 'strip_trailing_slashes' throws an exception...
coreutils-9.9/src/rmdir.c:272:23: danger: 'xstrdup(dir)' leaks here; was allocated at [(15)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/14)
#  270|                         /* Ensure the last component was a symlink.  */
#  271|                         char *dir_arg = xstrdup (dir);
#  272|->                       strip_trailing_slashes (dir);
#  273|                         if (issymlink (dir) == 1)
#  274|                           {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def436]
coreutils-9.9/src/rmdir.c:275:27: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(dir)'
coreutils-9.9/src/rmdir.c:233:6: branch_false: following 'false' branch...
coreutils-9.9/src/rmdir.c:233:6: branch_false: ...to here
coreutils-9.9/src/rmdir.c:239:10: branch_true: following 'true' branch...
coreutils-9.9/src/rmdir.c:241:23: branch_true: ...to here
coreutils-9.9/src/rmdir.c:247:10: branch_true: following 'true' branch...
coreutils-9.9/src/rmdir.c:249:29: branch_true: ...to here
coreutils-9.9/src/rmdir.c:250:14: branch_false: following 'false' branch...
coreutils-9.9/src/rmdir.c:259:14: branch_false: ...to here
coreutils-9.9/src/rmdir.c:259:14: branch_true: following 'true' branch (when 'rmdir_errno == 20')...
coreutils-9.9/src/rmdir.c:261:45: branch_true: ...to here
coreutils-9.9/src/rmdir.c:262:18: branch_true: following 'true' branch...
coreutils-9.9/src/rmdir.c:268:26: branch_true: following 'true' branch...
coreutils-9.9/src/rmdir.c:271:39: branch_true: ...to here
coreutils-9.9/src/rmdir.c:273:26: branch_true: following 'true' branch...
coreutils-9.9/src/rmdir.c:275:27: branch_true: ...to here
coreutils-9.9/src/rmdir.c:275:27: throw: if 'quotearg_style' throws an exception...
coreutils-9.9/src/rmdir.c:275:27: danger: 'xstrdup(dir)' leaks here; was allocated at [(15)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/14)
#  273|                         if (issymlink (dir) == 1)
#  274|                           {
#  275|->                           error (0, 0,
#  276|                                    _("failed to remove %s:"
#  277|                                      " Symbolic link not followed"),

Error: GCC_ANALYZER_WARNING (CWE-401): [#def437]
coreutils-9.9/src/selinux.c:82:7: warning[-Wanalyzer-malloc-leak]: leak of 'dir_name(path)'
coreutils-9.9/src/selinux.c:82:7: throw: if 'getcon_raw' throws an exception...
coreutils-9.9/src/selinux.c:82:7: danger: 'dir_name(path)' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   80|     if (!dir)
#   81|       goto quit;
#   82|->   if (getcon_raw (&scon_raw) < 0)
#   83|       goto quit;
#   84|     if (getfilecon_raw (dir, &tcon_raw) < 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def438]
coreutils-9.9/src/selinux.c:84:7: warning[-Wanalyzer-malloc-leak]: leak of 'dir_name(path)'
coreutils-9.9/src/selinux.c:82:6: branch_false: following 'false' branch...
coreutils-9.9/src/selinux.c:84:7: branch_false: ...to here
coreutils-9.9/src/selinux.c:84:7: throw: if 'rpl_getfilecon_raw' throws an exception...
coreutils-9.9/src/selinux.c:84:7: danger: 'dir_name(path)' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   82|     if (getcon_raw (&scon_raw) < 0)
#   83|       goto quit;
#   84|->   if (getfilecon_raw (dir, &tcon_raw) < 0)
#   85|       goto quit;
#   86|     tclass = mode_to_security_class (mode);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def439]
coreutils-9.9/src/selinux.c:86:12: warning[-Wanalyzer-malloc-leak]: leak of 'dir_name(path)'
coreutils-9.9/src/selinux.c:82:6: branch_false: following 'false' branch...
coreutils-9.9/src/selinux.c:84:7: branch_false: ...to here
coreutils-9.9/src/selinux.c:84:6: branch_false: following 'false' branch...
coreutils-9.9/src/selinux.c:86:12: branch_false: ...to here
coreutils-9.9/src/selinux.c:86:12: throw: if 'mode_to_security_class' throws an exception...
coreutils-9.9/src/selinux.c:86:12: danger: 'dir_name(path)' leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#   84|     if (getfilecon_raw (dir, &tcon_raw) < 0)
#   85|       goto quit;
#   86|->   tclass = mode_to_security_class (mode);
#   87|     if (!tclass)
#   88|       goto quit;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def440]
coreutils-9.9/src/selinux.c:89:8: warning[-Wanalyzer-malloc-leak]: leak of 'dir_name(path)'
coreutils-9.9/src/selinux.c:82:6: branch_false: following 'false' branch...
coreutils-9.9/src/selinux.c:84:7: branch_false: ...to here
coreutils-9.9/src/selinux.c:84:6: branch_false: following 'false' branch...
coreutils-9.9/src/selinux.c:86:12: branch_false: ...to here
coreutils-9.9/src/selinux.c:87:6: branch_false: following 'false' branch...
coreutils-9.9/src/selinux.c:89:8: branch_false: ...to here
coreutils-9.9/src/selinux.c:89:8: throw: if 'security_compute_create_raw' throws an exception...
coreutils-9.9/src/selinux.c:89:8: danger: 'dir_name(path)' leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#   87|     if (!tclass)
#   88|       goto quit;
#   89|->   rc = security_compute_create_raw (scon_raw, tcon_raw, tclass, con);
#   90|   
#   91|    quit:;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def441]
coreutils-9.9/src/selinux.c:130:7: warning[-Wanalyzer-malloc-leak]: leak of 'newpath'
coreutils-9.9/src/selinux.c:121:6: branch_true: following 'true' branch...
coreutils-9.9/src/selinux.c:124:17: branch_true: ...to here
coreutils-9.9/src/selinux.c:124:17: acquire_memory: allocated here
coreutils-9.9/src/selinux.c:125:10: branch_false: following 'false' branch...
coreutils-9.9/src/selinux.c:130:7: branch_false: ...to here
coreutils-9.9/src/selinux.c:130:7: throw: if 'selabel_lookup_raw' throws an exception...
coreutils-9.9/src/selinux.c:130:7: danger: 'newpath' leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
#  128|       }
#  129|   
#  130|->   if (selabel_lookup_raw (selabel_handle, &scon_raw, path, mode) < 0)
#  131|       {
#  132|         /* "No such file or directory" is a confusing error,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def442]
coreutils-9.9/src/selinux.c:159:3: warning[-Wanalyzer-malloc-leak]: leak of 'newpath'
coreutils-9.9/src/selinux.c:121:6: branch_true: following 'true' branch...
coreutils-9.9/src/selinux.c:124:17: branch_true: ...to here
coreutils-9.9/src/selinux.c:124:17: acquire_memory: allocated here
coreutils-9.9/src/selinux.c:125:10: branch_false: following 'false' branch...
coreutils-9.9/src/selinux.c:130:7: branch_false: ...to here
coreutils-9.9/src/selinux.c:130:6: branch_true: following 'true' branch...
coreutils-9.9/src/selinux.c:137:11: branch_true: ...to here
coreutils-9.9/src/selinux.c:159:3: throw: if 'context_free' throws an exception...
coreutils-9.9/src/selinux.c:159:3: danger: 'newpath' leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
#  157|    quit:;
#  158|     int err = errno;
#  159|->   context_free (scontext);
#  160|     context_free (tcontext);
#  161|     freecon (scon_raw);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def443]
coreutils-9.9/src/selinux.c:160:3: warning[-Wanalyzer-malloc-leak]: leak of 'newpath'
coreutils-9.9/src/selinux.c:121:6: branch_true: following 'true' branch...
coreutils-9.9/src/selinux.c:124:17: branch_true: ...to here
coreutils-9.9/src/selinux.c:124:17: acquire_memory: allocated here
coreutils-9.9/src/selinux.c:125:10: branch_false: following 'false' branch...
coreutils-9.9/src/selinux.c:130:7: branch_false: ...to here
coreutils-9.9/src/selinux.c:130:6: branch_true: following 'true' branch...
coreutils-9.9/src/selinux.c:137:11: branch_true: ...to here
coreutils-9.9/src/selinux.c:160:3: throw: if 'context_free' throws an exception...
coreutils-9.9/src/selinux.c:160:3: danger: 'newpath' leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
#  158|     int err = errno;
#  159|     context_free (scontext);
#  160|->   context_free (tcontext);
#  161|     freecon (scon_raw);
#  162|     freecon (tcon_raw);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def444]
coreutils-9.9/src/selinux.c:161:3: warning[-Wanalyzer-malloc-leak]: leak of 'newpath'
coreutils-9.9/src/selinux.c:121:6: branch_true: following 'true' branch...
coreutils-9.9/src/selinux.c:124:17: branch_true: ...to here
coreutils-9.9/src/selinux.c:124:17: acquire_memory: allocated here
coreutils-9.9/src/selinux.c:125:10: branch_false: following 'false' branch...
coreutils-9.9/src/selinux.c:130:7: branch_false: ...to here
coreutils-9.9/src/selinux.c:130:6: branch_true: following 'true' branch...
coreutils-9.9/src/selinux.c:137:11: branch_true: ...to here
coreutils-9.9/src/selinux.c:161:3: throw: if 'freecon' throws an exception...
coreutils-9.9/src/selinux.c:161:3: danger: 'newpath' leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
#  159|     context_free (scontext);
#  160|     context_free (tcontext);
#  161|->   freecon (scon_raw);
#  162|     freecon (tcon_raw);
#  163|     free (newpath);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def445]
coreutils-9.9/src/selinux.c:162:3: warning[-Wanalyzer-malloc-leak]: leak of 'newpath'
coreutils-9.9/src/selinux.c:121:6: branch_true: following 'true' branch...
coreutils-9.9/src/selinux.c:124:17: branch_true: ...to here
coreutils-9.9/src/selinux.c:124:17: acquire_memory: allocated here
coreutils-9.9/src/selinux.c:125:10: branch_false: following 'false' branch...
coreutils-9.9/src/selinux.c:130:7: branch_false: ...to here
coreutils-9.9/src/selinux.c:130:6: branch_true: following 'true' branch...
coreutils-9.9/src/selinux.c:137:11: branch_true: ...to here
coreutils-9.9/src/selinux.c:162:3: throw: if 'freecon' throws an exception...
coreutils-9.9/src/selinux.c:162:3: danger: 'newpath' leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
#  160|     context_free (tcontext);
#  161|     freecon (scon_raw);
#  162|->   freecon (tcon_raw);
#  163|     free (newpath);
#  164|     errno = err;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def446]
coreutils-9.9/src/selinux.c:311:14: warning[-Wanalyzer-malloc-leak]: leak of 'newpath'
coreutils-9.9/src/selinux.c:290:6: branch_true: following 'true' branch...
coreutils-9.9/src/selinux.c:295:17: branch_true: ...to here
coreutils-9.9/src/selinux.c:295:17: acquire_memory: allocated here
coreutils-9.9/src/selinux.c:296:10: branch_false: following 'false' branch...
coreutils-9.9/src/selinux.c:301:6: branch_false: ...to here
coreutils-9.9/src/selinux.c:301:6: branch_true: following 'true' branch (when 'recurse != 0')...
coreutils-9.9/src/selinux.c:310:15: branch_true: ...to here
coreutils-9.9/src/selinux.c:311:14: throw: if 'xfts_open' throws an exception...
coreutils-9.9/src/selinux.c:311:14: danger: 'newpath' leaks here; was allocated at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
#  309|   
#  310|     char const *ftspath[2] = { path, nullptr };
#  311|->   FTS *fts = xfts_open ((char *const *) ftspath, FTS_PHYSICAL, nullptr);
#  312|   
#  313|     int err = 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def447]
coreutils-9.9/src/seq.c:478:14: warning[-Wanalyzer-malloc-leak]: leak of 's1'
coreutils-9.9/src/seq.c:547:1: enter_function: entry to 'main'
coreutils-9.9/src/seq.c:609:6: branch_false: following 'false' branch (when 'n_args > 0')...
coreutils-9.9/src/seq.c:615:6: branch_false: ...to here
coreutils-9.9/src/seq.c:615:6: branch_false: following 'false' branch (when 'n_args <= 3')...
coreutils-9.9/src/seq.c:621:6: branch_false: ...to here
coreutils-9.9/src/seq.c:621:6: branch_false: following 'false' branch (when 'format_str' is NULL)...
coreutils-9.9/src/seq.c:631:28: branch_false: ...to here
coreutils-9.9/src/seq.c:658:10: call_function: calling 'scan_arg' from 'main'
coreutils-9.9/src/seq.c:658:10: return_function: returning to 'main' from 'scan_arg'
coreutils-9.9/src/seq.c:681:6: branch_true: following 'true' branch...
coreutils-9.9/src/seq.c:681:7: branch_true: following 'true' branch...
coreutils-9.9/src/seq.c:681:7: branch_true: following 'true' branch...
coreutils-9.9/src/seq.c:681:7: branch_false: following 'false' branch...
coreutils-9.9/src/seq.c:681:7: branch_false: ...to here
coreutils-9.9/src/seq.c:681:7: branch_true: following 'true' branch...
coreutils-9.9/src/seq.c:688:10: branch_true: following 'true' branch...
coreutils-9.9/src/seq.c:689:14: branch_true: ...to here
coreutils-9.9/src/seq.c:692:10: branch_true: following 'true' branch...
coreutils-9.9/src/seq.c:693:14: branch_true: ...to here
coreutils-9.9/src/seq.c:697:10: branch_true: following 'true' branch...
coreutils-9.9/src/seq.c:698:9: call_function: calling 'seq_fast' from 'main'
#  476|   
#  477|     /* Copy A (sans NUL) to end of new buffer.  */
#  478|->   char *p0 = xmalloc (inc_size);
#  479|     char *endp = p0 + inc_size;
#  480|     char *p = memcpy (endp - p_len, a, p_len);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def448]
coreutils-9.9/src/seq.c:478:14: warning[-Wanalyzer-malloc-leak]: leak of 's2'
coreutils-9.9/src/seq.c:547:1: enter_function: entry to 'main'
coreutils-9.9/src/seq.c:609:6: branch_false: following 'false' branch (when 'n_args > 0')...
coreutils-9.9/src/seq.c:615:6: branch_false: ...to here
coreutils-9.9/src/seq.c:615:6: branch_false: following 'false' branch (when 'n_args <= 3')...
coreutils-9.9/src/seq.c:621:6: branch_false: ...to here
coreutils-9.9/src/seq.c:621:6: branch_false: following 'false' branch (when 'format_str' is NULL)...
coreutils-9.9/src/seq.c:631:28: branch_false: ...to here
coreutils-9.9/src/seq.c:658:10: call_function: calling 'scan_arg' from 'main'
coreutils-9.9/src/seq.c:658:10: return_function: returning to 'main' from 'scan_arg'
coreutils-9.9/src/seq.c:681:6: branch_true: following 'true' branch...
coreutils-9.9/src/seq.c:681:7: branch_true: following 'true' branch...
coreutils-9.9/src/seq.c:681:7: branch_true: following 'true' branch...
coreutils-9.9/src/seq.c:681:7: branch_false: following 'false' branch...
coreutils-9.9/src/seq.c:681:7: branch_false: ...to here
coreutils-9.9/src/seq.c:681:7: branch_true: following 'true' branch...
coreutils-9.9/src/seq.c:688:10: branch_true: following 'true' branch...
coreutils-9.9/src/seq.c:689:14: branch_true: ...to here
coreutils-9.9/src/seq.c:692:10: branch_true: following 'true' branch...
coreutils-9.9/src/seq.c:693:14: branch_true: ...to here
coreutils-9.9/src/seq.c:697:10: branch_true: following 'true' branch...
coreutils-9.9/src/seq.c:698:9: call_function: calling 'seq_fast' from 'main'
#  476|   
#  477|     /* Copy A (sans NUL) to end of new buffer.  */
#  478|->   char *p0 = xmalloc (inc_size);
#  479|     char *endp = p0 + inc_size;
#  480|     char *p = memcpy (endp - p_len, a, p_len);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def449]
coreutils-9.9/src/seq.c:498:15: warning[-Wanalyzer-malloc-leak]: leak of 'p0'
coreutils-9.9/src/seq.c:489:10: branch_true: following 'true' branch...
coreutils-9.9/src/seq.c:489:10: branch_true: ...to here
coreutils-9.9/src/seq.c:494:14: branch_true: following 'true' branch...
coreutils-9.9/src/seq.c:496:11: branch_true: ...to here
coreutils-9.9/src/seq.c:498:15: throw: if 'full_write' throws an exception...
coreutils-9.9/src/seq.c:498:15: danger: 'p0' leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  496|             memcpy (bufp, pp, buf_end - bufp);
#  497|             pp += buf_end - bufp;
#  498|->           if (full_write (STDOUT_FILENO, buf, sizeof buf) != sizeof buf)
#  499|               write_error ();
#  500|             bufp = buf;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def450]
coreutils-9.9/src/seq.c:511:26: warning[-Wanalyzer-malloc-leak]: leak of 'p0'
coreutils-9.9/src/seq.c:489:10: branch_true: following 'true' branch...
coreutils-9.9/src/seq.c:489:10: branch_true: ...to here
coreutils-9.9/src/seq.c:494:14: branch_false: following 'false' branch...
coreutils-9.9/src/seq.c:505:14: branch_false: ...to here
coreutils-9.9/src/seq.c:509:10: branch_true: following 'true' branch (when 'p0 == p')...
coreutils-9.9/src/seq.c:511:26: branch_true: ...to here
coreutils-9.9/src/seq.c:511:26: throw: if 'xpalloc' throws an exception...
coreutils-9.9/src/seq.c:511:26: danger: 'p0' leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#  509|         if (p == p0)
#  510|           {
#  511|->           char *new_p0 = xpalloc (nullptr, &inc_size, 1, -1, 1);
#  512|             idx_t saved_p_len = endp - p;
#  513|             endp = new_p0 + inc_size;

Error: GCC_ANALYZER_WARNING (CWE-124): [#def451]
coreutils-9.9/src/seq.c:529:7: warning[-Wanalyzer-out-of-bounds]: stack-based buffer underwrite
coreutils-9.9/src/seq.c:489:10: branch_false: following 'false' branch...
coreutils-9.9/src/seq.c:527:6: branch_true: following 'true' branch (when 'remaining != 0')...
coreutils-9.9/src/seq.c:529:7: branch_true: ...to here
coreutils-9.9/src/seq.c:529:7: danger: out-of-bounds write at byte -1 but 'buf' starts at byte 0
#  527|     if (remaining)
#  528|       {
#  529|->       bufp[-1] = *terminator;
#  530|         if (full_write (STDOUT_FILENO, buf, remaining) != remaining)
#  531|           write_error ();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def452]
coreutils-9.9/src/seq.c:530:11: warning[-Wanalyzer-malloc-leak]: leak of 'p0'
coreutils-9.9/src/seq.c:489:10: branch_false: following 'false' branch...
coreutils-9.9/src/seq.c:527:6: branch_true: following 'true' branch (when 'remaining != 0')...
coreutils-9.9/src/seq.c:529:7: branch_true: ...to here
coreutils-9.9/src/seq.c:530:11: throw: if 'full_write' throws an exception...
coreutils-9.9/src/seq.c:530:11: danger: 'p0' leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#  528|       {
#  529|         bufp[-1] = *terminator;
#  530|->       if (full_write (STDOUT_FILENO, buf, remaining) != remaining)
#  531|           write_error ();
#  532|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def453]
coreutils-9.9/src/seq.c:530:11: warning[-Wanalyzer-malloc-leak]: leak of 's1'
coreutils-9.9/src/seq.c:547:1: enter_function: entry to 'main'
coreutils-9.9/src/seq.c:609:6: branch_false: following 'false' branch (when 'n_args > 0')...
coreutils-9.9/src/seq.c:615:6: branch_false: ...to here
coreutils-9.9/src/seq.c:615:6: branch_false: following 'false' branch (when 'n_args <= 3')...
coreutils-9.9/src/seq.c:621:6: branch_false: ...to here
coreutils-9.9/src/seq.c:621:6: branch_false: following 'false' branch (when 'format_str' is NULL)...
coreutils-9.9/src/seq.c:631:28: branch_false: ...to here
coreutils-9.9/src/seq.c:658:10: call_function: calling 'scan_arg' from 'main'
coreutils-9.9/src/seq.c:658:10: return_function: returning to 'main' from 'scan_arg'
coreutils-9.9/src/seq.c:681:6: branch_true: following 'true' branch...
coreutils-9.9/src/seq.c:681:7: branch_true: following 'true' branch...
coreutils-9.9/src/seq.c:681:7: branch_true: following 'true' branch...
coreutils-9.9/src/seq.c:681:7: branch_false: following 'false' branch...
coreutils-9.9/src/seq.c:681:7: branch_false: ...to here
coreutils-9.9/src/seq.c:681:7: branch_true: following 'true' branch...
coreutils-9.9/src/seq.c:688:10: branch_true: following 'true' branch...
coreutils-9.9/src/seq.c:689:14: branch_true: ...to here
coreutils-9.9/src/seq.c:692:10: branch_true: following 'true' branch...
coreutils-9.9/src/seq.c:693:14: branch_true: ...to here
coreutils-9.9/src/seq.c:697:10: branch_true: following 'true' branch...
coreutils-9.9/src/seq.c:698:9: call_function: calling 'seq_fast' from 'main'
#  528|       {
#  529|         bufp[-1] = *terminator;
#  530|->       if (full_write (STDOUT_FILENO, buf, remaining) != remaining)
#  531|           write_error ();
#  532|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def454]
coreutils-9.9/src/seq.c:530:11: warning[-Wanalyzer-malloc-leak]: leak of 's2'
coreutils-9.9/src/seq.c:547:1: enter_function: entry to 'main'
coreutils-9.9/src/seq.c:609:6: branch_false: following 'false' branch (when 'n_args > 0')...
coreutils-9.9/src/seq.c:615:6: branch_false: ...to here
coreutils-9.9/src/seq.c:615:6: branch_false: following 'false' branch (when 'n_args <= 3')...
coreutils-9.9/src/seq.c:621:6: branch_false: ...to here
coreutils-9.9/src/seq.c:621:6: branch_false: following 'false' branch (when 'format_str' is NULL)...
coreutils-9.9/src/seq.c:631:28: branch_false: ...to here
coreutils-9.9/src/seq.c:658:10: call_function: calling 'scan_arg' from 'main'
coreutils-9.9/src/seq.c:658:10: return_function: returning to 'main' from 'scan_arg'
coreutils-9.9/src/seq.c:681:6: branch_true: following 'true' branch...
coreutils-9.9/src/seq.c:681:7: branch_true: following 'true' branch...
coreutils-9.9/src/seq.c:681:7: branch_true: following 'true' branch...
coreutils-9.9/src/seq.c:681:7: branch_false: following 'false' branch...
coreutils-9.9/src/seq.c:681:7: branch_false: ...to here
coreutils-9.9/src/seq.c:681:7: branch_true: following 'true' branch...
coreutils-9.9/src/seq.c:688:10: branch_true: following 'true' branch...
coreutils-9.9/src/seq.c:689:14: branch_true: ...to here
coreutils-9.9/src/seq.c:692:10: branch_true: following 'true' branch...
coreutils-9.9/src/seq.c:693:14: branch_true: ...to here
coreutils-9.9/src/seq.c:697:10: branch_true: following 'true' branch...
coreutils-9.9/src/seq.c:698:9: call_function: calling 'seq_fast' from 'main'
#  528|       {
#  529|         bufp[-1] = *terminator;
#  530|->       if (full_write (STDOUT_FILENO, buf, remaining) != remaining)
#  531|           write_error ();
#  532|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def455]
coreutils-9.9/src/seq.c:693:14: warning[-Wanalyzer-malloc-leak]: leak of 's1'
coreutils-9.9/src/seq.c:547:1: enter_function: entry to 'main'
coreutils-9.9/src/seq.c:609:6: branch_false: following 'false' branch (when 'n_args > 0')...
coreutils-9.9/src/seq.c:615:6: branch_false: ...to here
coreutils-9.9/src/seq.c:615:6: branch_false: following 'false' branch (when 'n_args <= 3')...
coreutils-9.9/src/seq.c:621:6: branch_false: ...to here
coreutils-9.9/src/seq.c:621:6: branch_false: following 'false' branch (when 'format_str' is NULL)...
coreutils-9.9/src/seq.c:631:28: branch_false: ...to here
coreutils-9.9/src/seq.c:658:10: call_function: calling 'scan_arg' from 'main'
coreutils-9.9/src/seq.c:658:10: return_function: returning to 'main' from 'scan_arg'
coreutils-9.9/src/seq.c:681:6: branch_true: following 'true' branch...
coreutils-9.9/src/seq.c:681:7: branch_true: following 'true' branch...
coreutils-9.9/src/seq.c:681:7: branch_true: following 'true' branch...
coreutils-9.9/src/seq.c:681:7: branch_false: following 'false' branch...
coreutils-9.9/src/seq.c:681:7: branch_false: ...to here
coreutils-9.9/src/seq.c:681:7: branch_true: following 'true' branch...
coreutils-9.9/src/seq.c:688:10: branch_true: following 'true' branch...
coreutils-9.9/src/seq.c:689:14: branch_true: ...to here
coreutils-9.9/src/seq.c:692:10: branch_true: following 'true' branch...
coreutils-9.9/src/seq.c:693:14: branch_true: ...to here
coreutils-9.9/src/seq.c:693:14: throw: if 'xstrdup' throws an exception...
coreutils-9.9/src/seq.c:693:14: danger: 's1' leaks here; was allocated at [(28)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/27)
#  691|           xalloc_die ();
#  692|         if (! isfinite (last.value))
#  693|->         s2 = xstrdup ("inf"); /* Ensure "inf" is used.  */
#  694|         else if (asprintf (&s2, "%0.Lf", last.value) < 0)
#  695|           xalloc_die ();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def456]
coreutils-9.9/src/seq.c:695:9: warning[-Wanalyzer-malloc-leak]: leak of 's1'
coreutils-9.9/src/seq.c:547:1: enter_function: entry to 'main'
coreutils-9.9/src/seq.c:609:6: branch_false: following 'false' branch (when 'n_args > 0')...
coreutils-9.9/src/seq.c:615:6: branch_false: ...to here
coreutils-9.9/src/seq.c:615:6: branch_false: following 'false' branch (when 'n_args <= 3')...
coreutils-9.9/src/seq.c:621:6: branch_false: ...to here
coreutils-9.9/src/seq.c:621:6: branch_false: following 'false' branch (when 'format_str' is NULL)...
coreutils-9.9/src/seq.c:631:28: branch_false: ...to here
coreutils-9.9/src/seq.c:658:10: call_function: calling 'scan_arg' from 'main'
coreutils-9.9/src/seq.c:658:10: return_function: returning to 'main' from 'scan_arg'
coreutils-9.9/src/seq.c:681:6: branch_true: following 'true' branch...
coreutils-9.9/src/seq.c:681:7: branch_true: following 'true' branch...
coreutils-9.9/src/seq.c:681:7: branch_true: following 'true' branch...
coreutils-9.9/src/seq.c:681:7: branch_false: following 'false' branch...
coreutils-9.9/src/seq.c:681:7: branch_false: ...to here
coreutils-9.9/src/seq.c:681:7: branch_true: following 'true' branch...
coreutils-9.9/src/seq.c:688:10: branch_true: following 'true' branch...
coreutils-9.9/src/seq.c:689:14: branch_true: ...to here
coreutils-9.9/src/seq.c:692:10: branch_false: following 'false' branch...
coreutils-9.9/src/seq.c:694:16: call_function: inlined call to 'asprintf' from 'main'
coreutils-9.9/src/seq.c:694:15: branch_true: following 'true' branch...
coreutils-9.9/src/seq.c:695:9: branch_true: ...to here
coreutils-9.9/src/seq.c:695:9: throw: if 'xalloc_die' throws an exception...
coreutils-9.9/src/seq.c:695:9: danger: 's1' leaks here; was allocated at [(28)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/27)
#  693|           s2 = xstrdup ("inf"); /* Ensure "inf" is used.  */
#  694|         else if (asprintf (&s2, "%0.Lf", last.value) < 0)
#  695|->         xalloc_die ();
#  696|   
#  697|         if (*s1 != '-' && *s2 != '-')

Error: GCC_ANALYZER_WARNING (CWE-401): [#def457]
coreutils-9.9/src/set-fields.c:256:15: warning[-Wanalyzer-malloc-leak]: leak of 'ximemdup0(num_start, (long int)strspn(<unknown>, "0123456789"))'
coreutils-9.9/src/set-fields.c:137:1: enter_function: entry to 'set_fields'
coreutils-9.9/src/set-fields.c:234:16: call_function: inlined call to 'c_isdigit' from 'set_fields'
coreutils-9.9/src/set-fields.c:239:14: branch_true: ...to here
coreutils-9.9/src/set-fields.c:239:14: branch_false: following 'false' branch (when 'in_digits == 0')...
coreutils-9.9/src/set-fields.c:240:13: branch_false: ...to here
coreutils-9.9/src/set-fields.c:256:15: throw: if 'quote' throws an exception...
coreutils-9.9/src/set-fields.c:256:15: danger: 'ximemdup0(num_start, (long int)strspn(<unknown>, "0123456789"))' leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
#  254|                 char *bad_num = ximemdup0 (num_start,
#  255|                                            strspn (num_start, "0123456789"));
#  256|->               error (0, 0, (options & SETFLD_ERRMSG_USE_POS)
#  257|                              ?_("byte/character offset %s is too large")
#  258|                              :_("field number %s is too large"),

Error: GCC_ANALYZER_WARNING (CWE-401): [#def458]
coreutils-9.9/src/shred.c:1253:11: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(quotearg_n_style_colon(0, 3, *<unknown>))'
coreutils-9.9/src/shred.c:1159:1: enter_function: entry to 'main'
coreutils-9.9/src/shred.c:1238:6: branch_false: following 'false' branch (when 'n_files != 0')...
coreutils-9.9/src/shred.c:1244:20: branch_false: ...to here
coreutils-9.9/src/shred.c:1245:6: branch_false: following 'false' branch...
coreutils-9.9/src/shred.c:1248:3: branch_false: ...to here
coreutils-9.9/src/shred.c:1250:15: branch_true: following 'true' branch (when 'i < n_files')...
coreutils-9.9/src/shred.c:1252:30: branch_true: ...to here
coreutils-9.9/src/shred.c:1253:10: branch_false: following 'false' branch (when the strings are non-equal)...
coreutils-9.9/src/shred.c:1260:17: branch_false: ...to here
coreutils-9.9/src/shred.c:1260:17: call_function: calling 'wipefile' from 'main'
# 1251|       {
# 1252|         char *qname = xstrdup (quotef (file[i]));
# 1253|->       if (streq (file[i], "-"))
# 1254|           {
# 1255|             ok &= wipefd (STDOUT_FILENO, qname, randint_source, &flags);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def459]
coreutils-9.9/src/shuf.c:272:7: warning[-Wanalyzer-malloc-leak]: leak of 'fread_file(in, 0, & used)'
coreutils-9.9/src/shuf.c:269:15: acquire_memory: allocated here
coreutils-9.9/src/shuf.c:269:6: branch_false: following 'false' branch...
coreutils-9.9/src/shuf.c:272:7: branch_false: ...to here
coreutils-9.9/src/shuf.c:281:19: throw: if 'xnmalloc' throws an exception...
coreutils-9.9/src/shuf.c:272:7: danger: 'fread_file(in, 0, & used)' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  270|       error (EXIT_FAILURE, errno, _("read error"));
#  271|   
#  272|->   if (used && buf[used - 1] != eolbyte)
#  273|       buf[used++] = eolbyte;
#  274|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def460]
coreutils-9.9/src/shuf.c:281:19: warning[-Wanalyzer-malloc-leak]: leak of 'p'
coreutils-9.9/src/shuf.c:363:1: enter_function: entry to 'main'
coreutils-9.9/src/shuf.c:482:6: branch_false: following 'false' branch...
coreutils-9.9/src/shuf.c:487:7: branch_false: ...to here
coreutils-9.9/src/shuf.c:487:6: branch_false: following 'false' branch...
coreutils-9.9/src/shuf.c:494:6: branch_false: ...to here
coreutils-9.9/src/shuf.c:494:6: branch_false: following 'false' branch (when 'head_lines != 0')...
coreutils-9.9/src/shuf.c:499:11: branch_false: ...to here
coreutils-9.9/src/shuf.c:499:11: branch_false: following 'false' branch (when 'echo == 0')...
coreutils-9.9/src/shuf.c:505:11: branch_false: ...to here
coreutils-9.9/src/shuf.c:505:11: branch_false: following 'false' branch (when 'input_range == 0')...
coreutils-9.9/src/shuf.c:513:10: branch_false: ...to here
coreutils-9.9/src/shuf.c:520:10: branch_true: following 'true' branch...
coreutils-9.9/src/shuf.c:523:21: branch_true: ...to here
coreutils-9.9/src/shuf.c:523:21: call_function: calling 'read_input' from 'main'
#  279|       n_lines++;
#  280|   
#  281|->   *pline = line = xnmalloc (n_lines + 1, sizeof *line);
#  282|   
#  283|     line[0] = p = buf;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def461]
coreutils-9.9/src/shuf.c:537:20: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
coreutils-9.9/src/shuf.c:363:1: enter_function: entry to 'main'
coreutils-9.9/src/shuf.c:482:6: branch_false: following 'false' branch...
coreutils-9.9/src/shuf.c:487:7: branch_false: ...to here
coreutils-9.9/src/shuf.c:487:6: branch_false: following 'false' branch...
coreutils-9.9/src/shuf.c:494:6: branch_false: ...to here
coreutils-9.9/src/shuf.c:494:6: branch_false: following 'false' branch (when 'head_lines != 0')...
coreutils-9.9/src/shuf.c:499:11: branch_false: ...to here
coreutils-9.9/src/shuf.c:499:11: branch_false: following 'false' branch (when 'echo == 0')...
coreutils-9.9/src/shuf.c:505:11: branch_false: ...to here
coreutils-9.9/src/shuf.c:505:11: branch_false: following 'false' branch (when 'input_range == 0')...
coreutils-9.9/src/shuf.c:513:10: branch_false: ...to here
coreutils-9.9/src/shuf.c:520:10: branch_true: following 'true' branch...
coreutils-9.9/src/shuf.c:523:21: branch_true: ...to here
coreutils-9.9/src/shuf.c:523:21: call_function: calling 'read_input' from 'main'
coreutils-9.9/src/shuf.c:523:21: return_function: returning to 'main' from 'read_input'
coreutils-9.9/src/shuf.c:537:20: danger: '<unknown>' leaks here; was allocated at [(16)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/15)
#  535|     idx_t ahead_lines = repeat || head_lines < n_lines ? head_lines : n_lines;
#  536|   
#  537|->   randint_source = randint_all_new (random_source,
#  538|                                       (use_reservoir_sampling || repeat
#  539|                                        ? SIZE_MAX

Error: GCC_ANALYZER_WARNING (CWE-401): [#def462]
coreutils-9.9/src/shuf.c:557:10: warning[-Wanalyzer-malloc-leak]: leak of 'randint_all_new(random_source,  <unknown>)'
coreutils-9.9/src/shuf.c:395:10: branch_true: following 'true' branch (when 'optc != -1')...
coreutils-9.9/src/shuf.c:397:5: branch_true: ...to here
coreutils-9.9/src/shuf.c:444:14: branch_true: following 'true' branch...
coreutils-9.9/src/shuf.c:445:26: branch_true: ...to here
coreutils-9.9/src/shuf.c:482:6: branch_false: following 'false' branch...
coreutils-9.9/src/shuf.c:487:7: branch_false: ...to here
coreutils-9.9/src/shuf.c:487:7: branch_false: following 'false' branch...
coreutils-9.9/src/shuf.c:537:20: acquire_memory: allocated here
coreutils-9.9/src/shuf.c:541:6: branch_false: following 'false' branch...
coreutils-9.9/src/shuf.c:545:6: branch_false: ...to here
coreutils-9.9/src/shuf.c:545:6: branch_false: following 'false' branch (when 'use_reservoir_sampling == 0')...
coreutils-9.9/src/shuf.c:557:10: branch_false: ...to here
coreutils-9.9/src/shuf.c:560:6: branch_false: following 'false' branch (when 'repeat == 0')...
coreutils-9.9/src/shuf.c:561:19: branch_false: ...to here
coreutils-9.9/src/shuf.c:561:19: throw: if 'randperm_new' throws an exception...
coreutils-9.9/src/shuf.c:557:10: danger: 'randint_all_new(random_source,  <unknown>)' leaks here; was allocated at [(9)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/8)
#  555|        doesn't have to worry about opening something other than
#  556|        stdin.  */
#  557|->   if (! (head_lines == 0 || echo || input_range || fclose (stdin) == 0))
#  558|       error (EXIT_FAILURE, errno, _("read error"));
#  559|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def463]
coreutils-9.9/src/sort.c:845:27: warning[-Wanalyzer-malloc-leak]: leak of 'fps'
coreutils-9.9/src/sort.c:4650:1: enter_function: entry to 'merge'
coreutils-9.9/src/sort.c:4653:10: branch_false: following 'false' branch...
coreutils-9.9/src/sort.c:4709:3: branch_false: ...to here
coreutils-9.9/src/sort.c:4719:24: call_function: calling 'open_input_files' from 'merge'
#  843|   
#  844|     test.pid = pid;
#  845|->   struct tempnode *node = hash_remove (proctab, &test);
#  846|     if (! node)
#  847|       return false;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def464]
coreutils-9.9/src/sort.c:921:35: warning[-Wanalyzer-malloc-leak]: leak of 'create_temp_file(&tempfd,  survive_fd_exhaustion)'
coreutils-9.9/src/sort.c:4650:1: enter_function: entry to 'merge'
coreutils-9.9/src/sort.c:4653:10: branch_true: following 'true' branch...
coreutils-9.9/src/sort.c:4653:10: branch_true: ...to here
coreutils-9.9/src/sort.c:4671:26: branch_true: following 'true' branch...
coreutils-9.9/src/sort.c:4674:35: call_function: inlined call to 'create_temp' from 'merge'
#  919|     int fd;
#  920|     int saved_errno;
#  921|->   char const *temp_dir = temp_dirs[temp_dir_index];
#  922|     size_t len = strlen (temp_dir);
#  923|     struct tempnode *node =

Error: GCC_ANALYZER_WARNING (CWE-401): [#def465]
coreutils-9.9/src/sort.c:929:11: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(len + 32 & 18446744073709551608)'
coreutils-9.9/src/sort.c:4650:1: enter_function: entry to 'merge'
coreutils-9.9/src/sort.c:4653:10: branch_true: following 'true' branch...
coreutils-9.9/src/sort.c:4653:10: branch_true: ...to here
coreutils-9.9/src/sort.c:4671:26: branch_true: following 'true' branch...
coreutils-9.9/src/sort.c:4674:35: call_function: inlined call to 'create_temp' from 'merge'
#  927|   
#  928|     memcpy (file, temp_dir, len);
#  929|->   memcpy (file + len, slashbase, sizeof slashbase);
#  930|     node->next = nullptr;
#  931|     if (++temp_dir_index == temp_dir_count)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def466]
coreutils-9.9/src/sort.c:1036:7: warning[-Wanalyzer-malloc-leak]: leak of 'fp'
coreutils-9.9/src/sort.c:4766:1: enter_function: entry to 'sort'
coreutils-9.9/src/sort.c:4775:10: branch_true: following 'true' branch (when 'nfiles != 0')...
coreutils-9.9/src/sort.c:4778:19: branch_true: ...to here
coreutils-9.9/src/sort.c:4779:18: call_function: calling 'xfopen' from 'sort'
# 1034|             fp = fd < 0 ? nullptr : fdopen (fd, how);
# 1035|           }
# 1036|->       fadvise (fp, FADVISE_SEQUENTIAL);
# 1037|       }
# 1038|     else if (*how == 'w')

Error: GCC_ANALYZER_WARNING (CWE-401): [#def467]
coreutils-9.9/src/sort.c:1542:16: warning[-Wanalyzer-malloc-leak]: leak of 'lc_time'
coreutils-9.9/src/sort.c:5035:1: enter_function: entry to 'main'
coreutils-9.9/src/sort.c:5091:6: branch_true: following 'true' branch...
coreutils-9.9/src/sort.c:5091:6: branch_true: ...to here
coreutils-9.9/src/sort.c:5114:3: call_function: calling 'inittables_mb' from 'main'
# 1540|     lc_ctype = setlocale (LC_CTYPE, "");
# 1541|     if (lc_ctype)
# 1542|->     lc_ctype = xstrdup (lc_ctype);
# 1543|   
# 1544|     if (lc_time && lc_ctype)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def468]
coreutils-9.9/src/sort.c:1551:11: warning[-Wanalyzer-malloc-leak]: leak of 'lc_ctype'
coreutils-9.9/src/sort.c:5035:1: enter_function: entry to 'main'
coreutils-9.9/src/sort.c:5091:6: branch_true: following 'true' branch...
coreutils-9.9/src/sort.c:5091:6: branch_true: ...to here
coreutils-9.9/src/sort.c:5114:3: call_function: calling 'inittables_mb' from 'main'
# 1549|     for (i = 0; i < MONTHS_PER_YEAR; i++)
# 1550|       {
# 1551|->       s = (char *) nl_langinfo (ABMON_1 + i);
# 1552|         s_len = strlen (s);
# 1553|         monthtab[i].name = name = (char *) xmalloc (s_len + 1);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def469]
coreutils-9.9/src/sort.c:1551:11: warning[-Wanalyzer-malloc-leak]: leak of 'lc_time'
coreutils-9.9/src/sort.c:5035:1: enter_function: entry to 'main'
coreutils-9.9/src/sort.c:5091:6: branch_true: following 'true' branch...
coreutils-9.9/src/sort.c:5091:6: branch_true: ...to here
coreutils-9.9/src/sort.c:5114:3: call_function: calling 'inittables_mb' from 'main'
# 1549|     for (i = 0; i < MONTHS_PER_YEAR; i++)
# 1550|       {
# 1551|->       s = (char *) nl_langinfo (ABMON_1 + i);
# 1552|         s_len = strlen (s);
# 1553|         monthtab[i].name = name = (char *) xmalloc (s_len + 1);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def470]
coreutils-9.9/src/sort.c:1553:42: warning[-Wanalyzer-malloc-leak]: leak of 'lc_ctype'
coreutils-9.9/src/sort.c:5035:1: enter_function: entry to 'main'
coreutils-9.9/src/sort.c:5091:6: branch_true: following 'true' branch...
coreutils-9.9/src/sort.c:5091:6: branch_true: ...to here
coreutils-9.9/src/sort.c:5114:3: call_function: calling 'inittables_mb' from 'main'
# 1551|         s = (char *) nl_langinfo (ABMON_1 + i);
# 1552|         s_len = strlen (s);
# 1553|->       monthtab[i].name = name = (char *) xmalloc (s_len + 1);
# 1554|         monthtab[i].val = i + 1;
# 1555|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def471]
coreutils-9.9/src/sort.c:1553:42: warning[-Wanalyzer-malloc-leak]: leak of 'lc_time'
coreutils-9.9/src/sort.c:5035:1: enter_function: entry to 'main'
coreutils-9.9/src/sort.c:5091:6: branch_true: following 'true' branch...
coreutils-9.9/src/sort.c:5091:6: branch_true: ...to here
coreutils-9.9/src/sort.c:5114:3: call_function: calling 'inittables_mb' from 'main'
# 1551|         s = (char *) nl_langinfo (ABMON_1 + i);
# 1552|         s_len = strlen (s);
# 1553|->       monthtab[i].name = name = (char *) xmalloc (s_len + 1);
# 1554|         monthtab[i].val = i + 1;
# 1555|   

Error: GCC_ANALYZER_WARNING (CWE-835): [#def472]
coreutils-9.9/src/sort.c:2260:41: warning[-Wanalyzer-infinite-loop]: infinite loop
# 2258|                             else
# 2259|   #endif
# 2260|->                           while (blanks[to_uchar (*line_start)])
# 2261|                               line_start++;
# 2262|                           }

Error: CPPCHECK_WARNING (CWE-457): [#def473]
coreutils-9.9/src/sort.c:4859: warning[uninitvar]: Uninitialized variable: buf.buf
# 4857|   
# 4858|    finish:
# 4859|->   free (buf.buf);
# 4860|   
# 4861|     if (! output_file_created)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def474]
coreutils-9.9/src/sort.c:4859:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'buf.buf'
coreutils-9.9/src/sort.c:4775:10: branch_false: following 'false' branch (when 'nfiles == 0')...
coreutils-9.9/src/sort.c:4858:2: branch_false: ...to here
coreutils-9.9/src/sort.c:4859:9: danger: use of uninitialized value 'buf.buf' here
# 4857|   
# 4858|    finish:
# 4859|->   free (buf.buf);
# 4860|   
# 4861|     if (! output_file_created)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def475]
coreutils-9.9/src/split.c:558:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_pair[0]'
coreutils-9.9/src/split.c:1094:1: enter_function: entry to 'ofile_open'
coreutils-9.9/src/split.c:1098:6: branch_true: following 'true' branch...
coreutils-9.9/src/split.c:1101:24: branch_true: ...to here
coreutils-9.9/src/split.c:1108:14: branch_true: following 'true' branch...
coreutils-9.9/src/split.c:1109:26: branch_true: ...to here
coreutils-9.9/src/split.c:1109:18: call_function: calling 'create' from 'ofile_open'
#  556|                                      filter_command, nullptr };
#  557|   
#  558|->       result = posix_spawn (&child_pid, shell_prog, &actions, &attr,
#  559|                               (char * const *) argv, environ);
#  560|         if (result != 0)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def476]
coreutils-9.9/src/split.c:567:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_pair[0]'
coreutils-9.9/src/split.c:1094:1: enter_function: entry to 'ofile_open'
coreutils-9.9/src/split.c:1098:6: branch_true: following 'true' branch...
coreutils-9.9/src/split.c:1101:24: branch_true: ...to here
coreutils-9.9/src/split.c:1108:14: branch_true: following 'true' branch...
coreutils-9.9/src/split.c:1109:26: branch_true: ...to here
coreutils-9.9/src/split.c:1109:18: call_function: calling 'create' from 'ofile_open'
#  565|         posix_spawn_file_actions_destroy (&actions);
#  566|   
#  567|->       if (close (fd_pair[0]) != 0)
#  568|           error (EXIT_FAILURE, errno, _("failed to close input pipe"));
#  569|         filter_pid = child_pid;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def477]
coreutils-9.9/src/stat.c:1711:24: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(dcgettext(0, "  File: %N\012  Size: %-10s\011Blocks: %-10b IO Block: %-6o %F\012", 5))'
coreutils-9.9/src/stat.c:1879:1: enter_function: entry to 'main'
coreutils-9.9/src/stat.c:1954:6: branch_false: following 'false' branch...
coreutils-9.9/src/stat.c:1960:6: branch_false: ...to here
coreutils-9.9/src/stat.c:1960:6: branch_false: following 'false' branch (when 'format' is NULL)...
coreutils-9.9/src/stat.c:1968:16: branch_false: ...to here
coreutils-9.9/src/stat.c:1968:16: call_function: calling 'default_format' from 'main'
# 1709|                 /* TRANSLATORS: This string uses format specifiers from
# 1710|                    'stat --help' without --file-system, and NOT from printf.  */
# 1711|->               format = xasprintf ("%s%s", format, _("\
# 1712|   " "Device: %Hd,%Ld\tInode: %-10i  Links: %h\n\
# 1713|   "));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def478]
coreutils-9.9/src/stat.c:1720:20: warning[-Wanalyzer-malloc-leak]: leak of 'format'
coreutils-9.9/src/stat.c:1879:1: enter_function: entry to 'main'
coreutils-9.9/src/stat.c:1954:6: branch_false: following 'false' branch...
coreutils-9.9/src/stat.c:1960:6: branch_false: ...to here
coreutils-9.9/src/stat.c:1960:6: branch_false: following 'false' branch (when 'format' is NULL)...
coreutils-9.9/src/stat.c:1968:16: branch_false: ...to here
coreutils-9.9/src/stat.c:1968:16: call_function: calling 'default_format' from 'main'
# 1718|             /* TRANSLATORS: This string uses format specifiers from
# 1719|                'stat --help' without --file-system, and NOT from printf.  */
# 1720|->           format = xasprintf ("%s%s", format, _("\
# 1721|   " "Access: (%04a/%10.10A)  Uid: (%5u/%8U)   Gid: (%5g/%8G)\n\
# 1722|   "));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def479]
coreutils-9.9/src/stat.c:1725:19: warning[-Wanalyzer-malloc-leak]: leak of 'xasprintf("%s%s", format,  dcgettext(0, "Access: (%04a/%10.10A)  Uid: (%5u/%8U)   Gid: (%5g/%8G)\012", 5))'
coreutils-9.9/src/stat.c:1879:1: enter_function: entry to 'main'
coreutils-9.9/src/stat.c:1954:6: branch_false: following 'false' branch...
coreutils-9.9/src/stat.c:1960:6: branch_false: ...to here
coreutils-9.9/src/stat.c:1960:6: branch_false: following 'false' branch (when 'format' is NULL)...
coreutils-9.9/src/stat.c:1968:16: branch_false: ...to here
coreutils-9.9/src/stat.c:1968:16: call_function: calling 'default_format' from 'main'
# 1723|             free (temp);
# 1724|   
# 1725|->           if (0 < is_selinux_enabled ())
# 1726|               {
# 1727|                 temp = format;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def480]
coreutils-9.9/src/stat.c:1730:24: warning[-Wanalyzer-malloc-leak]: leak of 'xasprintf("%s%s", format,  dcgettext(0, "Access: (%04a/%10.10A)  Uid: (%5u/%8U)   Gid: (%5g/%8G)\012", 5))'
coreutils-9.9/src/stat.c:1879:1: enter_function: entry to 'main'
coreutils-9.9/src/stat.c:1954:6: branch_false: following 'false' branch...
coreutils-9.9/src/stat.c:1960:6: branch_false: ...to here
coreutils-9.9/src/stat.c:1960:6: branch_false: following 'false' branch (when 'format' is NULL)...
coreutils-9.9/src/stat.c:1968:16: branch_false: ...to here
coreutils-9.9/src/stat.c:1968:16: call_function: calling 'default_format' from 'main'
# 1728|                 /* TRANSLATORS: This string uses format specifiers from
# 1729|                    'stat --help' without --file-system, and NOT from printf.  */
# 1730|->               format = xasprintf ("%s%s", format, _("Context: %C\n"));
# 1731|                 free (temp);
# 1732|               }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def481]
coreutils-9.9/src/stat.c:1735:20: warning[-Wanalyzer-malloc-leak]: leak of 'format'
coreutils-9.9/src/stat.c:1879:1: enter_function: entry to 'main'
coreutils-9.9/src/stat.c:1954:6: branch_false: following 'false' branch...
coreutils-9.9/src/stat.c:1960:6: branch_false: ...to here
coreutils-9.9/src/stat.c:1960:6: branch_false: following 'false' branch (when 'format' is NULL)...
coreutils-9.9/src/stat.c:1968:16: branch_false: ...to here
coreutils-9.9/src/stat.c:1968:16: call_function: calling 'default_format' from 'main'
# 1733|   
# 1734|             temp = format;
# 1735|->           format = xasprintf ("%s%s", format,
# 1736|                                 /* TRANSLATORS: This string uses format specifiers
# 1737|                                    from 'stat --help' without --file-system, and

Error: GCC_ANALYZER_WARNING (CWE-401): [#def482]
coreutils-9.9/src/stdbuf.c:146:24: warning[-Wanalyzer-malloc-leak]: leak of 'xreadlink("/proc/self/exe")'
coreutils-9.9/src/stdbuf.c:138:6: branch_false: following 'false' branch...
coreutils-9.9/src/stdbuf.c:144:20: branch_false: ...to here
coreutils-9.9/src/stdbuf.c:144:20: acquire_memory: allocated here
coreutils-9.9/src/stdbuf.c:145:10: branch_true: following 'true' branch...
coreutils-9.9/src/stdbuf.c:146:24: branch_true: ...to here
coreutils-9.9/src/stdbuf.c:146:24: throw: if 'dir_name' throws an exception...
coreutils-9.9/src/stdbuf.c:146:24: danger: 'xreadlink("/proc/self/exe")' leaks here; was allocated at [(4)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/3)
#  144|         char *path = xreadlink ("/proc/self/exe");
#  145|         if (path)
#  146|->         program_path = dir_name (path);
#  147|         else if ((path = getenv ("PATH")))
#  148|           {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def483]
coreutils-9.9/src/stdbuf.c:154:33: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(path)'
coreutils-9.9/src/stdbuf.c:138:6: branch_false: following 'false' branch...
coreutils-9.9/src/stdbuf.c:144:20: branch_false: ...to here
coreutils-9.9/src/stdbuf.c:145:10: branch_false: following 'false' branch...
coreutils-9.9/src/stdbuf.c:147:24: branch_false: ...to here
coreutils-9.9/src/stdbuf.c:147:15: branch_true: following 'true' branch (when 'path' is non-NULL)...
coreutils-9.9/src/stdbuf.c:150:18: branch_true: ...to here
coreutils-9.9/src/stdbuf.c:151:42: branch_true: following 'true' branch (when 'dir' is non-NULL)...
coreutils-9.9/src/stdbuf.c:154:33: branch_true: ...to here
coreutils-9.9/src/stdbuf.c:154:33: throw: if 'file_name_concat' throws an exception...
coreutils-9.9/src/stdbuf.c:154:33: danger: 'xstrdup(path)' leaks here; was allocated at [(8)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/7)
#  152|                  dir = strtok (nullptr, ":"))
#  153|               {
#  154|->               char *candidate = file_name_concat (dir, arg, nullptr);
#  155|                 if (access (candidate, X_OK) == 0)
#  156|                   {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def484]
coreutils-9.9/src/stdbuf.c:157:34: warning[-Wanalyzer-malloc-leak]: leak of 'file_name_concat(dir,  arg, 0)'
coreutils-9.9/src/stdbuf.c:138:6: branch_false: following 'false' branch...
coreutils-9.9/src/stdbuf.c:144:20: branch_false: ...to here
coreutils-9.9/src/stdbuf.c:145:10: branch_false: following 'false' branch...
coreutils-9.9/src/stdbuf.c:147:24: branch_false: ...to here
coreutils-9.9/src/stdbuf.c:147:15: branch_true: following 'true' branch (when 'path' is non-NULL)...
coreutils-9.9/src/stdbuf.c:150:18: branch_true: ...to here
coreutils-9.9/src/stdbuf.c:151:42: branch_true: following 'true' branch (when 'dir' is non-NULL)...
coreutils-9.9/src/stdbuf.c:154:33: branch_true: ...to here
coreutils-9.9/src/stdbuf.c:157:34: throw: if 'dir_name' throws an exception...
coreutils-9.9/src/stdbuf.c:157:34: danger: 'file_name_concat(dir,  arg, 0)' leaks here; was allocated at [(11)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/10)
#  155|                 if (access (candidate, X_OK) == 0)
#  156|                   {
#  157|->                   program_path = dir_name (candidate);
#  158|                     free (candidate);
#  159|                     break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def485]
coreutils-9.9/src/stdbuf.c:157:34: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(path)'
coreutils-9.9/src/stdbuf.c:138:6: branch_false: following 'false' branch...
coreutils-9.9/src/stdbuf.c:144:20: branch_false: ...to here
coreutils-9.9/src/stdbuf.c:145:10: branch_false: following 'false' branch...
coreutils-9.9/src/stdbuf.c:147:24: branch_false: ...to here
coreutils-9.9/src/stdbuf.c:147:15: branch_true: following 'true' branch (when 'path' is non-NULL)...
coreutils-9.9/src/stdbuf.c:150:18: branch_true: ...to here
coreutils-9.9/src/stdbuf.c:151:42: branch_true: following 'true' branch (when 'dir' is non-NULL)...
coreutils-9.9/src/stdbuf.c:154:33: branch_true: ...to here
coreutils-9.9/src/stdbuf.c:157:34: throw: if 'dir_name' throws an exception...
coreutils-9.9/src/stdbuf.c:157:34: danger: 'xstrdup(path)' leaks here; was allocated at [(8)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/7)
#  155|                 if (access (candidate, X_OK) == 0)
#  156|                   {
#  157|->                   program_path = dir_name (candidate);
#  158|                     free (candidate);
#  159|                     break;

Error: GCC_ANALYZER_WARNING (CWE-787): [#def486]
coreutils-9.9/src/stdbuf.c:173:3: warning[-Wanalyzer-out-of-bounds]: buffer over-read
coreutils-9.9/src/stdbuf.c:312:1: enter_function: entry to 'main'
coreutils-9.9/src/stdbuf.c:325:10: branch_true: following 'true' branch (when 'c != -1')...
coreutils-9.9/src/stdbuf.c:329:7: branch_true: ...to here
coreutils-9.9/src/stdbuf.c:335:24: call_function: inlined call to 'optc_to_fileno' from 'main'
#  171|     int ret = -1;
#  172|   
#  173|->   switch (c)
#  174|       {
#  175|       case 'e':

Error: GCC_ANALYZER_WARNING (CWE-401): [#def487]
coreutils-9.9/src/system.h:263:33: warning[-Wanalyzer-malloc-leak]: leak of 'fdopendir(__openat_alias(fd_cwd,  dir, 198912))'
coreutils-9.9/src/remove.c:168:1: enter_function: entry to 'get_dir_status'
coreutils-9.9/src/remove.c:170:6: branch_true: following 'true' branch...
coreutils-9.9/src/remove.c:171:54: branch_true: ...to here
coreutils-9.9/src/remove.c:171:19: call_function: calling 'directory_status' from 'get_dir_status'
#  261|     while (true)
#  262|       {
#  263|->       struct dirent const *dp = readdir (dirp);
#  264|         if (dp == nullptr || ! dot_or_dotdot (dp->d_name))
#  265|           return dp;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def488]
coreutils-9.9/src/system.h:702:10: warning[-Wanalyzer-malloc-leak]: leak of 'host'
coreutils-9.9/src/who.c:679:1: enter_function: entry to 'single_binary_main_who'
coreutils-9.9/src/who.c:814:7: call_function: calling 'who' from 'single_binary_main_who'
#  700|   timetostr (time_t t, char *buf)
#  701|   {
#  702|->   return (TYPE_SIGNED (time_t)
#  703|             ? imaxtostr (t, buf)
#  704|             : umaxtostr (t, buf));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def489]
coreutils-9.9/src/system.h:753:3: warning[-Wanalyzer-malloc-leak]: leak of 'p0'
coreutils-9.9/src/seq.c:459:1: enter_function: entry to 'seq_fast'
coreutils-9.9/src/seq.c:489:10: branch_true: following 'true' branch...
coreutils-9.9/src/seq.c:489:10: branch_true: ...to here
coreutils-9.9/src/seq.c:494:14: branch_true: following 'true' branch...
coreutils-9.9/src/seq.c:496:11: branch_true: ...to here
coreutils-9.9/src/seq.c:498:14: branch_true: following 'true' branch...
coreutils-9.9/src/seq.c:499:13: branch_true: ...to here
coreutils-9.9/src/seq.c:499:13: call_function: calling 'write_error' from 'seq_fast'
#  751|   {
#  752|     int saved_errno = errno;
#  753|->   fflush (stdout);    /* Last attempt to write any buffered data.  */
#  754|     fpurge (stdout);    /* Ensure nothing buffered that might induce an error. */
#  755|     clearerr (stdout);  /* Avoid extraneous diagnostic from close_stdout.  */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def490]
coreutils-9.9/src/system.h:754:3: warning[-Wanalyzer-malloc-leak]: leak of 'p0'
coreutils-9.9/src/seq.c:459:1: enter_function: entry to 'seq_fast'
coreutils-9.9/src/seq.c:489:10: branch_true: following 'true' branch...
coreutils-9.9/src/seq.c:489:10: branch_true: ...to here
coreutils-9.9/src/seq.c:494:14: branch_true: following 'true' branch...
coreutils-9.9/src/seq.c:496:11: branch_true: ...to here
coreutils-9.9/src/seq.c:498:14: branch_true: following 'true' branch...
coreutils-9.9/src/seq.c:499:13: branch_true: ...to here
coreutils-9.9/src/seq.c:499:13: call_function: calling 'write_error' from 'seq_fast'
#  752|     int saved_errno = errno;
#  753|     fflush (stdout);    /* Last attempt to write any buffered data.  */
#  754|->   fpurge (stdout);    /* Ensure nothing buffered that might induce an error. */
#  755|     clearerr (stdout);  /* Avoid extraneous diagnostic from close_stdout.  */
#  756|     error (EXIT_FAILURE, saved_errno, _("write error"));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def491]
coreutils-9.9/src/tail.c:455:7: warning[-Wanalyzer-malloc-leak]: leak of 'tmp'
coreutils-9.9/src/tail.c:1824:1: enter_function: entry to 'tail_bytes'
coreutils-9.9/src/tail.c:1832:6: branch_false: following 'false' branch...
coreutils-9.9/src/tail.c:1847:10: branch_false: ...to here
coreutils-9.9/src/tail.c:1893:10: branch_true: following 'true' branch (when 'end_pos < 0')...
coreutils-9.9/src/tail.c:1894:16: branch_true: ...to here
coreutils-9.9/src/tail.c:1894:16: call_function: calling 'pipe_bytes' from 'tail_bytes'
#  453|       {
#  454|         clearerr (stdout); /* To avoid redundant close_stdout diagnostic.  */
#  455|->       error (EXIT_FAILURE, errno, _("error writing %s"),
#  456|                quoteaf ("standard output"));
#  457|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def492]
coreutils-9.9/src/tail.c:547:25: warning[-Wanalyzer-malloc-leak]: leak of 'ximalloc(bufsize)'
coreutils-9.9/src/tail.c:1907:1: enter_function: entry to 'tail_lines'
coreutils-9.9/src/tail.c:1910:6: branch_false: following 'false' branch...
coreutils-9.9/src/tail.c:1930:26: branch_false: ...to here
coreutils-9.9/src/tail.c:1930:25: branch_false: following 'false' branch...
coreutils-9.9/src/tail.c:1930:49: branch_false: ...to here
coreutils-9.9/src/tail.c:1933:23: branch_true: following 'true' branch (when 'start_pos >= 0')...
coreutils-9.9/src/tail.c:1933:44: branch_true: ...to here
coreutils-9.9/src/tail.c:1934:14: branch_false: following 'false' branch (when 'end_pos >= 0')...
coreutils-9.9/src/tail.c:1936:17: branch_false: ...to here
coreutils-9.9/src/tail.c:1936:17: branch_true: following 'true' branch (when 'end_pos > start_pos')...
coreutils-9.9/src/tail.c:1937:17: branch_true: ...to here
coreutils-9.9/src/tail.c:1937:17: call_function: calling 'file_lines' from 'tail_lines'
#  545|     /* Set 'bytes_read' to the size of the last, probably partial, buffer;
#  546|        0 < 'bytes_read' <= 'bufsize'.  */
#  547|->   idx_t bytes_to_read = (pos - start_pos) % bufsize;
#  548|     if (bytes_to_read == 0)
#  549|       bytes_to_read = bufsize;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def493]
coreutils-9.9/src/tail.c:639:9: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(8216)'
coreutils-9.9/src/tail.c:1907:1: enter_function: entry to 'tail_lines'
coreutils-9.9/src/tail.c:1910:6: branch_false: following 'false' branch...
coreutils-9.9/src/tail.c:1930:26: branch_false: ...to here
coreutils-9.9/src/tail.c:1935:17: call_function: calling 'pipe_lines' from 'tail_lines'
#  637|     first->nbytes = first->nlines = 0;
#  638|     first->next = nullptr;
#  639|->   tmp = xmalloc (sizeof (LBUFFER));
#  640|   
#  641|     /* Input is always read into a fresh buffer.  */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def494]
coreutils-9.9/src/tail.c:687:19: warning[-Wanalyzer-malloc-leak]: leak of 'first'
coreutils-9.9/src/tail.c:1907:1: enter_function: entry to 'tail_lines'
coreutils-9.9/src/tail.c:1910:6: branch_false: following 'false' branch...
coreutils-9.9/src/tail.c:1930:26: branch_false: ...to here
coreutils-9.9/src/tail.c:1935:17: call_function: calling 'pipe_lines' from 'tail_lines'
#  685|               }
#  686|             else
#  687|->             tmp = xmalloc (sizeof (LBUFFER));
#  688|           }
#  689|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def495]
coreutils-9.9/src/tail.c:687:19: warning[-Wanalyzer-malloc-leak]: leak of 'tmp'
coreutils-9.9/src/tail.c:1907:1: enter_function: entry to 'tail_lines'
coreutils-9.9/src/tail.c:1910:6: branch_false: following 'false' branch...
coreutils-9.9/src/tail.c:1930:26: branch_false: ...to here
coreutils-9.9/src/tail.c:1935:17: call_function: calling 'pipe_lines' from 'tail_lines'
#  685|               }
#  686|             else
#  687|->             tmp = xmalloc (sizeof (LBUFFER));
#  688|           }
#  689|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def496]
coreutils-9.9/src/tail.c:696:7: warning[-Wanalyzer-malloc-leak]: leak of 'first'
coreutils-9.9/src/tail.c:1907:1: enter_function: entry to 'tail_lines'
coreutils-9.9/src/tail.c:1910:6: branch_false: following 'false' branch...
coreutils-9.9/src/tail.c:1930:26: branch_false: ...to here
coreutils-9.9/src/tail.c:1935:17: call_function: calling 'pipe_lines' from 'tail_lines'
#  694|       {
#  695|         ret = -1 - errno;
#  696|->       error (0, errno, _("error reading %s"), quoteaf (prettyname));
#  697|         goto free_lbuffers;
#  698|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def497]
coreutils-9.9/src/tail.c:781:9: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(8208)'
coreutils-9.9/src/tail.c:1824:1: enter_function: entry to 'tail_bytes'
coreutils-9.9/src/tail.c:1832:6: branch_false: following 'false' branch...
coreutils-9.9/src/tail.c:1847:10: branch_false: ...to here
coreutils-9.9/src/tail.c:1893:10: branch_true: following 'true' branch (when 'end_pos < 0')...
coreutils-9.9/src/tail.c:1894:16: branch_true: ...to here
coreutils-9.9/src/tail.c:1894:16: call_function: calling 'pipe_bytes' from 'tail_bytes'
#  779|     first->nbytes = 0;
#  780|     first->next = nullptr;
#  781|->   tmp = xmalloc (sizeof (CBUFFER));
#  782|   
#  783|     /* Input is always read into a fresh buffer.  */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def498]
coreutils-9.9/src/tail.c:818:21: warning[-Wanalyzer-malloc-leak]: leak of 'first'
coreutils-9.9/src/tail.c:1824:1: enter_function: entry to 'tail_bytes'
coreutils-9.9/src/tail.c:1832:6: branch_false: following 'false' branch...
coreutils-9.9/src/tail.c:1847:10: branch_false: ...to here
coreutils-9.9/src/tail.c:1893:10: branch_true: following 'true' branch (when 'end_pos < 0')...
coreutils-9.9/src/tail.c:1894:16: branch_true: ...to here
coreutils-9.9/src/tail.c:1894:16: call_function: calling 'pipe_bytes' from 'tail_bytes'
#  816|             else
#  817|               {
#  818|->               tmp = xmalloc (sizeof (CBUFFER));
#  819|               }
#  820|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def499]
coreutils-9.9/src/tail.c:818:21: warning[-Wanalyzer-malloc-leak]: leak of 'tmp'
coreutils-9.9/src/tail.c:1824:1: enter_function: entry to 'tail_bytes'
coreutils-9.9/src/tail.c:1832:6: branch_false: following 'false' branch...
coreutils-9.9/src/tail.c:1847:10: branch_false: ...to here
coreutils-9.9/src/tail.c:1893:10: branch_true: following 'true' branch (when 'end_pos < 0')...
coreutils-9.9/src/tail.c:1894:16: branch_true: ...to here
coreutils-9.9/src/tail.c:1894:16: call_function: calling 'pipe_bytes' from 'tail_bytes'
#  816|             else
#  817|               {
#  818|->               tmp = xmalloc (sizeof (CBUFFER));
#  819|               }
#  820|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def500]
coreutils-9.9/src/tail.c:828:7: warning[-Wanalyzer-malloc-leak]: leak of 'first'
coreutils-9.9/src/tail.c:1824:1: enter_function: entry to 'tail_bytes'
coreutils-9.9/src/tail.c:1832:6: branch_false: following 'false' branch...
coreutils-9.9/src/tail.c:1847:10: branch_false: ...to here
coreutils-9.9/src/tail.c:1893:10: branch_true: following 'true' branch (when 'end_pos < 0')...
coreutils-9.9/src/tail.c:1894:16: branch_true: ...to here
coreutils-9.9/src/tail.c:1894:16: call_function: calling 'pipe_bytes' from 'tail_bytes'
#  826|       {
#  827|         read_pos = -1 - errno;
#  828|->       error (0, errno, _("error reading %s"), quoteaf (prettyname));
#  829|         goto free_cbuffers;
#  830|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def501]
coreutils-9.9/src/tail.c:845:8: warning[-Wanalyzer-malloc-leak]: leak of 'tmp'
coreutils-9.9/src/tail.c:1824:1: enter_function: entry to 'tail_bytes'
coreutils-9.9/src/tail.c:1832:6: branch_false: following 'false' branch...
coreutils-9.9/src/tail.c:1847:10: branch_false: ...to here
coreutils-9.9/src/tail.c:1893:10: branch_true: following 'true' branch (when 'end_pos < 0')...
coreutils-9.9/src/tail.c:1894:16: branch_true: ...to here
coreutils-9.9/src/tail.c:1894:16: call_function: calling 'pipe_bytes' from 'tail_bytes'
#  843|     xwrite_stdout (&tmp->buffer[i], tmp->nbytes - i);
#  844|   
#  845|->   for (tmp = tmp->next; tmp; tmp = tmp->next)
#  846|       xwrite_stdout (tmp->buffer, tmp->nbytes);
#  847|   

Error: CPPCHECK_WARNING (CWE-758): [#def502]
coreutils-9.9/src/tail.c:2372: warning[objectIndex]: The address of variable 'dummy_stdin' might be accessed at non-zero index.
# 2370|   
# 2371|       for (int i = 0; i < n_files; i++)
# 2372|->       if (streq (file[i], "-"))
# 2373|           found_hyphen = true;
# 2374|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def503]
coreutils-9.9/src/tee.c:212:7: warning[-Wanalyzer-malloc-leak]: leak of 'out_pollable'
coreutils-9.9/src/tee.c:226:1: enter_function: entry to 'tee_files'
coreutils-9.9/src/tee.c:249:6: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.9/src/tee.c:250:20: branch_true: ...to here
coreutils-9.9/src/tee.c:253:6: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.9/src/tee.c:254:23: branch_true: ...to here
coreutils-9.9/src/tee.c:281:10: branch_true: following 'true' branch (when 'n_outputs != 0')...
coreutils-9.9/src/tee.c:283:10: branch_true: ...to here
coreutils-9.9/src/tee.c:283:10: branch_true: following 'true' branch...
coreutils-9.9/src/tee.c:290:14: branch_true: following 'true' branch...
coreutils-9.9/src/tee.c:292:15: branch_true: ...to here
coreutils-9.9/src/tee.c:293:19: call_function: calling 'fail_output' from 'tee_files'
#  210|     if (fail)
#  211|       {
#  212|->       error (output_error == output_error_exit
#  213|                || output_error == output_error_exit_nopipe,
#  214|                w_errno, "%s", quotef (files[i]));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def504]
coreutils-9.9/src/tee.c:250:20: warning[-Wanalyzer-malloc-leak]: leak of 'xnmalloc((long unsigned int)(nfiles + 1), 8)'
coreutils-9.9/src/tee.c:249:6: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.9/src/tee.c:250:20: branch_true: ...to here
coreutils-9.9/src/tee.c:250:20: throw: if 'xnmalloc' throws an exception...
coreutils-9.9/src/tee.c:250:20: danger: 'xnmalloc((long unsigned int)(nfiles + 1), 8)' leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  248|     descriptors = xnmalloc (nfiles + 1, sizeof *descriptors);
#  249|     if (pipe_check)
#  250|->     out_pollable = xnmalloc (nfiles + 1, sizeof *out_pollable);
#  251|     files--;
#  252|     descriptors[0] = stdout;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def505]
coreutils-9.9/src/tee.c:252:3: warning[-Wanalyzer-malloc-leak]: leak of 'xnmalloc((long unsigned int)(nfiles + 1), 8)'
coreutils-9.9/src/tee.c:249:6: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.9/src/tee.c:250:20: branch_true: ...to here
coreutils-9.9/src/tee.c:253:6: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.9/src/tee.c:254:23: branch_true: ...to here
coreutils-9.9/src/tee.c:254:23: throw: if 'iopoll_output_ok' throws an exception...
coreutils-9.9/src/tee.c:252:3: danger: 'xnmalloc((long unsigned int)(nfiles + 1), 8)' leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  250|       out_pollable = xnmalloc (nfiles + 1, sizeof *out_pollable);
#  251|     files--;
#  252|->   descriptors[0] = stdout;
#  253|     if (pipe_check)
#  254|       out_pollable[0] = iopoll_output_ok (fileno (descriptors[0]));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def506]
coreutils-9.9/src/tee.c:254:23: warning[-Wanalyzer-malloc-leak]: leak of 'out_pollable'
coreutils-9.9/src/tee.c:249:6: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.9/src/tee.c:250:20: branch_true: ...to here
coreutils-9.9/src/tee.c:253:6: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.9/src/tee.c:254:23: branch_true: ...to here
coreutils-9.9/src/tee.c:254:23: throw: if 'iopoll_output_ok' throws an exception...
coreutils-9.9/src/tee.c:254:23: danger: 'out_pollable' leaks here; was allocated at [(3)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/2)
#  252|     descriptors[0] = stdout;
#  253|     if (pipe_check)
#  254|->     out_pollable[0] = iopoll_output_ok (fileno (descriptors[0]));
#  255|     files[0] = bad_cast (_("standard output"));
#  256|     setvbuf (stdout, nullptr, _IONBF, 0);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def507]
coreutils-9.9/src/tee.c:262:25: warning[-Wanalyzer-malloc-leak]: leak of 'out_pollable'
coreutils-9.9/src/tee.c:249:6: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.9/src/tee.c:250:20: branch_true: ...to here
coreutils-9.9/src/tee.c:253:6: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.9/src/tee.c:254:23: branch_true: ...to here
coreutils-9.9/src/tee.c:259:15: branch_true: following 'true' branch (when 'i <= nfiles')...
coreutils-9.9/src/tee.c:262:37: branch_true: ...to here
coreutils-9.9/src/tee.c:262:25: throw: if 'fopen_safer' throws an exception...
coreutils-9.9/src/tee.c:262:25: danger: 'out_pollable' leaks here; was allocated at [(3)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/2)
#  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): [#def508]
coreutils-9.9/src/tee.c:267:11: warning[-Wanalyzer-malloc-leak]: leak of 'out_pollable'
coreutils-9.9/src/tee.c:249:6: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.9/src/tee.c:250:20: branch_true: ...to here
coreutils-9.9/src/tee.c:253:6: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.9/src/tee.c:254:23: branch_true: ...to here
coreutils-9.9/src/tee.c:259:15: branch_true: following 'true' branch (when 'i <= nfiles')...
coreutils-9.9/src/tee.c:262:37: branch_true: ...to here
coreutils-9.9/src/tee.c:263:10: branch_true: following 'true' branch...
coreutils-9.9/src/tee.c:265:14: branch_true: ...to here
coreutils-9.9/src/tee.c:265:14: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.9/src/tee.c:266:25: branch_true: ...to here
coreutils-9.9/src/tee.c:267:11: branch_true: following 'true' branch...
coreutils-9.9/src/tee.c:267:11: branch_true: ...to here
coreutils-9.9/src/tee.c:267:11: throw: if 'quotearg_n_style_colon' throws an exception...
coreutils-9.9/src/tee.c:267:11: danger: 'out_pollable' leaks here; was allocated at [(3)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/2)
#  265|             if (pipe_check)
#  266|               out_pollable[i] = false;
#  267|->           error (output_error == output_error_exit
#  268|                    || output_error == output_error_exit_nopipe,
#  269|                    errno, "%s", quotef (files[i]));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def509]
coreutils-9.9/src/tee.c:275:25: warning[-Wanalyzer-malloc-leak]: leak of 'fopen_safer(*<unknown>,  mode_string)'
coreutils-9.9/src/tee.c:249:6: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.9/src/tee.c:250:20: branch_true: ...to here
coreutils-9.9/src/tee.c:253:6: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.9/src/tee.c:254:23: branch_true: ...to here
coreutils-9.9/src/tee.c:259:15: branch_true: following 'true' branch (when 'i <= nfiles')...
coreutils-9.9/src/tee.c:262:37: branch_true: ...to here
coreutils-9.9/src/tee.c:262:25: acquire_memory: allocated here
coreutils-9.9/src/tee.c:263:10: branch_false: following 'false' branch...
coreutils-9.9/src/tee.c:274:14: branch_false: ...to here
coreutils-9.9/src/tee.c:274:14: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.9/src/tee.c:275:31: branch_true: ...to here
coreutils-9.9/src/tee.c:275:31: throw: if 'iopoll_output_ok' throws an exception...
coreutils-9.9/src/tee.c:275:25: danger: 'fopen_safer(*<unknown>,  mode_string)' leaks here; was allocated at [(7)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/6)
#  273|           {
#  274|             if (pipe_check)
#  275|->             out_pollable[i] = iopoll_output_ok (fileno (descriptors[i]));
#  276|             setvbuf (descriptors[i], nullptr, _IONBF, 0);
#  277|             n_outputs++;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def510]
coreutils-9.9/src/tee.c:275:31: warning[-Wanalyzer-malloc-leak]: leak of 'out_pollable'
coreutils-9.9/src/tee.c:249:6: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.9/src/tee.c:250:20: branch_true: ...to here
coreutils-9.9/src/tee.c:253:6: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.9/src/tee.c:254:23: branch_true: ...to here
coreutils-9.9/src/tee.c:259:15: branch_true: following 'true' branch (when 'i <= nfiles')...
coreutils-9.9/src/tee.c:262:37: branch_true: ...to here
coreutils-9.9/src/tee.c:263:10: branch_false: following 'false' branch...
coreutils-9.9/src/tee.c:274:14: branch_false: ...to here
coreutils-9.9/src/tee.c:274:14: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.9/src/tee.c:275:31: branch_true: ...to here
coreutils-9.9/src/tee.c:275:31: throw: if 'iopoll_output_ok' throws an exception...
coreutils-9.9/src/tee.c:275:31: danger: 'out_pollable' leaks here; was allocated at [(3)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/2)
#  273|           {
#  274|             if (pipe_check)
#  275|->             out_pollable[i] = iopoll_output_ok (fileno (descriptors[i]));
#  276|             setvbuf (descriptors[i], nullptr, _IONBF, 0);
#  277|             n_outputs++;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def511]
coreutils-9.9/src/tee.c:286:21: warning[-Wanalyzer-malloc-leak]: leak of 'out_pollable'
coreutils-9.9/src/tee.c:249:6: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.9/src/tee.c:250:20: branch_true: ...to here
coreutils-9.9/src/tee.c:253:6: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.9/src/tee.c:254:23: branch_true: ...to here
coreutils-9.9/src/tee.c:281:10: branch_true: following 'true' branch (when 'n_outputs != 0')...
coreutils-9.9/src/tee.c:283:10: branch_true: ...to here
coreutils-9.9/src/tee.c:283:10: branch_true: following 'true' branch...
coreutils-9.9/src/tee.c:286:21: throw: if 'iopoll' throws an exception...
coreutils-9.9/src/tee.c:286:21: danger: 'out_pollable' leaks here; was allocated at [(3)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/2)
#  284|           {
#  285|             /* Monitor for input, or errors on first valid output.  */
#  286|->           int err = iopoll (STDIN_FILENO, fileno (descriptors[first_out]),
#  287|                               true);
#  288|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def512]
coreutils-9.9/src/tee.c:316:18: warning[-Wanalyzer-malloc-leak]: leak of 'out_pollable'
coreutils-9.9/src/tee.c:249:6: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.9/src/tee.c:250:20: branch_true: ...to here
coreutils-9.9/src/tee.c:253:6: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.9/src/tee.c:254:23: branch_true: ...to here
coreutils-9.9/src/tee.c:281:10: branch_true: following 'true' branch (when 'n_outputs != 0')...
coreutils-9.9/src/tee.c:283:10: branch_true: ...to here
coreutils-9.9/src/tee.c:283:10: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.9/src/tee.c:283:37: branch_true: ...to here
coreutils-9.9/src/tee.c:309:10: branch_false: following 'false' branch...
coreutils-9.9/src/tee.c:309:10: branch_false: ...to here
coreutils-9.9/src/tee.c:316:18: throw: if 'fwrite_wait' throws an exception...
coreutils-9.9/src/tee.c:316:18: danger: 'out_pollable' leaks here; was allocated at [(3)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/2)
#  314|         for (i = 0; i <= nfiles; i++)
#  315|           if (descriptors[i]
#  316|->             && ! fwrite_wait (buffer, bytes_read, descriptors[i]))
#  317|             {
#  318|               if (fail_output (descriptors, files, i))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def513]
coreutils-9.9/src/temp-stream.c:101:15: warning[-Wanalyzer-malloc-leak]: leak of 'realloc(tempbuf,  tempbuf_len)'
coreutils-9.9/src/temp-stream.c:84:1: enter_function: entry to 'temp_stream'
coreutils-9.9/src/temp-stream.c:88:6: branch_true: following 'true' branch...
coreutils-9.9/src/temp-stream.c:88:6: branch_true: ...to here
coreutils-9.9/src/temp-stream.c:95:28: call_function: inlined call to 'rpl_realloc' from 'temp_stream'
coreutils-9.9/src/temp-stream.c:95:14: branch_false: following 'false' branch...
coreutils-9.9/src/temp-stream.c:101:15: branch_false: ...to here
coreutils-9.9/src/temp-stream.c:101:15: throw: if 'path_search' throws an exception...
coreutils-9.9/src/temp-stream.c:101:15: danger: 'realloc(tempbuf,  tempbuf_len)' leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#   99|               }
#  100|   
#  101|->           if (path_search (tempbuf, tempbuf_len, nullptr, "cutmp", true) == 0)
#  102|               break;
#  103|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def514]
coreutils-9.9/src/test.c:102:3: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
coreutils-9.9/src/test.c:784:1: enter_function: entry to 'main'
coreutils-9.9/src/test.c:829:9: call_function: calling 'test_syntax_error' from 'main'
#  100|     va_list ap;
#  101|     va_start (ap, format);
#  102|->   verror (0, 0, format, ap);
#  103|     test_exit (TEST_FAILURE);
#  104|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def515]
coreutils-9.9/src/tr.c:437:17: warning[-Wanalyzer-malloc-leak]: leak of 'es.s'
coreutils-9.9/src/tr.c:1673:1: enter_function: entry to 'main'
coreutils-9.9/src/tr.c:1733:6: branch_false: following 'false' branch (when 'min_operands <= non_option_args')...
coreutils-9.9/src/tr.c:1749:6: branch_false: ...to here
coreutils-9.9/src/tr.c:1749:6: branch_false: following 'false' branch (when 'max_operands >= non_option_args')...
coreutils-9.9/src/tr.c:1759:3: call_function: inlined call to 'spec_init' from 'main'
coreutils-9.9/src/tr.c:1760:8: call_function: calling 'parse_str' from 'main'
#  435|   
#  436|     es->s = xmalloc (len);
#  437|->   es->escaped = xcalloc (len, sizeof es->escaped[0]);
#  438|   
#  439|     unsigned int j = 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def516]
coreutils-9.9/src/tsort.c:106:14: warning[-Wanalyzer-malloc-leak]: leak of 'xzalloc(56)'
coreutils-9.9/src/tsort.c:531:1: enter_function: entry to 'main'
coreutils-9.9/src/tsort.c:568:6: branch_false: following 'false' branch...
coreutils-9.9/src/tsort.c:574:3: branch_false: ...to here
coreutils-9.9/src/tsort.c:574:3: call_function: calling 'tsort' from 'main'
#  104|     struct item *k = xzalloc (sizeof *k);
#  105|     if (str)
#  106|->     k->str = xstrdup (str);
#  107|     return k;
#  108|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def517]
coreutils-9.9/src/tsort.c:440:22: warning[-Wanalyzer-malloc-leak]: leak of 'xzalloc(56)'
coreutils-9.9/src/tsort.c:531:1: enter_function: entry to 'main'
coreutils-9.9/src/tsort.c:568:6: branch_false: following 'false' branch...
coreutils-9.9/src/tsort.c:574:3: branch_false: ...to here
coreutils-9.9/src/tsort.c:574:3: call_function: calling 'tsort' from 'main'
#  438|     struct item *root = new_item (nullptr);
#  439|   
#  440|->   if (!is_stdin && ! freopen (file, "r", stdin))
#  441|       error (EXIT_FAILURE, errno, "%s", quotef (file));
#  442|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def518]
coreutils-9.9/src/tsort.c:443:3: warning[-Wanalyzer-malloc-leak]: leak of 'xzalloc(56)'
coreutils-9.9/src/tsort.c:531:1: enter_function: entry to 'main'
coreutils-9.9/src/tsort.c:568:6: branch_false: following 'false' branch...
coreutils-9.9/src/tsort.c:574:3: branch_false: ...to here
coreutils-9.9/src/tsort.c:574:3: call_function: calling 'tsort' from 'main'
#  441|       error (EXIT_FAILURE, errno, "%s", quotef (file));
#  442|   
#  443|->   fadvise (stdin, FADVISE_SEQUENTIAL);
#  444|   
#  445|     init_tokenbuffer (&tokenbuffer);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def519]
coreutils-9.9/src/tsort.c:450:20: warning[-Wanalyzer-malloc-leak]: leak of 'j'
coreutils-9.9/src/tsort.c:531:1: enter_function: entry to 'main'
coreutils-9.9/src/tsort.c:568:6: branch_false: following 'false' branch...
coreutils-9.9/src/tsort.c:574:3: branch_false: ...to here
coreutils-9.9/src/tsort.c:574:3: call_function: calling 'tsort' from 'main'
#  448|       {
#  449|         /* T2. Next Relation.  */
#  450|->       size_t len = readtoken (stdin, DELIM, sizeof (DELIM) - 1, &tokenbuffer);
#  451|         if (len == (size_t) -1)
#  452|           {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def520]
coreutils-9.9/src/unexpand.c:145:5: warning[-Wanalyzer-malloc-leak]: leak of 'ximalloc((long int)((long unsigned int)max_column_width * 32))'
coreutils-9.9/src/unexpand.c:124:6: branch_false: following 'false' branch...
coreutils-9.9/src/unexpand.c:127:3: branch_false: ...to here
coreutils-9.9/src/unexpand.c:144:6: branch_true: following 'true' branch...
coreutils-9.9/src/unexpand.c:145:5: branch_true: ...to here
coreutils-9.9/src/unexpand.c:145:5: throw: if 'print_bom' throws an exception...
coreutils-9.9/src/unexpand.c:145:5: danger: 'ximalloc((long int)((long unsigned int)max_column_width * 32))' leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
#  143|   
#  144|     if (found_bom == true)
#  145|->     print_bom();
#  146|   
#  147|     while (true)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def521]
coreutils-9.9/src/users.c:53:11: warning[-Wanalyzer-malloc-leak]: leak of 'xinmalloc(n, 8)'
coreutils-9.9/src/users.c:51:10: branch_true: following 'true' branch (when 'n != 0')...
coreutils-9.9/src/users.c:53:11: branch_true: ...to here
coreutils-9.9/src/users.c:53:10: branch_true: following 'true' branch...
coreutils-9.9/src/users.c:57:26: throw: if 'extract_trimmed_name' throws an exception...
coreutils-9.9/src/users.c:53:11: danger: 'xinmalloc(n, 8)' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   51|     while (n--)
#   52|       {
#   53|->       if (IS_USER_PROCESS (this))
#   54|           {
#   55|             char *trimmed_name;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def522]
coreutils-9.9/src/users.c:59:12: warning[-Wanalyzer-malloc-leak]: leak of 'extract_trimmed_name(this)'
coreutils-9.9/src/users.c:51:10: branch_true: following 'true' branch (when 'n != 0')...
coreutils-9.9/src/users.c:53:11: branch_true: ...to here
coreutils-9.9/src/users.c:53:10: branch_true: following 'true' branch...
coreutils-9.9/src/users.c:51:10: branch_true: following 'true' branch (when 'n != 0')...
coreutils-9.9/src/users.c:53:11: branch_true: ...to here
coreutils-9.9/src/users.c:53:10: branch_true: following 'true' branch...
coreutils-9.9/src/users.c:57:26: throw: if 'extract_trimmed_name' throws an exception...
coreutils-9.9/src/users.c:59:12: danger: 'extract_trimmed_name(this)' leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
#   57|             trimmed_name = extract_trimmed_name (this);
#   58|   
#   59|->           u[n_entries] = trimmed_name;
#   60|             ++n_entries;
#   61|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def523]
coreutils-9.9/src/users.c:65:3: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
coreutils-9.9/src/users.c:51:10: branch_true: following 'true' branch (when 'n != 0')...
coreutils-9.9/src/users.c:53:11: branch_true: ...to here
coreutils-9.9/src/users.c:53:10: branch_true: following 'true' branch...
coreutils-9.9/src/users.c:51:10: branch_false: following 'false' branch (when 'n == 0')...
coreutils-9.9/src/users.c:65:3: branch_false: ...to here
coreutils-9.9/src/users.c:65:3: danger: '<unknown>' leaks here; was allocated at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
#   63|       }
#   64|   
#   65|->   qsort (u, n_entries, sizeof (u[0]), userid_compare);
#   66|   
#   67|     for (i = 0; i < n_entries; i++)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def524]
coreutils-9.9/src/users.c:65:3: warning[-Wanalyzer-malloc-leak]: leak of 'xinmalloc(n, 8)'
coreutils-9.9/src/users.c:65:3: throw: if 'qsort' throws an exception...
coreutils-9.9/src/users.c:65:3: danger: 'xinmalloc(n, 8)' leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#   63|       }
#   64|   
#   65|->   qsort (u, n_entries, sizeof (u[0]), userid_compare);
#   66|   
#   67|     for (i = 0; i < n_entries; i++)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def525]
coreutils-9.9/src/wc.c:684:29: warning[-Wanalyzer-malloc-leak]: leak of 'ai'
coreutils-9.9/src/wc.c:742:1: enter_function: entry to 'main'
coreutils-9.9/src/wc.c:826:6: branch_false: following 'false' branch (when 'files_from' is NULL)...
coreutils-9.9/src/wc.c:876:16: branch_false: ...to here
coreutils-9.9/src/wc.c:878:12: acquire_memory: allocated here
coreutils-9.9/src/wc.c:881:6: branch_false: following 'false' branch (when 'ai' is non-NULL)...
coreutils-9.9/src/wc.c:884:13: branch_false: ...to here
coreutils-9.9/src/wc.c:884:13: call_function: calling 'get_input_fstatus' from 'main'
#  682|   get_input_fstatus (idx_t nfiles, char *const *file)
#  683|   {
#  684|->   struct fstatus *fstatus = xnmalloc (nfiles ? nfiles : 1, sizeof *fstatus);
#  685|   
#  686|     if (nfiles == 0

Error: GCC_ANALYZER_WARNING (CWE-401): [#def526]
coreutils-9.9/src/wc.c:684:29: warning[-Wanalyzer-malloc-leak]: leak of 'get_input_fstatus(nfiles,  files)'
coreutils-9.9/src/wc.c:742:1: enter_function: entry to 'single_binary_main_wc'
coreutils-9.9/src/wc.c:770:10: branch_true: following 'true' branch (when 'optc != -1')...
coreutils-9.9/src/wc.c:771:5: branch_true: ...to here
coreutils-9.9/src/wc.c:826:6: branch_true: following 'true' branch (when 'files_from' is non-NULL)...
coreutils-9.9/src/wc.c:832:11: branch_true: ...to here
coreutils-9.9/src/wc.c:832:10: branch_false: following 'false' branch...
coreutils-9.9/src/wc.c:840:11: call_function: inlined call to 'streq' from 'single_binary_main_wc'
coreutils-9.9/src/wc.c:881:6: branch_false: following 'false' branch (when 'ai' is non-NULL)...
coreutils-9.9/src/wc.c:884:13: branch_false: ...to here
coreutils-9.9/src/wc.c:884:13: call_function: calling 'get_input_fstatus' from 'single_binary_main_wc'
coreutils-9.9/src/wc.c:884:13: return_function: returning to 'single_binary_main_wc' from 'get_input_fstatus'
coreutils-9.9/src/wc.c:893:32: throw: if 'argv_iter' throws an exception...
coreutils-9.9/src/wc.c:684:29: danger: 'get_input_fstatus(nfiles,  files)' leaks here; was allocated at [(15)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/14)
#  682|   get_input_fstatus (idx_t nfiles, char *const *file)
#  683|   {
#  684|->   struct fstatus *fstatus = xnmalloc (nfiles ? nfiles : 1, sizeof *fstatus);
#  685|   
#  686|     if (nfiles == 0

Error: GCC_ANALYZER_WARNING (CWE-775): [#def527]
coreutils-9.9/src/wc.c:855:28: warning[-Wanalyzer-file-leak]: leak of FILE 'stream'
coreutils-9.9/src/wc.c:742:1: enter_function: entry to 'main'
coreutils-9.9/src/wc.c:770:10: branch_true: following 'true' branch (when 'optc != -1')...
coreutils-9.9/src/wc.c:771:5: branch_true: ...to here
coreutils-9.9/src/wc.c:826:6: branch_true: following 'true' branch (when 'files_from' is non-NULL)...
coreutils-9.9/src/wc.c:832:11: branch_true: ...to here
coreutils-9.9/src/wc.c:832:10: branch_false: following 'false' branch...
coreutils-9.9/src/wc.c:840:11: call_function: inlined call to 'streq' from 'main'
coreutils-9.9/src/wc.c:840:10: branch_false: following 'false' branch (when the strings are non-equal)...
coreutils-9.9/src/wc.c:844:20: branch_false: ...to here
coreutils-9.9/src/wc.c:844:20: acquire_resource: opened here
coreutils-9.9/src/wc.c:845:14: branch_false: following 'false' branch...
coreutils-9.9/src/wc.c:853:11: branch_false: ...to here
coreutils-9.9/src/wc.c:853:10: branch_true: following 'true' branch...
coreutils-9.9/src/wc.c:854:14: branch_true: ...to here
coreutils-9.9/src/wc.c:853:11: branch_true: following 'true' branch...
coreutils-9.9/src/wc.c:855:14: branch_true: ...to here
coreutils-9.9/src/wc.c:855:28: throw: if 'physmem_available' throws an exception...
coreutils-9.9/src/wc.c:855:28: danger: 'stream' leaks here; was opened at [(11)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/10)
#  853|         if (fstat (fileno (stream), &st) == 0
#  854|             && S_ISREG (st.st_mode)
#  855|->           && st.st_size <= MIN (10 * 1024 * 1024, physmem_available () / 2))
#  856|           {
#  857|             read_tokens = true;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def528]
coreutils-9.9/src/wc.c:855:28: warning[-Wanalyzer-malloc-leak]: leak of 'stream'
coreutils-9.9/src/wc.c:742:1: enter_function: entry to 'main'
coreutils-9.9/src/wc.c:770:10: branch_true: following 'true' branch (when 'optc != -1')...
coreutils-9.9/src/wc.c:771:5: branch_true: ...to here
coreutils-9.9/src/wc.c:826:6: branch_true: following 'true' branch (when 'files_from' is non-NULL)...
coreutils-9.9/src/wc.c:832:11: branch_true: ...to here
coreutils-9.9/src/wc.c:832:10: branch_false: following 'false' branch...
coreutils-9.9/src/wc.c:840:11: call_function: inlined call to 'streq' from 'main'
coreutils-9.9/src/wc.c:840:10: branch_false: following 'false' branch (when the strings are non-equal)...
coreutils-9.9/src/wc.c:844:20: branch_false: ...to here
coreutils-9.9/src/wc.c:844:20: acquire_memory: allocated here
coreutils-9.9/src/wc.c:845:14: branch_false: following 'false' branch...
coreutils-9.9/src/wc.c:853:11: branch_false: ...to here
coreutils-9.9/src/wc.c:853:10: branch_true: following 'true' branch...
coreutils-9.9/src/wc.c:854:14: branch_true: ...to here
coreutils-9.9/src/wc.c:853:11: branch_true: following 'true' branch...
coreutils-9.9/src/wc.c:855:14: branch_true: ...to here
coreutils-9.9/src/wc.c:855:28: throw: if 'physmem_available' throws an exception...
coreutils-9.9/src/wc.c:855:28: danger: 'stream' leaks here; was allocated at [(11)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/10)
#  853|         if (fstat (fileno (stream), &st) == 0
#  854|             && S_ISREG (st.st_mode)
#  855|->           && st.st_size <= MIN (10 * 1024 * 1024, physmem_available () / 2))
#  856|           {
#  857|             read_tokens = true;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def529]
coreutils-9.9/src/wc.c:858:11: warning[-Wanalyzer-file-leak]: leak of FILE 'stream'
coreutils-9.9/src/wc.c:742:1: enter_function: entry to 'main'
coreutils-9.9/src/wc.c:770:10: branch_true: following 'true' branch (when 'optc != -1')...
coreutils-9.9/src/wc.c:771:5: branch_true: ...to here
coreutils-9.9/src/wc.c:826:6: branch_true: following 'true' branch (when 'files_from' is non-NULL)...
coreutils-9.9/src/wc.c:832:11: branch_true: ...to here
coreutils-9.9/src/wc.c:832:10: branch_false: following 'false' branch...
coreutils-9.9/src/wc.c:840:11: call_function: inlined call to 'streq' from 'main'
coreutils-9.9/src/wc.c:840:10: branch_false: following 'false' branch (when the strings are non-equal)...
coreutils-9.9/src/wc.c:844:20: branch_false: ...to here
coreutils-9.9/src/wc.c:844:20: acquire_resource: opened here
coreutils-9.9/src/wc.c:845:14: branch_false: following 'false' branch...
coreutils-9.9/src/wc.c:853:11: branch_false: ...to here
coreutils-9.9/src/wc.c:853:10: branch_true: following 'true' branch...
coreutils-9.9/src/wc.c:854:14: branch_true: ...to here
coreutils-9.9/src/wc.c:853:11: branch_true: following 'true' branch...
coreutils-9.9/src/wc.c:855:14: branch_true: ...to here
coreutils-9.9/src/wc.c:853:11: branch_true: following 'true' branch...
coreutils-9.9/src/wc.c:858:11: branch_true: ...to here
coreutils-9.9/src/wc.c:858:11: throw: if 'readtokens0_init' throws an exception...
coreutils-9.9/src/wc.c:858:11: danger: 'stream' leaks here; was opened at [(11)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/10)
#  856|           {
#  857|             read_tokens = true;
#  858|->           readtokens0_init (&tok);
#  859|             if (! readtokens0 (stream, &tok) || fclose (stream) != 0)
#  860|               error (EXIT_FAILURE, 0, _("cannot read file names from %s"),

Error: GCC_ANALYZER_WARNING (CWE-401): [#def530]
coreutils-9.9/src/wc.c:858:11: warning[-Wanalyzer-malloc-leak]: leak of 'stream'
coreutils-9.9/src/wc.c:742:1: enter_function: entry to 'main'
coreutils-9.9/src/wc.c:770:10: branch_true: following 'true' branch (when 'optc != -1')...
coreutils-9.9/src/wc.c:771:5: branch_true: ...to here
coreutils-9.9/src/wc.c:826:6: branch_true: following 'true' branch (when 'files_from' is non-NULL)...
coreutils-9.9/src/wc.c:832:11: branch_true: ...to here
coreutils-9.9/src/wc.c:832:10: branch_false: following 'false' branch...
coreutils-9.9/src/wc.c:840:11: call_function: inlined call to 'streq' from 'main'
coreutils-9.9/src/wc.c:840:10: branch_false: following 'false' branch (when the strings are non-equal)...
coreutils-9.9/src/wc.c:844:20: branch_false: ...to here
coreutils-9.9/src/wc.c:844:20: acquire_memory: allocated here
coreutils-9.9/src/wc.c:845:14: branch_false: following 'false' branch...
coreutils-9.9/src/wc.c:853:11: branch_false: ...to here
coreutils-9.9/src/wc.c:853:10: branch_true: following 'true' branch...
coreutils-9.9/src/wc.c:854:14: branch_true: ...to here
coreutils-9.9/src/wc.c:853:11: branch_true: following 'true' branch...
coreutils-9.9/src/wc.c:855:14: branch_true: ...to here
coreutils-9.9/src/wc.c:853:11: branch_true: following 'true' branch...
coreutils-9.9/src/wc.c:858:11: branch_true: ...to here
coreutils-9.9/src/wc.c:858:11: throw: if 'readtokens0_init' throws an exception...
coreutils-9.9/src/wc.c:858:11: danger: 'stream' leaks here; was allocated at [(11)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/10)
#  856|           {
#  857|             read_tokens = true;
#  858|->           readtokens0_init (&tok);
#  859|             if (! readtokens0 (stream, &tok) || fclose (stream) != 0)
#  860|               error (EXIT_FAILURE, 0, _("cannot read file names from %s"),

Error: GCC_ANALYZER_WARNING (CWE-775): [#def531]
coreutils-9.9/src/wc.c:859:17: warning[-Wanalyzer-file-leak]: leak of FILE 'stream'
coreutils-9.9/src/wc.c:742:1: enter_function: entry to 'main'
coreutils-9.9/src/wc.c:770:10: branch_true: following 'true' branch (when 'optc != -1')...
coreutils-9.9/src/wc.c:771:5: branch_true: ...to here
coreutils-9.9/src/wc.c:826:6: branch_true: following 'true' branch (when 'files_from' is non-NULL)...
coreutils-9.9/src/wc.c:832:11: branch_true: ...to here
coreutils-9.9/src/wc.c:832:10: branch_false: following 'false' branch...
coreutils-9.9/src/wc.c:840:11: call_function: inlined call to 'streq' from 'main'
coreutils-9.9/src/wc.c:840:10: branch_false: following 'false' branch (when the strings are non-equal)...
coreutils-9.9/src/wc.c:844:20: branch_false: ...to here
coreutils-9.9/src/wc.c:844:20: acquire_resource: opened here
coreutils-9.9/src/wc.c:845:14: branch_false: following 'false' branch...
coreutils-9.9/src/wc.c:853:11: branch_false: ...to here
coreutils-9.9/src/wc.c:853:10: branch_true: following 'true' branch...
coreutils-9.9/src/wc.c:854:14: branch_true: ...to here
coreutils-9.9/src/wc.c:853:11: branch_true: following 'true' branch...
coreutils-9.9/src/wc.c:855:14: branch_true: ...to here
coreutils-9.9/src/wc.c:853:11: branch_true: following 'true' branch...
coreutils-9.9/src/wc.c:858:11: branch_true: ...to here
coreutils-9.9/src/wc.c:859:17: throw: if 'readtokens0' throws an exception...
coreutils-9.9/src/wc.c:859:17: danger: 'stream' leaks here; was opened at [(11)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/10)
#  857|             read_tokens = true;
#  858|             readtokens0_init (&tok);
#  859|->           if (! readtokens0 (stream, &tok) || fclose (stream) != 0)
#  860|               error (EXIT_FAILURE, 0, _("cannot read file names from %s"),
#  861|                      quoteaf (files_from));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def532]
coreutils-9.9/src/wc.c:859:17: warning[-Wanalyzer-malloc-leak]: leak of 'stream'
coreutils-9.9/src/wc.c:742:1: enter_function: entry to 'main'
coreutils-9.9/src/wc.c:770:10: branch_true: following 'true' branch (when 'optc != -1')...
coreutils-9.9/src/wc.c:771:5: branch_true: ...to here
coreutils-9.9/src/wc.c:826:6: branch_true: following 'true' branch (when 'files_from' is non-NULL)...
coreutils-9.9/src/wc.c:832:11: branch_true: ...to here
coreutils-9.9/src/wc.c:832:10: branch_false: following 'false' branch...
coreutils-9.9/src/wc.c:840:11: call_function: inlined call to 'streq' from 'main'
coreutils-9.9/src/wc.c:840:10: branch_false: following 'false' branch (when the strings are non-equal)...
coreutils-9.9/src/wc.c:844:20: branch_false: ...to here
coreutils-9.9/src/wc.c:844:20: acquire_memory: allocated here
coreutils-9.9/src/wc.c:845:14: branch_false: following 'false' branch...
coreutils-9.9/src/wc.c:853:11: branch_false: ...to here
coreutils-9.9/src/wc.c:853:10: branch_true: following 'true' branch...
coreutils-9.9/src/wc.c:854:14: branch_true: ...to here
coreutils-9.9/src/wc.c:853:11: branch_true: following 'true' branch...
coreutils-9.9/src/wc.c:855:14: branch_true: ...to here
coreutils-9.9/src/wc.c:853:11: branch_true: following 'true' branch...
coreutils-9.9/src/wc.c:858:11: branch_true: ...to here
coreutils-9.9/src/wc.c:859:17: throw: if 'readtokens0' throws an exception...
coreutils-9.9/src/wc.c:859:17: danger: 'stream' leaks here; was allocated at [(11)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/10)
#  857|             read_tokens = true;
#  858|             readtokens0_init (&tok);
#  859|->           if (! readtokens0 (stream, &tok) || fclose (stream) != 0)
#  860|               error (EXIT_FAILURE, 0, _("cannot read file names from %s"),
#  861|                      quoteaf (files_from));

Error: GCC_ANALYZER_WARNING (CWE-775): [#def533]
coreutils-9.9/src/wc.c:870:16: warning[-Wanalyzer-file-leak]: leak of FILE 'stream'
coreutils-9.9/src/wc.c:742:1: enter_function: entry to 'main'
coreutils-9.9/src/wc.c:770:10: branch_true: following 'true' branch (when 'optc != -1')...
coreutils-9.9/src/wc.c:771:5: branch_true: ...to here
coreutils-9.9/src/wc.c:826:6: branch_true: following 'true' branch (when 'files_from' is non-NULL)...
coreutils-9.9/src/wc.c:832:11: branch_true: ...to here
coreutils-9.9/src/wc.c:832:10: branch_false: following 'false' branch...
coreutils-9.9/src/wc.c:840:11: call_function: inlined call to 'streq' from 'main'
coreutils-9.9/src/wc.c:840:10: branch_false: following 'false' branch (when the strings are non-equal)...
coreutils-9.9/src/wc.c:844:20: branch_false: ...to here
coreutils-9.9/src/wc.c:844:20: acquire_resource: opened here
coreutils-9.9/src/wc.c:845:14: branch_false: following 'false' branch...
coreutils-9.9/src/wc.c:853:11: branch_false: ...to here
coreutils-9.9/src/wc.c:870:16: throw: if 'argv_iter_init_stream' throws an exception...
coreutils-9.9/src/wc.c:870:16: danger: 'stream' leaks here; was opened at [(11)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/10)
#  868|             files = nullptr;
#  869|             nfiles = 0;
#  870|->           ai = argv_iter_init_stream (stream);
#  871|           }
#  872|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def534]
coreutils-9.9/src/wc.c:870:16: warning[-Wanalyzer-malloc-leak]: leak of 'stream'
coreutils-9.9/src/wc.c:742:1: enter_function: entry to 'main'
coreutils-9.9/src/wc.c:770:10: branch_true: following 'true' branch (when 'optc != -1')...
coreutils-9.9/src/wc.c:771:5: branch_true: ...to here
coreutils-9.9/src/wc.c:826:6: branch_true: following 'true' branch (when 'files_from' is non-NULL)...
coreutils-9.9/src/wc.c:832:11: branch_true: ...to here
coreutils-9.9/src/wc.c:832:10: branch_false: following 'false' branch...
coreutils-9.9/src/wc.c:840:11: call_function: inlined call to 'streq' from 'main'
coreutils-9.9/src/wc.c:840:10: branch_false: following 'false' branch (when the strings are non-equal)...
coreutils-9.9/src/wc.c:844:20: branch_false: ...to here
coreutils-9.9/src/wc.c:844:20: acquire_memory: allocated here
coreutils-9.9/src/wc.c:845:14: branch_false: following 'false' branch...
coreutils-9.9/src/wc.c:853:11: branch_false: ...to here
coreutils-9.9/src/wc.c:870:16: throw: if 'argv_iter_init_stream' throws an exception...
coreutils-9.9/src/wc.c:870:16: danger: 'stream' leaks here; was allocated at [(11)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/10)
#  868|             files = nullptr;
#  869|             nfiles = 0;
#  870|->           ai = argv_iter_init_stream (stream);
#  871|           }
#  872|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def535]
coreutils-9.9/src/wc.c:893:32: warning[-Wanalyzer-malloc-leak]: leak of 'ai'
coreutils-9.9/src/wc.c:742:1: enter_function: entry to 'single_binary_main_wc'
coreutils-9.9/src/wc.c:770:10: branch_true: following 'true' branch (when 'optc != -1')...
coreutils-9.9/src/wc.c:771:5: branch_true: ...to here
coreutils-9.9/src/wc.c:826:6: branch_true: following 'true' branch (when 'files_from' is non-NULL)...
coreutils-9.9/src/wc.c:832:11: branch_true: ...to here
coreutils-9.9/src/wc.c:832:10: branch_false: following 'false' branch...
coreutils-9.9/src/wc.c:840:11: call_function: inlined call to 'streq' from 'single_binary_main_wc'
coreutils-9.9/src/wc.c:870:16: acquire_memory: allocated here
coreutils-9.9/src/wc.c:881:6: branch_false: following 'false' branch (when 'ai' is non-NULL)...
coreutils-9.9/src/wc.c:884:13: branch_false: ...to here
coreutils-9.9/src/wc.c:884:13: call_function: calling 'get_input_fstatus' from 'single_binary_main_wc'
coreutils-9.9/src/wc.c:884:13: return_function: returning to 'single_binary_main_wc' from 'get_input_fstatus'
coreutils-9.9/src/wc.c:893:32: throw: if 'argv_iter' throws an exception...
coreutils-9.9/src/wc.c:893:32: danger: 'ai' leaks here; was allocated at [(9)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/8)
#  891|     enum argv_iter_err ai_err;
#  892|     char *file_name;
#  893|->   for (int i = 0; (file_name = argv_iter (ai, &ai_err)); i++)
#  894|       {
#  895|         bool skip_file = false;

Error: COMPILER_WARNING: [#def536]
coreutils-9.9/src/wc_avx2.c:32:11: warning[-Wpsabi]: AVX vector return without AVX enabled changes the ABI
#   30|     intmax_t bytes = 0;
#   31|   
#   32|->   __m256i endlines = _mm256_set1_epi8 ('\n');
#   33|   
#   34|     while (true)

Error: COMPILER_WARNING: [#def537]
coreutils-9.9/src/wc_avx2.c:32:22: note[note]: called from here
#   30|     intmax_t bytes = 0;
#   31|   
#   32|->   __m256i endlines = _mm256_set1_epi8 ('\n');
#   33|   
#   34|     while (true)

Error: COMPILER_WARNING: [#def538]
coreutils-9.9/src/wc_avx2.c:46:31: note[note]: called from here
#   44|         while (bytes_read >= 32)
#   45|           {
#   46|->            __m256i to_match = _mm256_load_si256 (datap);
#   47|              __m256i matches = _mm256_cmpeq_epi8 (to_match, endlines);
#   48|              int mask = _mm256_movemask_epi8 (matches);

Error: COMPILER_WARNING: [#def539]
coreutils-9.9/src/wc_avx2.c:47:30: note[note]: called from here
#   45|           {
#   46|              __m256i to_match = _mm256_load_si256 (datap);
#   47|->            __m256i matches = _mm256_cmpeq_epi8 (to_match, endlines);
#   48|              int mask = _mm256_movemask_epi8 (matches);
#   49|              lines += __builtin_popcount (mask);

Error: COMPILER_WARNING: [#def540]
coreutils-9.9/src/wc_avx2.c:48:23: note[note]: called from here
#   46|              __m256i to_match = _mm256_load_si256 (datap);
#   47|              __m256i matches = _mm256_cmpeq_epi8 (to_match, endlines);
#   48|->            int mask = _mm256_movemask_epi8 (matches);
#   49|              lines += __builtin_popcount (mask);
#   50|              datap += 1;

Error: COMPILER_WARNING: [#def541]
coreutils-9.9/src/wc_avx512.c:32:11: warning[-Wpsabi]: AVX512F vector return without AVX512F enabled changes the ABI
#   30|     intmax_t bytes = 0;
#   31|   
#   32|->   __m512i endlines = _mm512_set1_epi8 ('\n');
#   33|   
#   34|     while (true)

Error: COMPILER_WARNING: [#def542]
coreutils-9.9/src/wc_avx512.c:32:22: note[note]: called from here
#   30|     intmax_t bytes = 0;
#   31|   
#   32|->   __m512i endlines = _mm512_set1_epi8 ('\n');
#   33|   
#   34|     while (true)

Error: COMPILER_WARNING: [#def543]
coreutils-9.9/src/wc_avx512.c:46:31: note[note]: called from here
#   44|         while (bytes_read >= 64)
#   45|           {
#   46|->            __m512i to_match = _mm512_load_si512 (datap);
#   47|              long long matches = _mm512_cmpeq_epi8_mask (to_match, endlines);
#   48|              lines += __builtin_popcountll (matches);

Error: COMPILER_WARNING: [#def544]
coreutils-9.9/src/wc_avx512.c:47:32: note[note]: called from here
#   45|           {
#   46|              __m512i to_match = _mm512_load_si512 (datap);
#   47|->            long long matches = _mm512_cmpeq_epi8_mask (to_match, endlines);
#   48|              lines += __builtin_popcountll (matches);
#   49|              datap += 1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def545]
coreutils-9.9/src/who.c:250:15: warning[-Wanalyzer-malloc-leak]: leak of 'host'
coreutils-9.9/src/who.c:679:1: enter_function: entry to 'single_binary_main_who'
coreutils-9.9/src/who.c:814:7: call_function: calling 'who' from 'single_binary_main_who'
#  248|       *x_pid = '\0';
#  249|   
#  250|->   x_exitstr = xmalloc (include_exit ? 1 + MAX (12, strlen (exitstr)) + 1 : 1);
#  251|     if (include_exit)
#  252|       sprintf (x_exitstr, " %-12s", exitstr);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def546]
coreutils-9.9/src/who.c:390:25: warning[-Wanalyzer-malloc-leak]: leak of 'host'
coreutils-9.9/src/who.c:679:1: enter_function: entry to 'single_binary_main_who'
coreutils-9.9/src/who.c:814:7: call_function: calling 'who' from 'single_binary_main_who'
#  388|               {
#  389|                 free (hoststr);
#  390|->               hoststr = xpalloc (nullptr, &hostlen, needed - hostlen, -1, 1);
#  391|               }
#  392|             char *p = hoststr;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def547]
coreutils-9.9/src/who.c:404:25: warning[-Wanalyzer-malloc-leak]: leak of 'host'
coreutils-9.9/src/who.c:679:1: enter_function: entry to 'single_binary_main_who'
coreutils-9.9/src/who.c:814:7: call_function: calling 'who' from 'single_binary_main_who'
#  402|               {
#  403|                 free (hoststr);
#  404|->               hoststr = xpalloc (nullptr, &hostlen, needed - hostlen, -1, 1);
#  405|               }
#  406|             char *p = hoststr;

Scan Properties

analyzer-version-clippy1.92.0
analyzer-version-cppcheck2.19.1
analyzer-version-gcc16.0.0
analyzer-version-gcc-analyzer16.0.0
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-198.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namecoreutils-9.9-1.fc44
store-results-to/tmp/tmpebfnyatg/coreutils-9.9-1.fc44.tar.xz
time-created2026-01-08 15:54:34
time-finished2026-01-08 16:00:19
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpebfnyatg/coreutils-9.9-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpebfnyatg/coreutils-9.9-1.fc44.src.rpm'
tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9