coreutils-9.7-6.fc43

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.7/gnulib-tests/bench-digest.h:56:7: warning[-Wanalyzer-malloc-leak]: leak of 'memblock'
coreutils-9.7/gnulib-tests/bench-digest.h:25:6: branch_false: following 'false' branch (when 'argc == 3')...
coreutils-9.7/gnulib-tests/bench-digest.h:31:17: branch_false: ...to here
coreutils-9.7/gnulib-tests/bench-digest.h:34:29: acquire_memory: allocated here
coreutils-9.7/gnulib-tests/bench-digest.h:35:6: branch_false: following 'false' branch (when 'memblock' is non-NULL)...
coreutils-9.7/gnulib-tests/bench-digest.h:35:6: branch_false: ...to here
coreutils-9.7/gnulib-tests/bench-digest.h:53:19: branch_true: following 'true' branch...
coreutils-9.7/gnulib-tests/bench-digest.h:56:7: branch_true: ...to here
coreutils-9.7/gnulib-tests/bench-digest.h:56:7: throw: if 'sha1_buffer' throws an exception...
coreutils-9.7/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.7/lib/asnprintf.c:31:12: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
coreutils-9.7/lib/asnprintf.c:30:3: acquire_resource: 'va_start' called here
coreutils-9.7/lib/asnprintf.c:31:12: throw: if 'vasnprintf' throws an exception...
coreutils-9.7/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.7/lib/aszprintf.c:31:12: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
coreutils-9.7/lib/aszprintf.c:30:3: acquire_resource: 'va_start' called here
coreutils-9.7/lib/aszprintf.c:31:12: throw: if 'vaszprintf' throws an exception...
coreutils-9.7/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.7/lib/backupfile.c:237:33: warning[-Wanalyzer-malloc-leak]: leak of 'dirp'
coreutils-9.7/lib/backupfile.c:311:1: enter_function: entry to 'backupfile_internal'
coreutils-9.7/lib/backupfile.c:330:6: branch_false: following 'false' branch...
coreutils-9.7/lib/backupfile.c:333:8: branch_false: ...to here
coreutils-9.7/lib/backupfile.c:341:10: branch_false: following 'false' branch (when 'backup_type != 1')...
coreutils-9.7/lib/backupfile.c:344:17: branch_false: ...to here
coreutils-9.7/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.7/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.7/lib/careadlinkat.c: scope_hint: In function 'careadlinkat.constprop'
coreutils-9.7/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.7/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.7/lib/creat-safer.c:30:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'creat(file,  mode)'
coreutils-9.7/lib/creat-safer.c:30:10: acquire_resource: opened here
coreutils-9.7/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.7/lib/di-set.c:120:22: warning[-Wanalyzer-malloc-leak]: leak of 'dis'
coreutils-9.7/lib/di-set.c:116:24: acquire_memory: allocated here
coreutils-9.7/lib/di-set.c:117:6: branch_true: following 'true' branch (when 'dis' is non-NULL)...
coreutils-9.7/lib/di-set.c:120:22: branch_true: ...to here
coreutils-9.7/lib/di-set.c:120:22: throw: if 'hash_initialize' throws an exception...
coreutils-9.7/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.7/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.7/lib/error.c:288:3: acquire_resource: 'va_start' called here
coreutils-9.7/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.7/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.7/lib/error.c:288:3: acquire_resource: 'va_start' called here
coreutils-9.7/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.7/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.7/lib/error.c:288:3: acquire_resource: 'va_start' called here
coreutils-9.7/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.7/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.7/lib/error.c:363:3: acquire_resource: 'va_start' called here
coreutils-9.7/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.7/lib/exclude.c:135:33: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(pattern)'
coreutils-9.7/lib/exclude.c:507:1: enter_function: entry to 'add_exclude'
coreutils-9.7/lib/exclude.c:509:6: branch_true: following 'true' branch...
coreutils-9.7/lib/exclude.c:510:10: branch_true: ...to here
coreutils-9.7/lib/exclude.c:509:7: branch_true: following 'true' branch...
coreutils-9.7/lib/exclude.c:512:14: branch_true: ...to here
coreutils-9.7/lib/exclude.c:524:10: branch_false: following 'false' branch...
coreutils-9.7/lib/exclude.c:560:15: branch_false: ...to here
coreutils-9.7/lib/exclude.c:560:14: branch_true: following 'true' branch...
coreutils-9.7/lib/exclude.c:562:27: branch_true: ...to here
coreutils-9.7/lib/exclude.c:564:15: call_function: calling 'exclude_add_pattern_buffer' from 'add_exclude'
#  133|   exclude_add_pattern_buffer (struct exclude *ex, char *buf)
#  134|   {
#  135|->   struct pattern_buffer *pbuf = xmalloc (sizeof *pbuf);
#  136|     pbuf->base = buf;
#  137|     pbuf->next = ex->patbuf;

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

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

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

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

Error: GCC_ANALYZER_WARNING (CWE-404): [#def19]
coreutils-9.7/lib/fcntl.c:328:22: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
coreutils-9.7/lib/fcntl.c:210:3: acquire_resource: 'va_start' called here
coreutils-9.7/lib/fcntl.c:328:22: throw: if 'fcntl' throws an exception...
coreutils-9.7/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.7/lib/fcntl.c:424:24: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
coreutils-9.7/lib/fcntl.c:210:3: acquire_resource: 'va_start' called here
coreutils-9.7/lib/fcntl.c:424:24: throw: if 'fcntl' throws an exception...
coreutils-9.7/lib/fcntl.c:424:24: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  422|               {
#  423|                 int x = va_arg (arg, int);
#  424|->               result = fcntl (fd, action, x);
#  425|               }
#  426|               break;

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

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

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

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

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

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

Error: GCC_ANALYZER_WARNING (CWE-775): [#def27]
coreutils-9.7/lib/fd-reopen.c:42:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd2'
coreutils-9.7/lib/fd-reopen.c:36:6: branch_false: following 'false' branch...
coreutils-9.7/lib/fd-reopen.c:40:17: branch_false: ...to here
coreutils-9.7/lib/fd-reopen.c:40:17: acquire_resource: opened here
coreutils-9.7/lib/fd-reopen.c:42:7: throw: if 'close' throws an exception...
coreutils-9.7/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.7/lib/file-has-acl.c:177:25: warning[-Wanalyzer-malloc-leak]: leak of 'ai.buf'
coreutils-9.7/lib/file-has-acl.c:987:1: enter_function: entry to 'file_has_acl'
coreutils-9.7/lib/file-has-acl.c:993: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.7/lib/file-has-acl.c:496: error[uninitvar]: Uninitialized variable: buf
#  494|     int ret = (fd < 0
#  495|                ? ((flags & ACL_SYMLINK_FOLLOW ? getxattr : lgetxattr)
#  496|->                 (name, XATTR_NAME_NFSV4_ACL, buf, sizeof buf))
#  497|                : fgetxattr (fd, XATTR_NAME_NFSV4_ACL, buf, sizeof buf));
#  498|     if (ret < 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def30]
coreutils-9.7/lib/file-set.c:37:15: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(24)'
coreutils-9.7/lib/file-set.c:33:6: branch_false: following 'false' branch (when 'ht' is non-NULL)...
coreutils-9.7/lib/file-set.c:36:9: branch_false: ...to here
coreutils-9.7/lib/file-set.c:37:15: throw: if 'xstrdup' throws an exception...
coreutils-9.7/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.7/lib/file-set.c:38:17: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(24)'
coreutils-9.7/lib/file-set.c:33:6: branch_false: following 'false' branch (when 'ht' is non-NULL)...
coreutils-9.7/lib/file-set.c:36:9: branch_false: ...to here
coreutils-9.7/lib/file-set.c:42:39: throw: if 'hash_insert' throws an exception...
coreutils-9.7/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.7/lib/file-set.c:42:39: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
coreutils-9.7/lib/file-set.c:33:6: branch_false: following 'false' branch (when 'ht' is non-NULL)...
coreutils-9.7/lib/file-set.c:36:9: branch_false: ...to here
coreutils-9.7/lib/file-set.c:42:39: throw: if 'hash_insert' throws an exception...
coreutils-9.7/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-775): [#def33]
coreutils-9.7/lib/fopen-safer.c:39:11: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(file,  mode)'
coreutils-9.7/lib/fopen-safer.c:33:14: acquire_resource: opened here
coreutils-9.7/lib/fopen-safer.c:35:6: branch_true: following 'true' branch...
coreutils-9.7/lib/fopen-safer.c:37:16: branch_true: ...to here
coreutils-9.7/lib/fopen-safer.c:39:10: branch_true: following 'true' branch...
coreutils-9.7/lib/fopen-safer.c:41:19: branch_true: ...to here
coreutils-9.7/lib/fopen-safer.c:41:19: throw: if 'dup_safer' throws an exception...
coreutils-9.7/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): [#def34]
coreutils-9.7/lib/fopen-safer.c:39:11: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(file,  mode)'
coreutils-9.7/lib/fopen-safer.c:33:14: acquire_memory: allocated here
coreutils-9.7/lib/fopen-safer.c:35:6: branch_true: following 'true' branch...
coreutils-9.7/lib/fopen-safer.c:37:16: branch_true: ...to here
coreutils-9.7/lib/fopen-safer.c:39:10: branch_true: following 'true' branch...
coreutils-9.7/lib/fopen-safer.c:41:19: branch_true: ...to here
coreutils-9.7/lib/fopen-safer.c:41:19: throw: if 'dup_safer' throws an exception...
coreutils-9.7/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): [#def35]
coreutils-9.7/lib/fts-cycle.c:92:23: warning[-Wanalyzer-malloc-leak]: leak of 'ad'
coreutils-9.7/lib/fts-cycle.c:79:31: acquire_memory: allocated here
coreutils-9.7/lib/fts-cycle.c:82:10: branch_false: following 'false' branch (when 'ad' is non-NULL)...
coreutils-9.7/lib/fts-cycle.c:85:17: branch_false: ...to here
coreutils-9.7/lib/fts-cycle.c:92:23: throw: if 'hash_insert' throws an exception...
coreutils-9.7/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): [#def36]
coreutils-9.7/lib/fts-cycle.c:120:1: warning[-Wanalyzer-malloc-leak]: leak of 'ad'
coreutils-9.7/lib/fts-cycle.c:79:31: acquire_memory: allocated here
coreutils-9.7/lib/fts-cycle.c:82:10: branch_false: following 'false' branch (when 'ad' is non-NULL)...
coreutils-9.7/lib/fts-cycle.c:85:17: branch_false: ...to here
coreutils-9.7/lib/fts-cycle.c:94:10: branch_false: following 'false' branch...
coreutils-9.7/lib/fts-cycle.c:94:10: branch_false: ...to here
coreutils-9.7/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): [#def37]
coreutils-9.7/lib/fts.c:741:17: warning[-Wanalyzer-malloc-leak]: leak of 't2'
coreutils-9.7/lib/fts.c:1267:1: enter_function: entry to 'fts_build'
coreutils-9.7/lib/fts.c:1307:16: branch_false: following 'false' branch...
coreutils-9.7/lib/fts.c:1319:38: branch_false: ...to here
coreutils-9.7/lib/fts.c:1379:12: branch_false: following 'false' branch...
coreutils-9.7/lib/fts.c:1389:23: branch_false: ...to here
coreutils-9.7/lib/fts.c:1389:23: branch_true: following 'true' branch (when 'type != 2')...
coreutils-9.7/lib/fts.c:1390:30: branch_true: ...to here
coreutils-9.7/lib/fts.c:1389:23: branch_false: following 'false' branch...
coreutils-9.7/lib/fts.c:1390:30: branch_false: following 'false' branch...
coreutils-9.7/lib/fts.c:1392:33: branch_false: ...to here
coreutils-9.7/lib/fts.c:1390:30: branch_false: following 'false' branch...
coreutils-9.7/lib/fts.c:1393:34: branch_false: ...to here
coreutils-9.7/lib/fts.c:1393:34: call_function: calling 'leaf_optimization' from 'fts_build'
#  739|             t2->f_type = fs_buf.f_type;
#  740|   
#  741|->           ent = hash_insert (h, t2);
#  742|             if (ent)
#  743|               fts_assert (ent == t2);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def38]
coreutils-9.7/lib/fts.c:749:10: warning[-Wanalyzer-malloc-leak]: leak of 't2'
coreutils-9.7/lib/fts.c:1267:1: enter_function: entry to 'fts_build'
coreutils-9.7/lib/fts.c:1307:16: branch_false: following 'false' branch...
coreutils-9.7/lib/fts.c:1319:38: branch_false: ...to here
coreutils-9.7/lib/fts.c:1379:12: branch_false: following 'false' branch...
coreutils-9.7/lib/fts.c:1389:23: branch_false: ...to here
coreutils-9.7/lib/fts.c:1389:23: branch_true: following 'true' branch (when 'type != 2')...
coreutils-9.7/lib/fts.c:1390:30: branch_true: ...to here
coreutils-9.7/lib/fts.c:1389:23: branch_false: following 'false' branch...
coreutils-9.7/lib/fts.c:1390:30: branch_false: following 'false' branch...
coreutils-9.7/lib/fts.c:1392:33: branch_false: ...to here
coreutils-9.7/lib/fts.c:1390:30: branch_false: following 'false' branch...
coreutils-9.7/lib/fts.c:1393:34: branch_false: ...to here
coreutils-9.7/lib/fts.c:1393:34: call_function: calling 'leaf_optimization' from 'fts_build'
#  747|       }
#  748|   
#  749|->   return fs_buf.f_type;
#  750|   }
#  751|   

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

Error: GCC_ANALYZER_WARNING (CWE-401): [#def40]
coreutils-9.7/lib/getndelim2.c:111:16: warning[-Wanalyzer-malloc-leak]: leak of 'ptr'
coreutils-9.7/lib/getndelim2.c:76:6: branch_true: following 'true' branch (when 'ptr' is NULL)...
coreutils-9.7/lib/getndelim2.c:78:7: branch_true: ...to here
coreutils-9.7/lib/getndelim2.c:79:13: acquire_memory: allocated here
coreutils-9.7/lib/getndelim2.c:80:10: branch_false: following 'false' branch (when 'ptr' is non-NULL)...
coreutils-9.7/lib/getndelim2.c:84:6: branch_false: ...to here
coreutils-9.7/lib/getndelim2.c:84:6: branch_false: following 'false' branch (when 'size >= offset')...
coreutils-9.7/lib/getndelim2.c:87:3: branch_false: ...to here
coreutils-9.7/lib/getndelim2.c:90:6: branch_false: following 'false' branch...
coreutils-9.7/lib/getndelim2.c:94:6: branch_false: ...to here
coreutils-9.7/lib/getndelim2.c:111:16: throw: if 'freadptr' throws an exception...
coreutils-9.7/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): [#def41]
coreutils-9.7/lib/gl_openssl.h:81:10: warning[-Wanalyzer-malloc-leak]: leak of 'buffer'
coreutils-9.7/lib/md5-stream.c:58:1: enter_function: entry to 'md5_stream'
coreutils-9.7/lib/md5-stream.c:66:18: acquire_memory: allocated here
coreutils-9.7/lib/md5-stream.c:67:6: branch_false: following 'false' branch (when 'buffer' is non-NULL)...
coreutils-9.7/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): [#def42]
coreutils-9.7/lib/gl_openssl.h:96:3: warning[-Wanalyzer-malloc-leak]: leak of 'buffer'
coreutils-9.7/lib/sha256-stream.c:131:1: enter_function: entry to 'sha224_stream'
coreutils-9.7/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): [#def43]
coreutils-9.7/lib/gl_openssl.h:100:10: warning[-Wanalyzer-malloc-leak]: leak of 'memblock'
coreutils-9.7/gnulib-tests/bench-digest.h:23:1: enter_function: entry to 'main'
coreutils-9.7/gnulib-tests/bench-digest.h:25:6: branch_false: following 'false' branch (when 'argc == 3')...
coreutils-9.7/gnulib-tests/bench-digest.h:31:17: branch_false: ...to here
coreutils-9.7/gnulib-tests/bench-digest.h:34:29: acquire_memory: allocated here
coreutils-9.7/gnulib-tests/bench-digest.h:35:6: branch_false: following 'false' branch (when 'memblock' is non-NULL)...
coreutils-9.7/gnulib-tests/bench-digest.h:35:6: branch_false: ...to here
coreutils-9.7/gnulib-tests/bench-digest.h:53:19: branch_true: following 'true' branch...
coreutils-9.7/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): [#def44]
coreutils-9.7/lib/hash.c:235:14: warning[-Wanalyzer-malloc-leak]: leak of 'storage.bucket'
coreutils-9.7/lib/hash.c:1029:1: enter_function: entry to 'hash_remove'
coreutils-9.7/lib/hash.c:1046:10: branch_true: following 'true' branch...
coreutils-9.7/lib/hash.c:1051:11: branch_true: ...to here
coreutils-9.7/lib/hash.c:1052:14: branch_true: following 'true' branch...
coreutils-9.7/lib/hash.c:1057:18: branch_true: ...to here
coreutils-9.7/lib/hash.c:1062:20: call_function: calling 'hash_rehash' from 'hash_remove'
#  233|   safe_hasher (const Hash_table *table, const void *key)
#  234|   {
#  235|->   size_t n = table->hasher (key, table->n_buckets);
#  236|     if (! (n < table->n_buckets))
#  237|       abort ();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def45]
coreutils-9.7/lib/heap.c:51:17: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(32)'
coreutils-9.7/lib/heap.c:51:17: throw: if 'xnmalloc' throws an exception...
coreutils-9.7/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): [#def46]
coreutils-9.7/lib/ino-map.c:89:17: warning[-Wanalyzer-malloc-leak]: leak of 'im'
coreutils-9.7/lib/ino-map.c:84:24: acquire_memory: allocated here
coreutils-9.7/lib/ino-map.c:86:6: branch_true: following 'true' branch (when 'im' is non-NULL)...
coreutils-9.7/lib/ino-map.c:89:17: branch_true: ...to here
coreutils-9.7/lib/ino-map.c:89:17: throw: if 'hash_initialize' throws an exception...
coreutils-9.7/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): [#def47]
coreutils-9.7/lib/long-options.c:74:13: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
coreutils-9.7/lib/long-options.c:61:6: branch_true: following 'true' branch (when 'argc == 2')...
coreutils-9.7/lib/long-options.c:62:15: branch_true: ...to here
coreutils-9.7/lib/long-options.c:61:7: branch_true: following 'true' branch (when 'c != -1')...
coreutils-9.7/lib/long-options.c:64:7: branch_true: ...to here
coreutils-9.7/lib/long-options.c:73:13: acquire_resource: 'va_start' called here
coreutils-9.7/lib/long-options.c:74:13: throw: if 'version_etc_va' throws an exception...
coreutils-9.7/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): [#def48]
coreutils-9.7/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): [#def49]
coreutils-9.7/lib/long-options.c:127:13: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
coreutils-9.7/lib/long-options.c:115:6: branch_true: following 'true' branch (when 'c != -1')...
coreutils-9.7/lib/long-options.c:117:7: branch_true: ...to here
coreutils-9.7/lib/long-options.c:126:13: acquire_resource: 'va_start' called here
coreutils-9.7/lib/long-options.c:127:13: throw: if 'version_etc_va' throws an exception...
coreutils-9.7/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): [#def50]
coreutils-9.7/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): [#def51]
coreutils-9.7/lib/mbfile.h:93:7: warning[-Wanalyzer-malloc-leak]: leak of 'ximalloc((long int)((long unsigned int)max_column_width * 32))'
coreutils-9.7/src/unexpand.c:107:1: enter_function: entry to 'unexpand'
coreutils-9.7/src/unexpand.c:124:6: branch_false: following 'false' branch...
coreutils-9.7/src/unexpand.c:127:3: branch_false: ...to here
coreutils-9.7/src/unexpand.c:185:13: call_function: calling 'mbfile_multi_getc' from 'unexpand'
coreutils-9.7/src/unexpand.c:185:13: return_function: returning to 'unexpand' from 'mbfile_multi_getc'
coreutils-9.7/src/unexpand.c:186:16: branch_true: following 'true' branch...
coreutils-9.7/src/unexpand.c:186:41: branch_true: ...to here
coreutils-9.7/src/unexpand.c:186:41: throw: if 'next_file' throws an exception...
coreutils-9.7/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: COMPILER_WARNING (CWE-704): [#def52]
coreutils-9.7/lib/mbschr.c: scope_hint: In function 'mbschr'
coreutils-9.7/lib/mbschr.c:68:12: warning[-Wdiscarded-qualifiers]: return discards 'const' qualifier from pointer target type
#   68 |     return strchr (string, c);
#      |            ^~~~~~
#   66|       }
#   67|     else
#   68|->     return strchr (string, c);
#   69|   }

Error: COMPILER_WARNING (CWE-704): [#def53]
coreutils-9.7/lib/mbschr.c:68:12: warning[-Wdiscarded-qualifiers]: return discards 'const' qualifier from pointer target type
#   66|       }
#   67|     else
#   68|->     return strchr (string, c);
#   69|   }

Error: COMPILER_WARNING (CWE-704): [#def54]
coreutils-9.7/lib/memchr2.c: scope_hint: In function 'memchr2'
coreutils-9.7/lib/memchr2.c:58:12: warning[-Wdiscarded-qualifiers]: return discards 'const' qualifier from pointer target type
#   58 |     return memchr (s, c1, n);
#      |            ^~~~~~
#   56|   
#   57|     if (c1 == c2)
#   58|->     return memchr (s, c1, n);
#   59|   
#   60|     /* Handle the first few bytes by reading one byte at a time.

Error: COMPILER_WARNING (CWE-704): [#def55]
coreutils-9.7/lib/memchr2.c:58:12: warning[-Wdiscarded-qualifiers]: return discards 'const' qualifier from pointer target type
#   56|   
#   57|     if (c1 == c2)
#   58|->     return memchr (s, c1, n);
#   59|   
#   60|     /* Handle the first few bytes by reading one byte at a time.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def56]
coreutils-9.7/lib/mgetgroups.c:96:16: warning[-Wanalyzer-malloc-leak]: leak of 'g'
coreutils-9.7/lib/mgetgroups.c:66:1: enter_function: entry to 'mgetgroups'
coreutils-9.7/lib/mgetgroups.c:81:6: branch_true: following 'true' branch (when 'username' is non-NULL)...
coreutils-9.7/lib/mgetgroups.c:84:7: branch_true: ...to here
coreutils-9.7/lib/mgetgroups.c:86:11: call_function: calling 'realloc_groupbuf' from 'mgetgroups'
coreutils-9.7/lib/mgetgroups.c:86:11: return_function: returning to 'mgetgroups' from 'realloc_groupbuf'
coreutils-9.7/lib/mgetgroups.c:87:10: branch_false: following 'false' branch...
coreutils-9.7/lib/mgetgroups.c:87:10: branch_false: ...to here
coreutils-9.7/lib/mgetgroups.c:96:16: throw: if 'getgrouplist' throws an exception...
coreutils-9.7/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): [#def57]
coreutils-9.7/lib/mountlist.c:539:30: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(56)'
coreutils-9.7/lib/mountlist.c:464:1: enter_function: entry to 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:483:8: branch_true: following 'true' branch...
coreutils-9.7/lib/mountlist.c:485:15: branch_true: ...to here
coreutils-9.7/lib/mountlist.c:488:16: branch_true: following 'true' branch...
coreutils-9.7/lib/mountlist.c:493:18: branch_true: ...to here
coreutils-9.7/lib/mountlist.c:505:27: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:505:27: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.7/lib/mountlist.c:506:16: branch_false: following 'false' branch...
coreutils-9.7/lib/mountlist.c:510:19: branch_false: ...to here
coreutils-9.7/lib/mountlist.c:511:21: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:511:21: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.7/lib/mountlist.c:512:16: branch_false: following 'false' branch...
coreutils-9.7/lib/mountlist.c:516:26: branch_false: ...to here
coreutils-9.7/lib/mountlist.c:522:21: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:522:21: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.7/lib/mountlist.c:528:19: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:528:19: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.7/lib/mountlist.c:539:30: throw: if 'xstrdup' throws an exception...
coreutils-9.7/lib/mountlist.c:539:30: danger: 'xmalloc(56)' leaks here; was allocated at [(31)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/30)
#  537|               me = xmalloc (sizeof *me);
#  538|   
#  539|->             me->me_devname = xstrdup (source);
#  540|               me->me_mountdir = xstrdup (target);
#  541|               me->me_mntroot = xstrdup (mntroot);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def58]
coreutils-9.7/lib/mountlist.c:540:31: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
coreutils-9.7/lib/mountlist.c:464:1: enter_function: entry to 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:483:8: branch_true: following 'true' branch...
coreutils-9.7/lib/mountlist.c:485:15: branch_true: ...to here
coreutils-9.7/lib/mountlist.c:488:16: branch_true: following 'true' branch...
coreutils-9.7/lib/mountlist.c:493:18: branch_true: ...to here
coreutils-9.7/lib/mountlist.c:505:27: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:505:27: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.7/lib/mountlist.c:506:16: branch_false: following 'false' branch...
coreutils-9.7/lib/mountlist.c:510:19: branch_false: ...to here
coreutils-9.7/lib/mountlist.c:511:21: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:511:21: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.7/lib/mountlist.c:512:16: branch_false: following 'false' branch...
coreutils-9.7/lib/mountlist.c:516:26: branch_false: ...to here
coreutils-9.7/lib/mountlist.c:522:21: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:522:21: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.7/lib/mountlist.c:528:19: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:528:19: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.7/lib/mountlist.c:540:31: danger: '<unknown>' leaks here; was allocated at [(31)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/30)
#  538|   
#  539|               me->me_devname = xstrdup (source);
#  540|->             me->me_mountdir = xstrdup (target);
#  541|               me->me_mntroot = xstrdup (mntroot);
#  542|               me->me_type = xstrdup (fstype);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def59]
coreutils-9.7/lib/mountlist.c:540:31: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(56)'
coreutils-9.7/lib/mountlist.c:464:1: enter_function: entry to 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:483:8: branch_true: following 'true' branch...
coreutils-9.7/lib/mountlist.c:485:15: branch_true: ...to here
coreutils-9.7/lib/mountlist.c:488:16: branch_true: following 'true' branch...
coreutils-9.7/lib/mountlist.c:493:18: branch_true: ...to here
coreutils-9.7/lib/mountlist.c:505:27: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:505:27: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.7/lib/mountlist.c:506:16: branch_false: following 'false' branch...
coreutils-9.7/lib/mountlist.c:510:19: branch_false: ...to here
coreutils-9.7/lib/mountlist.c:511:21: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:511:21: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.7/lib/mountlist.c:512:16: branch_false: following 'false' branch...
coreutils-9.7/lib/mountlist.c:516:26: branch_false: ...to here
coreutils-9.7/lib/mountlist.c:522:21: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:522:21: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.7/lib/mountlist.c:528:19: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:528:19: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.7/lib/mountlist.c:540:31: throw: if 'xstrdup' throws an exception...
coreutils-9.7/lib/mountlist.c:540:31: danger: 'xmalloc(56)' leaks here; was allocated at [(31)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/30)
#  538|   
#  539|               me->me_devname = xstrdup (source);
#  540|->             me->me_mountdir = xstrdup (target);
#  541|               me->me_mntroot = xstrdup (mntroot);
#  542|               me->me_type = xstrdup (fstype);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def60]
coreutils-9.7/lib/mountlist.c:541:30: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
coreutils-9.7/lib/mountlist.c:464:1: enter_function: entry to 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:483:8: branch_true: following 'true' branch...
coreutils-9.7/lib/mountlist.c:485:15: branch_true: ...to here
coreutils-9.7/lib/mountlist.c:488:16: branch_true: following 'true' branch...
coreutils-9.7/lib/mountlist.c:493:18: branch_true: ...to here
coreutils-9.7/lib/mountlist.c:505:27: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:505:27: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.7/lib/mountlist.c:506:16: branch_false: following 'false' branch...
coreutils-9.7/lib/mountlist.c:510:19: branch_false: ...to here
coreutils-9.7/lib/mountlist.c:511:21: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:511:21: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.7/lib/mountlist.c:512:16: branch_false: following 'false' branch...
coreutils-9.7/lib/mountlist.c:516:26: branch_false: ...to here
coreutils-9.7/lib/mountlist.c:522:21: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:522:21: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.7/lib/mountlist.c:528:19: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:528:19: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.7/lib/mountlist.c:541:30: danger: '<unknown>' leaks here; was allocated at [(31)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/30)
#  539|               me->me_devname = xstrdup (source);
#  540|               me->me_mountdir = xstrdup (target);
#  541|->             me->me_mntroot = xstrdup (mntroot);
#  542|               me->me_type = xstrdup (fstype);
#  543|               me->me_type_malloced = 1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def61]
coreutils-9.7/lib/mountlist.c:541:30: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(56)'
coreutils-9.7/lib/mountlist.c:464:1: enter_function: entry to 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:483:8: branch_true: following 'true' branch...
coreutils-9.7/lib/mountlist.c:485:15: branch_true: ...to here
coreutils-9.7/lib/mountlist.c:488:16: branch_true: following 'true' branch...
coreutils-9.7/lib/mountlist.c:493:18: branch_true: ...to here
coreutils-9.7/lib/mountlist.c:505:27: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:505:27: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.7/lib/mountlist.c:506:16: branch_false: following 'false' branch...
coreutils-9.7/lib/mountlist.c:510:19: branch_false: ...to here
coreutils-9.7/lib/mountlist.c:511:21: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:511:21: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.7/lib/mountlist.c:512:16: branch_false: following 'false' branch...
coreutils-9.7/lib/mountlist.c:516:26: branch_false: ...to here
coreutils-9.7/lib/mountlist.c:522:21: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:522:21: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.7/lib/mountlist.c:528:19: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:528:19: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.7/lib/mountlist.c:541:30: throw: if 'xstrdup' throws an exception...
coreutils-9.7/lib/mountlist.c:541:30: danger: 'xmalloc(56)' leaks here; was allocated at [(31)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/30)
#  539|               me->me_devname = xstrdup (source);
#  540|               me->me_mountdir = xstrdup (target);
#  541|->             me->me_mntroot = xstrdup (mntroot);
#  542|               me->me_type = xstrdup (fstype);
#  543|               me->me_type_malloced = 1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def62]
coreutils-9.7/lib/mountlist.c:542:27: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
coreutils-9.7/lib/mountlist.c:464:1: enter_function: entry to 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:483:8: branch_true: following 'true' branch...
coreutils-9.7/lib/mountlist.c:485:15: branch_true: ...to here
coreutils-9.7/lib/mountlist.c:488:16: branch_true: following 'true' branch...
coreutils-9.7/lib/mountlist.c:493:18: branch_true: ...to here
coreutils-9.7/lib/mountlist.c:505:27: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:505:27: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.7/lib/mountlist.c:506:16: branch_false: following 'false' branch...
coreutils-9.7/lib/mountlist.c:510:19: branch_false: ...to here
coreutils-9.7/lib/mountlist.c:511:21: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:511:21: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.7/lib/mountlist.c:512:16: branch_false: following 'false' branch...
coreutils-9.7/lib/mountlist.c:516:26: branch_false: ...to here
coreutils-9.7/lib/mountlist.c:522:21: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:522:21: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.7/lib/mountlist.c:528:19: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:528:19: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.7/lib/mountlist.c:542:27: danger: '<unknown>' leaks here; was allocated at [(31)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/30)
#  540|               me->me_mountdir = xstrdup (target);
#  541|               me->me_mntroot = xstrdup (mntroot);
#  542|->             me->me_type = xstrdup (fstype);
#  543|               me->me_type_malloced = 1;
#  544|               me->me_dev = makedev (devmaj, devmin);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def63]
coreutils-9.7/lib/mountlist.c:542:27: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(56)'
coreutils-9.7/lib/mountlist.c:464:1: enter_function: entry to 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:483:8: branch_true: following 'true' branch...
coreutils-9.7/lib/mountlist.c:485:15: branch_true: ...to here
coreutils-9.7/lib/mountlist.c:488:16: branch_true: following 'true' branch...
coreutils-9.7/lib/mountlist.c:493:18: branch_true: ...to here
coreutils-9.7/lib/mountlist.c:505:27: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:505:27: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.7/lib/mountlist.c:506:16: branch_false: following 'false' branch...
coreutils-9.7/lib/mountlist.c:510:19: branch_false: ...to here
coreutils-9.7/lib/mountlist.c:511:21: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:511:21: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.7/lib/mountlist.c:512:16: branch_false: following 'false' branch...
coreutils-9.7/lib/mountlist.c:516:26: branch_false: ...to here
coreutils-9.7/lib/mountlist.c:522:21: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:522:21: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.7/lib/mountlist.c:528:19: call_function: calling 'terminate_at_blank' from 'read_file_system_list'
coreutils-9.7/lib/mountlist.c:528:19: return_function: returning to 'read_file_system_list' from 'terminate_at_blank'
coreutils-9.7/lib/mountlist.c:542:27: throw: if 'xstrdup' throws an exception...
coreutils-9.7/lib/mountlist.c:542:27: danger: 'xmalloc(56)' leaks here; was allocated at [(31)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/30)
#  540|               me->me_mountdir = xstrdup (target);
#  541|               me->me_mntroot = xstrdup (mntroot);
#  542|->             me->me_type = xstrdup (fstype);
#  543|               me->me_type_malloced = 1;
#  544|               me->me_dev = makedev (devmaj, devmin);

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

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

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

Error: GCC_ANALYZER_WARNING (CWE-457): [#def67]
coreutils-9.7/lib/posixtm.c:55:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*digit_pair'
coreutils-9.7/lib/posixtm.c:92:1: enter_function: entry to 'posix_time_parse'
coreutils-9.7/lib/posixtm.c:111:6: branch_false: following 'false' branch...
coreutils-9.7/lib/posixtm.c:119:21: branch_false: following 'false' branch (when 'i >= len')...
coreutils-9.7/lib/posixtm.c:123:9: branch_false: ...to here
coreutils-9.7/lib/posixtm.c:123:6: branch_true: following 'true' branch...
coreutils-9.7/lib/posixtm.c:125:13: branch_true: ...to here
coreutils-9.7/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): [#def68]
coreutils-9.7/lib/posixtm.c:70:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*digit_pair'
coreutils-9.7/lib/posixtm.c:92:1: enter_function: entry to 'posix_time_parse'
coreutils-9.7/lib/posixtm.c:111:6: branch_false: following 'false' branch...
coreutils-9.7/lib/posixtm.c:119:21: branch_false: following 'false' branch (when 'i >= len')...
coreutils-9.7/lib/posixtm.c:123:9: branch_false: ...to here
coreutils-9.7/lib/posixtm.c:123:6: branch_true: following 'true' branch...
coreutils-9.7/lib/posixtm.c:125:13: branch_true: ...to here
coreutils-9.7/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): [#def69]
coreutils-9.7/lib/posixtm.c:70:43: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'digit_pair[1]'
coreutils-9.7/lib/posixtm.c:92:1: enter_function: entry to 'posix_time_parse'
coreutils-9.7/lib/posixtm.c:111:6: branch_false: following 'false' branch...
coreutils-9.7/lib/posixtm.c:119:21: branch_true: following 'true' branch (when 'i < len')...
coreutils-9.7/lib/posixtm.c:120:23: branch_true: ...to here
coreutils-9.7/lib/posixtm.c:119:21: branch_false: following 'false' branch (when 'i >= len')...
coreutils-9.7/lib/posixtm.c:123:9: branch_false: ...to here
coreutils-9.7/lib/posixtm.c:123:6: branch_true: following 'true' branch...
coreutils-9.7/lib/posixtm.c:125:13: branch_true: ...to here
coreutils-9.7/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): [#def70]
coreutils-9.7/lib/randint.c:74:3: warning[-Wanalyzer-malloc-leak]: leak of 'randread_new(name,  bytes_bound)'
coreutils-9.7/lib/randint.c:84:1: enter_function: entry to 'randint_all_new'
coreutils-9.7/lib/randint.c:86:36: acquire_memory: allocated here
coreutils-9.7/lib/randint.c:87:10: branch_true: following 'true' branch...
coreutils-9.7/lib/randint.c:87:20: branch_true: ...to here
coreutils-9.7/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): [#def71]
coreutils-9.7/lib/randint.h:52:10: warning[-Wanalyzer-malloc-leak]: leak of 'sv'
coreutils-9.7/lib/randperm.c:149:1: enter_function: entry to 'randperm_new'
coreutils-9.7/lib/randperm.c:193:23: branch_true: following 'true' branch...
coreutils-9.7/lib/randperm.c:200:18: call_function: calling 'sparse_new' from 'randperm_new'
coreutils-9.7/lib/randperm.c:200:18: return_function: returning to 'randperm_new' from 'sparse_new'
coreutils-9.7/lib/randperm.c:201:16: branch_false: following 'false' branch...
coreutils-9.7/lib/randperm.c:203:17: branch_false: ...to here
coreutils-9.7/lib/randperm.c:213:21: branch_true: following 'true' branch (when 'i < h')...
coreutils-9.7/lib/randperm.c:215:47: branch_true: ...to here
coreutils-9.7/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): [#def72]
coreutils-9.7/lib/randint.h:52:10: warning[-Wanalyzer-malloc-leak]: leak of 'v'
coreutils-9.7/lib/randperm.c:149:1: enter_function: entry to 'randperm_new'
coreutils-9.7/lib/randperm.c:213:21: branch_true: following 'true' branch (when 'i < h')...
coreutils-9.7/lib/randperm.c:215:47: branch_true: ...to here
coreutils-9.7/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): [#def73]
coreutils-9.7/lib/randint.h:52:10: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(8)'
coreutils-9.7/lib/randperm.c:149:1: enter_function: entry to 'randperm_new'
coreutils-9.7/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): [#def74]
coreutils-9.7/lib/randperm.c:111:28: warning[-Wanalyzer-malloc-leak]: leak of 'sv'
coreutils-9.7/lib/randperm.c:149:1: enter_function: entry to 'randperm_new'
coreutils-9.7/lib/randperm.c:193:23: branch_true: following 'true' branch...
coreutils-9.7/lib/randperm.c:200:18: call_function: calling 'sparse_new' from 'randperm_new'
coreutils-9.7/lib/randperm.c:200:18: return_function: returning to 'randperm_new' from 'sparse_new'
coreutils-9.7/lib/randperm.c:201:16: branch_false: following 'false' branch...
coreutils-9.7/lib/randperm.c:203:17: branch_false: ...to here
coreutils-9.7/lib/randperm.c:213:21: branch_true: following 'true' branch (when 'i < h')...
coreutils-9.7/lib/randperm.c:215:47: branch_true: ...to here
coreutils-9.7/lib/randperm.c:216:16: branch_true: following 'true' branch (when 'sparse != 0')...
coreutils-9.7/lib/randperm.c:217:15: branch_true: ...to here
coreutils-9.7/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): [#def75]
coreutils-9.7/lib/randperm.c:111:28: warning[-Wanalyzer-malloc-leak]: leak of 'v'
coreutils-9.7/lib/randperm.c:149:1: enter_function: entry to 'randperm_new'
coreutils-9.7/lib/randperm.c:193:23: branch_true: following 'true' branch...
coreutils-9.7/lib/randperm.c:201:16: branch_false: following 'false' branch...
coreutils-9.7/lib/randperm.c:203:17: branch_false: ...to here
coreutils-9.7/lib/randperm.c:213:21: branch_true: following 'true' branch (when 'i < h')...
coreutils-9.7/lib/randperm.c:215:47: branch_true: ...to here
coreutils-9.7/lib/randperm.c:216:16: branch_true: following 'true' branch (when 'sparse != 0')...
coreutils-9.7/lib/randperm.c:217:15: branch_true: ...to here
coreutils-9.7/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): [#def76]
coreutils-9.7/lib/randperm.c:112:28: warning[-Wanalyzer-malloc-leak]: leak of 'v'
coreutils-9.7/lib/randperm.c:149:1: enter_function: entry to 'randperm_new'
coreutils-9.7/lib/randperm.c:193:23: branch_true: following 'true' branch...
coreutils-9.7/lib/randperm.c:201:16: branch_false: following 'false' branch...
coreutils-9.7/lib/randperm.c:203:17: branch_false: ...to here
coreutils-9.7/lib/randperm.c:213:21: branch_true: following 'true' branch (when 'i < h')...
coreutils-9.7/lib/randperm.c:215:47: branch_true: ...to here
coreutils-9.7/lib/randperm.c:216:16: branch_true: following 'true' branch (when 'sparse != 0')...
coreutils-9.7/lib/randperm.c:217:15: branch_true: ...to here
coreutils-9.7/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): [#def77]
coreutils-9.7/lib/randperm.c:117:12: warning[-Wanalyzer-malloc-leak]: leak of 'v'
coreutils-9.7/lib/randperm.c:149:1: enter_function: entry to 'randperm_new'
coreutils-9.7/lib/randperm.c:193:23: branch_true: following 'true' branch...
coreutils-9.7/lib/randperm.c:201:16: branch_false: following 'false' branch...
coreutils-9.7/lib/randperm.c:203:17: branch_false: ...to here
coreutils-9.7/lib/randperm.c:213:21: branch_true: following 'true' branch (when 'i < h')...
coreutils-9.7/lib/randperm.c:215:47: branch_true: ...to here
coreutils-9.7/lib/randperm.c:216:16: branch_true: following 'true' branch (when 'sparse != 0')...
coreutils-9.7/lib/randperm.c:217:15: branch_true: ...to here
coreutils-9.7/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): [#def78]
coreutils-9.7/lib/randperm.c:122:12: warning[-Wanalyzer-malloc-leak]: leak of 'v'
coreutils-9.7/lib/randperm.c:149:1: enter_function: entry to 'randperm_new'
coreutils-9.7/lib/randperm.c:193:23: branch_true: following 'true' branch...
coreutils-9.7/lib/randperm.c:201:16: branch_false: following 'false' branch...
coreutils-9.7/lib/randperm.c:203:17: branch_false: ...to here
coreutils-9.7/lib/randperm.c:213:21: branch_true: following 'true' branch (when 'i < h')...
coreutils-9.7/lib/randperm.c:215:47: branch_true: ...to here
coreutils-9.7/lib/randperm.c:216:16: branch_true: following 'true' branch (when 'sparse != 0')...
coreutils-9.7/lib/randperm.c:217:15: branch_true: ...to here
coreutils-9.7/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): [#def79]
coreutils-9.7/lib/randperm.c:122:12: warning[-Wanalyzer-malloc-leak]: leak of 'v1'
coreutils-9.7/lib/randperm.c:115:6: branch_true: following 'true' branch...
coreutils-9.7/lib/randperm.c:117:12: branch_true: ...to here
coreutils-9.7/lib/randperm.c:120:6: branch_true: following 'true' branch...
coreutils-9.7/lib/randperm.c:122:12: branch_true: ...to here
coreutils-9.7/lib/randperm.c:122:12: throw: if 'xmalloc' throws an exception...
coreutils-9.7/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): [#def80]
coreutils-9.7/lib/randperm.c:129:8: warning[-Wanalyzer-malloc-leak]: leak of 'v'
coreutils-9.7/lib/randperm.c:149:1: enter_function: entry to 'randperm_new'
coreutils-9.7/lib/randperm.c:193:23: branch_true: following 'true' branch...
coreutils-9.7/lib/randperm.c:201:16: branch_false: following 'false' branch...
coreutils-9.7/lib/randperm.c:203:17: branch_false: ...to here
coreutils-9.7/lib/randperm.c:213:21: branch_true: following 'true' branch (when 'i < h')...
coreutils-9.7/lib/randperm.c:215:47: branch_true: ...to here
coreutils-9.7/lib/randperm.c:216:16: branch_true: following 'true' branch (when 'sparse != 0')...
coreutils-9.7/lib/randperm.c:217:15: branch_true: ...to here
coreutils-9.7/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): [#def81]
coreutils-9.7/lib/randperm.c:129:8: warning[-Wanalyzer-malloc-leak]: leak of 'v1'
coreutils-9.7/lib/randperm.c:115:6: branch_true: following 'true' branch...
coreutils-9.7/lib/randperm.c:117:12: branch_true: ...to here
coreutils-9.7/lib/randperm.c:120:6: branch_false: following 'false' branch...
coreutils-9.7/lib/randperm.c:126:10: branch_false: ...to here
coreutils-9.7/lib/randperm.c:129:8: throw: if 'hash_insert' throws an exception...
coreutils-9.7/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): [#def82]
coreutils-9.7/lib/randperm.c:129:8: warning[-Wanalyzer-malloc-leak]: leak of 'v2'
coreutils-9.7/lib/randperm.c:115:6: branch_false: following 'false' branch...
coreutils-9.7/lib/randperm.c:120:6: branch_false: ...to here
coreutils-9.7/lib/randperm.c:120:6: branch_true: following 'true' branch...
coreutils-9.7/lib/randperm.c:122:12: branch_true: ...to here
coreutils-9.7/lib/randperm.c:129:8: throw: if 'hash_insert' throws an exception...
coreutils-9.7/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): [#def83]
coreutils-9.7/lib/randperm.c:130:5: warning[-Wanalyzer-malloc-leak]: leak of 'v1'
coreutils-9.7/lib/randperm.c:115:6: branch_true: following 'true' branch...
coreutils-9.7/lib/randperm.c:117:12: branch_true: ...to here
coreutils-9.7/lib/randperm.c:120:6: branch_false: following 'false' branch...
coreutils-9.7/lib/randperm.c:126:10: branch_false: ...to here
coreutils-9.7/lib/randperm.c:129:6: branch_true: following 'true' branch...
coreutils-9.7/lib/randperm.c:130:5: branch_true: ...to here
coreutils-9.7/lib/randperm.c:130:5: throw: if 'xalloc_die' throws an exception...
coreutils-9.7/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): [#def84]
coreutils-9.7/lib/randperm.c:130:5: warning[-Wanalyzer-malloc-leak]: leak of 'v2'
coreutils-9.7/lib/randperm.c:115:6: branch_false: following 'false' branch...
coreutils-9.7/lib/randperm.c:120:6: branch_false: ...to here
coreutils-9.7/lib/randperm.c:120:6: branch_true: following 'true' branch...
coreutils-9.7/lib/randperm.c:122:12: branch_true: ...to here
coreutils-9.7/lib/randperm.c:129:6: branch_true: following 'true' branch...
coreutils-9.7/lib/randperm.c:130:5: branch_true: ...to here
coreutils-9.7/lib/randperm.c:130:5: throw: if 'xalloc_die' throws an exception...
coreutils-9.7/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): [#def85]
coreutils-9.7/lib/randperm.c:131:8: warning[-Wanalyzer-malloc-leak]: leak of 'v1'
coreutils-9.7/lib/randperm.c:115:6: branch_true: following 'true' branch...
coreutils-9.7/lib/randperm.c:117:12: branch_true: ...to here
coreutils-9.7/lib/randperm.c:120:6: branch_false: following 'false' branch...
coreutils-9.7/lib/randperm.c:126:10: branch_false: ...to here
coreutils-9.7/lib/randperm.c:129:6: branch_false: following 'false' branch...
coreutils-9.7/lib/randperm.c:131:8: branch_false: ...to here
coreutils-9.7/lib/randperm.c:131:8: throw: if 'hash_insert' throws an exception...
coreutils-9.7/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): [#def86]
coreutils-9.7/lib/randperm.c:131:8: warning[-Wanalyzer-malloc-leak]: leak of 'v2'
coreutils-9.7/lib/randperm.c:115:6: branch_false: following 'false' branch...
coreutils-9.7/lib/randperm.c:120:6: branch_false: ...to here
coreutils-9.7/lib/randperm.c:120:6: branch_true: following 'true' branch...
coreutils-9.7/lib/randperm.c:122:12: branch_true: ...to here
coreutils-9.7/lib/randperm.c:129:6: branch_false: following 'false' branch...
coreutils-9.7/lib/randperm.c:131:8: branch_false: ...to here
coreutils-9.7/lib/randperm.c:131:8: throw: if 'hash_insert' throws an exception...
coreutils-9.7/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): [#def87]
coreutils-9.7/lib/randperm.c:132:5: warning[-Wanalyzer-malloc-leak]: leak of 'v1'
coreutils-9.7/lib/randperm.c:115:6: branch_true: following 'true' branch...
coreutils-9.7/lib/randperm.c:117:12: branch_true: ...to here
coreutils-9.7/lib/randperm.c:120:6: branch_false: following 'false' branch...
coreutils-9.7/lib/randperm.c:126:10: branch_false: ...to here
coreutils-9.7/lib/randperm.c:129:6: branch_false: following 'false' branch...
coreutils-9.7/lib/randperm.c:131:8: branch_false: ...to here
coreutils-9.7/lib/randperm.c:131:6: branch_true: following 'true' branch...
coreutils-9.7/lib/randperm.c:132:5: branch_true: ...to here
coreutils-9.7/lib/randperm.c:132:5: throw: if 'xalloc_die' throws an exception...
coreutils-9.7/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): [#def88]
coreutils-9.7/lib/randperm.c:132:5: warning[-Wanalyzer-malloc-leak]: leak of 'v2'
coreutils-9.7/lib/randperm.c:115:6: branch_false: following 'false' branch...
coreutils-9.7/lib/randperm.c:120:6: branch_false: ...to here
coreutils-9.7/lib/randperm.c:120:6: branch_true: following 'true' branch...
coreutils-9.7/lib/randperm.c:122:12: branch_true: ...to here
coreutils-9.7/lib/randperm.c:129:6: branch_false: following 'false' branch...
coreutils-9.7/lib/randperm.c:131:8: branch_false: ...to here
coreutils-9.7/lib/randperm.c:131:6: branch_true: following 'true' branch...
coreutils-9.7/lib/randperm.c:132:5: branch_true: ...to here
coreutils-9.7/lib/randperm.c:132:5: throw: if 'xalloc_die' throws an exception...
coreutils-9.7/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): [#def89]
coreutils-9.7/lib/randperm.c:135:1: warning[-Wanalyzer-malloc-leak]: leak of 'v1'
coreutils-9.7/lib/randperm.c:115:6: branch_true: following 'true' branch...
coreutils-9.7/lib/randperm.c:117:12: branch_true: ...to here
coreutils-9.7/lib/randperm.c:120:6: branch_false: following 'false' branch...
coreutils-9.7/lib/randperm.c:126:10: branch_false: ...to here
coreutils-9.7/lib/randperm.c:129:6: branch_false: following 'false' branch...
coreutils-9.7/lib/randperm.c:131:8: branch_false: ...to here
coreutils-9.7/lib/randperm.c:131:6: branch_false: following 'false' branch...
coreutils-9.7/lib/randperm.c:134:4: branch_false: ...to here
coreutils-9.7/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): [#def90]
coreutils-9.7/lib/randperm.c:135:1: warning[-Wanalyzer-malloc-leak]: leak of 'v2'
coreutils-9.7/lib/randperm.c:115:6: branch_false: following 'false' branch...
coreutils-9.7/lib/randperm.c:120:6: branch_false: ...to here
coreutils-9.7/lib/randperm.c:120:6: branch_true: following 'true' branch...
coreutils-9.7/lib/randperm.c:122:12: branch_true: ...to here
coreutils-9.7/lib/randperm.c:129:6: branch_false: following 'false' branch...
coreutils-9.7/lib/randperm.c:131:8: branch_false: ...to here
coreutils-9.7/lib/randperm.c:131:6: branch_false: following 'false' branch...
coreutils-9.7/lib/randperm.c:134:4: branch_false: ...to here
coreutils-9.7/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): [#def91]
coreutils-9.7/lib/randperm.c:203:17: warning[-Wanalyzer-malloc-leak]: leak of 'sparse_new(h * 2)'
coreutils-9.7/lib/randperm.c:149:1: enter_function: entry to 'randperm_new'
coreutils-9.7/lib/randperm.c:193:23: branch_true: following 'true' branch...
coreutils-9.7/lib/randperm.c:200:18: call_function: calling 'sparse_new' from 'randperm_new'
coreutils-9.7/lib/randperm.c:200:18: return_function: returning to 'randperm_new' from 'sparse_new'
coreutils-9.7/lib/randperm.c:201:16: branch_false: following 'false' branch...
coreutils-9.7/lib/randperm.c:203:17: branch_false: ...to here
coreutils-9.7/lib/randperm.c:203:17: throw: if 'xnmalloc' throws an exception...
coreutils-9.7/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): [#def92]
coreutils-9.7/lib/randread.c:119:31: warning[-Wanalyzer-malloc-leak]: leak of 'source'
coreutils-9.7/lib/randread.c:173:1: enter_function: entry to 'randread_new'
coreutils-9.7/lib/randread.c:175:6: branch_false: following 'false' branch (when 'bytes_bound != 0')...
coreutils-9.7/lib/randread.c:182:10: branch_false: ...to here
coreutils-9.7/lib/randread.c:182:10: branch_true: following 'true' branch (when 'name' is non-NULL)...
coreutils-9.7/lib/randread.c:183:25: branch_true: ...to here
coreutils-9.7/lib/randread.c:183:25: acquire_memory: allocated here
coreutils-9.7/lib/randread.c:183:12: branch_false: following 'false' branch...
coreutils-9.7/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): [#def93]
coreutils-9.7/lib/randread.c:203:28: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(4152)'
coreutils-9.7/lib/randread.c:173:1: enter_function: entry to 'randread_new'
coreutils-9.7/lib/randread.c:175:6: branch_false: following 'false' branch (when 'bytes_bound != 0')...
coreutils-9.7/lib/randread.c:182:10: branch_false: ...to here
coreutils-9.7/lib/randread.c:182:10: branch_false: following 'false' branch (when 'name' is NULL)...
coreutils-9.7/lib/randread.c:186:11: call_function: inlined call to 'simple_new' from 'randread_new'
coreutils-9.7/lib/randread.c:188:10: branch_false: following 'false' branch (when 'source' is NULL)...
coreutils-9.7/lib/randread.c:202:11: branch_false: ...to here
coreutils-9.7/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): [#def94]
coreutils-9.7/lib/read-file.c:199:7: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(filename,  mode)'
coreutils-9.7/lib/read-file.c:190:1: enter_function: entry to 'read_file'
coreutils-9.7/lib/read-file.c:193:18: acquire_resource: opened here
coreutils-9.7/lib/read-file.c:196:6: branch_false: following 'false' branch...
coreutils-9.7/lib/read-file.c:199:7: branch_false: ...to here
coreutils-9.7/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): [#def95]
coreutils-9.7/lib/read-file.c:199:7: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(filename,  mode)'
coreutils-9.7/lib/read-file.c:190:1: enter_function: entry to 'read_file'
coreutils-9.7/lib/read-file.c:193:18: acquire_memory: allocated here
coreutils-9.7/lib/read-file.c:196:6: branch_false: following 'false' branch...
coreutils-9.7/lib/read-file.c:199:7: branch_false: ...to here
coreutils-9.7/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): [#def96]
coreutils-9.7/lib/readtokens.c:110:13: warning[-Wanalyzer-malloc-leak]: leak of 'lengths'
coreutils-9.7/lib/readtokens.c:139:1: enter_function: entry to 'readtokens'
coreutils-9.7/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): [#def97]
coreutils-9.7/lib/readtokens.c:110:13: warning[-Wanalyzer-malloc-leak]: leak of 'tokens'
coreutils-9.7/lib/readtokens.c:139:1: enter_function: entry to 'readtokens'
coreutils-9.7/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): [#def98]
coreutils-9.7/lib/readtokens.c:158:13: warning[-Wanalyzer-malloc-leak]: leak of 'xnmalloc(projected_n_tokens, 8)'
coreutils-9.7/lib/readtokens.c:158:13: throw: if 'xnmalloc' throws an exception...
coreutils-9.7/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): [#def99]
coreutils-9.7/lib/readutmp.c:255:3: warning[-Wanalyzer-null-dereference]: dereference of NULL 'p'
coreutils-9.7/lib/readutmp.c:981:1: enter_function: entry to 'read_utmp'
coreutils-9.7/lib/readutmp.c:985:6: branch_true: following 'true' branch (when the strings are equal)...
coreutils-9.7/lib/readutmp.c:987:12: branch_true: ...to here
coreutils-9.7/lib/readutmp.c:987:12: call_function: calling 'read_utmp_from_systemd' from 'read_utmp'
#  253|     char *stringlim = (char *) a.utmp + a.alloc_bytes;
#  254|     char *p = stringlim - a.string_bytes;
#  255|->   *--p = '\0'; /* NUL-terminate ut->ut_user */
#  256|     ut->ut_user = p = memcpy (p - user_len, user, user_len);
#  257|     *--p = '\0'; /* NUL-terminate ut->ut_id */

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

Error: GCC_ANALYZER_WARNING (CWE-401): [#def101]
coreutils-9.7/lib/sha1-stream.c:59:3: warning[-Wanalyzer-malloc-leak]: leak of 'buffer'
coreutils-9.7/lib/sha1-stream.c:54:18: acquire_memory: allocated here
coreutils-9.7/lib/sha1-stream.c:55:6: branch_false: following 'false' branch (when 'buffer' is non-NULL)...
coreutils-9.7/lib/sha1-stream.c:59:3: branch_false: ...to here
coreutils-9.7/lib/sha1-stream.c:59:3: throw: if 'sha1_init_ctx' throws an exception...
coreutils-9.7/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): [#def102]
coreutils-9.7/lib/sha256-stream.c:61:3: warning[-Wanalyzer-malloc-leak]: leak of 'buffer'
coreutils-9.7/lib/sha256-stream.c:131:1: enter_function: entry to 'sha224_stream'
coreutils-9.7/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): [#def103]
coreutils-9.7/lib/sha512-stream.c:61:3: warning[-Wanalyzer-malloc-leak]: leak of 'buffer'
coreutils-9.7/lib/sha512-stream.c:131:1: enter_function: entry to 'sha384_stream'
coreutils-9.7/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): [#def104]
coreutils-9.7/lib/sm3-stream.c:56:3: warning[-Wanalyzer-malloc-leak]: leak of 'buffer'
coreutils-9.7/lib/sm3-stream.c:51:18: acquire_memory: allocated here
coreutils-9.7/lib/sm3-stream.c:52:6: branch_false: following 'false' branch (when 'buffer' is non-NULL)...
coreutils-9.7/lib/sm3-stream.c:56:3: branch_false: ...to here
coreutils-9.7/lib/sm3-stream.c:56:3: throw: if 'sm3_init_ctx' throws an exception...
coreutils-9.7/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): [#def105]
coreutils-9.7/lib/time_rz.c:88:22: warning[-Wanalyzer-malloc-leak]: leak of 'tzalloc(getenv("TZ"))'
coreutils-9.7/separate/lib/time.h:1116:1: enter_function: entry to 'mktime_z'
coreutils-9.7/lib/time_rz.c:282:6: branch_false: following 'false' branch (when 'tz' is non-NULL)...
coreutils-9.7/lib/time_rz.c:286:27: branch_false: ...to here
coreutils-9.7/lib/time_rz.c:286:27: call_function: calling 'set_tz' from 'mktime_z'
#   86|   {
#   87|     size_t name_size = name ? strlen (name) + 1 : 0;
#   88|->   size_t abbr_size = name_size < ABBR_SIZE_MIN ? ABBR_SIZE_MIN : name_size + 1;
#   89|     timezone_t tz = malloc (FLEXSIZEOF (struct tm_zone, abbrs, abbr_size));
#   90|     if (tz)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def106]
coreutils-9.7/lib/time_rz.c:206:10: warning[-Wanalyzer-malloc-leak]: leak of 'set_tz(tz)'
coreutils-9.7/separate/lib/time.h:1116:1: enter_function: entry to 'mktime_z'
coreutils-9.7/lib/time_rz.c:282:6: branch_false: following 'false' branch (when 'tz' is non-NULL)...
coreutils-9.7/lib/time_rz.c:286:27: branch_false: ...to here
coreutils-9.7/lib/time_rz.c:286:27: call_function: calling 'set_tz' from 'mktime_z'
coreutils-9.7/lib/time_rz.c:286:27: return_function: returning to 'mktime_z' from 'set_tz'
coreutils-9.7/lib/time_rz.c:287:10: branch_true: following 'true' branch...
coreutils-9.7/lib/time_rz.c:290:25: branch_true: ...to here
coreutils-9.7/lib/time_rz.c:301:15: call_function: calling 'revert_tz' from 'mktime_z'
#  204|     if (env_tz
#  205|         ? tz->tz_is_set && strcmp (tz->abbrs, env_tz) == 0
#  206|->       : !tz->tz_is_set)
#  207|       return local_tz;
#  208|     else

Error: GCC_ANALYZER_WARNING (CWE-401): [#def107]
coreutils-9.7/lib/userspec.c:156:33: warning[-Wanalyzer-malloc-leak]: leak of 'u'
coreutils-9.7/lib/userspec.c:258:1: enter_function: entry to 'parse_user_spec_warn'
coreutils-9.7/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): [#def108]
coreutils-9.7/lib/userspec.c:170:19: warning[-Wanalyzer-malloc-leak]: leak of 'u'
coreutils-9.7/lib/userspec.c:258:1: enter_function: entry to 'parse_user_spec_warn'
coreutils-9.7/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): [#def109]
coreutils-9.7/lib/userspec.c:191:7: warning[-Wanalyzer-malloc-leak]: leak of 'u'
coreutils-9.7/lib/userspec.c:258:1: enter_function: entry to 'parse_user_spec_warn'
coreutils-9.7/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): [#def110]
coreutils-9.7/lib/xalloc.h:149:10: warning[-Wanalyzer-malloc-leak]: leak of 'v'
coreutils-9.7/lib/randperm.c:149:1: enter_function: entry to 'randperm_new'
coreutils-9.7/lib/randperm.c:213:21: branch_true: following 'true' branch (when 'i < h')...
coreutils-9.7/lib/randperm.c:215:47: branch_true: ...to here
coreutils-9.7/lib/randperm.c:216:16: branch_false: following 'false' branch (when 'sparse == 0')...
coreutils-9.7/lib/randperm.c:219:15: call_function: inlined call to 'swap' from 'randperm_new'
coreutils-9.7/lib/randperm.c:216:16: branch_false: following 'false' branch (when 'sparse == 0')...
coreutils-9.7/lib/randperm.c:219:15: call_function: inlined call to 'swap' from 'randperm_new'
coreutils-9.7/lib/randperm.c:222:12: branch_false: following 'false' branch (when 'sparse == 0')...
coreutils-9.7/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): [#def111]
coreutils-9.7/lib/xasprintf.c:30:12: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
coreutils-9.7/lib/xasprintf.c:29:3: acquire_resource: 'va_start' called here
coreutils-9.7/lib/xasprintf.c:30:12: throw: if 'xvasprintf' throws an exception...
coreutils-9.7/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): [#def112]
coreutils-9.7/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): [#def113]
coreutils-9.7/lib/xdectoint.c:83: warning[uninitvar]: Uninitialized variable: r
#   81|   
#   82|     errno = e;
#   83|->   return r;
#   84|   }
#   85|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def114]
coreutils-9.7/lib/xprintf.c:46:20: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
coreutils-9.7/lib/xprintf.c:32:1: enter_function: entry to 'xprintf'
coreutils-9.7/lib/xprintf.c:36:3: acquire_resource: 'va_start' called here
coreutils-9.7/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, "%s", _("cannot perform formatted output"));

Error: GCC_ANALYZER_WARNING (CWE-404): [#def115]
coreutils-9.7/lib/xprintf.c:68:20: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
coreutils-9.7/lib/xprintf.c:54:1: enter_function: entry to 'xfprintf'
coreutils-9.7/lib/xprintf.c:58:3: acquire_resource: 'va_start' called here
coreutils-9.7/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, "%s", _("cannot perform formatted output"));

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

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

Error: GCC_ANALYZER_WARNING (CWE-401): [#def118]
coreutils-9.7/src/basename.c:106:3: warning[-Wanalyzer-malloc-leak]: leak of 'base_name(string)'
coreutils-9.7/src/basename.c:106:3: throw: if 'strip_trailing_slashes' throws an exception...
coreutils-9.7/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): [#def119]
coreutils-9.7/src/basenc.c:1096:12: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(30720)'
coreutils-9.7/src/basenc.c:1215:1: enter_function: entry to 'main'
coreutils-9.7/src/basenc.c:1365:6: branch_false: following 'false' branch...
coreutils-9.7/src/basenc.c:1371:6: branch_false: ...to here
coreutils-9.7/src/basenc.c:1390:6: branch_false: following 'false' branch (when 'decode == 0')...
coreutils-9.7/src/basenc.c:1393:5: branch_false: ...to here
coreutils-9.7/src/basenc.c:1393:5: call_function: calling 'do_encode' from 'main'
# 1094|   
# 1095|     inbuf = xmalloc (ENC_BLOCKSIZE);
# 1096|->   outbuf = xmalloc (BASE_LENGTH (ENC_BLOCKSIZE));
# 1097|   
# 1098|     do

Error: GCC_ANALYZER_WARNING (CWE-401): [#def120]
coreutils-9.7/src/basenc.c:1096:21: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(30720)'
coreutils-9.7/src/basenc.c:1096:21: throw: if the called function throws an exception...
coreutils-9.7/src/basenc.c:1096:21: danger: 'xmalloc(30720)' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
# 1094|   
# 1095|     inbuf = xmalloc (ENC_BLOCKSIZE);
# 1096|->   outbuf = xmalloc (BASE_LENGTH (ENC_BLOCKSIZE));
# 1097|   
# 1098|     do

Error: GCC_ANALYZER_WARNING (CWE-401): [#def121]
coreutils-9.7/src/basenc.c:1105:15: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc((long unsigned int)base_length(30720))'
coreutils-9.7/src/basenc.c:1089:1: enter_function: entry to 'do_encode'
coreutils-9.7/src/basenc.c:1110:10: branch_false: following 'false' branch (when 'sum <= 0')...
coreutils-9.7/src/basenc.c:1120:11: call_function: inlined call to 'feof_unlocked' from 'do_encode'
coreutils-9.7/src/basenc.c:1105:15: danger: 'xmalloc((long unsigned int)base_length(30720))' leaks here; was allocated at [(2)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/1)
# 1103|         do
# 1104|           {
# 1105|->           n = fread (inbuf + sum, 1, ENC_BLOCKSIZE - sum, in);
# 1106|             sum += n;
# 1107|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def122]
coreutils-9.7/src/basenc.c:1105:15: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(40960)'
coreutils-9.7/src/basenc.c:1215:1: enter_function: entry to 'main'
coreutils-9.7/src/basenc.c:1365:6: branch_false: following 'false' branch...
coreutils-9.7/src/basenc.c:1371:6: branch_false: ...to here
coreutils-9.7/src/basenc.c:1390:6: branch_false: following 'false' branch (when 'decode == 0')...
coreutils-9.7/src/basenc.c:1393:5: branch_false: ...to here
coreutils-9.7/src/basenc.c:1393:5: call_function: calling 'do_encode' from 'main'
# 1103|         do
# 1104|           {
# 1105|->           n = fread (inbuf + sum, 1, ENC_BLOCKSIZE - sum, in);
# 1106|             sum += n;
# 1107|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def123]
coreutils-9.7/src/basenc.c:1105:15: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(49152)'
coreutils-9.7/src/basenc.c:1215:1: enter_function: entry to 'main'
coreutils-9.7/src/basenc.c:1365:6: branch_false: following 'false' branch...
coreutils-9.7/src/basenc.c:1371:6: branch_false: ...to here
coreutils-9.7/src/basenc.c:1390:6: branch_false: following 'false' branch (when 'decode == 0')...
coreutils-9.7/src/basenc.c:1393:5: branch_false: ...to here
coreutils-9.7/src/basenc.c:1393:5: call_function: calling 'do_encode' from 'main'
# 1103|         do
# 1104|           {
# 1105|->           n = fread (inbuf + sum, 1, ENC_BLOCKSIZE - sum, in);
# 1106|             sum += n;
# 1107|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def124]
coreutils-9.7/src/basenc.c:1141:12: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc((long unsigned int)base_length(4200))'
coreutils-9.7/src/basenc.c:1141:12: throw: if 'xmalloc' throws an exception...
coreutils-9.7/src/basenc.c:1141:12: danger: 'xmalloc((long unsigned int)base_length(4200))' leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
# 1139|     char padbuf[8] _GL_ATTRIBUTE_NONSTRING = "========";
# 1140|     inbuf = xmalloc (BASE_LENGTH (DEC_BLOCKSIZE));
# 1141|->   outbuf = xmalloc (DEC_BLOCKSIZE);
# 1142|   
# 1143|   #if BASE_TYPE == 42

Error: GCC_ANALYZER_WARNING (CWE-401): [#def125]
coreutils-9.7/src/basenc.c:1141:12: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(4096)'
coreutils-9.7/src/basenc.c:1141:12: throw: if 'xmalloc' throws an exception...
coreutils-9.7/src/basenc.c:1141:12: danger: 'xmalloc(4096)' leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
# 1139|     char padbuf[8] _GL_ATTRIBUTE_NONSTRING = "========";
# 1140|     inbuf = xmalloc (BASE_LENGTH (DEC_BLOCKSIZE));
# 1141|->   outbuf = xmalloc (DEC_BLOCKSIZE);
# 1142|   
# 1143|   #if BASE_TYPE == 42

Error: GCC_ANALYZER_WARNING (CWE-401): [#def126]
coreutils-9.7/src/basenc.c:1141:12: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(8192)'
coreutils-9.7/src/basenc.c:1141:12: throw: if 'xmalloc' throws an exception...
coreutils-9.7/src/basenc.c:1141:12: danger: 'xmalloc(8192)' leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
# 1139|     char padbuf[8] _GL_ATTRIBUTE_NONSTRING = "========";
# 1140|     inbuf = xmalloc (BASE_LENGTH (DEC_BLOCKSIZE));
# 1141|->   outbuf = xmalloc (DEC_BLOCKSIZE);
# 1142|   
# 1143|   #if BASE_TYPE == 42

Error: GCC_ANALYZER_WARNING (CWE-401): [#def127]
coreutils-9.7/src/basenc.c:1146:3: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc((long unsigned int)base_length(4200))'
coreutils-9.7/src/basenc.c:1146:3: throw: if the called function throws an exception...
coreutils-9.7/src/basenc.c:1146:3: danger: 'xmalloc((long unsigned int)base_length(4200))' leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
# 1144|     ctx.inbuf = nullptr;
# 1145|   #endif
# 1146|->   base_decode_ctx_init (&ctx);
# 1147|   
# 1148|     do

Error: GCC_ANALYZER_WARNING (CWE-401): [#def128]
coreutils-9.7/src/basenc.c:1146:3: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(4200)'
coreutils-9.7/src/basenc.c:1146:3: throw: if the called function throws an exception...
coreutils-9.7/src/basenc.c:1146:3: danger: 'xmalloc(4200)' leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
# 1144|     ctx.inbuf = nullptr;
# 1145|   #endif
# 1146|->   base_decode_ctx_init (&ctx);
# 1147|   
# 1148|     do

Error: GCC_ANALYZER_WARNING (CWE-401): [#def129]
coreutils-9.7/src/basenc.c:1155:21: warning[-Wanalyzer-malloc-leak]: leak of 'inbuf'
coreutils-9.7/src/basenc.c:1155:21: throw: if the called function throws an exception...
coreutils-9.7/src/basenc.c:1155:21: danger: 'inbuf' leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
# 1153|         do
# 1154|           {
# 1155|->           idx_t n = fread (inbuf + sum,
# 1156|                              1, BASE_LENGTH (DEC_BLOCKSIZE) - sum, in);
# 1157|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def130]
coreutils-9.7/src/basenc.c:1155:21: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(3072)'
# 1153|         do
# 1154|           {
# 1155|->           idx_t n = fread (inbuf + sum,
# 1156|                              1, BASE_LENGTH (DEC_BLOCKSIZE) - sum, in);
# 1157|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def131]
coreutils-9.7/src/basenc.c:1155:21: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(5120)'
# 1153|         do
# 1154|           {
# 1155|->           idx_t n = fread (inbuf + sum,
# 1156|                              1, BASE_LENGTH (DEC_BLOCKSIZE) - sum, in);
# 1157|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def132]
coreutils-9.7/src/basenc.c:1162:23: warning[-Wanalyzer-malloc-leak]: leak of 'inbuf'
coreutils-9.7/src/basenc.c:1133:1: enter_function: entry to 'do_decode'
coreutils-9.7/src/basenc.c:1155:21: call_function: inlined call to 'fread_unlocked' from 'do_decode'
coreutils-9.7/src/basenc.c:1158:14: branch_true: following 'true' branch (when 'ignore_garbage != 0')...
coreutils-9.7/src/basenc.c:1158:14: branch_true: ...to here
coreutils-9.7/src/basenc.c:1160:33: branch_true: following 'true' branch...
coreutils-9.7/src/basenc.c:1162:23: branch_true: ...to here
coreutils-9.7/src/basenc.c:1162:23: throw: if the called function throws an exception...
coreutils-9.7/src/basenc.c:1162:23: danger: 'inbuf' leaks here; was allocated at [(2)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/1)
# 1160|                 for (idx_t i = 0; n > 0 && i < n;)
# 1161|                   {
# 1162|->                   if (isubase (inbuf[sum + i]) || inbuf[sum + i] == '=')
# 1163|                       i++;
# 1164|                     else

Error: GCC_ANALYZER_WARNING (CWE-401): [#def133]
coreutils-9.7/src/basenc.c:1174:20: warning[-Wanalyzer-malloc-leak]: leak of 'inbuf'
coreutils-9.7/src/basenc.c:1133:1: enter_function: entry to 'do_decode'
coreutils-9.7/src/basenc.c:1155:21: call_function: inlined call to 'fread_unlocked' from 'do_decode'
coreutils-9.7/src/basenc.c:1155:17: branch_true: ...to here
coreutils-9.7/src/basenc.c:1158:14: branch_true: following 'true' branch (when 'ignore_garbage != 0')...
coreutils-9.7/src/basenc.c:1158:14: branch_true: ...to here
coreutils-9.7/src/basenc.c:1160:33: branch_false: following 'false' branch...
coreutils-9.7/src/basenc.c:1169:11: branch_false: ...to here
coreutils-9.7/src/basenc.c:1171:14: branch_false: following 'false' branch...
coreutils-9.7/src/basenc.c:1174:20: branch_false: ...to here
coreutils-9.7/src/basenc.c:1174:20: throw: if the called function throws an exception...
coreutils-9.7/src/basenc.c:1174:20: danger: 'inbuf' leaks here; was allocated at [(2)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/1)
# 1172|               error (EXIT_FAILURE, errno, _("read error"));
# 1173|           }
# 1174|->       while (sum < BASE_LENGTH (DEC_BLOCKSIZE) && !feof (in));
# 1175|   
# 1176|         /* The following "loop" is usually iterated just once.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def134]
coreutils-9.7/src/basenc.c:1200:16: warning[-Wanalyzer-malloc-leak]: leak of 'inbuf'
coreutils-9.7/src/basenc.c:1133:1: enter_function: entry to 'do_decode'
coreutils-9.7/src/basenc.c:1155:21: call_function: inlined call to 'fread_unlocked' from 'do_decode'
coreutils-9.7/src/basenc.c:1158:14: branch_true: following 'true' branch (when 'ignore_garbage != 0')...
coreutils-9.7/src/basenc.c:1158:14: branch_true: ...to here
coreutils-9.7/src/basenc.c:1160:33: branch_false: following 'false' branch...
coreutils-9.7/src/basenc.c:1169:11: branch_false: ...to here
coreutils-9.7/src/basenc.c:1171:14: branch_false: following 'false' branch...
coreutils-9.7/src/basenc.c:1174:20: branch_false: ...to here
coreutils-9.7/src/basenc.c:1180:23: branch_true: following 'true' branch...
coreutils-9.7/src/basenc.c:1182:14: branch_true: ...to here
coreutils-9.7/src/basenc.c:1182:14: branch_false: following 'false' branch (when 'k != 1')...
coreutils-9.7/src/basenc.c:1199:17: branch_false: ...to here
coreutils-9.7/src/basenc.c:1200:16: throw: if the called function throws an exception...
coreutils-9.7/src/basenc.c:1200:16: danger: 'inbuf' leaks here; was allocated at [(2)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/1)
# 1198|               }
# 1199|             idx_t n = DEC_BLOCKSIZE;
# 1200|->           ok = base_decode_ctx (&ctx, inbuf, sum, outbuf, &n);
# 1201|   
# 1202|             if (fwrite (outbuf, 1, n, out) < n)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def135]
coreutils-9.7/src/basenc.c:1388:3: warning[-Wanalyzer-file-leak]: leak of FILE 'input_fh'
coreutils-9.7/src/basenc.c:1365:6: branch_false: following 'false' branch...
coreutils-9.7/src/basenc.c:1371:6: branch_false: ...to here
coreutils-9.7/src/basenc.c:1376:6: branch_false: following 'false' branch (when the strings are non-equal)...
coreutils-9.7/src/basenc.c:1383:18: branch_false: ...to here
coreutils-9.7/src/basenc.c:1383:18: acquire_resource: opened here
coreutils-9.7/src/basenc.c:1384:10: branch_false: following 'false' branch...
coreutils-9.7/src/basenc.c:1388:3: branch_false: ...to here
coreutils-9.7/src/basenc.c:1388:3: throw: if 'fadvise' throws an exception...
coreutils-9.7/src/basenc.c:1388:3: danger: 'input_fh' leaks here; was opened at [(5)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/4)
# 1386|       }
# 1387|   
# 1388|->   fadvise (input_fh, FADVISE_SEQUENTIAL);
# 1389|   
# 1390|     if (decode)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def136]
coreutils-9.7/src/basenc.c:1388:3: warning[-Wanalyzer-malloc-leak]: leak of 'input_fh'
coreutils-9.7/src/basenc.c:1365:6: branch_false: following 'false' branch...
coreutils-9.7/src/basenc.c:1371:6: branch_false: ...to here
coreutils-9.7/src/basenc.c:1376:6: branch_false: following 'false' branch (when the strings are non-equal)...
coreutils-9.7/src/basenc.c:1383:18: branch_false: ...to here
coreutils-9.7/src/basenc.c:1383:18: acquire_memory: allocated here
coreutils-9.7/src/basenc.c:1384:10: branch_false: following 'false' branch...
coreutils-9.7/src/basenc.c:1388:3: branch_false: ...to here
coreutils-9.7/src/basenc.c:1388:3: throw: if 'fadvise' throws an exception...
coreutils-9.7/src/basenc.c:1388:3: danger: 'input_fh' leaks here; was allocated at [(5)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/4)
# 1386|       }
# 1387|   
# 1388|->   fadvise (input_fh, FADVISE_SEQUENTIAL);
# 1389|   
# 1390|     if (decode)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def137]
coreutils-9.7/src/blake2/b2sum.c:88:3: warning[-Wanalyzer-malloc-leak]: leak of 'buffer'
coreutils-9.7/src/blake2/b2sum.c:84:34: acquire_memory: allocated here
coreutils-9.7/src/blake2/b2sum.c:86:5: branch_false: following 'false' branch (when 'buffer' is non-NULL)...
coreutils-9.7/src/blake2/b2sum.c:88:3: branch_false: ...to here
coreutils-9.7/src/blake2/b2sum.c:88:3: throw: if 'blake2b_init' throws an exception...
coreutils-9.7/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-401): [#def138]
coreutils-9.7/src/chcon.c:320:13: warning[-Wanalyzer-malloc-leak]: leak of 'xfts_open(files,  bit_flags, 0)'
coreutils-9.7/src/chcon.c:320:13: throw: if 'rpl_fts_read' throws an exception...
coreutils-9.7/src/chcon.c:320:13: danger: 'xfts_open(files,  bit_flags, 0)' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  318|         FTSENT *ent;
#  319|   
#  320|->       ent = fts_read (fts);
#  321|         if (ent == nullptr)
#  322|           {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def139]
coreutils-9.7/src/chmod.c:381:13: warning[-Wanalyzer-malloc-leak]: leak of 'xfts_open(files,  bit_flags, 0)'
coreutils-9.7/src/chmod.c:381:13: throw: if 'rpl_fts_read' throws an exception...
coreutils-9.7/src/chmod.c:381:13: danger: 'xfts_open(files,  bit_flags, 0)' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  379|         FTSENT *ent;
#  380|   
#  381|->       ent = fts_read (fts);
#  382|         if (ent == nullptr)
#  383|           {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def140]
coreutils-9.7/src/chmod.c:545:13: warning[-Wanalyzer-null-dereference]: dereference of NULL 'mode'
coreutils-9.7/src/chmod.c:482:10: branch_true: following 'true' branch (when 'c != -1')...
coreutils-9.7/src/chmod.c:488:7: branch_true: ...to here
coreutils-9.7/src/chmod.c:542:16: branch_false: following 'false' branch...
coreutils-9.7/src/chmod.c:545:17: branch_false: ...to here
coreutils-9.7/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): [#def141]
coreutils-9.7/src/chown-core.c:94:10: warning[-Wanalyzer-malloc-leak]: leak of 'new_usr'
coreutils-9.7/src/chown-core.c:284:1: enter_function: entry to 'change_file_owner'
coreutils-9.7/src/chown-core.c:415:6: branch_false: following 'false' branch (when 'do_chown == 0')...
coreutils-9.7/src/chown-core.c:484:7: branch_false: ...to here
coreutils-9.7/src/chown-core.c:484:6: branch_true: following 'true' branch...
coreutils-9.7/src/chown-core.c:487:11: branch_true: ...to here
coreutils-9.7/src/chown-core.c:487:9: branch_false: following 'false' branch...
coreutils-9.7/src/chown-core.c:491:11: branch_false: ...to here
coreutils-9.7/src/chown-core.c:491:11: branch_true: following 'true' branch...
coreutils-9.7/src/chown-core.c:494:13: branch_true: ...to here
coreutils-9.7/src/chown-core.c:494:13: branch_false: following 'false' branch (when 'ok == 0')...
coreutils-9.7/src/chown-core.c:498:27: branch_false: ...to here
coreutils-9.7/src/chown-core.c:498:27: branch_false: following 'false' branch (when 'file_stats' is NULL)...
coreutils-9.7/src/chown-core.c:502:27: branch_false: ...to here
coreutils-9.7/src/chown-core.c:502:27: branch_false: following 'false' branch...
coreutils-9.7/src/chown-core.c:503:48: branch_false: ...to here
coreutils-9.7/src/chown-core.c:503:48: branch_true: following 'true' branch (when 'uid != 4294967295')...
coreutils-9.7/src/chown-core.c:504:50: branch_true: ...to here
coreutils-9.7/src/chown-core.c:504:50: call_function: calling 'uid_to_str' from 'change_file_owner'
coreutils-9.7/src/chown-core.c:504:50: return_function: returning to 'change_file_owner' from 'uid_to_str'
coreutils-9.7/src/chown-core.c:505:27: branch_false: following 'false' branch...
coreutils-9.7/src/chown-core.c:506:49: branch_false: ...to here
coreutils-9.7/src/chown-core.c:506:49: branch_true: following 'true' branch (when 'gid != 4294967295')...
coreutils-9.7/src/chown-core.c:507:50: branch_true: ...to here
coreutils-9.7/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): [#def142]
coreutils-9.7/src/chown-core.c:94:19: warning[-Wanalyzer-malloc-leak]: leak of 'new_usr'
coreutils-9.7/src/chown-core.c:284:1: enter_function: entry to 'change_file_owner'
coreutils-9.7/src/chown-core.c:415:6: branch_false: following 'false' branch (when 'do_chown == 0')...
coreutils-9.7/src/chown-core.c:484:7: branch_false: ...to here
coreutils-9.7/src/chown-core.c:484:6: branch_true: following 'true' branch...
coreutils-9.7/src/chown-core.c:487:11: branch_true: ...to here
coreutils-9.7/src/chown-core.c:487:9: branch_false: following 'false' branch...
coreutils-9.7/src/chown-core.c:491:11: branch_false: ...to here
coreutils-9.7/src/chown-core.c:491:11: branch_true: following 'true' branch...
coreutils-9.7/src/chown-core.c:494:13: branch_true: ...to here
coreutils-9.7/src/chown-core.c:494:13: branch_false: following 'false' branch (when 'ok == 0')...
coreutils-9.7/src/chown-core.c:498:27: branch_false: ...to here
coreutils-9.7/src/chown-core.c:498:27: branch_false: following 'false' branch (when 'file_stats' is NULL)...
coreutils-9.7/src/chown-core.c:502:27: branch_false: ...to here
coreutils-9.7/src/chown-core.c:502:27: branch_false: following 'false' branch...
coreutils-9.7/src/chown-core.c:503:48: branch_false: ...to here
coreutils-9.7/src/chown-core.c:503:48: branch_true: following 'true' branch (when 'uid != 4294967295')...
coreutils-9.7/src/chown-core.c:504:50: branch_true: ...to here
coreutils-9.7/src/chown-core.c:504:50: call_function: calling 'uid_to_str' from 'change_file_owner'
coreutils-9.7/src/chown-core.c:504:50: return_function: returning to 'change_file_owner' from 'uid_to_str'
coreutils-9.7/src/chown-core.c:505:27: branch_false: following 'false' branch...
coreutils-9.7/src/chown-core.c:506:49: branch_false: ...to here
coreutils-9.7/src/chown-core.c:506:49: branch_true: following 'true' branch (when 'gid != 4294967295')...
coreutils-9.7/src/chown-core.c:507:50: branch_true: ...to here
coreutils-9.7/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): [#def143]
coreutils-9.7/src/chown-core.c:117:25: warning[-Wanalyzer-malloc-leak]: leak of 'uid_to_name(*file_stats.st_uid)'
coreutils-9.7/src/chown-core.c:284:1: enter_function: entry to 'change_file_owner'
coreutils-9.7/src/chown-core.c:484:6: branch_true: following 'true' branch...
coreutils-9.7/src/chown-core.c:487:11: branch_true: ...to here
coreutils-9.7/src/chown-core.c:491:11: branch_true: following 'true' branch...
coreutils-9.7/src/chown-core.c:494:13: branch_true: ...to here
coreutils-9.7/src/chown-core.c:498:27: branch_true: following 'true' branch (when 'file_stats' is non-NULL)...
coreutils-9.7/src/chown-core.c:499:43: branch_true: ...to here
coreutils-9.7/src/chown-core.c:499:30: call_function: calling 'uid_to_name' from 'change_file_owner'
coreutils-9.7/src/chown-core.c:499:30: return_function: returning to 'change_file_owner' from 'uid_to_name'
coreutils-9.7/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): [#def144]
coreutils-9.7/src/chown-core.c:556:13: warning[-Wanalyzer-malloc-leak]: leak of 'xfts_open(files,  stat_flags | bit_flags, 0)'
coreutils-9.7/src/chown-core.c:556:13: throw: if 'rpl_fts_read' throws an exception...
coreutils-9.7/src/chown-core.c:556:13: danger: 'xfts_open(files,  stat_flags | bit_flags, 0)' leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  554|         FTSENT *ent;
#  555|   
#  556|->       ent = fts_read (fts);
#  557|         if (ent == nullptr)
#  558|           {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def145]
coreutils-9.7/src/chown.c:307:26: warning[-Wanalyzer-malloc-leak]: leak of 'chopt.user_name'
coreutils-9.7/src/chown.c:285:6: branch_false: following 'false' branch...
coreutils-9.7/src/chown.c:294:6: branch_false: ...to here
coreutils-9.7/src/chown.c:294:6: branch_true: following 'true' branch...
coreutils-9.7/src/chown.c:297:11: branch_true: ...to here
coreutils-9.7/src/chown.c:297:10: branch_false: following 'false' branch...
coreutils-9.7/src/chown.c:301:11: branch_false: ...to here
coreutils-9.7/src/chown.c:301:10: branch_true: following 'true' branch...
coreutils-9.7/src/chown.c:303:17: branch_true: ...to here
coreutils-9.7/src/chown.c:307:26: throw: if 'gid_to_name' throws an exception...
coreutils-9.7/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): [#def146]
coreutils-9.7/src/chown.c:348:8: warning[-Wanalyzer-malloc-leak]: leak of 'chopt.group_name'
coreutils-9.7/src/chown.c:285:6: branch_false: following 'false' branch...
coreutils-9.7/src/chown.c:294:6: branch_false: ...to here
coreutils-9.7/src/chown.c:294:6: branch_true: following 'true' branch...
coreutils-9.7/src/chown.c:297:11: branch_true: ...to here
coreutils-9.7/src/chown.c:297:10: branch_false: following 'false' branch...
coreutils-9.7/src/chown.c:301:11: branch_false: ...to here
coreutils-9.7/src/chown.c:348:8: throw: if 'chown_files' throws an exception...
coreutils-9.7/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): [#def147]
coreutils-9.7/src/chown.c:348:8: warning[-Wanalyzer-malloc-leak]: leak of 'chopt.user_name'
coreutils-9.7/src/chown.c:285:6: branch_false: following 'false' branch...
coreutils-9.7/src/chown.c:294:6: branch_false: ...to here
coreutils-9.7/src/chown.c:294:6: branch_false: following 'false' branch...
coreutils-9.7/src/chown.c:311:22: branch_false: ...to here
coreutils-9.7/src/chown.c:332:10: branch_true: following 'true' branch...
coreutils-9.7/src/chown.c:348:8: throw: if 'chown_files' throws an exception...
coreutils-9.7/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): [#def148]
coreutils-9.7/src/chroot.c:110:11: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(groups)'
coreutils-9.7/src/chroot.c:105:36: branch_true: following 'true' branch (when 'tmp' is non-NULL)...
coreutils-9.7/src/chroot.c:110:11: branch_true: ...to here
coreutils-9.7/src/chroot.c:110:11: throw: if 'xstrtoumax' throws an exception...
coreutils-9.7/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): [#def149]
coreutils-9.7/src/chroot.c:111:14: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(groups)'
coreutils-9.7/src/chroot.c:105:36: branch_true: following 'true' branch (when 'tmp' is non-NULL)...
coreutils-9.7/src/chroot.c:110:11: branch_true: ...to here
coreutils-9.7/src/chroot.c:110:10: branch_true: following 'true' branch...
coreutils-9.7/src/chroot.c:111:14: branch_true: ...to here
coreutils-9.7/src/chroot.c:110:11: branch_true: following 'true' branch...
coreutils-9.7/src/chroot.c:110:11: branch_true: ...to here
coreutils-9.7/src/chroot.c:115:14: branch_true: following 'true' branch...
coreutils-9.7/src/chroot.c:118:19: branch_true: ...to here
coreutils-9.7/src/chroot.c:118:19: throw: if 'getgrnam' throws an exception...
coreutils-9.7/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): [#def150]
coreutils-9.7/src/chroot.c:127:15: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(groups)'
coreutils-9.7/src/chroot.c:105:36: branch_true: following 'true' branch (when 'tmp' is non-NULL)...
coreutils-9.7/src/chroot.c:110:11: branch_true: ...to here
coreutils-9.7/src/chroot.c:127:15: throw: if 'getgrnam' throws an exception...
coreutils-9.7/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): [#def151]
coreutils-9.7/src/chroot.c:129:21: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(groups)'
coreutils-9.7/src/chroot.c:105:36: branch_true: following 'true' branch (when 'tmp' is non-NULL)...
coreutils-9.7/src/chroot.c:110:11: branch_true: ...to here
coreutils-9.7/src/chroot.c:128:14: branch_true: following 'true' branch...
coreutils-9.7/src/chroot.c:129:21: branch_true: ...to here
coreutils-9.7/src/chroot.c:145:10: branch_true: following 'true' branch...
coreutils-9.7/src/chroot.c:146:16: branch_true: ...to here
coreutils-9.7/src/chroot.c:146:16: throw: if 'xpalloc' throws an exception...
coreutils-9.7/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): [#def152]
coreutils-9.7/src/chroot.c:138:15: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(groups)'
coreutils-9.7/src/chroot.c:105:36: branch_true: following 'true' branch (when 'tmp' is non-NULL)...
coreutils-9.7/src/chroot.c:110:11: branch_true: ...to here
coreutils-9.7/src/chroot.c:128:14: branch_false: following 'false' branch...
coreutils-9.7/src/chroot.c:136:14: branch_false: ...to here
coreutils-9.7/src/chroot.c:136:14: branch_true: following 'true' branch (when 'show_errors != 0')...
coreutils-9.7/src/chroot.c:138:15: branch_true: ...to here
coreutils-9.7/src/chroot.c:138:15: throw: if 'quote' throws an exception...
coreutils-9.7/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): [#def153]
coreutils-9.7/src/chroot.c:147:7: warning[-Wanalyzer-null-dereference]: dereference of NULL 'gids'
coreutils-9.7/src/chroot.c:105:36: branch_true: following 'true' branch (when 'tmp' is non-NULL)...
coreutils-9.7/src/chroot.c:110:11: branch_true: ...to here
coreutils-9.7/src/chroot.c:128:14: branch_true: following 'true' branch...
coreutils-9.7/src/chroot.c:129:21: branch_true: ...to here
coreutils-9.7/src/chroot.c:145:10: branch_false: following 'false' branch...
coreutils-9.7/src/chroot.c:147:7: branch_false: ...to here
coreutils-9.7/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): [#def154]
coreutils-9.7/src/chroot.c:150:7: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(groups)'
coreutils-9.7/src/chroot.c:219:1: enter_function: entry to 'main'
coreutils-9.7/src/chroot.c:244:10: branch_true: following 'true' branch (when 'c != -1')...
coreutils-9.7/src/chroot.c:246:7: branch_true: ...to here
coreutils-9.7/src/chroot.c:277:6: branch_false: following 'false' branch...
coreutils-9.7/src/chroot.c:283:29: branch_false: ...to here
coreutils-9.7/src/chroot.c:286:6: branch_false: following 'false' branch...
coreutils-9.7/src/chroot.c:293:6: branch_false: ...to here
coreutils-9.7/src/chroot.c:330:6: branch_false: following 'false' branch...
coreutils-9.7/src/chroot.c:334:6: branch_false: ...to here
coreutils-9.7/src/chroot.c:334:7: branch_false: following 'false' branch...
coreutils-9.7/src/chroot.c:337:15: branch_false: ...to here
coreutils-9.7/src/chroot.c:337:6: branch_true: following 'true' branch...
coreutils-9.7/src/chroot.c:340:21: branch_true: ...to here
coreutils-9.7/src/chroot.c:355:6: branch_false: following 'false' branch (when 'userspec' is NULL)...
coreutils-9.7/src/chroot.c:366:7: branch_false: ...to here
coreutils-9.7/src/chroot.c:366:6: branch_false: following 'false' branch...
coreutils-9.7/src/chroot.c:383:16: branch_false: ...to here
coreutils-9.7/src/chroot.c:385:6: branch_true: following 'true' branch...
coreutils-9.7/src/chroot.c:387: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: [#def155]
coreutils-9.7/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: [#def156]
coreutils-9.7/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: [#def157]
coreutils-9.7/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: [#def158]
coreutils-9.7/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: [#def159]
coreutils-9.7/src/cksum_avx2.c:83:18: note[note]: called from here
#   81|         if (bytes_read >= 16 * 8 * 2)
#   82|           {
#   83|->           data = _mm256_loadu_si256 (datap);
#   84|             data = _mm256_shuffle_epi8 (data, shuffle_constant);
#   85|             /* XOR in initial CRC value (for us 0 so no effect), or CRC value

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Error: COMPILER_WARNING: [#def213]
coreutils-9.7/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: [#def214]
coreutils-9.7/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: [#def215]
coreutils-9.7/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: [#def216]
coreutils-9.7/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: [#def217]
coreutils-9.7/src/cksum_avx512.c:90:18: note[note]: called from here
#   88|         if (bytes_read >= 16 * 8 * 4)
#   89|           {
#   90|->           data = _mm512_loadu_si512 (datap);
#   91|             data = _mm512_shuffle_epi8 (data, shuffle_constant);
#   92|             /* XOR in initial CRC value (for us 0 so no effect), or CRC value

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Error: GCC_ANALYZER_WARNING (CWE-401): [#def296]
coreutils-9.7/src/comm.c:292:7: warning[-Wanalyzer-malloc-leak]: leak of 'streams[i]'
coreutils-9.7/src/comm.c:278:15: branch_true: following 'true' branch (when 'i != 2')...
coreutils-9.7/src/comm.c:278:15: branch_true: ...to here
coreutils-9.7/src/comm.c:280:19: branch_true: following 'true' branch (when 'j != 4')...
coreutils-9.7/src/comm.c:282:11: branch_true: ...to here
coreutils-9.7/src/comm.c:288:20: branch_true: following 'true' branch (when the strings are non-equal)...
coreutils-9.7/src/comm.c:288:55: branch_true: ...to here
coreutils-9.7/src/comm.c:288:55: acquire_memory: allocated here
coreutils-9.7/src/comm.c:289:10: branch_false: following 'false' branch...
coreutils-9.7/src/comm.c:292:7: branch_false: ...to here
coreutils-9.7/src/comm.c:292:7: throw: if 'fadvise' throws an exception...
coreutils-9.7/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): [#def297]
coreutils-9.7/src/copy.c:854:24: warning[-Wanalyzer-malloc-leak]: leak of 'namep'
coreutils-9.7/src/copy.c:835:16: acquire_memory: allocated here
coreutils-9.7/src/copy.c:836:6: branch_false: following 'false' branch...
coreutils-9.7/src/copy.c:846:7: branch_false: ...to here
coreutils-9.7/src/copy.c:846:6: branch_false: following 'false' branch...
coreutils-9.7/src/copy.c:851:9: branch_false: ...to here
coreutils-9.7/src/copy.c:851:10: branch_true: following 'true' branch...
coreutils-9.7/src/copy.c:854:24: branch_true: ...to here
coreutils-9.7/src/copy.c:854:24: throw: if 'file_name_concat' throws an exception...
coreutils-9.7/src/copy.c:854:24: danger: 'namep' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  852|       {
#  853|         bool local_copy_into_self;
#  854|->       char *src_name = file_name_concat (src_name_in, namep, nullptr);
#  855|         char *dst_name = file_name_concat (dst_name_in, namep, nullptr);
#  856|         bool first_dir_created = *first_dir_created_per_command_line_arg;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def298]
coreutils-9.7/src/copy.c:855:24: warning[-Wanalyzer-malloc-leak]: leak of 'file_name_concat(src_name_in,  namep, 0)'
coreutils-9.7/src/copy.c:836:6: branch_false: following 'false' branch...
coreutils-9.7/src/copy.c:846:7: branch_false: ...to here
coreutils-9.7/src/copy.c:846:6: branch_false: following 'false' branch...
coreutils-9.7/src/copy.c:851:9: branch_false: ...to here
coreutils-9.7/src/copy.c:851:10: branch_true: following 'true' branch...
coreutils-9.7/src/copy.c:854:24: branch_true: ...to here
coreutils-9.7/src/copy.c:855:24: throw: if 'file_name_concat' throws an exception...
coreutils-9.7/src/copy.c:855: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)
#  853|         bool local_copy_into_self;
#  854|         char *src_name = file_name_concat (src_name_in, namep, nullptr);
#  855|->       char *dst_name = file_name_concat (dst_name_in, namep, nullptr);
#  856|         bool first_dir_created = *first_dir_created_per_command_line_arg;
#  857|         bool rename_succeeded;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def299]
coreutils-9.7/src/copy.c:855:24: warning[-Wanalyzer-malloc-leak]: leak of 'namep'
coreutils-9.7/src/copy.c:835:16: acquire_memory: allocated here
coreutils-9.7/src/copy.c:836:6: branch_false: following 'false' branch...
coreutils-9.7/src/copy.c:846:7: branch_false: ...to here
coreutils-9.7/src/copy.c:846:6: branch_false: following 'false' branch...
coreutils-9.7/src/copy.c:851:9: branch_false: ...to here
coreutils-9.7/src/copy.c:851:10: branch_true: following 'true' branch...
coreutils-9.7/src/copy.c:854:24: branch_true: ...to here
coreutils-9.7/src/copy.c:855:24: throw: if 'file_name_concat' throws an exception...
coreutils-9.7/src/copy.c:855:24: danger: 'namep' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  853|         bool local_copy_into_self;
#  854|         char *src_name = file_name_concat (src_name_in, namep, nullptr);
#  855|->       char *dst_name = file_name_concat (dst_name_in, namep, nullptr);
#  856|         bool first_dir_created = *first_dir_created_per_command_line_arg;
#  857|         bool rename_succeeded;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def300]
coreutils-9.7/src/copy.c:856:32: warning[-Wanalyzer-malloc-leak]: leak of 'file_name_concat(dst_name_in,  namep, 0)'
coreutils-9.7/src/copy.c:823:1: enter_function: entry to 'copy_dir'
coreutils-9.7/src/copy.c:836:6: branch_false: following 'false' branch...
coreutils-9.7/src/copy.c:846:7: branch_false: ...to here
coreutils-9.7/src/copy.c:846:6: branch_false: following 'false' branch...
coreutils-9.7/src/copy.c:851:9: branch_false: ...to here
coreutils-9.7/src/copy.c:851:10: branch_true: following 'true' branch...
coreutils-9.7/src/copy.c:854:24: branch_true: ...to here
coreutils-9.7/src/copy.c:859:13: call_function: calling 'copy_internal' from 'copy_dir'
#  854|         char *src_name = file_name_concat (src_name_in, namep, nullptr);
#  855|         char *dst_name = file_name_concat (dst_name_in, namep, nullptr);
#  856|->       bool first_dir_created = *first_dir_created_per_command_line_arg;
#  857|         bool rename_succeeded;
#  858|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def301]
coreutils-9.7/src/copy.c:856:32: warning[-Wanalyzer-malloc-leak]: leak of 'file_name_concat(src_name_in,  namep, 0)'
coreutils-9.7/src/copy.c:823:1: enter_function: entry to 'copy_dir'
coreutils-9.7/src/copy.c:836:6: branch_false: following 'false' branch...
coreutils-9.7/src/copy.c:846:7: branch_false: ...to here
coreutils-9.7/src/copy.c:846:6: branch_false: following 'false' branch...
coreutils-9.7/src/copy.c:851:9: branch_false: ...to here
coreutils-9.7/src/copy.c:851:10: branch_true: following 'true' branch...
coreutils-9.7/src/copy.c:854:24: branch_true: ...to here
coreutils-9.7/src/copy.c:859:13: call_function: calling 'copy_internal' from 'copy_dir'
#  854|         char *src_name = file_name_concat (src_name_in, namep, nullptr);
#  855|         char *dst_name = file_name_concat (dst_name_in, namep, nullptr);
#  856|->       bool first_dir_created = *first_dir_created_per_command_line_arg;
#  857|         bool rename_succeeded;
#  858|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def302]
coreutils-9.7/src/copy.c:2233:25: warning[-Wanalyzer-malloc-leak]: leak of 'namep'
coreutils-9.7/src/copy.c:823:1: enter_function: entry to 'copy_dir'
coreutils-9.7/src/copy.c:835:16: acquire_memory: allocated here
coreutils-9.7/src/copy.c:836:6: branch_false: following 'false' branch...
coreutils-9.7/src/copy.c:846:7: branch_false: ...to here
coreutils-9.7/src/copy.c:846:6: branch_false: following 'false' branch...
coreutils-9.7/src/copy.c:851:9: branch_false: ...to here
coreutils-9.7/src/copy.c:851:10: branch_true: following 'true' branch...
coreutils-9.7/src/copy.c:854:24: branch_true: ...to here
coreutils-9.7/src/copy.c:859:13: call_function: calling 'copy_internal' from 'copy_dir'
# 2231|       {
# 2232|         if (rename_errno < 0)
# 2233|->         rename_errno = (renameatu (AT_FDCWD, src_name, dst_dirfd, drelname,
# 2234|                                      RENAME_NOREPLACE)
# 2235|                           ? errno : 0);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def303]
coreutils-9.7/src/copy.c:2251:11: warning[-Wanalyzer-malloc-leak]: leak of 'namep'
coreutils-9.7/src/copy.c:823:1: enter_function: entry to 'copy_dir'
coreutils-9.7/src/copy.c:835:16: acquire_memory: allocated here
coreutils-9.7/src/copy.c:836:6: branch_false: following 'false' branch...
coreutils-9.7/src/copy.c:846:7: branch_false: ...to here
coreutils-9.7/src/copy.c:846:6: branch_false: following 'false' branch...
coreutils-9.7/src/copy.c:851:9: branch_false: ...to here
coreutils-9.7/src/copy.c:851:10: branch_true: following 'true' branch...
coreutils-9.7/src/copy.c:854:24: branch_true: ...to here
coreutils-9.7/src/copy.c:859:13: call_function: calling 'copy_internal' from 'copy_dir'
# 2249|         if (follow_fstatat (dirfd, relname, &src_sb, fstatat_flags) != 0)
# 2250|           {
# 2251|->           error (0, errno, _("cannot stat %s"), quoteaf (name));
# 2252|             return false;
# 2253|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def304]
coreutils-9.7/src/copy.c:2259:11: warning[-Wanalyzer-malloc-leak]: leak of 'namep'
coreutils-9.7/src/copy.c:823:1: enter_function: entry to 'copy_dir'
coreutils-9.7/src/copy.c:835:16: acquire_memory: allocated here
coreutils-9.7/src/copy.c:836:6: branch_false: following 'false' branch...
coreutils-9.7/src/copy.c:846:7: branch_false: ...to here
coreutils-9.7/src/copy.c:846:6: branch_false: following 'false' branch...
coreutils-9.7/src/copy.c:851:9: branch_false: ...to here
coreutils-9.7/src/copy.c:851:10: branch_true: following 'true' branch...
coreutils-9.7/src/copy.c:854:24: branch_true: ...to here
coreutils-9.7/src/copy.c:859:13: call_function: calling 'copy_internal' from 'copy_dir'
# 2257|         if (S_ISDIR (src_mode) && !x->recursive)
# 2258|           {
# 2259|->           error (0, 0, ! x->install_mode /* cp */
# 2260|                    ? _("-r not specified; omitting directory %s")
# 2261|                    : _("omitting directory %s"),

Error: GCC_ANALYZER_WARNING (CWE-401): [#def305]
coreutils-9.7/src/copy.c:2343:15: warning[-Wanalyzer-malloc-leak]: leak of 'namep'
coreutils-9.7/src/copy.c:823:1: enter_function: entry to 'copy_dir'
coreutils-9.7/src/copy.c:835:16: acquire_memory: allocated here
coreutils-9.7/src/copy.c:836:6: branch_false: following 'false' branch...
coreutils-9.7/src/copy.c:846:7: branch_false: ...to here
coreutils-9.7/src/copy.c:846:6: branch_false: following 'false' branch...
coreutils-9.7/src/copy.c:851:9: branch_false: ...to here
coreutils-9.7/src/copy.c:851:10: branch_true: following 'true' branch...
coreutils-9.7/src/copy.c:854:24: branch_true: ...to here
coreutils-9.7/src/copy.c:859:13: call_function: calling 'copy_internal' from 'copy_dir'
# 2341|             else
# 2342|               {
# 2343|->               error (0, errno, _("cannot stat %s"), quoteaf (dst_name));
# 2344|                 return false;
# 2345|               }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def306]
coreutils-9.7/src/cp-hash.c:121:15: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(24)'
coreutils-9.7/src/cp-hash.c:121:15: throw: if 'xstrdup' throws an exception...
coreutils-9.7/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): [#def307]
coreutils-9.7/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): [#def308]
coreutils-9.7/src/cp-hash.c:125:20: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(24)'
coreutils-9.7/src/cp-hash.c:125:20: throw: if 'hash_insert' throws an exception...
coreutils-9.7/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): [#def309]
coreutils-9.7/src/cp.c:483:17: warning[-Wanalyzer-malloc-leak]: leak of 'attr_list'
coreutils-9.7/src/cp.c:614:1: enter_function: entry to 'do_copy'
coreutils-9.7/src/cp.c:621:6: branch_false: following 'false' branch...
coreutils-9.7/src/cp.c:631:3: branch_false: ...to here
coreutils-9.7/src/cp.c:633:6: branch_false: following 'false' branch (when 'no_target_directory == 0')...
coreutils-9.7/src/cp.c:645:11: branch_false: ...to here
coreutils-9.7/src/cp.c:648:10: branch_false: following 'false' branch...
coreutils-9.7/src/cp.c:685:6: branch_false: ...to here
coreutils-9.7/src/cp.c:685:6: branch_true: following 'true' branch (when 'target_directory' is non-NULL)...
coreutils-9.7/src/cp.c:694:10: branch_true: ...to here
coreutils-9.7/src/cp.c:700:23: branch_true: following 'true' branch (when 'n_files > i')...
coreutils-9.7/src/cp.c:706:27: branch_true: ...to here
coreutils-9.7/src/cp.c:713:14: branch_true: following 'true' branch...
coreutils-9.7/src/cp.c:721:15: branch_true: ...to here
coreutils-9.7/src/cp.c:733:17: branch_true: following 'true' branch...
coreutils-9.7/src/cp.c:734:29: branch_true: ...to here
coreutils-9.7/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): [#def310]
coreutils-9.7/src/cp.c:545:46: warning[-Wanalyzer-malloc-leak]: leak of 'attr_list'
coreutils-9.7/src/cp.c:614:1: enter_function: entry to 'do_copy'
coreutils-9.7/src/cp.c:621:6: branch_false: following 'false' branch...
coreutils-9.7/src/cp.c:631:3: branch_false: ...to here
coreutils-9.7/src/cp.c:633:6: branch_false: following 'false' branch (when 'no_target_directory == 0')...
coreutils-9.7/src/cp.c:645:11: branch_false: ...to here
coreutils-9.7/src/cp.c:648:10: branch_false: following 'false' branch...
coreutils-9.7/src/cp.c:685:6: branch_false: ...to here
coreutils-9.7/src/cp.c:685:6: branch_true: following 'true' branch (when 'target_directory' is non-NULL)...
coreutils-9.7/src/cp.c:694:10: branch_true: ...to here
coreutils-9.7/src/cp.c:700:23: branch_true: following 'true' branch (when 'n_files > i')...
coreutils-9.7/src/cp.c:706:27: branch_true: ...to here
coreutils-9.7/src/cp.c:713:14: branch_true: following 'true' branch...
coreutils-9.7/src/cp.c:721:15: branch_true: ...to here
coreutils-9.7/src/cp.c:733:17: branch_true: following 'true' branch...
coreutils-9.7/src/cp.c:734:29: branch_true: ...to here
coreutils-9.7/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): [#def311]
coreutils-9.7/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.7/src/cp.c:614:1: enter_function: entry to 'do_copy'
coreutils-9.7/src/cp.c:621:6: branch_false: following 'false' branch...
coreutils-9.7/src/cp.c:631:3: branch_false: ...to here
coreutils-9.7/src/cp.c:633:6: branch_false: following 'false' branch (when 'no_target_directory == 0')...
coreutils-9.7/src/cp.c:645:11: branch_false: ...to here
coreutils-9.7/src/cp.c:648:10: branch_false: following 'false' branch...
coreutils-9.7/src/cp.c:685:6: branch_false: ...to here
coreutils-9.7/src/cp.c:685:6: branch_true: following 'true' branch (when 'target_directory' is non-NULL)...
coreutils-9.7/src/cp.c:694:10: branch_true: ...to here
coreutils-9.7/src/cp.c:700:23: branch_true: following 'true' branch (when 'n_files > i')...
coreutils-9.7/src/cp.c:706:27: branch_true: ...to here
coreutils-9.7/src/cp.c:713:14: branch_true: following 'true' branch...
coreutils-9.7/src/cp.c:721:15: branch_true: ...to here
coreutils-9.7/src/cp.c:733:17: branch_true: following 'true' branch...
coreutils-9.7/src/cp.c:734:29: branch_true: ...to here
coreutils-9.7/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): [#def312]
coreutils-9.7/src/cp.c:763:21: warning[-Wanalyzer-malloc-leak]: leak of 'dst_name'
coreutils-9.7/src/cp.c:621:6: branch_false: following 'false' branch...
coreutils-9.7/src/cp.c:631:3: branch_false: ...to here
coreutils-9.7/src/cp.c:633:6: branch_false: following 'false' branch (when 'no_target_directory == 0')...
coreutils-9.7/src/cp.c:645:11: branch_false: ...to here
coreutils-9.7/src/cp.c:648:10: branch_false: following 'false' branch...
coreutils-9.7/src/cp.c:685:6: branch_false: ...to here
coreutils-9.7/src/cp.c:685:6: branch_true: following 'true' branch (when 'target_directory' is non-NULL)...
coreutils-9.7/src/cp.c:694:10: branch_true: ...to here
coreutils-9.7/src/cp.c:700:23: branch_true: following 'true' branch (when 'n_files > i')...
coreutils-9.7/src/cp.c:706:27: branch_true: ...to here
coreutils-9.7/src/cp.c:713:14: branch_false: following 'false' branch...
coreutils-9.7/src/cp.c:742:15: branch_false: ...to here
coreutils-9.7/src/cp.c:763:21: throw: if 'copy' throws an exception...
coreutils-9.7/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): [#def313]
coreutils-9.7/src/cp.c:822:12: warning[-Wanalyzer-malloc-leak]: leak of 'dest'
coreutils-9.7/src/cp.c:621:6: branch_false: following 'false' branch...
coreutils-9.7/src/cp.c:631:3: branch_false: ...to here
coreutils-9.7/src/cp.c:635:10: branch_false: following 'false' branch (when 'target_directory' is NULL)...
coreutils-9.7/src/cp.c:639:10: branch_false: ...to here
coreutils-9.7/src/cp.c:639:10: branch_false: following 'false' branch (when 'n_files <= 2')...
coreutils-9.7/src/cp.c:685:6: branch_false: ...to here
coreutils-9.7/src/cp.c:685:6: branch_false: following 'false' branch (when 'target_directory' is NULL)...
coreutils-9.7/src/cp.c:786:19: branch_false: ...to here
coreutils-9.7/src/cp.c:790:10: branch_false: following 'false' branch...
coreutils-9.7/src/cp.c:803:11: branch_false: ...to here
coreutils-9.7/src/cp.c:803:10: branch_true: following 'true' branch...
coreutils-9.7/src/cp.c:804:14: branch_true: ...to here
coreutils-9.7/src/cp.c:803:11: branch_true: following 'true' branch...
coreutils-9.7/src/cp.c:805:14: branch_true: ...to here
coreutils-9.7/src/cp.c:803:11: branch_true: following 'true' branch (when the strings are equal)...
coreutils-9.7/src/cp.c:806:14: branch_true: ...to here
coreutils-9.7/src/cp.c:803:11: branch_false: following 'false' branch...
coreutils-9.7/src/cp.c:807:15: branch_false: ...to here
coreutils-9.7/src/cp.c:807:14: branch_true: following 'true' branch...
coreutils-9.7/src/cp.c:822:12: throw: if 'copy' throws an exception...
coreutils-9.7/src/cp.c:822:12: danger: 'dest' leaks here; was allocated at [(21)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/20)
#  820|           }
#  821|   
#  822|->       ok = copy (source, dest, AT_FDCWD, dest, -new_dst, x, &unused, nullptr);
#  823|       }
#  824|   

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

Error: GCC_ANALYZER_WARNING (CWE-401): [#def315]
coreutils-9.7/src/cp.c:922:13: warning[-Wanalyzer-malloc-leak]: leak of 's'
coreutils-9.7/src/cp.c:918:10: branch_false: following 'false' branch (when 'comma' is NULL)...
coreutils-9.7/src/cp.c:922:13: branch_false: ...to here
coreutils-9.7/src/cp.c:922:13: branch_true: following 'true' branch (when 'on_off != 0')...
coreutils-9.7/src/cp.c:922:13: branch_true: ...to here
coreutils-9.7/src/cp.c:922:13: throw: if '__xargmatch_internal' throws an exception...
coreutils-9.7/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): [#def316]
coreutils-9.7/src/cp.c:922:13: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(arg)'
coreutils-9.7/src/cp.c:918:10: branch_true: following 'true' branch (when 'comma' is non-NULL)...
coreutils-9.7/src/cp.c:919:10: branch_true: ...to here
coreutils-9.7/src/cp.c:922:13: branch_true: following 'true' branch (when 'on_off != 0')...
coreutils-9.7/src/cp.c:922:13: branch_true: ...to here
coreutils-9.7/src/cp.c:959:14: branch_true: following 'true' branch...
coreutils-9.7/src/cp.c:960:13: branch_true: ...to here
coreutils-9.7/src/cp.c:969:10: branch_true: following 'true' branch (when 'comma' is non-NULL)...
coreutils-9.7/src/cp.c:969:10: branch_true: ...to here
coreutils-9.7/src/cp.c:918:10: branch_true: following 'true' branch (when 'comma' is non-NULL)...
coreutils-9.7/src/cp.c:919:10: branch_true: ...to here
coreutils-9.7/src/cp.c:922:13: branch_true: following 'true' branch (when 'on_off != 0')...
coreutils-9.7/src/cp.c:922:13: branch_true: ...to here
coreutils-9.7/src/cp.c:922:13: throw: if '__xargmatch_internal' throws an exception...
coreutils-9.7/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): [#def317]
coreutils-9.7/src/csplit.c:312:7: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(1312)'
coreutils-9.7/src/csplit.c:455:1: enter_function: entry to 'load_buffer'
coreutils-9.7/src/csplit.c:473:10: branch_true: following 'true' branch...
coreutils-9.7/src/csplit.c:475:15: branch_true: ...to here
coreutils-9.7/src/csplit.c:481:24: call_function: calling 'read_input' from 'load_buffer'
coreutils-9.7/src/csplit.c:481:24: return_function: returning to 'load_buffer' from 'read_input'
coreutils-9.7/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): [#def318]
coreutils-9.7/src/csplit.c:409:24: warning[-Wanalyzer-malloc-leak]: leak of 'get_new_buffer(bytes_wanted)'
coreutils-9.7/src/csplit.c:455:1: enter_function: entry to 'load_buffer'
coreutils-9.7/src/csplit.c:467:33: call_function: calling 'get_new_buffer' from 'load_buffer'
coreutils-9.7/src/csplit.c:467:33: return_function: returning to 'load_buffer' from 'get_new_buffer'
coreutils-9.7/src/csplit.c:473:10: branch_true: following 'true' branch...
coreutils-9.7/src/csplit.c:475:15: branch_true: ...to here
coreutils-9.7/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): [#def319]
coreutils-9.7/src/csplit.c:409:24: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(72)'
coreutils-9.7/src/csplit.c:455:1: enter_function: entry to 'load_buffer'
coreutils-9.7/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): [#def320]
coreutils-9.7/src/csplit.c:1367:3: warning[-Wanalyzer-malloc-leak]: leak of 'ximalloc(__real__ <unknown>)'
coreutils-9.7/src/csplit.c:1350:6: branch_false: following 'false' branch...
coreutils-9.7/src/csplit.c:1359:22: branch_false: ...to here
coreutils-9.7/src/csplit.c:1365:6: branch_false: following 'false' branch...
coreutils-9.7/src/csplit.c:1367:20: branch_false: ...to here
coreutils-9.7/src/csplit.c:1367:3: danger: 'ximalloc(__real__ <unknown>)' leaks here; was allocated at [(5)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/4)
# 1365|     if (ckd_add (&filename_size, prefix_len, max_digit_string_len + 1))
# 1366|       xalloc_die ();
# 1367|->   filename_space = ximalloc (filename_size);
# 1368|   
# 1369|     set_input_file (argv[optind++]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def321]
coreutils-9.7/src/cut.c:835:3: warning[-Wanalyzer-file-leak]: leak of FILE 'stream'
coreutils-9.7/src/cut.c:855:1: enter_function: entry to 'single_binary_main_cut'
coreutils-9.7/src/cut.c:977:6: branch_false: following 'false' branch...
coreutils-9.7/src/cut.c:980:6: branch_false: ...to here
coreutils-9.7/src/cut.c:980:6: branch_false: following 'false' branch (when 'delim_specified == 0')...
coreutils-9.7/src/cut.c:984:7: branch_false: ...to here
coreutils-9.7/src/cut.c:992:6: branch_false: following 'false' branch (when 'delim_specified == 0')...
coreutils-9.7/src/cut.c:994:7: branch_false: ...to here
coreutils-9.7/src/cut.c:1003:6: branch_false: following 'false' branch...
coreutils-9.7/src/cut.c:1023:7: branch_false: ...to here
coreutils-9.7/src/cut.c:1023:6: branch_true: following 'true' branch...
coreutils-9.7/src/cut.c:1024:10: branch_true: ...to here
coreutils-9.7/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): [#def322]
coreutils-9.7/src/cut.c:835:3: warning[-Wanalyzer-malloc-leak]: leak of 'stream'
coreutils-9.7/src/cut.c:855:1: enter_function: entry to 'single_binary_main_cut'
coreutils-9.7/src/cut.c:977:6: branch_false: following 'false' branch...
coreutils-9.7/src/cut.c:980:6: branch_false: ...to here
coreutils-9.7/src/cut.c:980:6: branch_false: following 'false' branch (when 'delim_specified == 0')...
coreutils-9.7/src/cut.c:984:7: branch_false: ...to here
coreutils-9.7/src/cut.c:992:6: branch_false: following 'false' branch (when 'delim_specified == 0')...
coreutils-9.7/src/cut.c:994:7: branch_false: ...to here
coreutils-9.7/src/cut.c:1003:6: branch_false: following 'false' branch...
coreutils-9.7/src/cut.c:1023:7: branch_false: ...to here
coreutils-9.7/src/cut.c:1023:6: branch_true: following 'true' branch...
coreutils-9.7/src/cut.c:1024:10: branch_true: ...to here
coreutils-9.7/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.7/src/date.c:316:32: warning[-Wanalyzer-malloc-leak]: leak of 'adjust_resolution(format)'
coreutils-9.7/src/date.c:397:1: enter_function: entry to 'main'
coreutils-9.7/src/date.c:510:6: branch_false: following 'false' branch (when 'option_specified_date <= 1')...
coreutils-9.7/src/date.c:517:16: branch_false: ...to here
coreutils-9.7/src/date.c:517:6: branch_false: following 'false' branch...
coreutils-9.7/src/date.c:524:6: branch_false: ...to here
coreutils-9.7/src/date.c:524:6: branch_false: following 'false' branch (when 'discarded_datestr == 0')...
coreutils-9.7/src/date.c:527:6: branch_false: ...to here
coreutils-9.7/src/date.c:527:6: branch_false: following 'false' branch (when 'discarded_set_datestr == 0')...
coreutils-9.7/src/date.c:530:7: branch_false: ...to here
coreutils-9.7/src/date.c:555:6: branch_true: following 'true' branch (when 'format' is NULL)...
coreutils-9.7/src/date.c:557:10: branch_true: ...to here
coreutils-9.7/src/date.c:575:23: call_function: calling 'adjust_resolution' from 'main'
coreutils-9.7/src/date.c:575:23: return_function: returning to 'main' from 'adjust_resolution'
coreutils-9.7/src/date.c:316:32: danger: 'adjust_resolution(format)' leaks here; was allocated at [(18)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/17)
#  314|     char *copy = nullptr;
#  315|   
#  316|->   for (char const *f = format; *f; f++)
#  317|       if (f[0] == '%')
#  318|         {

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

Error: GCC_ANALYZER_WARNING (CWE-401): [#def325]
coreutils-9.7/src/date.c:578:19: warning[-Wanalyzer-malloc-leak]: leak of 'format_res'
coreutils-9.7/src/date.c:397:1: enter_function: entry to 'main'
coreutils-9.7/src/date.c:510:6: branch_false: following 'false' branch (when 'option_specified_date <= 1')...
coreutils-9.7/src/date.c:517:16: branch_false: ...to here
coreutils-9.7/src/date.c:517:6: branch_false: following 'false' branch...
coreutils-9.7/src/date.c:524:6: branch_false: ...to here
coreutils-9.7/src/date.c:524:6: branch_false: following 'false' branch (when 'discarded_datestr == 0')...
coreutils-9.7/src/date.c:527:6: branch_false: ...to here
coreutils-9.7/src/date.c:527:6: branch_false: following 'false' branch (when 'discarded_set_datestr == 0')...
coreutils-9.7/src/date.c:530:7: branch_false: ...to here
coreutils-9.7/src/date.c:555:6: branch_true: following 'true' branch (when 'format' is NULL)...
coreutils-9.7/src/date.c:557:10: branch_true: ...to here
coreutils-9.7/src/date.c:575:23: call_function: calling 'adjust_resolution' from 'main'
coreutils-9.7/src/date.c:575:23: return_function: returning to 'main' from 'adjust_resolution'
coreutils-9.7/src/date.c:576:28: branch_true: following 'true' branch...
coreutils-9.7/src/date.c:577:26: branch_true: ...to here
coreutils-9.7/src/date.c:578:19: throw: if 'tzalloc' throws an exception...
coreutils-9.7/src/date.c:578:19: danger: 'format_res' leaks here; was allocated at [(18)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/17)
#  576|     char const *format_res = format_copy ? format_copy : format;
#  577|     char const *tzstring = getenv ("TZ");
#  578|->   timezone_t tz = tzalloc (tzstring);
#  579|   
#  580|     if (batch_file != nullptr)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def326]
coreutils-9.7/src/date.c:595:28: warning[-Wanalyzer-malloc-leak]: leak of 'format_res'
coreutils-9.7/src/date.c:397:1: enter_function: entry to 'main'
coreutils-9.7/src/date.c:510:6: branch_false: following 'false' branch (when 'option_specified_date <= 1')...
coreutils-9.7/src/date.c:517:16: branch_false: ...to here
coreutils-9.7/src/date.c:517:6: branch_false: following 'false' branch...
coreutils-9.7/src/date.c:524:6: branch_false: ...to here
coreutils-9.7/src/date.c:524:6: branch_false: following 'false' branch (when 'discarded_datestr == 0')...
coreutils-9.7/src/date.c:527:6: branch_false: ...to here
coreutils-9.7/src/date.c:527:6: branch_false: following 'false' branch (when 'discarded_set_datestr == 0')...
coreutils-9.7/src/date.c:530:7: branch_false: ...to here
coreutils-9.7/src/date.c:555:6: branch_true: following 'true' branch (when 'format' is NULL)...
coreutils-9.7/src/date.c:557:10: branch_true: ...to here
coreutils-9.7/src/date.c:575:23: call_function: calling 'adjust_resolution' from 'main'
coreutils-9.7/src/date.c:575:23: return_function: returning to 'main' from 'adjust_resolution'
coreutils-9.7/src/date.c:576:28: branch_true: following 'true' branch...
coreutils-9.7/src/date.c:577:26: branch_true: ...to here
coreutils-9.7/src/date.c:580:6: branch_false: following 'false' branch (when 'batch_file' is NULL)...
coreutils-9.7/src/date.c:580:6: branch_false: ...to here
coreutils-9.7/src/date.c:587:10: branch_true: following 'true' branch...
coreutils-9.7/src/date.c:589:15: branch_true: ...to here
coreutils-9.7/src/date.c:589:14: branch_true: following 'true' branch...
coreutils-9.7/src/date.c:594:29: branch_true: ...to here
coreutils-9.7/src/date.c:595:28: throw: if 'posixtime' throws an exception...
coreutils-9.7/src/date.c:595:28: danger: 'format_res' leaks here; was allocated at [(18)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/17)
#  593|                 set_date = true;
#  594|                 datestr = argv[optind];
#  595|->               valid_date = posixtime (&when.tv_sec,
#  596|                                         datestr,
#  597|                                         (PDS_TRAILING_YEAR

Error: GCC_ANALYZER_WARNING (CWE-401): [#def327]
coreutils-9.7/src/date.c:604:15: warning[-Wanalyzer-malloc-leak]: leak of 'format_res'
coreutils-9.7/src/date.c:397:1: enter_function: entry to 'main'
coreutils-9.7/src/date.c:510:6: branch_false: following 'false' branch (when 'option_specified_date <= 1')...
coreutils-9.7/src/date.c:517:16: branch_false: ...to here
coreutils-9.7/src/date.c:517:6: branch_false: following 'false' branch...
coreutils-9.7/src/date.c:524:6: branch_false: ...to here
coreutils-9.7/src/date.c:524:6: branch_false: following 'false' branch (when 'discarded_datestr == 0')...
coreutils-9.7/src/date.c:527:6: branch_false: ...to here
coreutils-9.7/src/date.c:527:6: branch_false: following 'false' branch (when 'discarded_set_datestr == 0')...
coreutils-9.7/src/date.c:530:7: branch_false: ...to here
coreutils-9.7/src/date.c:555:6: branch_true: following 'true' branch (when 'format' is NULL)...
coreutils-9.7/src/date.c:557:10: branch_true: ...to here
coreutils-9.7/src/date.c:575:23: call_function: calling 'adjust_resolution' from 'main'
coreutils-9.7/src/date.c:575:23: return_function: returning to 'main' from 'adjust_resolution'
coreutils-9.7/src/date.c:576:28: branch_true: following 'true' branch...
coreutils-9.7/src/date.c:577:26: branch_true: ...to here
coreutils-9.7/src/date.c:580:6: branch_false: following 'false' branch (when 'batch_file' is NULL)...
coreutils-9.7/src/date.c:580:6: branch_false: ...to here
coreutils-9.7/src/date.c:587:10: branch_true: following 'true' branch...
coreutils-9.7/src/date.c:589:15: branch_true: ...to here
coreutils-9.7/src/date.c:589:14: branch_false: following 'false' branch...
coreutils-9.7/src/date.c:604:15: branch_false: ...to here
coreutils-9.7/src/date.c:604:15: throw: if 'gettime' throws an exception...
coreutils-9.7/src/date.c:604:15: danger: 'format_res' leaks here; was allocated at [(18)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/17)
#  602|               {
#  603|                 /* Prepare to print the current date/time.  */
#  604|->               gettime (&when);
#  605|               }
#  606|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def328]
coreutils-9.7/src/date.c:633:9: warning[-Wanalyzer-malloc-leak]: leak of 'format_res'
coreutils-9.7/src/date.c:397:1: enter_function: entry to 'main'
coreutils-9.7/src/date.c:510:6: branch_false: following 'false' branch (when 'option_specified_date <= 1')...
coreutils-9.7/src/date.c:517:16: branch_false: ...to here
coreutils-9.7/src/date.c:517:6: branch_false: following 'false' branch...
coreutils-9.7/src/date.c:524:6: branch_false: ...to here
coreutils-9.7/src/date.c:524:6: branch_false: following 'false' branch (when 'discarded_datestr == 0')...
coreutils-9.7/src/date.c:527:6: branch_false: ...to here
coreutils-9.7/src/date.c:527:6: branch_false: following 'false' branch (when 'discarded_set_datestr == 0')...
coreutils-9.7/src/date.c:530:7: branch_false: ...to here
coreutils-9.7/src/date.c:555:6: branch_true: following 'true' branch (when 'format' is NULL)...
coreutils-9.7/src/date.c:557:10: branch_true: ...to here
coreutils-9.7/src/date.c:575:23: call_function: calling 'adjust_resolution' from 'main'
coreutils-9.7/src/date.c:575:23: return_function: returning to 'main' from 'adjust_resolution'
coreutils-9.7/src/date.c:576:28: branch_true: following 'true' branch...
coreutils-9.7/src/date.c:577:26: branch_true: ...to here
coreutils-9.7/src/date.c:580:6: branch_false: following 'false' branch (when 'batch_file' is NULL)...
coreutils-9.7/src/date.c:580:6: branch_false: ...to here
coreutils-9.7/src/date.c:587:10: branch_true: following 'true' branch...
coreutils-9.7/src/date.c:589:15: branch_true: ...to here
coreutils-9.7/src/date.c:589:14: branch_true: following 'true' branch...
coreutils-9.7/src/date.c:594:29: branch_true: ...to here
coreutils-9.7/src/date.c:632:10: branch_false: following 'false' branch (when 'valid_date == 0')...
coreutils-9.7/src/date.c:633:9: branch_false: ...to here
coreutils-9.7/src/date.c:633:9: throw: if 'quote' throws an exception...
coreutils-9.7/src/date.c:633:9: danger: 'format_res' leaks here; was allocated at [(18)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/17)
#  631|   
#  632|         if (! valid_date)
#  633|->         error (EXIT_FAILURE, 0, _("invalid date %s"), quote (datestr));
#  634|   
#  635|         if (set_date)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def329]
coreutils-9.7/src/date.c:639:15: warning[-Wanalyzer-malloc-leak]: leak of 'format_res'
coreutils-9.7/src/date.c:397:1: enter_function: entry to 'main'
coreutils-9.7/src/date.c:510:6: branch_false: following 'false' branch (when 'option_specified_date <= 1')...
coreutils-9.7/src/date.c:517:16: branch_false: ...to here
coreutils-9.7/src/date.c:517:6: branch_false: following 'false' branch...
coreutils-9.7/src/date.c:524:6: branch_false: ...to here
coreutils-9.7/src/date.c:524:6: branch_false: following 'false' branch (when 'discarded_datestr == 0')...
coreutils-9.7/src/date.c:527:6: branch_false: ...to here
coreutils-9.7/src/date.c:527:6: branch_false: following 'false' branch (when 'discarded_set_datestr == 0')...
coreutils-9.7/src/date.c:530:7: branch_false: ...to here
coreutils-9.7/src/date.c:555:6: branch_true: following 'true' branch (when 'format' is NULL)...
coreutils-9.7/src/date.c:557:10: branch_true: ...to here
coreutils-9.7/src/date.c:575:23: call_function: calling 'adjust_resolution' from 'main'
coreutils-9.7/src/date.c:575:23: return_function: returning to 'main' from 'adjust_resolution'
coreutils-9.7/src/date.c:576:28: branch_true: following 'true' branch...
coreutils-9.7/src/date.c:577:26: branch_true: ...to here
coreutils-9.7/src/date.c:580:6: branch_false: following 'false' branch (when 'batch_file' is NULL)...
coreutils-9.7/src/date.c:580:6: branch_false: ...to here
coreutils-9.7/src/date.c:587:10: branch_true: following 'true' branch...
coreutils-9.7/src/date.c:589:15: branch_true: ...to here
coreutils-9.7/src/date.c:589:14: branch_true: following 'true' branch...
coreutils-9.7/src/date.c:594:29: branch_true: ...to here
coreutils-9.7/src/date.c:632:10: branch_true: following 'true' branch (when 'valid_date != 0')...
coreutils-9.7/src/date.c:635:10: branch_true: ...to here
coreutils-9.7/src/date.c:635:10: branch_true: following 'true' branch (when 'set_date != 0')...
coreutils-9.7/src/date.c:639:15: branch_true: ...to here
coreutils-9.7/src/date.c:639:15: throw: if 'settime' throws an exception...
coreutils-9.7/src/date.c:639:15: danger: 'format_res' leaks here; was allocated at [(18)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/17)
#  637|             /* Set the system clock to the specified date, then regardless of
#  638|                the success of that operation, format and print that date.  */
#  639|->           if (settime (&when) != 0)
#  640|               {
#  641|                 error (0, errno, _("cannot set date"));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def330]
coreutils-9.7/src/date.c:656:5: warning[-Wanalyzer-malloc-leak]: leak of 'format_res'
coreutils-9.7/src/date.c:397:1: enter_function: entry to 'single_binary_main_date'
coreutils-9.7/src/date.c:510:6: branch_false: following 'false' branch (when 'option_specified_date <= 1')...
coreutils-9.7/src/date.c:517:16: branch_false: ...to here
coreutils-9.7/src/date.c:517:6: branch_false: following 'false' branch...
coreutils-9.7/src/date.c:524:6: branch_false: ...to here
coreutils-9.7/src/date.c:524:6: branch_false: following 'false' branch (when 'discarded_datestr == 0')...
coreutils-9.7/src/date.c:527:6: branch_false: ...to here
coreutils-9.7/src/date.c:527:6: branch_false: following 'false' branch (when 'discarded_set_datestr == 0')...
coreutils-9.7/src/date.c:530:7: branch_false: ...to here
coreutils-9.7/src/date.c:555:6: branch_true: following 'true' branch (when 'format' is NULL)...
coreutils-9.7/src/date.c:557:10: branch_true: ...to here
coreutils-9.7/src/date.c:575:23: call_function: calling 'adjust_resolution' from 'single_binary_main_date'
coreutils-9.7/src/date.c:575:23: return_function: returning to 'single_binary_main_date' from 'adjust_resolution'
coreutils-9.7/src/date.c:576:28: branch_true: following 'true' branch...
coreutils-9.7/src/date.c:577:26: branch_true: ...to here
coreutils-9.7/src/date.c:580:6: branch_false: following 'false' branch (when 'batch_file' is NULL)...
coreutils-9.7/src/date.c:580:6: branch_false: ...to here
coreutils-9.7/src/date.c:635:10: branch_false: following 'false' branch (when 'set_date == 0')...
coreutils-9.7/src/date.c:646:13: branch_false: ...to here
coreutils-9.7/src/date.c:646:13: call_function: calling 'show_date_helper' from 'single_binary_main_date'
#  654|   {
#  655|     if (parse_datetime_flags & PARSE_DATETIME_DEBUG)
#  656|->     error (0, 0, _("output format: %s"), quote (format));
#  657|   
#  658|     if (format == rfc_email_format)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def331]
coreutils-9.7/src/date.c:661:13: warning[-Wanalyzer-malloc-leak]: leak of 'format_res'
coreutils-9.7/src/date.c:397:1: enter_function: entry to 'main'
coreutils-9.7/src/date.c:510:6: branch_false: following 'false' branch (when 'option_specified_date <= 1')...
coreutils-9.7/src/date.c:517:16: branch_false: ...to here
coreutils-9.7/src/date.c:517:6: branch_false: following 'false' branch...
coreutils-9.7/src/date.c:524:6: branch_false: ...to here
coreutils-9.7/src/date.c:524:6: branch_false: following 'false' branch (when 'discarded_datestr == 0')...
coreutils-9.7/src/date.c:527:6: branch_false: ...to here
coreutils-9.7/src/date.c:527:6: branch_false: following 'false' branch (when 'discarded_set_datestr == 0')...
coreutils-9.7/src/date.c:530:7: branch_false: ...to here
coreutils-9.7/src/date.c:555:6: branch_true: following 'true' branch (when 'format' is NULL)...
coreutils-9.7/src/date.c:557:10: branch_true: ...to here
coreutils-9.7/src/date.c:575:23: call_function: calling 'adjust_resolution' from 'main'
coreutils-9.7/src/date.c:575:23: return_function: returning to 'main' from 'adjust_resolution'
coreutils-9.7/src/date.c:576:28: branch_true: following 'true' branch...
coreutils-9.7/src/date.c:577:26: branch_true: ...to here
coreutils-9.7/src/date.c:580:6: branch_false: following 'false' branch (when 'batch_file' is NULL)...
coreutils-9.7/src/date.c:580:6: branch_false: ...to here
coreutils-9.7/src/date.c:635:10: branch_false: following 'false' branch (when 'set_date == 0')...
coreutils-9.7/src/date.c:646:13: branch_false: ...to here
coreutils-9.7/src/date.c:646:13: call_function: calling 'show_date_helper' from 'main'
#  659|       setlocale (LC_TIME, "C");
#  660|   
#  661|->   bool ok = show_date (format, when, tz);
#  662|   
#  663|     if (format == rfc_email_format)

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

Error: GCC_ANALYZER_WARNING (CWE-1341): [#def333]
coreutils-9.7/src/dd.c:922:12: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'fd'
coreutils-9.7/src/dd.c:920:10: branch_false: following 'false' branch...
coreutils-9.7/src/dd.c:922:12: branch_false: ...to here
coreutils-9.7/src/dd.c:922:12: release_resource: first 'close' here
coreutils-9.7/src/dd.c:922:12: branch_true: following 'true' branch...
coreutils-9.7/src/dd.c:920:10: branch_false: following 'false' branch...
coreutils-9.7/src/dd.c:922:12: branch_false: ...to here
coreutils-9.7/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.7/src/df.c:362:7: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(dev_name)'
coreutils-9.7/src/df.c:1463:1: enter_function: entry to 'get_entry'
coreutils-9.7/src/df.c:1465:6: branch_true: following 'true' branch...
coreutils-9.7/src/df.c:1467:24: branch_true: ...to here
coreutils-9.7/src/df.c:1468:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.7/src/df.c:1470:11: branch_true: ...to here
coreutils-9.7/src/df.c:1470:11: call_function: calling 'get_dev' from 'get_entry'
#  360|   {
#  361|     static int tty_out = -1;
#  362|->   if (tty_out < 0)
#  363|       tty_out = isatty (STDOUT_FILENO);
#  364|   

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

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

Error: GCC_ANALYZER_WARNING (CWE-401): [#def337]
coreutils-9.7/src/df.c:420:15: warning[-Wanalyzer-malloc-leak]: leak of 's'
coreutils-9.7/src/df.c:1592:1: enter_function: entry to 'main'
coreutils-9.7/src/df.c:1625:10: branch_false: following 'false' branch (when 'c != -1')...
coreutils-9.7/src/df.c:1628:7: branch_false: ...to here
coreutils-9.7/src/df.c:1708:14: branch_false: following 'false' branch...
coreutils-9.7/src/df.c:1713:14: branch_false: ...to here
coreutils-9.7/src/df.c:1713:14: branch_false: following 'false' branch (when 'posix_format == 0')...
coreutils-9.7/src/df.c:1718:15: branch_false: ...to here
coreutils-9.7/src/df.c:1718:14: branch_false: following 'false' branch...
coreutils-9.7/src/df.c:1723:11: branch_false: ...to here
coreutils-9.7/src/df.c:1724:14: branch_true: following 'true' branch...
coreutils-9.7/src/df.c:1725:13: branch_true: ...to here
coreutils-9.7/src/df.c:1725:13: call_function: calling 'decode_output_arg' from 'main'
#  418|   {
#  419|     if (ncolumns == ncolumns_alloc)
#  420|->     columns = xpalloc (columns, &ncolumns_alloc, 1, -1, sizeof *columns);
#  421|     columns[ncolumns++] = &field_data[f];
#  422|     if (c != nullptr)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def338]
coreutils-9.7/src/df.c:452:15: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(arg)'
coreutils-9.7/src/df.c:1592:1: enter_function: entry to 'main'
coreutils-9.7/src/df.c:1625:10: branch_false: following 'false' branch (when 'c != -1')...
coreutils-9.7/src/df.c:1628:7: branch_false: ...to here
coreutils-9.7/src/df.c:1708:14: branch_false: following 'false' branch...
coreutils-9.7/src/df.c:1713:14: branch_false: ...to here
coreutils-9.7/src/df.c:1713:14: branch_false: following 'false' branch (when 'posix_format == 0')...
coreutils-9.7/src/df.c:1718:15: branch_false: ...to here
coreutils-9.7/src/df.c:1718:14: branch_false: following 'false' branch...
coreutils-9.7/src/df.c:1723:11: branch_false: ...to here
coreutils-9.7/src/df.c:1724:14: branch_true: following 'true' branch...
coreutils-9.7/src/df.c:1725:13: branch_true: ...to here
coreutils-9.7/src/df.c:1725:13: call_function: calling 'decode_output_arg' from 'main'
#  450|         for (idx_t i = 0; i < ARRAY_CARDINALITY (field_data); i++)
#  451|           {
#  452|->           if (STREQ (field_data[i].arg, s))
#  453|               {
#  454|                 field = i;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def339]
coreutils-9.7/src/df.c:467:11: warning[-Wanalyzer-malloc-leak]: leak of 's'
coreutils-9.7/src/df.c:1592:1: enter_function: entry to 'single_binary_main_df'
coreutils-9.7/src/df.c:1625:10: branch_false: following 'false' branch (when 'c != -1')...
coreutils-9.7/src/df.c:1628:7: branch_false: ...to here
coreutils-9.7/src/df.c:1708:14: branch_false: following 'false' branch...
coreutils-9.7/src/df.c:1713:14: branch_false: ...to here
coreutils-9.7/src/df.c:1713:14: branch_false: following 'false' branch (when 'posix_format == 0')...
coreutils-9.7/src/df.c:1718:15: branch_false: ...to here
coreutils-9.7/src/df.c:1718:14: branch_false: following 'false' branch...
coreutils-9.7/src/df.c:1723:11: branch_false: ...to here
coreutils-9.7/src/df.c:1724:14: branch_true: following 'true' branch...
coreutils-9.7/src/df.c:1725:13: branch_true: ...to here
coreutils-9.7/src/df.c:1725:13: call_function: calling 'decode_output_arg' from 'single_binary_main_df'
#  465|           {
#  466|             /* Prevent the fields from being used more than once.  */
#  467|->           error (0, 0, _("option --output: field %s used more than once"),
#  468|                    quote (field_data[field].arg));
#  469|             usage (EXIT_FAILURE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def340]
coreutils-9.7/src/df.c:655:7: warning[-Wanalyzer-malloc-leak]: leak of 'find_mount_point(point,  statp)'
coreutils-9.7/src/df.c:1463:1: enter_function: entry to 'get_entry'
coreutils-9.7/src/df.c:1476:6: branch_false: following 'false' branch...
coreutils-9.7/src/df.c:1480:3: branch_false: ...to here
coreutils-9.7/src/df.c:1480:3: call_function: calling 'get_point' from 'get_entry'
#  653|     const struct fs_type_list *fsp;
#  654|   
#  655|->   if (fs_select_list == nullptr || fstype == nullptr)
#  656|       return true;
#  657|     for (fsp = fs_select_list; fsp; fsp = fsp->fs_next)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def341]
coreutils-9.7/src/df.c:814:30: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(32)'
coreutils-9.7/src/df.c:1487:1: enter_function: entry to 'get_all_entries'
coreutils-9.7/src/df.c:1491:3: call_function: calling 'filter_mount_list' from 'get_all_entries'
#  812|             struct devlist *devlist = xmalloc (sizeof *devlist);
#  813|             devlist->me = me;
#  814|->           devlist->dev_num = buf.st_dev;
#  815|             devlist->next = device_list;
#  816|             device_list = devlist;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def342]
coreutils-9.7/src/df.c:887:17: warning[-Wanalyzer-malloc-leak]: leak of 'dev_name'
coreutils-9.7/src/df.c:1463:1: enter_function: entry to 'get_entry'
coreutils-9.7/src/df.c:1465:6: branch_true: following 'true' branch...
coreutils-9.7/src/df.c:1467:24: branch_true: ...to here
coreutils-9.7/src/df.c:1468:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.7/src/df.c:1470:11: branch_true: ...to here
coreutils-9.7/src/df.c:1470:11: call_function: calling 'get_dev' from 'get_entry'
#  885|     else
#  886|       {
#  887|->       char *p = human_readable (negative ? -n : n, buf + negative,
#  888|                                   human_output_opts, input_units, output_units);
#  889|         if (negative)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def343]
coreutils-9.7/src/df.c:1044:12: warning[-Wanalyzer-malloc-leak]: leak of 'resolved'
coreutils-9.7/src/df.c:1463:1: enter_function: entry to 'get_entry'
coreutils-9.7/src/df.c:1465:6: branch_true: following 'true' branch...
coreutils-9.7/src/df.c:1467:24: branch_true: ...to here
coreutils-9.7/src/df.c:1467:24: acquire_memory: allocated here
coreutils-9.7/src/df.c:1468:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.7/src/df.c:1470:11: branch_true: ...to here
coreutils-9.7/src/df.c:1470:11: call_function: calling 'get_dev' from 'get_entry'
# 1042|     if (force_fsu)
# 1043|       fsu = *force_fsu;
# 1044|->   else if (get_fs_usage (stat_file, device, &fsu))
# 1045|       {
# 1046|         /* If we can't access a system provided entry due

Error: GCC_ANALYZER_WARNING (CWE-401): [#def344]
coreutils-9.7/src/df.c:1061:11: warning[-Wanalyzer-malloc-leak]: leak of 'resolved'
coreutils-9.7/src/df.c:1463:1: enter_function: entry to 'get_entry'
coreutils-9.7/src/df.c:1465:6: branch_true: following 'true' branch...
coreutils-9.7/src/df.c:1467:24: branch_true: ...to here
coreutils-9.7/src/df.c:1467:24: acquire_memory: allocated here
coreutils-9.7/src/df.c:1468:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.7/src/df.c:1470:11: branch_true: ...to here
coreutils-9.7/src/df.c:1470:11: call_function: calling 'get_dev' from 'get_entry'
# 1059|         else
# 1060|           {
# 1061|->           error (0, errno, "%s", quotef (stat_file));
# 1062|             exit_status = EXIT_FAILURE;
# 1063|             return;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def345]
coreutils-9.7/src/df.c:1101:20: warning[-Wanalyzer-malloc-leak]: leak of 'resolved'
coreutils-9.7/src/df.c:1463:1: enter_function: entry to 'get_entry'
coreutils-9.7/src/df.c:1465:6: branch_true: following 'true' branch...
coreutils-9.7/src/df.c:1467:24: branch_true: ...to here
coreutils-9.7/src/df.c:1467:24: acquire_memory: allocated here
coreutils-9.7/src/df.c:1468:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.7/src/df.c:1470:11: branch_true: ...to here
coreutils-9.7/src/df.c:1470:11: call_function: calling 'get_dev' from 'get_entry'
# 1099|       file = "-";			/* unspecified */
# 1100|   
# 1101|->   char *dev_name = xstrdup (device);
# 1102|     char *resolved_dev;
# 1103|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def346]
coreutils-9.7/src/df.c:1153:18: warning[-Wanalyzer-malloc-leak]: leak of 'dev_name'
coreutils-9.7/src/df.c:1463:1: enter_function: entry to 'get_entry'
coreutils-9.7/src/df.c:1465:6: branch_true: following 'true' branch...
coreutils-9.7/src/df.c:1467:24: branch_true: ...to here
coreutils-9.7/src/df.c:1468:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.7/src/df.c:1470:11: branch_true: ...to here
coreutils-9.7/src/df.c:1470:11: call_function: calling 'get_dev' from 'get_entry'
# 1151|           {
# 1152|           case SOURCE_FIELD:
# 1153|->           cell = xstrdup (dev_name);
# 1154|             break;
# 1155|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def347]
coreutils-9.7/src/df.c:1153:18: warning[-Wanalyzer-malloc-leak]: leak of 'resolved'
coreutils-9.7/src/df.c:1463:1: enter_function: entry to 'get_entry'
coreutils-9.7/src/df.c:1465:6: branch_true: following 'true' branch...
coreutils-9.7/src/df.c:1467:24: branch_true: ...to here
coreutils-9.7/src/df.c:1467:24: acquire_memory: allocated here
coreutils-9.7/src/df.c:1468:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.7/src/df.c:1470:11: branch_true: ...to here
coreutils-9.7/src/df.c:1470:11: call_function: calling 'get_dev' from 'get_entry'
# 1151|           {
# 1152|           case SOURCE_FIELD:
# 1153|->           cell = xstrdup (dev_name);
# 1154|             break;
# 1155|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def348]
coreutils-9.7/src/df.c:1157:18: warning[-Wanalyzer-malloc-leak]: leak of 'dev_name'
coreutils-9.7/src/df.c:1463:1: enter_function: entry to 'get_entry'
coreutils-9.7/src/df.c:1465:6: branch_true: following 'true' branch...
coreutils-9.7/src/df.c:1467:24: branch_true: ...to here
coreutils-9.7/src/df.c:1468:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.7/src/df.c:1470:11: branch_true: ...to here
coreutils-9.7/src/df.c:1470:11: call_function: calling 'get_dev' from 'get_entry'
# 1155|   
# 1156|           case FSTYPE_FIELD:
# 1157|->           cell = xstrdup (fstype);
# 1158|             break;
# 1159|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def349]
coreutils-9.7/src/df.c:1162:18: warning[-Wanalyzer-malloc-leak]: leak of 'dev_name'
coreutils-9.7/src/df.c:1463:1: enter_function: entry to 'get_entry'
coreutils-9.7/src/df.c:1465:6: branch_true: following 'true' branch...
coreutils-9.7/src/df.c:1467:24: branch_true: ...to here
coreutils-9.7/src/df.c:1468:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.7/src/df.c:1470:11: branch_true: ...to here
coreutils-9.7/src/df.c:1470:11: call_function: calling 'get_dev' from 'get_entry'
# 1160|           case SIZE_FIELD:
# 1161|           case ITOTAL_FIELD:
# 1162|->           cell = xstrdup (df_readable (false, v->total, buf,
# 1163|                                          v->input_units, v->output_units));
# 1164|             break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def350]
coreutils-9.7/src/df.c:1162:18: warning[-Wanalyzer-null-dereference]: dereference of NULL 'v'
coreutils-9.7/src/df.c:1463:1: enter_function: entry to 'get_entry'
coreutils-9.7/src/df.c:1465:6: branch_true: following 'true' branch...
coreutils-9.7/src/df.c:1467:24: branch_true: ...to here
coreutils-9.7/src/df.c:1468:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.7/src/df.c:1470:11: branch_true: ...to here
coreutils-9.7/src/df.c:1470:11: call_function: calling 'get_dev' from 'get_entry'
# 1160|           case SIZE_FIELD:
# 1161|           case ITOTAL_FIELD:
# 1162|->           cell = xstrdup (df_readable (false, v->total, buf,
# 1163|                                          v->input_units, v->output_units));
# 1164|             break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def351]
coreutils-9.7/src/df.c:1168:18: warning[-Wanalyzer-malloc-leak]: leak of 'dev_name'
coreutils-9.7/src/df.c:1463:1: enter_function: entry to 'get_entry'
coreutils-9.7/src/df.c:1465:6: branch_true: following 'true' branch...
coreutils-9.7/src/df.c:1467:24: branch_true: ...to here
coreutils-9.7/src/df.c:1468:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.7/src/df.c:1470:11: branch_true: ...to here
coreutils-9.7/src/df.c:1470:11: call_function: calling 'get_dev' from 'get_entry'
# 1166|           case USED_FIELD:
# 1167|           case IUSED_FIELD:
# 1168|->           cell = xstrdup (df_readable (v->negate_used, v->used, buf,
# 1169|                                          v->input_units, v->output_units));
# 1170|             break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def352]
coreutils-9.7/src/df.c:1168:18: warning[-Wanalyzer-null-dereference]: dereference of NULL 'v'
coreutils-9.7/src/df.c:1463:1: enter_function: entry to 'get_entry'
coreutils-9.7/src/df.c:1465:6: branch_true: following 'true' branch...
coreutils-9.7/src/df.c:1467:24: branch_true: ...to here
coreutils-9.7/src/df.c:1468:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.7/src/df.c:1470:11: branch_true: ...to here
coreutils-9.7/src/df.c:1470:11: call_function: calling 'get_dev' from 'get_entry'
# 1166|           case USED_FIELD:
# 1167|           case IUSED_FIELD:
# 1168|->           cell = xstrdup (df_readable (v->negate_used, v->used, buf,
# 1169|                                          v->input_units, v->output_units));
# 1170|             break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def353]
coreutils-9.7/src/df.c:1174:18: warning[-Wanalyzer-malloc-leak]: leak of 'dev_name'
coreutils-9.7/src/df.c:1463:1: enter_function: entry to 'get_entry'
coreutils-9.7/src/df.c:1465:6: branch_true: following 'true' branch...
coreutils-9.7/src/df.c:1467:24: branch_true: ...to here
coreutils-9.7/src/df.c:1468:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.7/src/df.c:1470:11: branch_true: ...to here
coreutils-9.7/src/df.c:1470:11: call_function: calling 'get_dev' from 'get_entry'
# 1172|           case AVAIL_FIELD:
# 1173|           case IAVAIL_FIELD:
# 1174|->           cell = xstrdup (df_readable (v->negate_available, v->available, buf,
# 1175|                                          v->input_units, v->output_units));
# 1176|             break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def354]
coreutils-9.7/src/df.c:1174:18: warning[-Wanalyzer-null-dereference]: dereference of NULL 'v'
coreutils-9.7/src/df.c:1463:1: enter_function: entry to 'get_entry'
coreutils-9.7/src/df.c:1465:6: branch_true: following 'true' branch...
coreutils-9.7/src/df.c:1467:24: branch_true: ...to here
coreutils-9.7/src/df.c:1468:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.7/src/df.c:1470:11: branch_true: ...to here
coreutils-9.7/src/df.c:1470:11: call_function: calling 'get_dev' from 'get_entry'
# 1172|           case AVAIL_FIELD:
# 1173|           case IAVAIL_FIELD:
# 1174|->           cell = xstrdup (df_readable (v->negate_available, v->available, buf,
# 1175|                                          v->input_units, v->output_units));
# 1176|             break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def355]
coreutils-9.7/src/df.c:1182:19: warning[-Wanalyzer-null-dereference]: dereference of NULL 'v'
coreutils-9.7/src/df.c:1463:1: enter_function: entry to 'get_entry'
coreutils-9.7/src/df.c:1465:6: branch_true: following 'true' branch...
coreutils-9.7/src/df.c:1467:24: branch_true: ...to here
coreutils-9.7/src/df.c:1468:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.7/src/df.c:1470:11: branch_true: ...to here
coreutils-9.7/src/df.c:1470:11: call_function: calling 'get_dev' from 'get_entry'
# 1180|             {
# 1181|               double pct = -1;
# 1182|->             if (! known_value (v->used) || ! known_value (v->available))
# 1183|                 ;
# 1184|               else if (!v->negate_used

Error: GCC_ANALYZER_WARNING (CWE-401): [#def356]
coreutils-9.7/src/df.c:1217:30: warning[-Wanalyzer-malloc-leak]: leak of 'dev_name'
coreutils-9.7/src/df.c:1463:1: enter_function: entry to 'get_entry'
coreutils-9.7/src/df.c:1465:6: branch_true: following 'true' branch...
coreutils-9.7/src/df.c:1467:24: branch_true: ...to here
coreutils-9.7/src/df.c:1468:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.7/src/df.c:1470:11: branch_true: ...to here
coreutils-9.7/src/df.c:1470:11: call_function: calling 'get_dev' from 'get_entry'
# 1215|                 }
# 1216|   
# 1217|->             cell = pct < 0 ? xstrdup ("-") : xasprintf ("%.0f%%", pct);
# 1218|               break;
# 1219|             }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def357]
coreutils-9.7/src/df.c:1217:46: warning[-Wanalyzer-malloc-leak]: leak of 'dev_name'
coreutils-9.7/src/df.c:1463:1: enter_function: entry to 'get_entry'
coreutils-9.7/src/df.c:1465:6: branch_true: following 'true' branch...
coreutils-9.7/src/df.c:1467:24: branch_true: ...to here
coreutils-9.7/src/df.c:1468:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.7/src/df.c:1470:11: branch_true: ...to here
coreutils-9.7/src/df.c:1470:11: call_function: calling 'get_dev' from 'get_entry'
# 1215|                 }
# 1216|   
# 1217|->             cell = pct < 0 ? xstrdup ("-") : xasprintf ("%.0f%%", pct);
# 1218|               break;
# 1219|             }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def358]
coreutils-9.7/src/df.c:1222:18: warning[-Wanalyzer-malloc-leak]: leak of 'dev_name'
coreutils-9.7/src/df.c:1463:1: enter_function: entry to 'get_entry'
coreutils-9.7/src/df.c:1465:6: branch_true: following 'true' branch...
coreutils-9.7/src/df.c:1467:24: branch_true: ...to here
coreutils-9.7/src/df.c:1468:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.7/src/df.c:1470:11: branch_true: ...to here
coreutils-9.7/src/df.c:1470:11: call_function: calling 'get_dev' from 'get_entry'
# 1220|   
# 1221|           case FILE_FIELD:
# 1222|->           cell = xstrdup (file);
# 1223|             break;
# 1224|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def359]
coreutils-9.7/src/df.c:1235:18: warning[-Wanalyzer-malloc-leak]: leak of 'dev_name'
coreutils-9.7/src/df.c:1463:1: enter_function: entry to 'get_entry'
coreutils-9.7/src/df.c:1465:6: branch_true: following 'true' branch...
coreutils-9.7/src/df.c:1467:24: branch_true: ...to here
coreutils-9.7/src/df.c:1468:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.7/src/df.c:1470:11: branch_true: ...to here
coreutils-9.7/src/df.c:1470:11: call_function: calling 'get_dev' from 'get_entry'
# 1233|               mount_point += 8;
# 1234|   #endif
# 1235|->           cell = xstrdup (mount_point);
# 1236|             break;
# 1237|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def360]
coreutils-9.7/src/df.c:1246:24: warning[-Wanalyzer-malloc-leak]: leak of 'cell'
coreutils-9.7/src/df.c:1463:1: enter_function: entry to 'get_entry'
coreutils-9.7/src/df.c:1465:6: branch_true: following 'true' branch...
coreutils-9.7/src/df.c:1467:24: branch_true: ...to here
coreutils-9.7/src/df.c:1468:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.7/src/df.c:1470:11: branch_true: ...to here
coreutils-9.7/src/df.c:1470:11: call_function: calling 'get_dev' from 'get_entry'
# 1244|   
# 1245|         replace_problematic_chars (cell);
# 1246|->       int cell_width = mbswidth (cell, MBSWIDTH_FLAGS);
# 1247|         columns[col]->width = MAX (columns[col]->width, cell_width);
# 1248|         table[nrows - 1][col] = cell;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def361]
coreutils-9.7/src/df.c:1246:24: warning[-Wanalyzer-malloc-leak]: leak of 'dev_name'
coreutils-9.7/src/df.c:1463:1: enter_function: entry to 'get_entry'
coreutils-9.7/src/df.c:1465:6: branch_true: following 'true' branch...
coreutils-9.7/src/df.c:1467:24: branch_true: ...to here
coreutils-9.7/src/df.c:1468:10: branch_true: following 'true' branch (when 'resolved' is non-NULL)...
coreutils-9.7/src/df.c:1470:11: branch_true: ...to here
coreutils-9.7/src/df.c:1470:11: call_function: calling 'get_dev' from 'get_entry'
# 1244|   
# 1245|         replace_problematic_chars (cell);
# 1246|->       int cell_width = mbswidth (cell, MBSWIDTH_FLAGS);
# 1247|         columns[col]->width = MAX (columns[col]->width, cell_width);
# 1248|         table[nrows - 1][col] = cell;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def362]
coreutils-9.7/src/df.c:1274:14: warning[-Wanalyzer-malloc-leak]: leak of 'devname'
coreutils-9.7/src/df.c:1463:1: enter_function: entry to 'get_entry'
coreutils-9.7/src/df.c:1476:6: branch_true: following 'true' branch...
coreutils-9.7/src/df.c:1477:10: branch_true: ...to here
coreutils-9.7/src/df.c:1477:10: call_function: calling 'get_device' from 'get_entry'
# 1272|           return canon_dev;
# 1273|         free (canon_dev);
# 1274|->       return xstrdup (le->me_devname);
# 1275|       }
# 1276|     else

Error: GCC_ANALYZER_WARNING (CWE-401): [#def363]
coreutils-9.7/src/df.c:1274:14: warning[-Wanalyzer-malloc-leak]: leak of 'resolved'
coreutils-9.7/src/df.c:1463:1: enter_function: entry to 'get_entry'
coreutils-9.7/src/df.c:1476:6: branch_true: following 'true' branch...
coreutils-9.7/src/df.c:1477:10: branch_true: ...to here
coreutils-9.7/src/df.c:1477:10: call_function: calling 'get_device' from 'get_entry'
# 1272|           return canon_dev;
# 1273|         free (canon_dev);
# 1274|->       return xstrdup (le->me_devname);
# 1275|       }
# 1276|     else

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

Error: GCC_ANALYZER_WARNING (CWE-401): [#def365]
coreutils-9.7/src/df.c:1808:5: warning[-Wanalyzer-malloc-leak]: leak of 'stats'
coreutils-9.7/src/df.c:1785:8: branch_false: following 'false' branch (when 'match == 0')...
coreutils-9.7/src/df.c:1789:7: branch_false: ...to here
coreutils-9.7/src/df.c:1789:6: branch_true: following 'true' branch...
coreutils-9.7/src/df.c:1794:25: branch_true: ...to here
coreutils-9.7/src/df.c:1808:5: throw: if 'read_file_system_list' throws an exception...
coreutils-9.7/src/df.c:1808:5: danger: 'stats' leaks here; was allocated at [(5)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/4)
# 1806|   
# 1807|     mount_list =
# 1808|->     read_file_system_list ((fs_select_list != nullptr
# 1809|                               || fs_exclude_list != nullptr
# 1810|                               || print_type

Error: GCC_ANALYZER_WARNING (CWE-401): [#def366]
coreutils-9.7/src/digest.c:1009:3: warning[-Wanalyzer-malloc-leak]: leak of 'fp'
coreutils-9.7/src/digest.c:982:6: branch_false: following 'false' branch (when the strings are non-equal)...
coreutils-9.7/src/digest.c:996:12: branch_false: ...to here
coreutils-9.7/src/digest.c:996:12: acquire_memory: allocated here
coreutils-9.7/src/digest.c:997:10: branch_false: following 'false' branch...
coreutils-9.7/src/digest.c:1009:3: branch_false: ...to here
coreutils-9.7/src/digest.c:1009:3: throw: if 'fadvise' throws an exception...
coreutils-9.7/src/digest.c:1009:3: danger: 'fp' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
# 1007|       }
# 1008|   
# 1009|->   fadvise (fp, FADVISE_SEQUENTIAL);
# 1010|   
# 1011|   #if HASH_ALGO_CKSUM

Error: CPPCHECK_WARNING (CWE-457): [#def367]
coreutils-9.7/src/digest.c:1152: error[uninitvar]: Uninitialized variable: bin_buffer_unaligned
# 1150|     unsigned char bin_buffer_unaligned[DIGEST_BIN_BYTES + DIGEST_ALIGN];
# 1151|     /* Make sure bin_buffer is properly aligned. */
# 1152|->   unsigned char *bin_buffer = ptr_align (bin_buffer_unaligned, DIGEST_ALIGN);
# 1153|     uintmax_t line_number;
# 1154|     char *line;

Error: CPPCHECK_WARNING (CWE-457): [#def368]
coreutils-9.7/src/digest.c:1352: error[uninitvar]: Uninitialized variable: bin_buffer_unaligned
# 1350|     unsigned char bin_buffer_unaligned[DIGEST_BIN_BYTES + DIGEST_ALIGN];
# 1351|     /* Make sure bin_buffer is properly aligned. */
# 1352|->   unsigned char *bin_buffer = ptr_align (bin_buffer_unaligned, DIGEST_ALIGN);
# 1353|     bool do_check = false;
# 1354|     int opt;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def369]
coreutils-9.7/src/du.c:669:17: warning[-Wanalyzer-malloc-leak]: leak of 'xfts_open(files,  bit_flags, 0)'
coreutils-9.7/src/du.c:661:6: branch_true: following 'true' branch...
coreutils-9.7/src/du.c:663:18: branch_true: ...to here
coreutils-9.7/src/du.c:669:17: throw: if 'rpl_fts_read' throws an exception...
coreutils-9.7/src/du.c:669:17: danger: 'xfts_open(files,  bit_flags, 0)' leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  667|             FTSENT *ent;
#  668|   
#  669|->           ent = fts_read (fts);
#  670|             if (ent == nullptr)
#  671|               {

Error: COMPILER_WARNING (CWE-704): [#def370]
coreutils-9.7/src/du.c: scope_hint: In function 'main'
coreutils-9.7/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.7/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.7/src/du.c:1033:14: warning[-Wanalyzer-malloc-leak]: leak of 'ai'
coreutils-9.7/src/du.c:910:6: branch_true: following 'true' branch (when 'ok != 0')...
coreutils-9.7/src/du.c:913:7: branch_true: ...to here
coreutils-9.7/src/du.c:996:6: branch_false: following 'false' branch (when 'files_from' is NULL)...
coreutils-9.7/src/du.c:1020:23: branch_false: ...to here
coreutils-9.7/src/du.c:1021:12: acquire_memory: allocated here
coreutils-9.7/src/du.c:1029:6: branch_false: following 'false' branch (when 'ai' is non-NULL)...
coreutils-9.7/src/du.c:1033:14: branch_false: ...to here
coreutils-9.7/src/du.c:1033:14: throw: if 'di_set_alloc' throws an exception...
coreutils-9.7/src/du.c:1033:14: danger: 'ai' leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
# 1031|   
# 1032|     /* Initialize the set of dev,inode pairs.  */
# 1033|->   di_files = di_set_alloc ();
# 1034|     if (!di_files)
# 1035|       xalloc_die ();

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

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

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

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

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

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

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

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

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

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

Error: GCC_ANALYZER_WARNING (CWE-401): [#def383]
coreutils-9.7/src/expand-common.c:315:15: warning[-Wanalyzer-malloc-leak]: leak of 'ximemdup0(num_start,  len)'
coreutils-9.7/src/expand-common.c:243:1: enter_function: entry to 'parse_tab_stops'
coreutils-9.7/src/expand-common.c:252:10: branch_true: following 'true' branch...
coreutils-9.7/src/expand-common.c:254:10: branch_true: ...to here
coreutils-9.7/src/expand-common.c:254:10: branch_false: following 'false' branch...
coreutils-9.7/src/expand-common.c:279:15: branch_false: following 'false' branch...
coreutils-9.7/src/expand-common.c:290:15: branch_false: ...to here
coreutils-9.7/src/expand-common.c:290:15: branch_false: following 'false' branch...
coreutils-9.7/src/expand-common.c:290:15: branch_false: ...to here
coreutils-9.7/src/expand-common.c:301:16: call_function: inlined call to 'c_isdigit' from 'parse_tab_stops'
coreutils-9.7/src/expand-common.c:303:14: branch_true: ...to here
coreutils-9.7/src/expand-common.c:303:14: branch_false: following 'false' branch (when 'have_tabval == 0')...
coreutils-9.7/src/expand-common.c:303:14: branch_false: ...to here
coreutils-9.7/src/expand-common.c:315:15: throw: if 'quote' throws an exception...
coreutils-9.7/src/expand-common.c:315:15: danger: 'ximemdup0(num_start,  len)' leaks here; was allocated at [(15)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/14)
#  313|                 idx_t len = strspn (num_start, "0123456789");
#  314|                 char *bad_num = ximemdup0 (num_start, len);
#  315|->               error (0, 0, _("tab stop is too large %s"), quote (bad_num));
#  316|                 free (bad_num);
#  317|                 ok = false;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def384]
coreutils-9.7/src/expand-common.c:488:11: warning[-Wanalyzer-file-leak]: leak of FILE 'fp'
coreutils-9.7/src/expand-common.c:476:10: branch_true: following 'true' branch (when 'file' is non-NULL)...
coreutils-9.7/src/expand-common.c:478:11: branch_true: ...to here
coreutils-9.7/src/expand-common.c:484:14: acquire_resource: opened here
coreutils-9.7/src/expand-common.c:488:11: throw: if 'fadvise' throws an exception...
coreutils-9.7/src/expand-common.c:488:11: danger: 'fp' leaks here; was opened at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  486|           {
#  487|             prev_file = file;
#  488|->           fadvise (fp, FADVISE_SEQUENTIAL);
#  489|             return fp;
#  490|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def385]
coreutils-9.7/src/expand-common.c:488:11: warning[-Wanalyzer-malloc-leak]: leak of 'fp'
coreutils-9.7/src/expand-common.c:476:10: branch_true: following 'true' branch (when 'file' is non-NULL)...
coreutils-9.7/src/expand-common.c:478:11: branch_true: ...to here
coreutils-9.7/src/expand-common.c:484:14: acquire_memory: allocated here
coreutils-9.7/src/expand-common.c:488:11: throw: if 'fadvise' throws an exception...
coreutils-9.7/src/expand-common.c:488:11: danger: 'fp' leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  486|           {
#  487|             prev_file = file;
#  488|->           fadvise (fp, FADVISE_SEQUENTIAL);
#  489|             return fp;
#  490|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def386]
coreutils-9.7/src/expr.c:367:12: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(24)'
coreutils-9.7/src/expr.c:679:1: enter_function: entry to 'eval6'
coreutils-9.7/src/expr.c:695:11: branch_true: following 'true' branch...
coreutils-9.7/src/expr.c:697:11: branch_true: ...to here
coreutils-9.7/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-686): [#def387]
coreutils-9.7/src/factor.c:571:10: warning[-Wanalyzer-va-arg-type-mismatch]: 'va_arg' expected '__mpz_struct (*)[1]' but received 'typeof (nullptr)' for variadic argument 5 of 'ap'
coreutils-9.7/src/factor.c:1359:1: enter_function: entry to 'mp_prime_p'
coreutils-9.7/src/factor.c:1372:3: call_function: calling 'mpz_va_init' from 'mp_prime_p' with 5 variadic arguments
#  569|   
#  570|     mpz_t *mpz;
#  571|->   while ((mpz = va_arg (ap, mpz_t *)))
#  572|       mpz_single_init (*mpz);
#  573|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def388]
coreutils-9.7/src/factor.c:572:5: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
coreutils-9.7/src/factor.c:1359:1: enter_function: entry to 'mp_prime_p'
coreutils-9.7/src/factor.c:1372:3: call_function: calling 'mpz_va_init' from 'mp_prime_p'
#  570|     mpz_t *mpz;
#  571|     while ((mpz = va_arg (ap, mpz_t *)))
#  572|->     mpz_single_init (*mpz);
#  573|   
#  574|     va_end (ap);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def389]
coreutils-9.7/src/find-mount-point.c:103:9: warning[-Wanalyzer-malloc-leak]: leak of 'mp'
coreutils-9.7/src/find-mount-point.c:36:6: branch_false: following 'false' branch...
coreutils-9.7/src/find-mount-point.c:42:7: branch_false: ...to here
coreutils-9.7/src/find-mount-point.c:46:10: branch_false: following 'false' branch...
coreutils-9.7/src/find-mount-point.c:46:10: branch_false: ...to here
coreutils-9.7/src/find-mount-point.c:80:10: branch_false: following 'false' branch...
coreutils-9.7/src/find-mount-point.c:85:11: branch_false: ...to here
coreutils-9.7/src/find-mount-point.c:97:8: acquire_memory: allocated here
coreutils-9.7/src/find-mount-point.c:103:9: throw: if 'restore_cwd' throws an exception...
coreutils-9.7/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): [#def390]
coreutils-9.7/src/find-mount-point.c:106:5: warning[-Wanalyzer-malloc-leak]: leak of 'mp'
coreutils-9.7/src/find-mount-point.c:36:6: branch_false: following 'false' branch...
coreutils-9.7/src/find-mount-point.c:42:7: branch_false: ...to here
coreutils-9.7/src/find-mount-point.c:46:10: branch_false: following 'false' branch...
coreutils-9.7/src/find-mount-point.c:46:10: branch_false: ...to here
coreutils-9.7/src/find-mount-point.c:80:10: branch_false: following 'false' branch...
coreutils-9.7/src/find-mount-point.c:85:11: branch_false: ...to here
coreutils-9.7/src/find-mount-point.c:97:8: acquire_memory: allocated here
coreutils-9.7/src/find-mount-point.c:103:8: branch_false: following 'false' branch...
coreutils-9.7/src/find-mount-point.c:106:5: branch_false: ...to here
coreutils-9.7/src/find-mount-point.c:106:5: throw: if 'free_cwd' throws an exception...
coreutils-9.7/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: CPPCHECK_WARNING (CWE-476): [#def391]
coreutils-9.7/src/head.c:368: warning[nullPointer]: Possible null pointer dereference: b
#  366|             if (! buffered_enough)
#  367|               {
#  368|->               b[i] = xmalloc (READ_BUFSIZE);
#  369|                 n_alloc = i + 1;
#  370|               }

Error: CPPCHECK_WARNING (CWE-476): [#def392]
coreutils-9.7/src/head.c:371: warning[nullPointer]: Possible null pointer dereference: b
#  369|                 n_alloc = i + 1;
#  370|               }
#  371|->           n_read = full_read (fd, b[i], READ_BUFSIZE);
#  372|             if (n_read < READ_BUFSIZE)
#  373|               {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def393]
coreutils-9.7/src/hostname.c:108:7: warning[-Wanalyzer-malloc-leak]: leak of 'xgethostname()'
coreutils-9.7/src/hostname.c:89:6: branch_false: following 'false' branch...
coreutils-9.7/src/hostname.c:95:6: branch_false: ...to here
coreutils-9.7/src/hostname.c:95:6: branch_false: following 'false' branch...
coreutils-9.7/src/hostname.c:105:18: branch_false: ...to here
coreutils-9.7/src/hostname.c:105:18: acquire_memory: allocated here
coreutils-9.7/src/hostname.c:106:10: branch_false: following 'false' branch...
coreutils-9.7/src/hostname.c:108:7: branch_false: ...to here
coreutils-9.7/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.7/src/install.c:745:8: warning[-Wanalyzer-malloc-leak]: leak of 'file_name_concat(to_dir,  last_component(from), &to_relname)'
coreutils-9.7/src/install.c:736:1: enter_function: entry to 'install_file_in_dir'
coreutils-9.7/src/install.c:745:6: branch_true: following 'true' branch...
coreutils-9.7/src/install.c:745:7: branch_true: ...to here
coreutils-9.7/src/install.c:745:7: branch_true: following 'true' branch (when 'mkdir_and_install != 0')...
coreutils-9.7/src/install.c:747:17: branch_true: ...to here
coreutils-9.7/src/install.c:747:17: call_function: calling 'mkancesdirs_safe_wd' from 'install_file_in_dir'
#  743|     bool ret = true;
#  744|   
#  745|->   if (!target_dirfd_valid (*target_dirfd)
#  746|         && (ret = mkdir_and_install)
#  747|         && (ret = mkancesdirs_safe_wd (from, to, (struct cp_options *) x, true)))

Error: GCC_ANALYZER_WARNING (CWE-457): [#def395]
coreutils-9.7/src/join.c:990:11: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'operand_status[1]'
coreutils-9.7/src/join.c:1004:1: enter_function: entry to 'main'
coreutils-9.7/src/join.c:1030:10: branch_true: following 'true' branch (when 'optc != -1')...
coreutils-9.7/src/join.c:1034:7: branch_true: ...to here
coreutils-9.7/src/join.c:1104:16: branch_false: following 'false' branch...
coreutils-9.7/src/join.c:1110:22: branch_false: ...to here
coreutils-9.7/src/join.c:1110:21: branch_false: following 'false' branch (when the strings are non-equal)...
coreutils-9.7/src/join.c:1117:26: call_function: inlined call to 'mcel_scanz' from 'main'
coreutils-9.7/src/join.c:1117:26: call_function: inlined call to 'mcel_scanz' from 'main'
coreutils-9.7/src/join.c:1118:20: branch_false: following 'false' branch...
coreutils-9.7/src/join.c:1121:17: branch_false: ...to here
coreutils-9.7/src/join.c:1123:16: branch_false: following 'false' branch...
coreutils-9.7/src/join.c:1125:13: branch_false: ...to here
coreutils-9.7/src/join.c:1030:10: branch_true: following 'true' branch (when 'optc != -1')...
coreutils-9.7/src/join.c:1034:7: branch_true: ...to here
coreutils-9.7/src/join.c:1143:11: call_function: calling 'add_file_name' from 'main'
#  988|         if (!op0)
#  989|           {
#  990|->           operand_status[0] = operand_status[1];
#  991|             names[0] = names[1];
#  992|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def396]
coreutils-9.7/src/libstdbuf.c:134:1: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
coreutils-9.7/src/libstdbuf.c:98:6: branch_false: following 'false' branch...
coreutils-9.7/src/libstdbuf.c:100:11: branch_false: ...to here
coreutils-9.7/src/libstdbuf.c:100:11: branch_false: following 'false' branch...
coreutils-9.7/src/libstdbuf.c:106:14: branch_false: ...to here
coreutils-9.7/src/libstdbuf.c:107:10: branch_false: following 'false' branch...
coreutils-9.7/src/libstdbuf.c:114:13: acquire_memory: allocated here
coreutils-9.7/src/libstdbuf.c:115:10: branch_false: following 'false' branch (when 'buf' is non-NULL)...
coreutils-9.7/src/libstdbuf.c:134:1: branch_false: ...to here
coreutils-9.7/src/libstdbuf.c:128:6: branch_false: following 'false' branch...
coreutils-9.7/src/libstdbuf.c:128:6: branch_false: ...to here
coreutils-9.7/src/libstdbuf.c:134:1: danger: 'buf' leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
#  132|         free (buf);
#  133|       }
#  134|-> }
#  135|   
#  136|   /* Use __attribute to avoid elision of __attribute__ on SUNPRO_C etc.  */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def397]
coreutils-9.7/src/ln.c:672:11: warning[-Wanalyzer-malloc-leak]: leak of 'file_name_concat(target_directory,  last_component(*<unknown>), &dest_base)'
coreutils-9.7/src/ln.c:565:6: branch_false: following 'false' branch (when 'n_files > 0')...
coreutils-9.7/src/ln.c:571:7: branch_false: ...to here
coreutils-9.7/src/ln.c:580:6: branch_false: following 'false' branch (when 'no_target_directory == 0')...
coreutils-9.7/src/ln.c:597:12: branch_false: ...to here
coreutils-9.7/src/ln.c:636:17: branch_false: following 'false' branch (when 'make_backups == 0')...
coreutils-9.7/src/ln.c:636:3: branch_false: ...to here
coreutils-9.7/src/ln.c:642:6: branch_true: following 'true' branch (when 'target_directory' is non-NULL)...
coreutils-9.7/src/ln.c:647:10: branch_true: ...to here
coreutils-9.7/src/ln.c:666:23: branch_true: following 'true' branch (when 'n_files > i')...
coreutils-9.7/src/ln.c:670:62: branch_true: ...to here
coreutils-9.7/src/ln.c:672:11: throw: if 'strip_trailing_slashes' throws an exception...
coreutils-9.7/src/ln.c:672: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)
#  670|                                            last_component (file[i]),
#  671|                                            &dest_base);
#  672|->           strip_trailing_slashes (dest_base);
#  673|             ok &= do_link (file[i], destdir_fd, dest_base, dest, -1);
#  674|             free (dest);

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

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

Error: GCC_ANALYZER_WARNING (CWE-401): [#def400]
coreutils-9.7/src/ls.c:4545:11: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(quotearg_buffer(buf,  bufsize,  name, 18446744073709551615,  options) + 1)'
coreutils-9.7/src/ls.c:3935:1: enter_function: entry to 'fileinfo_name_width'
coreutils-9.7/src/ls.c:3939:12: call_function: calling 'quote_name_width' from 'fileinfo_name_width'
# 4543|           {
# 4544|             buf = xmalloc (len + 1);
# 4545|->           quotearg_buffer (buf, len + 1, name, -1, options);
# 4546|           }
# 4547|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def401]
coreutils-9.7/src/ls.c:4745:10: warning[-Wanalyzer-malloc-leak]: leak of 'xnmalloc(3, strlen(str) + 1)'
coreutils-9.7/src/ls.c:5226:1: enter_function: entry to 'print_with_separator'
coreutils-9.7/src/ls.c:5230:27: branch_true: following 'true' branch...
coreutils-9.7/src/ls.c:5232:45: branch_true: ...to here
coreutils-9.7/src/ls.c:5233:20: branch_false: following 'false' branch...
coreutils-9.7/src/ls.c:5235:10: branch_false: ...to here
coreutils-9.7/src/ls.c:5235:10: branch_false: following 'false' branch (when 'filesno == 0')...
coreutils-9.7/src/ls.c:5256:7: branch_false: ...to here
coreutils-9.7/src/ls.c:5256:7: call_function: calling 'print_file_name_and_frills' from 'print_with_separator'
# 4743|     char *esc = xnmalloc (3, strlen (str) + 1);
# 4744|     char *p = esc;
# 4745|->   while (*str)
# 4746|       {
# 4747|         if (path && ISSLASH (*str))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def402]
coreutils-9.7/src/ls.c:5341:3: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
coreutils-9.7/src/ls.c:5316:6: branch_true: following 'true' branch...
coreutils-9.7/src/ls.c:5319:21: branch_true: ...to here
coreutils-9.7/src/ls.c:5328:10: branch_false: following 'false' branch...
coreutils-9.7/src/ls.c:5329:14: branch_false: ...to here
coreutils-9.7/src/ls.c:5328:11: branch_false: following 'false' branch...
coreutils-9.7/src/ls.c:5331:19: branch_false: ...to here
coreutils-9.7/src/ls.c:5334:45: branch_true: following 'true' branch...
coreutils-9.7/src/ls.c:5336:22: branch_true: ...to here
coreutils-9.7/src/ls.c:5334:45: branch_false: following 'false' branch...
coreutils-9.7/src/ls.c:5341:3: branch_false: ...to here
coreutils-9.7/src/ls.c:5341:3: danger: '<unknown>' leaks here; was allocated at [(7)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/6)
# 5339|       }
# 5340|   
# 5341|->   for (idx_t i = 0; i < max_cols; ++i)
# 5342|       {
# 5343|         column_info[i].valid_len = true;

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

Error: GCC_ANALYZER_WARNING (CWE-401): [#def404]
coreutils-9.7/src/mktemp.c:252:7: warning[-Wanalyzer-malloc-leak]: leak of 'template'
coreutils-9.7/src/mktemp.c:169:10: branch_true: following 'true' branch (when 'c != -1')...
coreutils-9.7/src/mktemp.c:171:7: branch_true: ...to here
coreutils-9.7/src/mktemp.c:206:6: branch_false: following 'false' branch (when 'n_args <= 1')...
coreutils-9.7/src/mktemp.c:212:6: branch_false: ...to here
coreutils-9.7/src/mktemp.c:222:6: branch_false: following 'false' branch (when 'suffix' is NULL)...
coreutils-9.7/src/mktemp.c:240:18: branch_false: ...to here
coreutils-9.7/src/mktemp.c:250:6: branch_true: following 'true' branch...
coreutils-9.7/src/mktemp.c:252:7: throw: if 'quote' throws an exception...
coreutils-9.7/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.7/src/mktemp.c:262:7: warning[-Wanalyzer-malloc-leak]: leak of 'template'
coreutils-9.7/src/mktemp.c:169:10: branch_true: following 'true' branch (when 'c != -1')...
coreutils-9.7/src/mktemp.c:171:7: branch_true: ...to here
coreutils-9.7/src/mktemp.c:206:6: branch_false: following 'false' branch (when 'n_args <= 1')...
coreutils-9.7/src/mktemp.c:212:6: branch_false: ...to here
coreutils-9.7/src/mktemp.c:222:6: branch_false: following 'false' branch (when 'suffix' is NULL)...
coreutils-9.7/src/mktemp.c:240:18: branch_false: ...to here
coreutils-9.7/src/mktemp.c:257:6: branch_true: following 'true' branch (when 'n <= 2')...
coreutils-9.7/src/mktemp.c:260:10: branch_true: ...to here
coreutils-9.7/src/mktemp.c:262:7: throw: if 'quote' throws an exception...
coreutils-9.7/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.7/src/mv.c:536:11: warning[-Wanalyzer-malloc-leak]: leak of 'file_name_concat(target_directory,  last_component(source), &dest_relname)'
coreutils-9.7/src/mv.c:316:1: enter_function: entry to 'main'
coreutils-9.7/src/mv.c:339:3: call_function: calling 'cp_option_init' from 'main'
coreutils-9.7/src/mv.c:339:3: return_function: returning to 'main' from 'cp_option_init'
coreutils-9.7/src/mv.c:418:6: branch_false: following 'false' branch...
coreutils-9.7/src/mv.c:429:3: branch_false: ...to here
coreutils-9.7/src/mv.c:431:6: branch_false: following 'false' branch (when 'no_target_directory == 0')...
coreutils-9.7/src/mv.c:443:11: branch_false: ...to here
coreutils-9.7/src/mv.c:443:11: branch_false: following 'false' branch (when 'target_directory' is NULL)...
coreutils-9.7/src/mv.c:452:34: branch_false: ...to here
coreutils-9.7/src/mv.c:457:10: branch_true: following 'true' branch...
coreutils-9.7/src/mv.c:459:20: branch_true: ...to here
coreutils-9.7/src/mv.c:460:14: branch_true: following 'true' branch...
coreutils-9.7/src/mv.c:462:15: branch_true: ...to here
coreutils-9.7/src/mv.c:497:6: branch_false: following 'false' branch...
coreutils-9.7/src/mv.c:500:6: branch_false: ...to here
coreutils-9.7/src/mv.c:500:6: branch_false: following 'false' branch (when 'make_backups == 0')...
coreutils-9.7/src/mv.c:511:3: branch_false: ...to here
coreutils-9.7/src/mv.c:519:6: branch_true: following 'true' branch (when 'target_directory' is non-NULL)...
coreutils-9.7/src/mv.c:524:10: branch_true: ...to here
coreutils-9.7/src/mv.c:528:23: branch_true: following 'true' branch (when 'n_files > i')...
coreutils-9.7/src/mv.c:530:25: branch_true: ...to here
coreutils-9.7/src/mv.c:536:11: throw: if 'strip_trailing_slashes' throws an exception...
coreutils-9.7/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.7/src/nl.c:455:3: warning[-Wanalyzer-file-leak]: leak of FILE 'stream'
coreutils-9.7/src/nl.c:439:6: branch_false: following 'false' branch (when the strings are non-equal)...
coreutils-9.7/src/nl.c:447:16: branch_false: ...to here
coreutils-9.7/src/nl.c:447:16: acquire_resource: opened here
coreutils-9.7/src/nl.c:448:10: branch_false: following 'false' branch...
coreutils-9.7/src/nl.c:455:3: branch_false: ...to here
coreutils-9.7/src/nl.c:455:3: throw: if 'fadvise' throws an exception...
coreutils-9.7/src/nl.c:455:3: danger: 'stream' leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  453|       }
#  454|   
#  455|->   fadvise (stream, FADVISE_SEQUENTIAL);
#  456|   
#  457|     process_file (stream);

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

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

Error: CPPCHECK_WARNING (CWE-415): [#def413]
coreutils-9.7/src/numfmt.c:862: error[doubleFree]: Memory pointed to by 't_string' is freed twice.
#  860|       }
#  861|   
#  862|->   free (t_string);
#  863|   
#  864|     return n;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def414]
coreutils-9.7/src/operand2sig.c:72:25: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(operand)'
coreutils-9.7/src/operand2sig.c:36:1: enter_function: entry to 'operand2sig'
coreutils-9.7/src/operand2sig.c:40:7: call_function: inlined call to 'c_isdigit' from 'operand2sig'
coreutils-9.7/src/operand2sig.c:70:23: branch_false: ...to here
coreutils-9.7/src/operand2sig.c:72:25: branch_true: following 'true' branch...
coreutils-9.7/src/operand2sig.c:73:13: branch_true: ...to here
coreutils-9.7/src/operand2sig.c:73:12: branch_false: following 'false' branch...
coreutils-9.7/src/operand2sig.c:72:29: branch_false: ...to here
coreutils-9.7/src/operand2sig.c:78:13: throw: if 'str2sig' throws an exception...
coreutils-9.7/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): [#def415]
coreutils-9.7/src/operand2sig.c:78:13: warning[-Wanalyzer-malloc-leak]: leak of 'p'
coreutils-9.7/src/operand2sig.c:36:1: enter_function: entry to 'operand2sig'
coreutils-9.7/src/operand2sig.c:40:7: call_function: inlined call to 'c_isdigit' from 'operand2sig'
coreutils-9.7/src/operand2sig.c:70:23: branch_false: ...to here
coreutils-9.7/src/operand2sig.c:72:25: branch_false: following 'false' branch...
coreutils-9.7/src/operand2sig.c:78:13: branch_false: ...to here
coreutils-9.7/src/operand2sig.c:78:13: throw: if 'str2sig' throws an exception...
coreutils-9.7/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): [#def416]
coreutils-9.7/src/paste.c:180:20: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(nfiles + 2)'
coreutils-9.7/src/paste.c:451:1: enter_function: entry to 'main'
coreutils-9.7/src/paste.c:500:7: call_function: calling 'collapse_escapes' from 'main'
coreutils-9.7/src/paste.c:500:7: return_function: returning to 'main' from 'collapse_escapes'
coreutils-9.7/src/paste.c:500:6: branch_false: following 'false' branch...
coreutils-9.7/src/paste.c:509:28: branch_false: ...to here
coreutils-9.7/src/paste.c:509:14: branch_false: following 'false' branch...
coreutils-9.7/src/paste.c:509:14: branch_false: ...to here
coreutils-9.7/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): [#def417]
coreutils-9.7/src/paste.c:194:11: warning[-Wanalyzer-malloc-leak]: leak of 'xnmalloc(nfiles + 1, 8)'
coreutils-9.7/src/paste.c:451:1: enter_function: entry to 'main'
coreutils-9.7/src/paste.c:500:7: call_function: calling 'collapse_escapes' from 'main'
coreutils-9.7/src/paste.c:500:7: return_function: returning to 'main' from 'collapse_escapes'
coreutils-9.7/src/paste.c:500:6: branch_false: following 'false' branch...
coreutils-9.7/src/paste.c:509:28: branch_false: ...to here
coreutils-9.7/src/paste.c:509:14: branch_false: following 'false' branch...
coreutils-9.7/src/paste.c:509:14: branch_false: ...to here
coreutils-9.7/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): [#def418]
coreutils-9.7/src/paste.c:361:11: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(*fnamptr, "r")'
coreutils-9.7/src/paste.c:343:10: branch_true: following 'true' branch (when 'nfiles != 0')...
coreutils-9.7/src/paste.c:346:23: branch_true: ...to here
coreutils-9.7/src/paste.c:347:10: branch_false: following 'false' branch (when the strings are non-equal)...
coreutils-9.7/src/paste.c:354:21: branch_false: ...to here
coreutils-9.7/src/paste.c:354:21: acquire_resource: opened here
coreutils-9.7/src/paste.c:355:14: branch_false: following 'false' branch...
coreutils-9.7/src/paste.c:361:11: branch_false: ...to here
coreutils-9.7/src/paste.c:361:11: throw: if 'fadvise' throws an exception...
coreutils-9.7/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): [#def419]
coreutils-9.7/src/paste.c:361:11: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(*fnamptr, "r")'
coreutils-9.7/src/paste.c:343:10: branch_true: following 'true' branch (when 'nfiles != 0')...
coreutils-9.7/src/paste.c:346:23: branch_true: ...to here
coreutils-9.7/src/paste.c:347:10: branch_false: following 'false' branch (when the strings are non-equal)...
coreutils-9.7/src/paste.c:354:21: branch_false: ...to here
coreutils-9.7/src/paste.c:354:21: acquire_memory: allocated here
coreutils-9.7/src/paste.c:355:14: branch_false: following 'false' branch...
coreutils-9.7/src/paste.c:361:11: branch_false: ...to here
coreutils-9.7/src/paste.c:361:11: throw: if 'fadvise' throws an exception...
coreutils-9.7/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): [#def420]
coreutils-9.7/src/pinky.c:312:1: warning[-Wanalyzer-malloc-leak]: leak of 'host'
coreutils-9.7/src/pinky.c:529:1: enter_function: entry to 'single_binary_main_pinky'
coreutils-9.7/src/pinky.c:612:6: branch_true: following 'true' branch...
coreutils-9.7/src/pinky.c:613:43: branch_true: ...to here
coreutils-9.7/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): [#def421]
coreutils-9.7/src/printf.c:526:23: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(strlen(format) + 1)'
coreutils-9.7/src/printf.c:511:1: enter_function: entry to 'print_formatted'
coreutils-9.7/src/printf.c:526:23: branch_true: following 'true' branch...
coreutils-9.7/src/printf.c:528:7: branch_true: ...to here
coreutils-9.7/src/printf.c:535:14: branch_false: following 'false' branch...
coreutils-9.7/src/printf.c:541:16: branch_false: ...to here
coreutils-9.7/src/printf.c:541:16: call_function: calling 'get_curr_arg' from 'print_formatted'
coreutils-9.7/src/printf.c:541:16: return_function: returning to 'print_formatted' from 'get_curr_arg'
coreutils-9.7/src/printf.c:543:14: branch_false: following 'false' branch...
coreutils-9.7/src/printf.c:553:14: branch_false: ...to here
coreutils-9.7/src/printf.c:553:14: branch_true: following 'true' branch...
coreutils-9.7/src/printf.c:555:20: call_function: inlined call to 'get_curr_arg' from 'print_formatted'
coreutils-9.7/src/printf.c:556:18: branch_true: following 'true' branch (when 'argc > <unknown>')...
coreutils-9.7/src/printf.c:558:19: branch_true: ...to here
coreutils-9.7/src/printf.c:558:19: throw: if 'quotearg_style' throws an exception...
coreutils-9.7/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): [#def422]
coreutils-9.7/src/pwd.c:94:12: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(24)'
coreutils-9.7/src/pwd.c:94:12: throw: if 'xmalloc' throws an exception...
coreutils-9.7/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): [#def423]
coreutils-9.7/src/pwd.c:95:14: warning[-Wanalyzer-malloc-leak]: leak of 'file_name_init()'
coreutils-9.7/src/pwd.c:325:1: enter_function: entry to 'main'
coreutils-9.7/src/pwd.c:378:6: branch_false: following 'false' branch...
coreutils-9.7/src/pwd.c:385:37: branch_false: ...to here
coreutils-9.7/src/pwd.c:385:37: call_function: calling 'file_name_init' from 'main'
coreutils-9.7/src/pwd.c:385:37: return_function: returning to 'main' from 'file_name_init'
coreutils-9.7/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): [#def424]
coreutils-9.7/src/pwd.c:162:5: warning[-Wanalyzer-malloc-leak]: leak of 'nth_parent(parent_height)'
coreutils-9.7/src/pwd.c:151:1: enter_function: entry to 'find_dir_entry'
coreutils-9.7/src/pwd.c:161:6: branch_true: following 'true' branch...
coreutils-9.7/src/pwd.c:162:5: branch_true: ...to here
coreutils-9.7/src/pwd.c:162:5: call_function: calling 'nth_parent' from 'find_dir_entry'
coreutils-9.7/src/pwd.c:162:5: return_function: returning to 'find_dir_entry' from 'nth_parent'
coreutils-9.7/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): [#def425]
coreutils-9.7/src/pwd.c:167:5: warning[-Wanalyzer-malloc-leak]: leak of 'nth_parent(parent_height)'
coreutils-9.7/src/pwd.c:151:1: enter_function: entry to 'find_dir_entry'
coreutils-9.7/src/pwd.c:161:6: branch_false: following 'false' branch...
coreutils-9.7/src/pwd.c:165:8: branch_false: ...to here
coreutils-9.7/src/pwd.c:166:6: branch_true: following 'true' branch...
coreutils-9.7/src/pwd.c:167:5: branch_true: ...to here
coreutils-9.7/src/pwd.c:167:5: call_function: calling 'nth_parent' from 'find_dir_entry'
coreutils-9.7/src/pwd.c:167:5: return_function: returning to 'find_dir_entry' from 'nth_parent'
coreutils-9.7/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): [#def426]
coreutils-9.7/src/pwd.c:171:5: warning[-Wanalyzer-malloc-leak]: leak of 'nth_parent(parent_height)'
coreutils-9.7/src/pwd.c:151:1: enter_function: entry to 'find_dir_entry'
coreutils-9.7/src/pwd.c:161:6: branch_false: following 'false' branch...
coreutils-9.7/src/pwd.c:165:8: branch_false: ...to here
coreutils-9.7/src/pwd.c:166:6: branch_false: following 'false' branch...
coreutils-9.7/src/pwd.c:170:7: branch_false: ...to here
coreutils-9.7/src/pwd.c:170:6: branch_true: following 'true' branch...
coreutils-9.7/src/pwd.c:171:5: branch_true: ...to here
coreutils-9.7/src/pwd.c:171:5: call_function: calling 'nth_parent' from 'find_dir_entry'
coreutils-9.7/src/pwd.c:171:5: return_function: returning to 'find_dir_entry' from 'nth_parent'
coreutils-9.7/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): [#def427]
coreutils-9.7/src/pwd.c:230:7: warning[-Wanalyzer-malloc-leak]: leak of 'nth_parent(parent_height)'
coreutils-9.7/src/pwd.c:151:1: enter_function: entry to 'find_dir_entry'
coreutils-9.7/src/pwd.c:161:6: branch_false: following 'false' branch...
coreutils-9.7/src/pwd.c:165:8: branch_false: ...to here
coreutils-9.7/src/pwd.c:166:6: branch_false: following 'false' branch...
coreutils-9.7/src/pwd.c:170:7: branch_false: ...to here
coreutils-9.7/src/pwd.c:170:6: branch_false: following 'false' branch...
coreutils-9.7/src/pwd.c:176:16: branch_false: ...to here
coreutils-9.7/src/pwd.c:186:10: branch_true: following 'true' branch...
coreutils-9.7/src/pwd.c:188:15: branch_true: ...to here
coreutils-9.7/src/pwd.c:230:7: call_function: calling 'nth_parent' from 'find_dir_entry'
coreutils-9.7/src/pwd.c:230:7: return_function: returning to 'find_dir_entry' from 'nth_parent'
coreutils-9.7/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): [#def428]
coreutils-9.7/src/pwd.c:235:5: warning[-Wanalyzer-malloc-leak]: leak of 'nth_parent(parent_height)'
coreutils-9.7/src/pwd.c:151:1: enter_function: entry to 'find_dir_entry'
coreutils-9.7/src/pwd.c:161:6: branch_false: following 'false' branch...
coreutils-9.7/src/pwd.c:165:8: branch_false: ...to here
coreutils-9.7/src/pwd.c:166:6: branch_false: following 'false' branch...
coreutils-9.7/src/pwd.c:170:7: branch_false: ...to here
coreutils-9.7/src/pwd.c:170:6: branch_false: following 'false' branch...
coreutils-9.7/src/pwd.c:176:16: branch_false: ...to here
coreutils-9.7/src/pwd.c:186:10: branch_true: following 'true' branch...
coreutils-9.7/src/pwd.c:188:15: branch_true: ...to here
coreutils-9.7/src/pwd.c:188:14: branch_false: following 'false' branch...
coreutils-9.7/src/pwd.c:198:11: branch_false: ...to here
coreutils-9.7/src/pwd.c:226:7: branch_false: following 'false' branch...
coreutils-9.7/src/pwd.c:234:6: branch_false: ...to here
coreutils-9.7/src/pwd.c:234:6: branch_false: following 'false' branch (when 'found == 0')...
coreutils-9.7/src/pwd.c:235:5: branch_false: ...to here
coreutils-9.7/src/pwd.c:235:5: call_function: calling 'nth_parent' from 'find_dir_entry'
coreutils-9.7/src/pwd.c:235:5: return_function: returning to 'find_dir_entry' from 'nth_parent'
coreutils-9.7/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): [#def429]
coreutils-9.7/src/realpath.c:99:21: warning[-Wanalyzer-malloc-leak]: leak of 'realpath_canon(fname,  can_mode)'
coreutils-9.7/src/realpath.c:149:1: enter_function: entry to 'process_path'
coreutils-9.7/src/realpath.c:151:21: call_function: calling 'realpath_canon' from 'process_path'
coreutils-9.7/src/realpath.c:151:21: return_function: returning to 'process_path' from 'realpath_canon'
coreutils-9.7/src/realpath.c:152:6: branch_false: following 'false' branch...
coreutils-9.7/src/realpath.c:159:7: branch_false: ...to here
coreutils-9.7/src/realpath.c:159:6: branch_false: following 'false' branch...
coreutils-9.7/src/realpath.c:160:11: branch_false: ...to here
coreutils-9.7/src/realpath.c:161:31: throw: if 'relpath' throws an exception...
coreutils-9.7/src/realpath.c:99:21: danger: 'realpath_canon(fname,  can_mode)' leaks here; was allocated at [(4)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/3)
#   97|   realpath_canon (char const *fname, int can_mode)
#   98|   {
#   99|->   char *can_fname = canonicalize_filename_mode (fname, can_mode);
#  100|     if (logical && can_fname)  /* canonicalize again to resolve symlinks.  */
#  101|       {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def430]
coreutils-9.7/src/realpath.c:100:7: warning[-Wanalyzer-malloc-leak]: leak of 'canonicalize_filename_mode(fname, (enum canonicalize_mode_t)can_mode)'
coreutils-9.7/src/realpath.c:99:21: acquire_memory: allocated here
coreutils-9.7/src/realpath.c:100:6: branch_true: following 'true' branch...
coreutils-9.7/src/realpath.c:100:7: branch_true: ...to here
coreutils-9.7/src/realpath.c:100:7: branch_true: following 'true' branch...
coreutils-9.7/src/realpath.c:102:7: branch_true: ...to here
coreutils-9.7/src/realpath.c:103:26: throw: if 'canonicalize_filename_mode' throws an exception...
coreutils-9.7/src/realpath.c:100: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)
#   98|   {
#   99|     char *can_fname = canonicalize_filename_mode (fname, can_mode);
#  100|->   if (logical && can_fname)  /* canonicalize again to resolve symlinks.  */
#  101|       {
#  102|         can_mode &= ~CAN_NOLINKS;

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

Error: GCC_ANALYZER_WARNING (CWE-401): [#def432]
coreutils-9.7/src/remove.c:623:17: warning[-Wanalyzer-malloc-leak]: leak of 'xfts_open(file,  bit_flags, 0)'
coreutils-9.7/src/remove.c:608:6: branch_true: following 'true' branch...
coreutils-9.7/src/remove.c:614:11: branch_true: ...to here
coreutils-9.7/src/remove.c:623:17: throw: if 'rpl_fts_read' throws an exception...
coreutils-9.7/src/remove.c:623:17: danger: 'xfts_open(file,  bit_flags, 0)' leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
#  621|             FTSENT *ent;
#  622|   
#  623|->           ent = fts_read (fts);
#  624|             if (ent == nullptr)
#  625|               {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def433]
coreutils-9.7/src/rmdir.c:271:23: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(dir)'
coreutils-9.7/src/rmdir.c:232:6: branch_false: following 'false' branch...
coreutils-9.7/src/rmdir.c:232:6: branch_false: ...to here
coreutils-9.7/src/rmdir.c:238:10: branch_true: following 'true' branch...
coreutils-9.7/src/rmdir.c:240:23: branch_true: ...to here
coreutils-9.7/src/rmdir.c:246:10: branch_true: following 'true' branch...
coreutils-9.7/src/rmdir.c:248:29: branch_true: ...to here
coreutils-9.7/src/rmdir.c:249:14: branch_false: following 'false' branch...
coreutils-9.7/src/rmdir.c:258:14: branch_false: ...to here
coreutils-9.7/src/rmdir.c:258:14: branch_true: following 'true' branch (when 'rmdir_errno == 20')...
coreutils-9.7/src/rmdir.c:260:45: branch_true: ...to here
coreutils-9.7/src/rmdir.c:261:18: branch_true: following 'true' branch...
coreutils-9.7/src/rmdir.c:267:26: branch_true: following 'true' branch...
coreutils-9.7/src/rmdir.c:270:39: branch_true: ...to here
coreutils-9.7/src/rmdir.c:271:23: throw: if 'strip_trailing_slashes' throws an exception...
coreutils-9.7/src/rmdir.c:271:23: danger: 'xstrdup(dir)' leaks here; was allocated at [(15)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/14)
#  269|                         /* Ensure the last component was a symlink.  */
#  270|                         char *dir_arg = xstrdup (dir);
#  271|->                       strip_trailing_slashes (dir);
#  272|                         ret = lstat (dir, &st);
#  273|                         if (ret == 0 && S_ISLNK (st.st_mode))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def434]
coreutils-9.7/src/rmdir.c:273:39: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(dir)'
coreutils-9.7/src/rmdir.c:232:6: branch_false: following 'false' branch...
coreutils-9.7/src/rmdir.c:232:6: branch_false: ...to here
coreutils-9.7/src/rmdir.c:238:10: branch_true: following 'true' branch...
coreutils-9.7/src/rmdir.c:240:23: branch_true: ...to here
coreutils-9.7/src/rmdir.c:246:10: branch_true: following 'true' branch...
coreutils-9.7/src/rmdir.c:248:29: branch_true: ...to here
coreutils-9.7/src/rmdir.c:249:14: branch_false: following 'false' branch...
coreutils-9.7/src/rmdir.c:258:14: branch_false: ...to here
coreutils-9.7/src/rmdir.c:258:14: branch_true: following 'true' branch (when 'rmdir_errno == 20')...
coreutils-9.7/src/rmdir.c:260:45: branch_true: ...to here
coreutils-9.7/src/rmdir.c:261:18: branch_true: following 'true' branch...
coreutils-9.7/src/rmdir.c:267:26: branch_true: following 'true' branch...
coreutils-9.7/src/rmdir.c:270:39: branch_true: ...to here
coreutils-9.7/src/rmdir.c:273:26: branch_true: following 'true' branch...
coreutils-9.7/src/rmdir.c:275:27: throw: if 'quotearg_style' throws an exception...
coreutils-9.7/src/rmdir.c:273:39: danger: 'xstrdup(dir)' leaks here; was allocated at [(15)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/14)
#  271|                         strip_trailing_slashes (dir);
#  272|                         ret = lstat (dir, &st);
#  273|->                       if (ret == 0 && S_ISLNK (st.st_mode))
#  274|                           {
#  275|                             error (0, 0,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def435]
coreutils-9.7/src/selinux.c:82:7: warning[-Wanalyzer-malloc-leak]: leak of 'dir_name(path)'
coreutils-9.7/src/selinux.c:82:7: throw: if 'getcon_raw' throws an exception...
coreutils-9.7/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): [#def436]
coreutils-9.7/src/selinux.c:84:7: warning[-Wanalyzer-malloc-leak]: leak of 'dir_name(path)'
coreutils-9.7/src/selinux.c:82:6: branch_false: following 'false' branch...
coreutils-9.7/src/selinux.c:84:7: branch_false: ...to here
coreutils-9.7/src/selinux.c:84:7: throw: if 'rpl_getfilecon_raw' throws an exception...
coreutils-9.7/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): [#def437]
coreutils-9.7/src/selinux.c:86:12: warning[-Wanalyzer-malloc-leak]: leak of 'dir_name(path)'
coreutils-9.7/src/selinux.c:82:6: branch_false: following 'false' branch...
coreutils-9.7/src/selinux.c:84:7: branch_false: ...to here
coreutils-9.7/src/selinux.c:84:6: branch_false: following 'false' branch...
coreutils-9.7/src/selinux.c:86:12: branch_false: ...to here
coreutils-9.7/src/selinux.c:86:12: throw: if 'mode_to_security_class' throws an exception...
coreutils-9.7/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): [#def438]
coreutils-9.7/src/selinux.c:89:8: warning[-Wanalyzer-malloc-leak]: leak of 'dir_name(path)'
coreutils-9.7/src/selinux.c:82:6: branch_false: following 'false' branch...
coreutils-9.7/src/selinux.c:84:7: branch_false: ...to here
coreutils-9.7/src/selinux.c:84:6: branch_false: following 'false' branch...
coreutils-9.7/src/selinux.c:86:12: branch_false: ...to here
coreutils-9.7/src/selinux.c:87:6: branch_false: following 'false' branch...
coreutils-9.7/src/selinux.c:89:8: branch_false: ...to here
coreutils-9.7/src/selinux.c:89:8: throw: if 'security_compute_create_raw' throws an exception...
coreutils-9.7/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): [#def439]
coreutils-9.7/src/selinux.c:130:7: warning[-Wanalyzer-malloc-leak]: leak of 'newpath'
coreutils-9.7/src/selinux.c:121:6: branch_true: following 'true' branch...
coreutils-9.7/src/selinux.c:124:17: branch_true: ...to here
coreutils-9.7/src/selinux.c:124:17: acquire_memory: allocated here
coreutils-9.7/src/selinux.c:125:10: branch_false: following 'false' branch...
coreutils-9.7/src/selinux.c:130:7: branch_false: ...to here
coreutils-9.7/src/selinux.c:130:7: throw: if 'selabel_lookup_raw' throws an exception...
coreutils-9.7/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): [#def440]
coreutils-9.7/src/selinux.c:159:3: warning[-Wanalyzer-malloc-leak]: leak of 'newpath'
coreutils-9.7/src/selinux.c:121:6: branch_true: following 'true' branch...
coreutils-9.7/src/selinux.c:124:17: branch_true: ...to here
coreutils-9.7/src/selinux.c:124:17: acquire_memory: allocated here
coreutils-9.7/src/selinux.c:125:10: branch_false: following 'false' branch...
coreutils-9.7/src/selinux.c:130:7: branch_false: ...to here
coreutils-9.7/src/selinux.c:130:6: branch_true: following 'true' branch...
coreutils-9.7/src/selinux.c:137:11: branch_true: ...to here
coreutils-9.7/src/selinux.c:159:3: throw: if 'context_free' throws an exception...
coreutils-9.7/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): [#def441]
coreutils-9.7/src/selinux.c:160:3: warning[-Wanalyzer-malloc-leak]: leak of 'newpath'
coreutils-9.7/src/selinux.c:121:6: branch_true: following 'true' branch...
coreutils-9.7/src/selinux.c:124:17: branch_true: ...to here
coreutils-9.7/src/selinux.c:124:17: acquire_memory: allocated here
coreutils-9.7/src/selinux.c:125:10: branch_false: following 'false' branch...
coreutils-9.7/src/selinux.c:130:7: branch_false: ...to here
coreutils-9.7/src/selinux.c:130:6: branch_true: following 'true' branch...
coreutils-9.7/src/selinux.c:137:11: branch_true: ...to here
coreutils-9.7/src/selinux.c:160:3: throw: if 'context_free' throws an exception...
coreutils-9.7/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): [#def442]
coreutils-9.7/src/selinux.c:161:3: warning[-Wanalyzer-malloc-leak]: leak of 'newpath'
coreutils-9.7/src/selinux.c:121:6: branch_true: following 'true' branch...
coreutils-9.7/src/selinux.c:124:17: branch_true: ...to here
coreutils-9.7/src/selinux.c:124:17: acquire_memory: allocated here
coreutils-9.7/src/selinux.c:125:10: branch_false: following 'false' branch...
coreutils-9.7/src/selinux.c:130:7: branch_false: ...to here
coreutils-9.7/src/selinux.c:130:6: branch_true: following 'true' branch...
coreutils-9.7/src/selinux.c:137:11: branch_true: ...to here
coreutils-9.7/src/selinux.c:161:3: throw: if 'freecon' throws an exception...
coreutils-9.7/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): [#def443]
coreutils-9.7/src/selinux.c:162:3: warning[-Wanalyzer-malloc-leak]: leak of 'newpath'
coreutils-9.7/src/selinux.c:121:6: branch_true: following 'true' branch...
coreutils-9.7/src/selinux.c:124:17: branch_true: ...to here
coreutils-9.7/src/selinux.c:124:17: acquire_memory: allocated here
coreutils-9.7/src/selinux.c:125:10: branch_false: following 'false' branch...
coreutils-9.7/src/selinux.c:130:7: branch_false: ...to here
coreutils-9.7/src/selinux.c:130:6: branch_true: following 'true' branch...
coreutils-9.7/src/selinux.c:137:11: branch_true: ...to here
coreutils-9.7/src/selinux.c:162:3: throw: if 'freecon' throws an exception...
coreutils-9.7/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): [#def444]
coreutils-9.7/src/selinux.c:311:14: warning[-Wanalyzer-malloc-leak]: leak of 'newpath'
coreutils-9.7/src/selinux.c:290:6: branch_true: following 'true' branch...
coreutils-9.7/src/selinux.c:295:17: branch_true: ...to here
coreutils-9.7/src/selinux.c:295:17: acquire_memory: allocated here
coreutils-9.7/src/selinux.c:296:10: branch_false: following 'false' branch...
coreutils-9.7/src/selinux.c:301:6: branch_false: ...to here
coreutils-9.7/src/selinux.c:301:6: branch_true: following 'true' branch (when 'recurse != 0')...
coreutils-9.7/src/selinux.c:310:15: branch_true: ...to here
coreutils-9.7/src/selinux.c:311:14: throw: if 'xfts_open' throws an exception...
coreutils-9.7/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): [#def445]
coreutils-9.7/src/selinux.c:314:28: warning[-Wanalyzer-malloc-leak]: leak of 'xfts_open(&ftspath, 16, 0)'
coreutils-9.7/src/selinux.c:290:6: branch_false: following 'false' branch...
coreutils-9.7/src/selinux.c:301:6: branch_false: ...to here
coreutils-9.7/src/selinux.c:301:6: branch_true: following 'true' branch (when 'recurse != 0')...
coreutils-9.7/src/selinux.c:310:15: branch_true: ...to here
coreutils-9.7/src/selinux.c:314:28: throw: if 'rpl_fts_read' throws an exception...
coreutils-9.7/src/selinux.c:314:28: danger: 'xfts_open(&ftspath, 16, 0)' leaks here; was allocated at [(5)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/4)
#  312|   
#  313|     int err = 0;
#  314|->   for (FTSENT *ent; (ent = fts_read (fts)); )
#  315|       if (restorecon_private (selabel_handle, fts->fts_path) < 0)
#  316|         err = errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def446]
coreutils-9.7/src/seq.c:478:14: warning[-Wanalyzer-malloc-leak]: leak of 's2'
coreutils-9.7/src/seq.c:547:1: enter_function: entry to 'main'
coreutils-9.7/src/seq.c:609:6: branch_false: following 'false' branch (when 'n_args > 0')...
coreutils-9.7/src/seq.c:615:6: branch_false: ...to here
coreutils-9.7/src/seq.c:615:6: branch_false: following 'false' branch (when 'n_args <= 3')...
coreutils-9.7/src/seq.c:621:6: branch_false: ...to here
coreutils-9.7/src/seq.c:621:6: branch_false: following 'false' branch (when 'format_str' is NULL)...
coreutils-9.7/src/seq.c:639:6: branch_false: ...to here
coreutils-9.7/src/seq.c:656:10: call_function: calling 'scan_arg' from 'main'
coreutils-9.7/src/seq.c:656:10: return_function: returning to 'main' from 'scan_arg'
coreutils-9.7/src/seq.c:679:6: branch_true: following 'true' branch...
coreutils-9.7/src/seq.c:679:7: branch_true: following 'true' branch...
coreutils-9.7/src/seq.c:679:7: branch_true: following 'true' branch...
coreutils-9.7/src/seq.c:679:7: branch_false: following 'false' branch...
coreutils-9.7/src/seq.c:679:7: branch_false: ...to here
coreutils-9.7/src/seq.c:679:7: branch_true: following 'true' branch...
coreutils-9.7/src/seq.c:686:10: branch_false: following 'false' branch...
coreutils-9.7/src/seq.c:688:13: branch_false: ...to here
coreutils-9.7/src/seq.c:688:10: branch_true: following 'true' branch...
coreutils-9.7/src/seq.c:689:14: branch_true: ...to here
coreutils-9.7/src/seq.c:693:10: branch_true: following 'true' branch...
coreutils-9.7/src/seq.c:694: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): [#def447]
coreutils-9.7/src/seq.c:498:15: warning[-Wanalyzer-malloc-leak]: leak of 'p0'
coreutils-9.7/src/seq.c:489:10: branch_true: following 'true' branch...
coreutils-9.7/src/seq.c:489:10: branch_true: ...to here
coreutils-9.7/src/seq.c:494:14: branch_true: following 'true' branch...
coreutils-9.7/src/seq.c:496:11: branch_true: ...to here
coreutils-9.7/src/seq.c:498:15: throw: if 'full_write' throws an exception...
coreutils-9.7/src/seq.c:498:15: danger: 'p0' leaks here; was allocated at [(1)](sarif:/runs/0/results/3/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): [#def448]
coreutils-9.7/src/seq.c:511:26: warning[-Wanalyzer-malloc-leak]: leak of 'p0'
coreutils-9.7/src/seq.c:489:10: branch_true: following 'true' branch...
coreutils-9.7/src/seq.c:489:10: branch_true: ...to here
coreutils-9.7/src/seq.c:494:14: branch_false: following 'false' branch...
coreutils-9.7/src/seq.c:505:14: branch_false: ...to here
coreutils-9.7/src/seq.c:509:10: branch_true: following 'true' branch (when 'p0 == p')...
coreutils-9.7/src/seq.c:511:26: branch_true: ...to here
coreutils-9.7/src/seq.c:511:26: throw: if 'xpalloc' throws an exception...
coreutils-9.7/src/seq.c:511:26: danger: 'p0' leaks here; was allocated at [(1)](sarif:/runs/0/results/4/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): [#def449]
coreutils-9.7/src/seq.c:529:7: warning[-Wanalyzer-out-of-bounds]: stack-based buffer underwrite
coreutils-9.7/src/seq.c:489:10: branch_false: following 'false' branch...
coreutils-9.7/src/seq.c:527:6: branch_true: following 'true' branch (when 'remaining != 0')...
coreutils-9.7/src/seq.c:529:7: branch_true: ...to here
coreutils-9.7/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): [#def450]
coreutils-9.7/src/seq.c:530:11: warning[-Wanalyzer-malloc-leak]: leak of 'p0'
coreutils-9.7/src/seq.c:489:10: branch_false: following 'false' branch...
coreutils-9.7/src/seq.c:527:6: branch_true: following 'true' branch (when 'remaining != 0')...
coreutils-9.7/src/seq.c:529:7: branch_true: ...to here
coreutils-9.7/src/seq.c:530:11: throw: if 'full_write' throws an exception...
coreutils-9.7/src/seq.c:530:11: danger: 'p0' leaks here; was allocated at [(1)](sarif:/runs/0/results/7/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): [#def451]
coreutils-9.7/src/set-fields.c:256:15: warning[-Wanalyzer-malloc-leak]: leak of 'ximemdup0(num_start, (long int)strspn(<unknown>, "0123456789"))'
coreutils-9.7/src/set-fields.c:137:1: enter_function: entry to 'set_fields'
coreutils-9.7/src/set-fields.c:234:16: call_function: inlined call to 'c_isdigit' from 'set_fields'
coreutils-9.7/src/set-fields.c:239:14: branch_true: ...to here
coreutils-9.7/src/set-fields.c:239:14: branch_false: following 'false' branch (when 'in_digits == 0')...
coreutils-9.7/src/set-fields.c:240:13: branch_false: ...to here
coreutils-9.7/src/set-fields.c:256:15: throw: if 'quote' throws an exception...
coreutils-9.7/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): [#def452]
coreutils-9.7/src/shred.c:1255:11: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(quotearg_n_style_colon(0, 3, *<unknown>))'
coreutils-9.7/src/shred.c:1161:1: enter_function: entry to 'main'
coreutils-9.7/src/shred.c:1240:6: branch_false: following 'false' branch (when 'n_files != 0')...
coreutils-9.7/src/shred.c:1246:20: branch_false: ...to here
coreutils-9.7/src/shred.c:1247:6: branch_false: following 'false' branch...
coreutils-9.7/src/shred.c:1250:3: branch_false: ...to here
coreutils-9.7/src/shred.c:1252:15: branch_true: following 'true' branch (when 'i < n_files')...
coreutils-9.7/src/shred.c:1254:30: branch_true: ...to here
coreutils-9.7/src/shred.c:1255:10: branch_false: following 'false' branch (when the strings are non-equal)...
coreutils-9.7/src/shred.c:1262:17: branch_false: ...to here
coreutils-9.7/src/shred.c:1262:17: call_function: calling 'wipefile' from 'main'
# 1253|       {
# 1254|         char *qname = xstrdup (quotef (file[i]));
# 1255|->       if (STREQ (file[i], "-"))
# 1256|           {
# 1257|             ok &= wipefd (STDOUT_FILENO, qname, randint_source, &flags);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def453]
coreutils-9.7/src/shuf.c:272:7: warning[-Wanalyzer-malloc-leak]: leak of 'fread_file(in, 0, & used)'
coreutils-9.7/src/shuf.c:269:15: acquire_memory: allocated here
coreutils-9.7/src/shuf.c:269:6: branch_false: following 'false' branch...
coreutils-9.7/src/shuf.c:272:7: branch_false: ...to here
coreutils-9.7/src/shuf.c:281:19: throw: if 'xnmalloc' throws an exception...
coreutils-9.7/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): [#def454]
coreutils-9.7/src/shuf.c:281:19: warning[-Wanalyzer-malloc-leak]: leak of 'p'
coreutils-9.7/src/shuf.c:363:1: enter_function: entry to 'main'
coreutils-9.7/src/shuf.c:482:6: branch_false: following 'false' branch...
coreutils-9.7/src/shuf.c:487:7: branch_false: ...to here
coreutils-9.7/src/shuf.c:487:6: branch_false: following 'false' branch...
coreutils-9.7/src/shuf.c:494:6: branch_false: ...to here
coreutils-9.7/src/shuf.c:494:6: branch_false: following 'false' branch (when 'head_lines != 0')...
coreutils-9.7/src/shuf.c:499:11: branch_false: ...to here
coreutils-9.7/src/shuf.c:499:11: branch_false: following 'false' branch (when 'echo == 0')...
coreutils-9.7/src/shuf.c:505:11: branch_false: ...to here
coreutils-9.7/src/shuf.c:505:11: branch_false: following 'false' branch (when 'input_range == 0')...
coreutils-9.7/src/shuf.c:513:10: branch_false: ...to here
coreutils-9.7/src/shuf.c:520:10: branch_true: following 'true' branch...
coreutils-9.7/src/shuf.c:523:21: branch_true: ...to here
coreutils-9.7/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): [#def455]
coreutils-9.7/src/shuf.c:537:20: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
coreutils-9.7/src/shuf.c:363:1: enter_function: entry to 'main'
coreutils-9.7/src/shuf.c:482:6: branch_false: following 'false' branch...
coreutils-9.7/src/shuf.c:487:7: branch_false: ...to here
coreutils-9.7/src/shuf.c:487:6: branch_false: following 'false' branch...
coreutils-9.7/src/shuf.c:494:6: branch_false: ...to here
coreutils-9.7/src/shuf.c:494:6: branch_false: following 'false' branch (when 'head_lines != 0')...
coreutils-9.7/src/shuf.c:499:11: branch_false: ...to here
coreutils-9.7/src/shuf.c:499:11: branch_false: following 'false' branch (when 'echo == 0')...
coreutils-9.7/src/shuf.c:505:11: branch_false: ...to here
coreutils-9.7/src/shuf.c:505:11: branch_false: following 'false' branch (when 'input_range == 0')...
coreutils-9.7/src/shuf.c:513:10: branch_false: ...to here
coreutils-9.7/src/shuf.c:520:10: branch_true: following 'true' branch...
coreutils-9.7/src/shuf.c:523:21: branch_true: ...to here
coreutils-9.7/src/shuf.c:523:21: call_function: calling 'read_input' from 'main'
coreutils-9.7/src/shuf.c:523:21: return_function: returning to 'main' from 'read_input'
coreutils-9.7/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): [#def456]
coreutils-9.7/src/shuf.c:557:10: warning[-Wanalyzer-malloc-leak]: leak of 'randint_all_new(random_source,  <unknown>)'
coreutils-9.7/src/shuf.c:395:10: branch_true: following 'true' branch (when 'optc != -1')...
coreutils-9.7/src/shuf.c:397:5: branch_true: ...to here
coreutils-9.7/src/shuf.c:444:14: branch_true: following 'true' branch...
coreutils-9.7/src/shuf.c:445:26: branch_true: ...to here
coreutils-9.7/src/shuf.c:482:6: branch_false: following 'false' branch...
coreutils-9.7/src/shuf.c:487:7: branch_false: ...to here
coreutils-9.7/src/shuf.c:487:7: branch_false: following 'false' branch...
coreutils-9.7/src/shuf.c:537:20: acquire_memory: allocated here
coreutils-9.7/src/shuf.c:541:6: branch_false: following 'false' branch...
coreutils-9.7/src/shuf.c:545:6: branch_false: ...to here
coreutils-9.7/src/shuf.c:545:6: branch_false: following 'false' branch (when 'use_reservoir_sampling == 0')...
coreutils-9.7/src/shuf.c:557:10: branch_false: ...to here
coreutils-9.7/src/shuf.c:560:6: branch_false: following 'false' branch (when 'repeat == 0')...
coreutils-9.7/src/shuf.c:561:19: branch_false: ...to here
coreutils-9.7/src/shuf.c:561:19: throw: if 'randperm_new' throws an exception...
coreutils-9.7/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): [#def457]
coreutils-9.7/src/sort.c:795:27: warning[-Wanalyzer-malloc-leak]: leak of 'fps'
coreutils-9.7/src/sort.c:4586:1: enter_function: entry to 'merge'
coreutils-9.7/src/sort.c:4589:10: branch_false: following 'false' branch...
coreutils-9.7/src/sort.c:4645:3: branch_false: ...to here
coreutils-9.7/src/sort.c:4655:24: call_function: calling 'open_input_files' from 'merge'
#  793|   
#  794|     test.pid = pid;
#  795|->   struct tempnode *node = hash_remove (proctab, &test);
#  796|     if (! node)
#  797|       return false;

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

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

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

Error: CPPCHECK_WARNING (CWE-457): [#def461]
coreutils-9.7/src/sort.c:1162: warning[uninitvar]: Uninitialized variable: pid
# 1160|       }
# 1161|   
# 1162|->   if (pid < 0)
# 1163|       {
# 1164|         saved_errno = errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def462]
coreutils-9.7/src/sort.c:1471:16: warning[-Wanalyzer-malloc-leak]: leak of 'lc_time'
coreutils-9.7/src/sort.c:4985:1: enter_function: entry to 'main'
coreutils-9.7/src/sort.c:5041:6: branch_true: following 'true' branch...
coreutils-9.7/src/sort.c:5041:6: branch_true: ...to here
coreutils-9.7/src/sort.c:5064:3: call_function: calling 'inittables_mb' from 'main'
# 1469|     lc_ctype = setlocale (LC_CTYPE, "");
# 1470|     if (lc_ctype)
# 1471|->     lc_ctype = xstrdup (lc_ctype);
# 1472|   
# 1473|     if (lc_time && lc_ctype)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def463]
coreutils-9.7/src/sort.c:1480:11: warning[-Wanalyzer-malloc-leak]: leak of 'lc_ctype'
coreutils-9.7/src/sort.c:4985:1: enter_function: entry to 'main'
coreutils-9.7/src/sort.c:5041:6: branch_true: following 'true' branch...
coreutils-9.7/src/sort.c:5041:6: branch_true: ...to here
coreutils-9.7/src/sort.c:5064:3: call_function: calling 'inittables_mb' from 'main'
# 1478|     for (i = 0; i < MONTHS_PER_YEAR; i++)
# 1479|       {
# 1480|->       s = (char *) nl_langinfo (ABMON_1 + i);
# 1481|         s_len = strlen (s);
# 1482|         monthtab[i].name = name = (char *) xmalloc (s_len + 1);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def464]
coreutils-9.7/src/sort.c:1480:11: warning[-Wanalyzer-malloc-leak]: leak of 'lc_time'
coreutils-9.7/src/sort.c:4985:1: enter_function: entry to 'main'
coreutils-9.7/src/sort.c:5041:6: branch_true: following 'true' branch...
coreutils-9.7/src/sort.c:5041:6: branch_true: ...to here
coreutils-9.7/src/sort.c:5064:3: call_function: calling 'inittables_mb' from 'main'
# 1478|     for (i = 0; i < MONTHS_PER_YEAR; i++)
# 1479|       {
# 1480|->       s = (char *) nl_langinfo (ABMON_1 + i);
# 1481|         s_len = strlen (s);
# 1482|         monthtab[i].name = name = (char *) xmalloc (s_len + 1);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def465]
coreutils-9.7/src/sort.c:1482:42: warning[-Wanalyzer-malloc-leak]: leak of 'lc_ctype'
coreutils-9.7/src/sort.c:4985:1: enter_function: entry to 'main'
coreutils-9.7/src/sort.c:5041:6: branch_true: following 'true' branch...
coreutils-9.7/src/sort.c:5041:6: branch_true: ...to here
coreutils-9.7/src/sort.c:5064:3: call_function: calling 'inittables_mb' from 'main'
# 1480|         s = (char *) nl_langinfo (ABMON_1 + i);
# 1481|         s_len = strlen (s);
# 1482|->       monthtab[i].name = name = (char *) xmalloc (s_len + 1);
# 1483|         monthtab[i].val = i + 1;
# 1484|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def466]
coreutils-9.7/src/sort.c:1482:42: warning[-Wanalyzer-malloc-leak]: leak of 'lc_time'
coreutils-9.7/src/sort.c:4985:1: enter_function: entry to 'main'
coreutils-9.7/src/sort.c:5041:6: branch_true: following 'true' branch...
coreutils-9.7/src/sort.c:5041:6: branch_true: ...to here
coreutils-9.7/src/sort.c:5064:3: call_function: calling 'inittables_mb' from 'main'
# 1480|         s = (char *) nl_langinfo (ABMON_1 + i);
# 1481|         s_len = strlen (s);
# 1482|->       monthtab[i].name = name = (char *) xmalloc (s_len + 1);
# 1483|         monthtab[i].val = i + 1;
# 1484|   

Error: GCC_ANALYZER_WARNING (CWE-835): [#def467]
coreutils-9.7/src/sort.c:2194:41: warning[-Wanalyzer-infinite-loop]: infinite loop
# 2192|                             else
# 2193|   #endif
# 2194|->                           while (blanks[to_uchar (*line_start)])
# 2195|                               line_start++;
# 2196|                           }

Error: CPPCHECK_WARNING (CWE-457): [#def468]
coreutils-9.7/src/sort.c:4795: warning[uninitvar]: Uninitialized variable: buf.buf
# 4793|   
# 4794|    finish:
# 4795|->   free (buf.buf);
# 4796|   
# 4797|     if (! output_file_created)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def469]
coreutils-9.7/src/sort.c:4795:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'buf.buf'
coreutils-9.7/src/sort.c:4711:10: branch_false: following 'false' branch (when 'nfiles == 0')...
coreutils-9.7/src/sort.c:4794:2: branch_false: ...to here
coreutils-9.7/src/sort.c:4795:9: danger: use of uninitialized value 'buf.buf' here
# 4793|   
# 4794|    finish:
# 4795|->   free (buf.buf);
# 4796|   
# 4797|     if (! output_file_created)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def470]
coreutils-9.7/src/split.c:524:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_pair[0]'
coreutils-9.7/src/split.c:1071:1: enter_function: entry to 'ofile_open'
coreutils-9.7/src/split.c:1075:6: branch_true: following 'true' branch...
coreutils-9.7/src/split.c:1078:24: branch_true: ...to here
coreutils-9.7/src/split.c:1085:14: branch_true: following 'true' branch...
coreutils-9.7/src/split.c:1086:26: branch_true: ...to here
coreutils-9.7/src/split.c:1086:18: call_function: calling 'create' from 'ofile_open'
#  522|                reading an EOF on the corresponding read-pipe.  */
#  523|             for (j = 0; j < n_open_pipes; ++j)
#  524|->             if (close (open_pipes[j]) != 0)
#  525|                 error (EXIT_FAILURE, errno, _("closing prior pipe"));
#  526|             if (close (fd_pair[1]))

Error: GCC_ANALYZER_WARNING (CWE-775): [#def471]
coreutils-9.7/src/split.c:524:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_pair[1]'
coreutils-9.7/src/split.c:1071:1: enter_function: entry to 'ofile_open'
coreutils-9.7/src/split.c:1075:6: branch_true: following 'true' branch...
coreutils-9.7/src/split.c:1078:24: branch_true: ...to here
coreutils-9.7/src/split.c:1085:14: branch_true: following 'true' branch...
coreutils-9.7/src/split.c:1086:26: branch_true: ...to here
coreutils-9.7/src/split.c:1086:18: call_function: calling 'create' from 'ofile_open'
#  522|                reading an EOF on the corresponding read-pipe.  */
#  523|             for (j = 0; j < n_open_pipes; ++j)
#  524|->             if (close (open_pipes[j]) != 0)
#  525|                 error (EXIT_FAILURE, errno, _("closing prior pipe"));
#  526|             if (close (fd_pair[1]))

Error: GCC_ANALYZER_WARNING (CWE-775): [#def472]
coreutils-9.7/src/split.c:524:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_pair[j]'
coreutils-9.7/src/split.c:1071:1: enter_function: entry to 'ofile_open'
coreutils-9.7/src/split.c:1075:6: branch_true: following 'true' branch...
coreutils-9.7/src/split.c:1078:24: branch_true: ...to here
coreutils-9.7/src/split.c:1085:14: branch_true: following 'true' branch...
coreutils-9.7/src/split.c:1086:26: branch_true: ...to here
coreutils-9.7/src/split.c:1086:18: call_function: calling 'create' from 'ofile_open'
#  522|                reading an EOF on the corresponding read-pipe.  */
#  523|             for (j = 0; j < n_open_pipes; ++j)
#  524|->             if (close (open_pipes[j]) != 0)
#  525|                 error (EXIT_FAILURE, errno, _("closing prior pipe"));
#  526|             if (close (fd_pair[1]))

Error: GCC_ANALYZER_WARNING (CWE-775): [#def473]
coreutils-9.7/src/split.c:526:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_pair[0]'
coreutils-9.7/src/split.c:1071:1: enter_function: entry to 'ofile_open'
coreutils-9.7/src/split.c:1075:6: branch_true: following 'true' branch...
coreutils-9.7/src/split.c:1078:24: branch_true: ...to here
coreutils-9.7/src/split.c:1085:14: branch_true: following 'true' branch...
coreutils-9.7/src/split.c:1086:26: branch_true: ...to here
coreutils-9.7/src/split.c:1086:18: call_function: calling 'create' from 'ofile_open'
#  524|               if (close (open_pipes[j]) != 0)
#  525|                 error (EXIT_FAILURE, errno, _("closing prior pipe"));
#  526|->           if (close (fd_pair[1]))
#  527|               error (EXIT_FAILURE, errno, _("closing output pipe"));
#  528|             if (fd_pair[0] != STDIN_FILENO)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def474]
coreutils-9.7/src/split.c:526:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_pair[1]'
coreutils-9.7/src/split.c:1071:1: enter_function: entry to 'ofile_open'
coreutils-9.7/src/split.c:1075:6: branch_true: following 'true' branch...
coreutils-9.7/src/split.c:1078:24: branch_true: ...to here
coreutils-9.7/src/split.c:1085:14: branch_true: following 'true' branch...
coreutils-9.7/src/split.c:1086:26: branch_true: ...to here
coreutils-9.7/src/split.c:1086:18: call_function: calling 'create' from 'ofile_open'
#  524|               if (close (open_pipes[j]) != 0)
#  525|                 error (EXIT_FAILURE, errno, _("closing prior pipe"));
#  526|->           if (close (fd_pair[1]))
#  527|               error (EXIT_FAILURE, errno, _("closing output pipe"));
#  528|             if (fd_pair[0] != STDIN_FILENO)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def475]
coreutils-9.7/src/split.c:530:18: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'dup2(fd_pair[0], 0)'
coreutils-9.7/src/split.c:1071:1: enter_function: entry to 'ofile_open'
coreutils-9.7/src/split.c:1075:6: branch_true: following 'true' branch...
coreutils-9.7/src/split.c:1078:24: branch_true: ...to here
coreutils-9.7/src/split.c:1085:14: branch_true: following 'true' branch...
coreutils-9.7/src/split.c:1086:26: branch_true: ...to here
coreutils-9.7/src/split.c:1086:18: call_function: calling 'create' from 'ofile_open'
#  528|             if (fd_pair[0] != STDIN_FILENO)
#  529|               {
#  530|->               if (dup2 (fd_pair[0], STDIN_FILENO) != STDIN_FILENO)
#  531|                   error (EXIT_FAILURE, errno, _("moving input pipe"));
#  532|                 if (close (fd_pair[0]) != 0)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def476]
coreutils-9.7/src/split.c:532:19: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_pair[0]'
coreutils-9.7/src/split.c:1071:1: enter_function: entry to 'ofile_open'
coreutils-9.7/src/split.c:1075:6: branch_true: following 'true' branch...
coreutils-9.7/src/split.c:1078:24: branch_true: ...to here
coreutils-9.7/src/split.c:1085:14: branch_true: following 'true' branch...
coreutils-9.7/src/split.c:1086:26: branch_true: ...to here
coreutils-9.7/src/split.c:1086:18: call_function: calling 'create' from 'ofile_open'
#  530|                 if (dup2 (fd_pair[0], STDIN_FILENO) != STDIN_FILENO)
#  531|                   error (EXIT_FAILURE, errno, _("moving input pipe"));
#  532|->               if (close (fd_pair[0]) != 0)
#  533|                   error (EXIT_FAILURE, errno, _("closing input pipe"));
#  534|               }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def477]
coreutils-9.7/src/split.c:544:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_pair[0]'
coreutils-9.7/src/split.c:1071:1: enter_function: entry to 'ofile_open'
coreutils-9.7/src/split.c:1075:6: branch_true: following 'true' branch...
coreutils-9.7/src/split.c:1078:24: branch_true: ...to here
coreutils-9.7/src/split.c:1085:14: branch_true: following 'true' branch...
coreutils-9.7/src/split.c:1086:26: branch_true: ...to here
coreutils-9.7/src/split.c:1086:18: call_function: calling 'create' from 'ofile_open'
#  542|         if (child_pid < 0)
#  543|           error (EXIT_FAILURE, errno, _("fork system call failed"));
#  544|->       if (close (fd_pair[0]) != 0)
#  545|           error (EXIT_FAILURE, errno, _("failed to close input pipe"));
#  546|         filter_pid = child_pid;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def478]
coreutils-9.7/src/split.c:544:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_pair[1]'
coreutils-9.7/src/split.c:1071:1: enter_function: entry to 'ofile_open'
coreutils-9.7/src/split.c:1075:6: branch_true: following 'true' branch...
coreutils-9.7/src/split.c:1078:24: branch_true: ...to here
coreutils-9.7/src/split.c:1085:14: branch_true: following 'true' branch...
coreutils-9.7/src/split.c:1086:26: branch_true: ...to here
coreutils-9.7/src/split.c:1086:18: call_function: calling 'create' from 'ofile_open'
#  542|         if (child_pid < 0)
#  543|           error (EXIT_FAILURE, errno, _("fork system call failed"));
#  544|->       if (close (fd_pair[0]) != 0)
#  545|           error (EXIT_FAILURE, errno, _("failed to close input pipe"));
#  546|         filter_pid = child_pid;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def479]
coreutils-9.7/src/split.c:548:22: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_pair[1]'
coreutils-9.7/src/split.c:1071:1: enter_function: entry to 'ofile_open'
coreutils-9.7/src/split.c:1075:6: branch_true: following 'true' branch...
coreutils-9.7/src/split.c:1078:24: branch_true: ...to here
coreutils-9.7/src/split.c:1085:14: branch_true: following 'true' branch...
coreutils-9.7/src/split.c:1086:26: branch_true: ...to here
coreutils-9.7/src/split.c:1086:18: call_function: calling 'create' from 'ofile_open'
#  546|         filter_pid = child_pid;
#  547|         if (n_open_pipes == open_pipes_alloc)
#  548|->         open_pipes = xpalloc (open_pipes, &open_pipes_alloc, 1,
#  549|                                 MIN (INT_MAX, IDX_MAX), sizeof *open_pipes);
#  550|         open_pipes[n_open_pipes++] = fd_pair[1];

Error: GCC_ANALYZER_WARNING (CWE-401): [#def480]
coreutils-9.7/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.7/src/stat.c:1879:1: enter_function: entry to 'main'
coreutils-9.7/src/stat.c:1954:6: branch_false: following 'false' branch...
coreutils-9.7/src/stat.c:1960:6: branch_false: ...to here
coreutils-9.7/src/stat.c:1960:6: branch_false: following 'false' branch (when 'format' is NULL)...
coreutils-9.7/src/stat.c:1968:16: branch_false: ...to here
coreutils-9.7/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): [#def481]
coreutils-9.7/src/stat.c:1720:20: warning[-Wanalyzer-malloc-leak]: leak of 'format'
coreutils-9.7/src/stat.c:1879:1: enter_function: entry to 'main'
coreutils-9.7/src/stat.c:1954:6: branch_false: following 'false' branch...
coreutils-9.7/src/stat.c:1960:6: branch_false: ...to here
coreutils-9.7/src/stat.c:1960:6: branch_false: following 'false' branch (when 'format' is NULL)...
coreutils-9.7/src/stat.c:1968:16: branch_false: ...to here
coreutils-9.7/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): [#def482]
coreutils-9.7/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.7/src/stat.c:1879:1: enter_function: entry to 'main'
coreutils-9.7/src/stat.c:1954:6: branch_false: following 'false' branch...
coreutils-9.7/src/stat.c:1960:6: branch_false: ...to here
coreutils-9.7/src/stat.c:1960:6: branch_false: following 'false' branch (when 'format' is NULL)...
coreutils-9.7/src/stat.c:1968:16: branch_false: ...to here
coreutils-9.7/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): [#def483]
coreutils-9.7/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.7/src/stat.c:1879:1: enter_function: entry to 'main'
coreutils-9.7/src/stat.c:1954:6: branch_false: following 'false' branch...
coreutils-9.7/src/stat.c:1960:6: branch_false: ...to here
coreutils-9.7/src/stat.c:1960:6: branch_false: following 'false' branch (when 'format' is NULL)...
coreutils-9.7/src/stat.c:1968:16: branch_false: ...to here
coreutils-9.7/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): [#def484]
coreutils-9.7/src/stat.c:1735:20: warning[-Wanalyzer-malloc-leak]: leak of 'format'
coreutils-9.7/src/stat.c:1879:1: enter_function: entry to 'main'
coreutils-9.7/src/stat.c:1954:6: branch_false: following 'false' branch...
coreutils-9.7/src/stat.c:1960:6: branch_false: ...to here
coreutils-9.7/src/stat.c:1960:6: branch_false: following 'false' branch (when 'format' is NULL)...
coreutils-9.7/src/stat.c:1968:16: branch_false: ...to here
coreutils-9.7/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): [#def485]
coreutils-9.7/src/stdbuf.c:146:24: warning[-Wanalyzer-malloc-leak]: leak of 'xreadlink("/proc/self/exe")'
coreutils-9.7/src/stdbuf.c:138:6: branch_false: following 'false' branch...
coreutils-9.7/src/stdbuf.c:144:20: branch_false: ...to here
coreutils-9.7/src/stdbuf.c:144:20: acquire_memory: allocated here
coreutils-9.7/src/stdbuf.c:145:10: branch_true: following 'true' branch...
coreutils-9.7/src/stdbuf.c:146:24: branch_true: ...to here
coreutils-9.7/src/stdbuf.c:146:24: throw: if 'dir_name' throws an exception...
coreutils-9.7/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): [#def486]
coreutils-9.7/src/stdbuf.c:154:33: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(path)'
coreutils-9.7/src/stdbuf.c:138:6: branch_false: following 'false' branch...
coreutils-9.7/src/stdbuf.c:144:20: branch_false: ...to here
coreutils-9.7/src/stdbuf.c:145:10: branch_false: following 'false' branch...
coreutils-9.7/src/stdbuf.c:147:24: branch_false: ...to here
coreutils-9.7/src/stdbuf.c:147:15: branch_true: following 'true' branch (when 'path' is non-NULL)...
coreutils-9.7/src/stdbuf.c:150:18: branch_true: ...to here
coreutils-9.7/src/stdbuf.c:151:42: branch_true: following 'true' branch (when 'dir' is non-NULL)...
coreutils-9.7/src/stdbuf.c:154:33: branch_true: ...to here
coreutils-9.7/src/stdbuf.c:154:33: throw: if 'file_name_concat' throws an exception...
coreutils-9.7/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): [#def487]
coreutils-9.7/src/stdbuf.c:157:34: warning[-Wanalyzer-malloc-leak]: leak of 'file_name_concat(dir,  arg, 0)'
coreutils-9.7/src/stdbuf.c:138:6: branch_false: following 'false' branch...
coreutils-9.7/src/stdbuf.c:144:20: branch_false: ...to here
coreutils-9.7/src/stdbuf.c:145:10: branch_false: following 'false' branch...
coreutils-9.7/src/stdbuf.c:147:24: branch_false: ...to here
coreutils-9.7/src/stdbuf.c:147:15: branch_true: following 'true' branch (when 'path' is non-NULL)...
coreutils-9.7/src/stdbuf.c:150:18: branch_true: ...to here
coreutils-9.7/src/stdbuf.c:151:42: branch_true: following 'true' branch (when 'dir' is non-NULL)...
coreutils-9.7/src/stdbuf.c:154:33: branch_true: ...to here
coreutils-9.7/src/stdbuf.c:157:34: throw: if 'dir_name' throws an exception...
coreutils-9.7/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): [#def488]
coreutils-9.7/src/stdbuf.c:157:34: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(path)'
coreutils-9.7/src/stdbuf.c:138:6: branch_false: following 'false' branch...
coreutils-9.7/src/stdbuf.c:144:20: branch_false: ...to here
coreutils-9.7/src/stdbuf.c:145:10: branch_false: following 'false' branch...
coreutils-9.7/src/stdbuf.c:147:24: branch_false: ...to here
coreutils-9.7/src/stdbuf.c:147:15: branch_true: following 'true' branch (when 'path' is non-NULL)...
coreutils-9.7/src/stdbuf.c:150:18: branch_true: ...to here
coreutils-9.7/src/stdbuf.c:151:42: branch_true: following 'true' branch (when 'dir' is non-NULL)...
coreutils-9.7/src/stdbuf.c:154:33: branch_true: ...to here
coreutils-9.7/src/stdbuf.c:157:34: throw: if 'dir_name' throws an exception...
coreutils-9.7/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): [#def489]
coreutils-9.7/src/stdbuf.c:173:3: warning[-Wanalyzer-out-of-bounds]: buffer over-read
coreutils-9.7/src/stdbuf.c:309:1: enter_function: entry to 'main'
coreutils-9.7/src/stdbuf.c:322:10: branch_true: following 'true' branch (when 'c != -1')...
coreutils-9.7/src/stdbuf.c:326:7: branch_true: ...to here
coreutils-9.7/src/stdbuf.c:332: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): [#def490]
coreutils-9.7/src/system.h:254:33: warning[-Wanalyzer-malloc-leak]: leak of 'fdopendir(__openat_alias(fd_cwd,  dir, 198912))'
coreutils-9.7/src/remove.c:442:1: enter_function: entry to 'rm_fts'
coreutils-9.7/src/remove.c:449:10: branch_false: following 'false' branch...
coreutils-9.7/src/remove.c:450:16: branch_false: ...to here
coreutils-9.7/src/remove.c:449:11: branch_true: following 'true' branch...
coreutils-9.7/src/remove.c:451:19: branch_true: ...to here
coreutils-9.7/src/remove.c:451:19: call_function: calling 'get_dir_status' from 'rm_fts'
#  252|     while (true)
#  253|       {
#  254|->       struct dirent const *dp = readdir (dirp);
#  255|         if (dp == nullptr || ! dot_or_dotdot (dp->d_name))
#  256|           return dp;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def491]
coreutils-9.7/src/system.h:702:10: warning[-Wanalyzer-malloc-leak]: leak of 'host'
coreutils-9.7/src/who.c:679:1: enter_function: entry to 'single_binary_main_who'
coreutils-9.7/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): [#def492]
coreutils-9.7/src/system.h:753:3: warning[-Wanalyzer-malloc-leak]: leak of 'p0'
coreutils-9.7/src/seq.c:459:1: enter_function: entry to 'seq_fast'
coreutils-9.7/src/seq.c:489:10: branch_true: following 'true' branch...
coreutils-9.7/src/seq.c:489:10: branch_true: ...to here
coreutils-9.7/src/seq.c:494:14: branch_true: following 'true' branch...
coreutils-9.7/src/seq.c:496:11: branch_true: ...to here
coreutils-9.7/src/seq.c:498:14: branch_true: following 'true' branch...
coreutils-9.7/src/seq.c:499:13: branch_true: ...to here
coreutils-9.7/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): [#def493]
coreutils-9.7/src/system.h:754:3: warning[-Wanalyzer-malloc-leak]: leak of 'p0'
coreutils-9.7/src/seq.c:459:1: enter_function: entry to 'seq_fast'
coreutils-9.7/src/seq.c:489:10: branch_true: following 'true' branch...
coreutils-9.7/src/seq.c:489:10: branch_true: ...to here
coreutils-9.7/src/seq.c:494:14: branch_true: following 'true' branch...
coreutils-9.7/src/seq.c:496:11: branch_true: ...to here
coreutils-9.7/src/seq.c:498:14: branch_true: following 'true' branch...
coreutils-9.7/src/seq.c:499:13: branch_true: ...to here
coreutils-9.7/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): [#def494]
coreutils-9.7/src/tail.c:426:7: warning[-Wanalyzer-malloc-leak]: leak of 'first'
coreutils-9.7/src/tail.c:1923:1: enter_function: entry to 'tail_lines'
coreutils-9.7/src/tail.c:1928:6: branch_false: following 'false' branch...
coreutils-9.7/src/tail.c:1934:7: branch_false: ...to here
coreutils-9.7/src/tail.c:1934:6: branch_false: following 'false' branch...
coreutils-9.7/src/tail.c:1955:12: branch_false: ...to here
coreutils-9.7/src/tail.c:1975:18: call_function: calling 'pipe_lines' from 'tail_lines'
#  424|       {
#  425|         clearerr (stdout); /* To avoid redundant close_stdout diagnostic.  */
#  426|->       error (EXIT_FAILURE, errno, _("error writing %s"),
#  427|                quoteaf ("standard output"));
#  428|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def495]
coreutils-9.7/src/tail.c:426:7: warning[-Wanalyzer-malloc-leak]: leak of 'tmp'
coreutils-9.7/src/tail.c:1992:1: enter_function: entry to 'tail'
coreutils-9.7/src/tail.c:1996:6: branch_false: following 'false' branch...
coreutils-9.7/src/tail.c:1999:12: branch_false: ...to here
coreutils-9.7/src/tail.c:1999:12: call_function: calling 'tail_bytes' from 'tail'
#  424|       {
#  425|         clearerr (stdout); /* To avoid redundant close_stdout diagnostic.  */
#  426|->       error (EXIT_FAILURE, errno, _("error writing %s"),
#  427|                quoteaf ("standard output"));
#  428|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def496]
coreutils-9.7/src/tail.c:548:26: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc((long unsigned int)bufsize)'
coreutils-9.7/src/tail.c:1923:1: enter_function: entry to 'tail_lines'
coreutils-9.7/src/tail.c:1928:6: branch_false: following 'false' branch...
coreutils-9.7/src/tail.c:1934:7: branch_false: ...to here
coreutils-9.7/src/tail.c:1934:6: branch_false: following 'false' branch...
coreutils-9.7/src/tail.c:1955:12: branch_false: ...to here
coreutils-9.7/src/tail.c:1955:10: branch_false: following 'false' branch...
coreutils-9.7/src/tail.c:1956:15: branch_false: ...to here
coreutils-9.7/src/tail.c:1955:12: branch_true: following 'true' branch...
coreutils-9.7/src/tail.c:1957:28: branch_true: ...to here
coreutils-9.7/src/tail.c:1955:12: branch_true: following 'true' branch (when 'start_pos != -1')...
coreutils-9.7/src/tail.c:1958:38: branch_true: ...to here
coreutils-9.7/src/tail.c:1955:12: branch_true: following 'true' branch (when 'start_pos < end_pos')...
coreutils-9.7/src/tail.c:1960:11: branch_true: ...to here
coreutils-9.7/src/tail.c:1961:14: branch_true: following 'true' branch (when 'end_pos != 0')...
coreutils-9.7/src/tail.c:1962:20: branch_true: ...to here
coreutils-9.7/src/tail.c:1962:20: call_function: calling 'file_lines' from 'tail_lines'
#  546|     /* Set 'bytes_read' to the size of the last, probably partial, buffer;
#  547|        0 < 'bytes_read' <= 'bufsize'.  */
#  548|->   ptrdiff_t bytes_read = (pos - start_pos) % bufsize;
#  549|     if (bytes_read == 0)
#  550|       bytes_read = bufsize;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def497]
coreutils-9.7/src/tail.c:646:9: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(8216)'
coreutils-9.7/src/tail.c:1923:1: enter_function: entry to 'tail_lines'
coreutils-9.7/src/tail.c:1928:6: branch_false: following 'false' branch...
coreutils-9.7/src/tail.c:1934:7: branch_false: ...to here
coreutils-9.7/src/tail.c:1934:6: branch_false: following 'false' branch...
coreutils-9.7/src/tail.c:1955:12: branch_false: ...to here
coreutils-9.7/src/tail.c:1975:18: call_function: calling 'pipe_lines' from 'tail_lines'
#  644|     first->nbytes = first->nlines = 0;
#  645|     first->next = nullptr;
#  646|->   tmp = xmalloc (sizeof (LBUFFER));
#  647|   
#  648|     /* Input is always read into a fresh buffer.  */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def498]
coreutils-9.7/src/tail.c:651:16: warning[-Wanalyzer-malloc-leak]: leak of 'first'
coreutils-9.7/src/tail.c:1923:1: enter_function: entry to 'tail_lines'
coreutils-9.7/src/tail.c:1928:6: branch_false: following 'false' branch...
coreutils-9.7/src/tail.c:1934:7: branch_false: ...to here
coreutils-9.7/src/tail.c:1934:6: branch_false: following 'false' branch...
coreutils-9.7/src/tail.c:1955:12: branch_false: ...to here
coreutils-9.7/src/tail.c:1975:18: call_function: calling 'pipe_lines' from 'tail_lines'
#  649|     while (true)
#  650|       {
#  651|->       n_read = safe_read (fd, tmp->buffer, BUFSIZ);
#  652|         if (n_read <= 0)
#  653|           break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def499]
coreutils-9.7/src/tail.c:651:16: warning[-Wanalyzer-malloc-leak]: leak of 'tmp'
coreutils-9.7/src/tail.c:1923:1: enter_function: entry to 'tail_lines'
coreutils-9.7/src/tail.c:1928:6: branch_false: following 'false' branch...
coreutils-9.7/src/tail.c:1934:7: branch_false: ...to here
coreutils-9.7/src/tail.c:1934:6: branch_false: following 'false' branch...
coreutils-9.7/src/tail.c:1955:12: branch_false: ...to here
coreutils-9.7/src/tail.c:1975:18: call_function: calling 'pipe_lines' from 'tail_lines'
#  649|     while (true)
#  650|       {
#  651|->       n_read = safe_read (fd, tmp->buffer, BUFSIZ);
#  652|         if (n_read <= 0)
#  653|           break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def500]
coreutils-9.7/src/tail.c:695:19: warning[-Wanalyzer-malloc-leak]: leak of 'first'
coreutils-9.7/src/tail.c:1923:1: enter_function: entry to 'tail_lines'
coreutils-9.7/src/tail.c:1928:6: branch_false: following 'false' branch...
coreutils-9.7/src/tail.c:1934:7: branch_false: ...to here
coreutils-9.7/src/tail.c:1934:6: branch_false: following 'false' branch...
coreutils-9.7/src/tail.c:1955:12: branch_false: ...to here
coreutils-9.7/src/tail.c:1975:18: call_function: calling 'pipe_lines' from 'tail_lines'
#  693|               }
#  694|             else
#  695|->             tmp = xmalloc (sizeof (LBUFFER));
#  696|           }
#  697|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def501]
coreutils-9.7/src/tail.c:695:19: warning[-Wanalyzer-malloc-leak]: leak of 'tmp'
coreutils-9.7/src/tail.c:1923:1: enter_function: entry to 'tail_lines'
coreutils-9.7/src/tail.c:1928:6: branch_false: following 'false' branch...
coreutils-9.7/src/tail.c:1934:7: branch_false: ...to here
coreutils-9.7/src/tail.c:1934:6: branch_false: following 'false' branch...
coreutils-9.7/src/tail.c:1955:12: branch_false: ...to here
coreutils-9.7/src/tail.c:1975:18: call_function: calling 'pipe_lines' from 'tail_lines'
#  693|               }
#  694|             else
#  695|->             tmp = xmalloc (sizeof (LBUFFER));
#  696|           }
#  697|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def502]
coreutils-9.7/src/tail.c:703:7: warning[-Wanalyzer-malloc-leak]: leak of 'first'
coreutils-9.7/src/tail.c:1923:1: enter_function: entry to 'tail_lines'
coreutils-9.7/src/tail.c:1928:6: branch_false: following 'false' branch...
coreutils-9.7/src/tail.c:1934:7: branch_false: ...to here
coreutils-9.7/src/tail.c:1934:6: branch_false: following 'false' branch...
coreutils-9.7/src/tail.c:1955:12: branch_false: ...to here
coreutils-9.7/src/tail.c:1975:18: call_function: calling 'pipe_lines' from 'tail_lines'
#  701|     if (n_read < 0 && errno != EAGAIN)
#  702|       {
#  703|->       error (0, errno, _("error reading %s"), quoteaf (pretty_filename));
#  704|         ok = false;
#  705|         goto free_lbuffers;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def503]
coreutils-9.7/src/tail.c:785:9: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(8208)'
coreutils-9.7/src/tail.c:1992:1: enter_function: entry to 'tail'
coreutils-9.7/src/tail.c:1996:6: branch_false: following 'false' branch...
coreutils-9.7/src/tail.c:1999:12: branch_false: ...to here
coreutils-9.7/src/tail.c:1999:12: call_function: calling 'tail_bytes' from 'tail'
#  783|     first->nbytes = 0;
#  784|     first->next = nullptr;
#  785|->   tmp = xmalloc (sizeof (CBUFFER));
#  786|   
#  787|     /* Input is always read into a fresh buffer.  */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def504]
coreutils-9.7/src/tail.c:790:16: warning[-Wanalyzer-malloc-leak]: leak of 'first'
coreutils-9.7/src/tail.c:1992:1: enter_function: entry to 'tail'
coreutils-9.7/src/tail.c:1996:6: branch_false: following 'false' branch...
coreutils-9.7/src/tail.c:1999:12: branch_false: ...to here
coreutils-9.7/src/tail.c:1999:12: call_function: calling 'tail_bytes' from 'tail'
#  788|     while (true)
#  789|       {
#  790|->       n_read = safe_read (fd, tmp->buffer, BUFSIZ);
#  791|         if (n_read <= 0)
#  792|           break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def505]
coreutils-9.7/src/tail.c:790:16: warning[-Wanalyzer-malloc-leak]: leak of 'tmp'
coreutils-9.7/src/tail.c:1992:1: enter_function: entry to 'tail'
coreutils-9.7/src/tail.c:1996:6: branch_false: following 'false' branch...
coreutils-9.7/src/tail.c:1999:12: branch_false: ...to here
coreutils-9.7/src/tail.c:1999:12: call_function: calling 'tail_bytes' from 'tail'
#  788|     while (true)
#  789|       {
#  790|->       n_read = safe_read (fd, tmp->buffer, BUFSIZ);
#  791|         if (n_read <= 0)
#  792|           break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def506]
coreutils-9.7/src/tail.c:822:21: warning[-Wanalyzer-malloc-leak]: leak of 'first'
coreutils-9.7/src/tail.c:1992:1: enter_function: entry to 'tail'
coreutils-9.7/src/tail.c:1996:6: branch_false: following 'false' branch...
coreutils-9.7/src/tail.c:1999:12: branch_false: ...to here
coreutils-9.7/src/tail.c:1999:12: call_function: calling 'tail_bytes' from 'tail'
#  820|             else
#  821|               {
#  822|->               tmp = xmalloc (sizeof (CBUFFER));
#  823|               }
#  824|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def507]
coreutils-9.7/src/tail.c:822:21: warning[-Wanalyzer-malloc-leak]: leak of 'tmp'
coreutils-9.7/src/tail.c:1992:1: enter_function: entry to 'tail'
coreutils-9.7/src/tail.c:1996:6: branch_false: following 'false' branch...
coreutils-9.7/src/tail.c:1999:12: branch_false: ...to here
coreutils-9.7/src/tail.c:1999:12: call_function: calling 'tail_bytes' from 'tail'
#  820|             else
#  821|               {
#  822|->               tmp = xmalloc (sizeof (CBUFFER));
#  823|               }
#  824|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def508]
coreutils-9.7/src/tail.c:831:7: warning[-Wanalyzer-malloc-leak]: leak of 'first'
coreutils-9.7/src/tail.c:1992:1: enter_function: entry to 'tail'
coreutils-9.7/src/tail.c:1996:6: branch_false: following 'false' branch...
coreutils-9.7/src/tail.c:1999:12: branch_false: ...to here
coreutils-9.7/src/tail.c:1999:12: call_function: calling 'tail_bytes' from 'tail'
#  829|     if (n_read < 0 && errno != EAGAIN)
#  830|       {
#  831|->       error (0, errno, _("error reading %s"), quoteaf (pretty_filename));
#  832|         ok = false;
#  833|         goto free_cbuffers;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def509]
coreutils-9.7/src/tail.c:849:8: warning[-Wanalyzer-malloc-leak]: leak of 'tmp'
coreutils-9.7/src/tail.c:1992:1: enter_function: entry to 'tail'
coreutils-9.7/src/tail.c:1996:6: branch_false: following 'false' branch...
coreutils-9.7/src/tail.c:1999:12: branch_false: ...to here
coreutils-9.7/src/tail.c:1999:12: call_function: calling 'tail_bytes' from 'tail'
#  847|     xwrite_stdout (&tmp->buffer[i], tmp->nbytes - i);
#  848|   
#  849|->   for (tmp = tmp->next; tmp; tmp = tmp->next)
#  850|       xwrite_stdout (tmp->buffer, tmp->nbytes);
#  851|   

Error: CPPCHECK_WARNING (CWE-758): [#def510]
coreutils-9.7/src/tail.c:2424: warning[objectIndex]: The address of variable 'dummy_stdin' might be accessed at non-zero index.
# 2422|   
# 2423|       for (i = 0; i < n_files; i++)
# 2424|->       if (STREQ (file[i], "-"))
# 2425|           found_hyphen = true;
# 2426|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def511]
coreutils-9.7/src/tee.c:212:7: warning[-Wanalyzer-malloc-leak]: leak of 'out_pollable'
coreutils-9.7/src/tee.c:226:1: enter_function: entry to 'tee_files'
coreutils-9.7/src/tee.c:249:6: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.7/src/tee.c:250:20: branch_true: ...to here
coreutils-9.7/src/tee.c:253:6: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.7/src/tee.c:254:23: branch_true: ...to here
coreutils-9.7/src/tee.c:281:10: branch_true: following 'true' branch (when 'n_outputs != 0')...
coreutils-9.7/src/tee.c:283:10: branch_true: ...to here
coreutils-9.7/src/tee.c:283:10: branch_true: following 'true' branch...
coreutils-9.7/src/tee.c:290:14: branch_true: following 'true' branch...
coreutils-9.7/src/tee.c:292:15: branch_true: ...to here
coreutils-9.7/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): [#def512]
coreutils-9.7/src/tee.c:250:20: warning[-Wanalyzer-malloc-leak]: leak of 'xnmalloc((long unsigned int)(nfiles + 1), 8)'
coreutils-9.7/src/tee.c:249:6: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.7/src/tee.c:250:20: branch_true: ...to here
coreutils-9.7/src/tee.c:250:20: throw: if 'xnmalloc' throws an exception...
coreutils-9.7/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): [#def513]
coreutils-9.7/src/tee.c:252:3: warning[-Wanalyzer-malloc-leak]: leak of 'xnmalloc((long unsigned int)(nfiles + 1), 8)'
coreutils-9.7/src/tee.c:249:6: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.7/src/tee.c:250:20: branch_true: ...to here
coreutils-9.7/src/tee.c:253:6: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.7/src/tee.c:254:23: branch_true: ...to here
coreutils-9.7/src/tee.c:254:23: throw: if 'iopoll_output_ok' throws an exception...
coreutils-9.7/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): [#def514]
coreutils-9.7/src/tee.c:254:23: warning[-Wanalyzer-malloc-leak]: leak of 'out_pollable'
coreutils-9.7/src/tee.c:249:6: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.7/src/tee.c:250:20: branch_true: ...to here
coreutils-9.7/src/tee.c:253:6: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.7/src/tee.c:254:23: branch_true: ...to here
coreutils-9.7/src/tee.c:254:23: throw: if 'iopoll_output_ok' throws an exception...
coreutils-9.7/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): [#def515]
coreutils-9.7/src/tee.c:262:25: warning[-Wanalyzer-malloc-leak]: leak of 'out_pollable'
coreutils-9.7/src/tee.c:249:6: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.7/src/tee.c:250:20: branch_true: ...to here
coreutils-9.7/src/tee.c:253:6: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.7/src/tee.c:254:23: branch_true: ...to here
coreutils-9.7/src/tee.c:259:15: branch_true: following 'true' branch (when 'i <= nfiles')...
coreutils-9.7/src/tee.c:262:37: branch_true: ...to here
coreutils-9.7/src/tee.c:262:25: throw: if 'fopen_safer' throws an exception...
coreutils-9.7/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): [#def516]
coreutils-9.7/src/tee.c:267:11: warning[-Wanalyzer-malloc-leak]: leak of 'out_pollable'
coreutils-9.7/src/tee.c:249:6: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.7/src/tee.c:250:20: branch_true: ...to here
coreutils-9.7/src/tee.c:253:6: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.7/src/tee.c:254:23: branch_true: ...to here
coreutils-9.7/src/tee.c:259:15: branch_true: following 'true' branch (when 'i <= nfiles')...
coreutils-9.7/src/tee.c:262:37: branch_true: ...to here
coreutils-9.7/src/tee.c:263:10: branch_true: following 'true' branch...
coreutils-9.7/src/tee.c:265:14: branch_true: ...to here
coreutils-9.7/src/tee.c:265:14: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.7/src/tee.c:266:25: branch_true: ...to here
coreutils-9.7/src/tee.c:267:11: branch_true: following 'true' branch...
coreutils-9.7/src/tee.c:267:11: branch_true: ...to here
coreutils-9.7/src/tee.c:267:11: throw: if 'quotearg_n_style_colon' throws an exception...
coreutils-9.7/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): [#def517]
coreutils-9.7/src/tee.c:275:25: warning[-Wanalyzer-malloc-leak]: leak of 'fopen_safer(*<unknown>,  mode_string)'
coreutils-9.7/src/tee.c:249:6: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.7/src/tee.c:250:20: branch_true: ...to here
coreutils-9.7/src/tee.c:253:6: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.7/src/tee.c:254:23: branch_true: ...to here
coreutils-9.7/src/tee.c:259:15: branch_true: following 'true' branch (when 'i <= nfiles')...
coreutils-9.7/src/tee.c:262:37: branch_true: ...to here
coreutils-9.7/src/tee.c:262:25: acquire_memory: allocated here
coreutils-9.7/src/tee.c:263:10: branch_false: following 'false' branch...
coreutils-9.7/src/tee.c:274:14: branch_false: ...to here
coreutils-9.7/src/tee.c:274:14: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.7/src/tee.c:275:31: branch_true: ...to here
coreutils-9.7/src/tee.c:275:31: throw: if 'iopoll_output_ok' throws an exception...
coreutils-9.7/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): [#def518]
coreutils-9.7/src/tee.c:275:31: warning[-Wanalyzer-malloc-leak]: leak of 'out_pollable'
coreutils-9.7/src/tee.c:249:6: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.7/src/tee.c:250:20: branch_true: ...to here
coreutils-9.7/src/tee.c:253:6: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.7/src/tee.c:254:23: branch_true: ...to here
coreutils-9.7/src/tee.c:259:15: branch_true: following 'true' branch (when 'i <= nfiles')...
coreutils-9.7/src/tee.c:262:37: branch_true: ...to here
coreutils-9.7/src/tee.c:263:10: branch_false: following 'false' branch...
coreutils-9.7/src/tee.c:274:14: branch_false: ...to here
coreutils-9.7/src/tee.c:274:14: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.7/src/tee.c:275:31: branch_true: ...to here
coreutils-9.7/src/tee.c:275:31: throw: if 'iopoll_output_ok' throws an exception...
coreutils-9.7/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): [#def519]
coreutils-9.7/src/tee.c:286:21: warning[-Wanalyzer-malloc-leak]: leak of 'out_pollable'
coreutils-9.7/src/tee.c:249:6: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.7/src/tee.c:250:20: branch_true: ...to here
coreutils-9.7/src/tee.c:253:6: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.7/src/tee.c:254:23: branch_true: ...to here
coreutils-9.7/src/tee.c:281:10: branch_true: following 'true' branch (when 'n_outputs != 0')...
coreutils-9.7/src/tee.c:283:10: branch_true: ...to here
coreutils-9.7/src/tee.c:283:10: branch_true: following 'true' branch...
coreutils-9.7/src/tee.c:286:21: throw: if 'iopoll' throws an exception...
coreutils-9.7/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): [#def520]
coreutils-9.7/src/tee.c:316:18: warning[-Wanalyzer-malloc-leak]: leak of 'out_pollable'
coreutils-9.7/src/tee.c:249:6: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.7/src/tee.c:250:20: branch_true: ...to here
coreutils-9.7/src/tee.c:253:6: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.7/src/tee.c:254:23: branch_true: ...to here
coreutils-9.7/src/tee.c:281:10: branch_true: following 'true' branch (when 'n_outputs != 0')...
coreutils-9.7/src/tee.c:283:10: branch_true: ...to here
coreutils-9.7/src/tee.c:283:10: branch_true: following 'true' branch (when 'pipe_check != 0')...
coreutils-9.7/src/tee.c:283:37: branch_true: ...to here
coreutils-9.7/src/tee.c:309:10: branch_false: following 'false' branch...
coreutils-9.7/src/tee.c:309:10: branch_false: ...to here
coreutils-9.7/src/tee.c:316:18: throw: if 'fwrite_wait' throws an exception...
coreutils-9.7/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): [#def521]
coreutils-9.7/src/temp-stream.c:101:15: warning[-Wanalyzer-malloc-leak]: leak of 'realloc(tempbuf,  tempbuf_len)'
coreutils-9.7/src/temp-stream.c:84:1: enter_function: entry to 'temp_stream'
coreutils-9.7/src/temp-stream.c:88:6: branch_true: following 'true' branch...
coreutils-9.7/src/temp-stream.c:88:6: branch_true: ...to here
coreutils-9.7/src/temp-stream.c:95:28: call_function: inlined call to 'rpl_realloc' from 'temp_stream'
coreutils-9.7/src/temp-stream.c:95:14: branch_false: following 'false' branch...
coreutils-9.7/src/temp-stream.c:101:15: branch_false: ...to here
coreutils-9.7/src/temp-stream.c:101:15: throw: if 'path_search' throws an exception...
coreutils-9.7/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): [#def522]
coreutils-9.7/src/test.c:90:3: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
coreutils-9.7/src/test.c:811:1: enter_function: entry to 'main'
coreutils-9.7/src/test.c:856:9: call_function: calling 'test_syntax_error' from 'main'
#   88|     va_list ap;
#   89|     va_start (ap, format);
#   90|->   verror (0, 0, format, ap);
#   91|     test_exit (TEST_FAILURE);
#   92|   }

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

Error: GCC_ANALYZER_WARNING (CWE-401): [#def524]
coreutils-9.7/src/tsort.c:106:14: warning[-Wanalyzer-malloc-leak]: leak of 'xzalloc(56)'
coreutils-9.7/src/tsort.c:531:1: enter_function: entry to 'main'
coreutils-9.7/src/tsort.c:545:6: branch_false: following 'false' branch...
coreutils-9.7/src/tsort.c:551:3: branch_false: ...to here
coreutils-9.7/src/tsort.c:551: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): [#def525]
coreutils-9.7/src/tsort.c:440:22: warning[-Wanalyzer-malloc-leak]: leak of 'xzalloc(56)'
coreutils-9.7/src/tsort.c:531:1: enter_function: entry to 'main'
coreutils-9.7/src/tsort.c:545:6: branch_false: following 'false' branch...
coreutils-9.7/src/tsort.c:551:3: branch_false: ...to here
coreutils-9.7/src/tsort.c:551: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): [#def526]
coreutils-9.7/src/tsort.c:443:3: warning[-Wanalyzer-malloc-leak]: leak of 'xzalloc(56)'
coreutils-9.7/src/tsort.c:531:1: enter_function: entry to 'main'
coreutils-9.7/src/tsort.c:545:6: branch_false: following 'false' branch...
coreutils-9.7/src/tsort.c:551:3: branch_false: ...to here
coreutils-9.7/src/tsort.c:551: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): [#def527]
coreutils-9.7/src/tsort.c:450:20: warning[-Wanalyzer-malloc-leak]: leak of 'j'
coreutils-9.7/src/tsort.c:531:1: enter_function: entry to 'main'
coreutils-9.7/src/tsort.c:545:6: branch_false: following 'false' branch...
coreutils-9.7/src/tsort.c:551:3: branch_false: ...to here
coreutils-9.7/src/tsort.c:551: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): [#def528]
coreutils-9.7/src/unexpand.c:145:5: warning[-Wanalyzer-malloc-leak]: leak of 'ximalloc((long int)((long unsigned int)max_column_width * 32))'
coreutils-9.7/src/unexpand.c:124:6: branch_false: following 'false' branch...
coreutils-9.7/src/unexpand.c:127:3: branch_false: ...to here
coreutils-9.7/src/unexpand.c:144:6: branch_true: following 'true' branch...
coreutils-9.7/src/unexpand.c:145:5: branch_true: ...to here
coreutils-9.7/src/unexpand.c:145:5: throw: if 'print_bom' throws an exception...
coreutils-9.7/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): [#def529]
coreutils-9.7/src/users.c:53:11: warning[-Wanalyzer-malloc-leak]: leak of 'xinmalloc(n, 8)'
coreutils-9.7/src/users.c:51:10: branch_true: following 'true' branch (when 'n != 0')...
coreutils-9.7/src/users.c:53:11: branch_true: ...to here
coreutils-9.7/src/users.c:53:10: branch_true: following 'true' branch...
coreutils-9.7/src/users.c:57:26: throw: if 'extract_trimmed_name' throws an exception...
coreutils-9.7/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): [#def530]
coreutils-9.7/src/users.c:59:12: warning[-Wanalyzer-malloc-leak]: leak of 'extract_trimmed_name(this)'
coreutils-9.7/src/users.c:51:10: branch_true: following 'true' branch (when 'n != 0')...
coreutils-9.7/src/users.c:53:11: branch_true: ...to here
coreutils-9.7/src/users.c:53:10: branch_true: following 'true' branch...
coreutils-9.7/src/users.c:51:10: branch_true: following 'true' branch (when 'n != 0')...
coreutils-9.7/src/users.c:53:11: branch_true: ...to here
coreutils-9.7/src/users.c:53:10: branch_true: following 'true' branch...
coreutils-9.7/src/users.c:57:26: throw: if 'extract_trimmed_name' throws an exception...
coreutils-9.7/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): [#def531]
coreutils-9.7/src/users.c:65:3: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
coreutils-9.7/src/users.c:51:10: branch_true: following 'true' branch (when 'n != 0')...
coreutils-9.7/src/users.c:53:11: branch_true: ...to here
coreutils-9.7/src/users.c:53:10: branch_true: following 'true' branch...
coreutils-9.7/src/users.c:51:10: branch_false: following 'false' branch (when 'n == 0')...
coreutils-9.7/src/users.c:65:3: branch_false: ...to here
coreutils-9.7/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): [#def532]
coreutils-9.7/src/users.c:65:3: warning[-Wanalyzer-malloc-leak]: leak of 'xinmalloc(n, 8)'
coreutils-9.7/src/users.c:65:3: throw: if 'qsort' throws an exception...
coreutils-9.7/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): [#def533]
coreutils-9.7/src/wc.c:664:29: warning[-Wanalyzer-malloc-leak]: leak of 'ai'
coreutils-9.7/src/wc.c:722:1: enter_function: entry to 'main'
coreutils-9.7/src/wc.c:806:6: branch_false: following 'false' branch (when 'files_from' is NULL)...
coreutils-9.7/src/wc.c:856:16: branch_false: ...to here
coreutils-9.7/src/wc.c:858:12: acquire_memory: allocated here
coreutils-9.7/src/wc.c:861:6: branch_false: following 'false' branch (when 'ai' is non-NULL)...
coreutils-9.7/src/wc.c:864:13: branch_false: ...to here
coreutils-9.7/src/wc.c:864:13: call_function: calling 'get_input_fstatus' from 'main'
#  662|   get_input_fstatus (idx_t nfiles, char *const *file)
#  663|   {
#  664|->   struct fstatus *fstatus = xnmalloc (nfiles ? nfiles : 1, sizeof *fstatus);
#  665|   
#  666|     if (nfiles == 0

Error: GCC_ANALYZER_WARNING (CWE-401): [#def534]
coreutils-9.7/src/wc.c:664:29: warning[-Wanalyzer-malloc-leak]: leak of 'get_input_fstatus(nfiles,  files)'
coreutils-9.7/src/wc.c:722:1: enter_function: entry to 'single_binary_main_wc'
coreutils-9.7/src/wc.c:750:10: branch_true: following 'true' branch (when 'optc != -1')...
coreutils-9.7/src/wc.c:751:5: branch_true: ...to here
coreutils-9.7/src/wc.c:806:6: branch_true: following 'true' branch (when 'files_from' is non-NULL)...
coreutils-9.7/src/wc.c:812:11: branch_true: ...to here
coreutils-9.7/src/wc.c:812:10: branch_false: following 'false' branch...
coreutils-9.7/src/wc.c:820:11: branch_false: ...to here
coreutils-9.7/src/wc.c:861:6: branch_false: following 'false' branch (when 'ai' is non-NULL)...
coreutils-9.7/src/wc.c:864:13: branch_false: ...to here
coreutils-9.7/src/wc.c:864:13: call_function: calling 'get_input_fstatus' from 'single_binary_main_wc'
coreutils-9.7/src/wc.c:864:13: return_function: returning to 'single_binary_main_wc' from 'get_input_fstatus'
coreutils-9.7/src/wc.c:873:32: throw: if 'argv_iter' throws an exception...
coreutils-9.7/src/wc.c:664:29: danger: 'get_input_fstatus(nfiles,  files)' leaks here; was allocated at [(14)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/13)
#  662|   get_input_fstatus (idx_t nfiles, char *const *file)
#  663|   {
#  664|->   struct fstatus *fstatus = xnmalloc (nfiles ? nfiles : 1, sizeof *fstatus);
#  665|   
#  666|     if (nfiles == 0

Error: GCC_ANALYZER_WARNING (CWE-775): [#def535]
coreutils-9.7/src/wc.c:835:28: warning[-Wanalyzer-file-leak]: leak of FILE 'stream'
coreutils-9.7/src/wc.c:750:10: branch_true: following 'true' branch (when 'optc != -1')...
coreutils-9.7/src/wc.c:751:5: branch_true: ...to here
coreutils-9.7/src/wc.c:806:6: branch_true: following 'true' branch (when 'files_from' is non-NULL)...
coreutils-9.7/src/wc.c:812:11: branch_true: ...to here
coreutils-9.7/src/wc.c:812:10: branch_false: following 'false' branch...
coreutils-9.7/src/wc.c:820:11: branch_false: ...to here
coreutils-9.7/src/wc.c:820:10: branch_false: following 'false' branch (when the strings are non-equal)...
coreutils-9.7/src/wc.c:824:20: branch_false: ...to here
coreutils-9.7/src/wc.c:824:20: acquire_resource: opened here
coreutils-9.7/src/wc.c:825:14: branch_false: following 'false' branch...
coreutils-9.7/src/wc.c:833:11: branch_false: ...to here
coreutils-9.7/src/wc.c:833:10: branch_true: following 'true' branch...
coreutils-9.7/src/wc.c:834:14: branch_true: ...to here
coreutils-9.7/src/wc.c:833:11: branch_true: following 'true' branch...
coreutils-9.7/src/wc.c:835:14: branch_true: ...to here
coreutils-9.7/src/wc.c:835:28: throw: if 'physmem_available' throws an exception...
coreutils-9.7/src/wc.c:835:28: danger: 'stream' leaks here; was opened at [(9)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/8)
#  833|         if (fstat (fileno (stream), &st) == 0
#  834|             && S_ISREG (st.st_mode)
#  835|->           && st.st_size <= MIN (10 * 1024 * 1024, physmem_available () / 2))
#  836|           {
#  837|             read_tokens = true;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def536]
coreutils-9.7/src/wc.c:835:28: warning[-Wanalyzer-malloc-leak]: leak of 'stream'
coreutils-9.7/src/wc.c:750:10: branch_true: following 'true' branch (when 'optc != -1')...
coreutils-9.7/src/wc.c:751:5: branch_true: ...to here
coreutils-9.7/src/wc.c:806:6: branch_true: following 'true' branch (when 'files_from' is non-NULL)...
coreutils-9.7/src/wc.c:812:11: branch_true: ...to here
coreutils-9.7/src/wc.c:812:10: branch_false: following 'false' branch...
coreutils-9.7/src/wc.c:820:11: branch_false: ...to here
coreutils-9.7/src/wc.c:820:10: branch_false: following 'false' branch (when the strings are non-equal)...
coreutils-9.7/src/wc.c:824:20: branch_false: ...to here
coreutils-9.7/src/wc.c:824:20: acquire_memory: allocated here
coreutils-9.7/src/wc.c:825:14: branch_false: following 'false' branch...
coreutils-9.7/src/wc.c:833:11: branch_false: ...to here
coreutils-9.7/src/wc.c:833:10: branch_true: following 'true' branch...
coreutils-9.7/src/wc.c:834:14: branch_true: ...to here
coreutils-9.7/src/wc.c:833:11: branch_true: following 'true' branch...
coreutils-9.7/src/wc.c:835:14: branch_true: ...to here
coreutils-9.7/src/wc.c:835:28: throw: if 'physmem_available' throws an exception...
coreutils-9.7/src/wc.c:835:28: danger: 'stream' leaks here; was allocated at [(9)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/8)
#  833|         if (fstat (fileno (stream), &st) == 0
#  834|             && S_ISREG (st.st_mode)
#  835|->           && st.st_size <= MIN (10 * 1024 * 1024, physmem_available () / 2))
#  836|           {
#  837|             read_tokens = true;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def537]
coreutils-9.7/src/wc.c:838:11: warning[-Wanalyzer-file-leak]: leak of FILE 'stream'
coreutils-9.7/src/wc.c:750:10: branch_true: following 'true' branch (when 'optc != -1')...
coreutils-9.7/src/wc.c:751:5: branch_true: ...to here
coreutils-9.7/src/wc.c:806:6: branch_true: following 'true' branch (when 'files_from' is non-NULL)...
coreutils-9.7/src/wc.c:812:11: branch_true: ...to here
coreutils-9.7/src/wc.c:812:10: branch_false: following 'false' branch...
coreutils-9.7/src/wc.c:820:11: branch_false: ...to here
coreutils-9.7/src/wc.c:820:10: branch_false: following 'false' branch (when the strings are non-equal)...
coreutils-9.7/src/wc.c:824:20: branch_false: ...to here
coreutils-9.7/src/wc.c:824:20: acquire_resource: opened here
coreutils-9.7/src/wc.c:825:14: branch_false: following 'false' branch...
coreutils-9.7/src/wc.c:833:11: branch_false: ...to here
coreutils-9.7/src/wc.c:833:10: branch_true: following 'true' branch...
coreutils-9.7/src/wc.c:834:14: branch_true: ...to here
coreutils-9.7/src/wc.c:833:11: branch_true: following 'true' branch...
coreutils-9.7/src/wc.c:835:14: branch_true: ...to here
coreutils-9.7/src/wc.c:833:11: branch_true: following 'true' branch...
coreutils-9.7/src/wc.c:838:11: branch_true: ...to here
coreutils-9.7/src/wc.c:838:11: throw: if 'readtokens0_init' throws an exception...
coreutils-9.7/src/wc.c:838:11: danger: 'stream' leaks here; was opened at [(9)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/8)
#  836|           {
#  837|             read_tokens = true;
#  838|->           readtokens0_init (&tok);
#  839|             if (! readtokens0 (stream, &tok) || fclose (stream) != 0)
#  840|               error (EXIT_FAILURE, 0, _("cannot read file names from %s"),

Error: GCC_ANALYZER_WARNING (CWE-401): [#def538]
coreutils-9.7/src/wc.c:838:11: warning[-Wanalyzer-malloc-leak]: leak of 'stream'
coreutils-9.7/src/wc.c:750:10: branch_true: following 'true' branch (when 'optc != -1')...
coreutils-9.7/src/wc.c:751:5: branch_true: ...to here
coreutils-9.7/src/wc.c:806:6: branch_true: following 'true' branch (when 'files_from' is non-NULL)...
coreutils-9.7/src/wc.c:812:11: branch_true: ...to here
coreutils-9.7/src/wc.c:812:10: branch_false: following 'false' branch...
coreutils-9.7/src/wc.c:820:11: branch_false: ...to here
coreutils-9.7/src/wc.c:820:10: branch_false: following 'false' branch (when the strings are non-equal)...
coreutils-9.7/src/wc.c:824:20: branch_false: ...to here
coreutils-9.7/src/wc.c:824:20: acquire_memory: allocated here
coreutils-9.7/src/wc.c:825:14: branch_false: following 'false' branch...
coreutils-9.7/src/wc.c:833:11: branch_false: ...to here
coreutils-9.7/src/wc.c:833:10: branch_true: following 'true' branch...
coreutils-9.7/src/wc.c:834:14: branch_true: ...to here
coreutils-9.7/src/wc.c:833:11: branch_true: following 'true' branch...
coreutils-9.7/src/wc.c:835:14: branch_true: ...to here
coreutils-9.7/src/wc.c:833:11: branch_true: following 'true' branch...
coreutils-9.7/src/wc.c:838:11: branch_true: ...to here
coreutils-9.7/src/wc.c:838:11: throw: if 'readtokens0_init' throws an exception...
coreutils-9.7/src/wc.c:838:11: danger: 'stream' leaks here; was allocated at [(9)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/8)
#  836|           {
#  837|             read_tokens = true;
#  838|->           readtokens0_init (&tok);
#  839|             if (! readtokens0 (stream, &tok) || fclose (stream) != 0)
#  840|               error (EXIT_FAILURE, 0, _("cannot read file names from %s"),

Error: GCC_ANALYZER_WARNING (CWE-775): [#def539]
coreutils-9.7/src/wc.c:839:17: warning[-Wanalyzer-file-leak]: leak of FILE 'stream'
coreutils-9.7/src/wc.c:750:10: branch_true: following 'true' branch (when 'optc != -1')...
coreutils-9.7/src/wc.c:751:5: branch_true: ...to here
coreutils-9.7/src/wc.c:806:6: branch_true: following 'true' branch (when 'files_from' is non-NULL)...
coreutils-9.7/src/wc.c:812:11: branch_true: ...to here
coreutils-9.7/src/wc.c:812:10: branch_false: following 'false' branch...
coreutils-9.7/src/wc.c:820:11: branch_false: ...to here
coreutils-9.7/src/wc.c:820:10: branch_false: following 'false' branch (when the strings are non-equal)...
coreutils-9.7/src/wc.c:824:20: branch_false: ...to here
coreutils-9.7/src/wc.c:824:20: acquire_resource: opened here
coreutils-9.7/src/wc.c:825:14: branch_false: following 'false' branch...
coreutils-9.7/src/wc.c:833:11: branch_false: ...to here
coreutils-9.7/src/wc.c:833:10: branch_true: following 'true' branch...
coreutils-9.7/src/wc.c:834:14: branch_true: ...to here
coreutils-9.7/src/wc.c:833:11: branch_true: following 'true' branch...
coreutils-9.7/src/wc.c:835:14: branch_true: ...to here
coreutils-9.7/src/wc.c:833:11: branch_true: following 'true' branch...
coreutils-9.7/src/wc.c:838:11: branch_true: ...to here
coreutils-9.7/src/wc.c:839:17: throw: if 'readtokens0' throws an exception...
coreutils-9.7/src/wc.c:839:17: danger: 'stream' leaks here; was opened at [(9)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/8)
#  837|             read_tokens = true;
#  838|             readtokens0_init (&tok);
#  839|->           if (! readtokens0 (stream, &tok) || fclose (stream) != 0)
#  840|               error (EXIT_FAILURE, 0, _("cannot read file names from %s"),
#  841|                      quoteaf (files_from));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def540]
coreutils-9.7/src/wc.c:839:17: warning[-Wanalyzer-malloc-leak]: leak of 'stream'
coreutils-9.7/src/wc.c:750:10: branch_true: following 'true' branch (when 'optc != -1')...
coreutils-9.7/src/wc.c:751:5: branch_true: ...to here
coreutils-9.7/src/wc.c:806:6: branch_true: following 'true' branch (when 'files_from' is non-NULL)...
coreutils-9.7/src/wc.c:812:11: branch_true: ...to here
coreutils-9.7/src/wc.c:812:10: branch_false: following 'false' branch...
coreutils-9.7/src/wc.c:820:11: branch_false: ...to here
coreutils-9.7/src/wc.c:820:10: branch_false: following 'false' branch (when the strings are non-equal)...
coreutils-9.7/src/wc.c:824:20: branch_false: ...to here
coreutils-9.7/src/wc.c:824:20: acquire_memory: allocated here
coreutils-9.7/src/wc.c:825:14: branch_false: following 'false' branch...
coreutils-9.7/src/wc.c:833:11: branch_false: ...to here
coreutils-9.7/src/wc.c:833:10: branch_true: following 'true' branch...
coreutils-9.7/src/wc.c:834:14: branch_true: ...to here
coreutils-9.7/src/wc.c:833:11: branch_true: following 'true' branch...
coreutils-9.7/src/wc.c:835:14: branch_true: ...to here
coreutils-9.7/src/wc.c:833:11: branch_true: following 'true' branch...
coreutils-9.7/src/wc.c:838:11: branch_true: ...to here
coreutils-9.7/src/wc.c:839:17: throw: if 'readtokens0' throws an exception...
coreutils-9.7/src/wc.c:839:17: danger: 'stream' leaks here; was allocated at [(9)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/8)
#  837|             read_tokens = true;
#  838|             readtokens0_init (&tok);
#  839|->           if (! readtokens0 (stream, &tok) || fclose (stream) != 0)
#  840|               error (EXIT_FAILURE, 0, _("cannot read file names from %s"),
#  841|                      quoteaf (files_from));

Error: GCC_ANALYZER_WARNING (CWE-775): [#def541]
coreutils-9.7/src/wc.c:850:16: warning[-Wanalyzer-file-leak]: leak of FILE 'stream'
coreutils-9.7/src/wc.c:750:10: branch_true: following 'true' branch (when 'optc != -1')...
coreutils-9.7/src/wc.c:751:5: branch_true: ...to here
coreutils-9.7/src/wc.c:806:6: branch_true: following 'true' branch (when 'files_from' is non-NULL)...
coreutils-9.7/src/wc.c:812:11: branch_true: ...to here
coreutils-9.7/src/wc.c:812:10: branch_false: following 'false' branch...
coreutils-9.7/src/wc.c:820:11: branch_false: ...to here
coreutils-9.7/src/wc.c:820:10: branch_false: following 'false' branch (when the strings are non-equal)...
coreutils-9.7/src/wc.c:824:20: branch_false: ...to here
coreutils-9.7/src/wc.c:824:20: acquire_resource: opened here
coreutils-9.7/src/wc.c:825:14: branch_false: following 'false' branch...
coreutils-9.7/src/wc.c:833:11: branch_false: ...to here
coreutils-9.7/src/wc.c:850:16: throw: if 'argv_iter_init_stream' throws an exception...
coreutils-9.7/src/wc.c:850:16: danger: 'stream' leaks here; was opened at [(9)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/8)
#  848|             files = nullptr;
#  849|             nfiles = 0;
#  850|->           ai = argv_iter_init_stream (stream);
#  851|           }
#  852|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def542]
coreutils-9.7/src/wc.c:850:16: warning[-Wanalyzer-malloc-leak]: leak of 'stream'
coreutils-9.7/src/wc.c:750:10: branch_true: following 'true' branch (when 'optc != -1')...
coreutils-9.7/src/wc.c:751:5: branch_true: ...to here
coreutils-9.7/src/wc.c:806:6: branch_true: following 'true' branch (when 'files_from' is non-NULL)...
coreutils-9.7/src/wc.c:812:11: branch_true: ...to here
coreutils-9.7/src/wc.c:812:10: branch_false: following 'false' branch...
coreutils-9.7/src/wc.c:820:11: branch_false: ...to here
coreutils-9.7/src/wc.c:820:10: branch_false: following 'false' branch (when the strings are non-equal)...
coreutils-9.7/src/wc.c:824:20: branch_false: ...to here
coreutils-9.7/src/wc.c:824:20: acquire_memory: allocated here
coreutils-9.7/src/wc.c:825:14: branch_false: following 'false' branch...
coreutils-9.7/src/wc.c:833:11: branch_false: ...to here
coreutils-9.7/src/wc.c:850:16: throw: if 'argv_iter_init_stream' throws an exception...
coreutils-9.7/src/wc.c:850:16: danger: 'stream' leaks here; was allocated at [(9)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/8)
#  848|             files = nullptr;
#  849|             nfiles = 0;
#  850|->           ai = argv_iter_init_stream (stream);
#  851|           }
#  852|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def543]
coreutils-9.7/src/wc.c:873:32: warning[-Wanalyzer-malloc-leak]: leak of 'ai'
coreutils-9.7/src/wc.c:722:1: enter_function: entry to 'single_binary_main_wc'
coreutils-9.7/src/wc.c:750:10: branch_true: following 'true' branch (when 'optc != -1')...
coreutils-9.7/src/wc.c:751:5: branch_true: ...to here
coreutils-9.7/src/wc.c:806:6: branch_true: following 'true' branch (when 'files_from' is non-NULL)...
coreutils-9.7/src/wc.c:812:11: branch_true: ...to here
coreutils-9.7/src/wc.c:812:10: branch_false: following 'false' branch...
coreutils-9.7/src/wc.c:820:11: branch_false: ...to here
coreutils-9.7/src/wc.c:850:16: acquire_memory: allocated here
coreutils-9.7/src/wc.c:861:6: branch_false: following 'false' branch (when 'ai' is non-NULL)...
coreutils-9.7/src/wc.c:864:13: branch_false: ...to here
coreutils-9.7/src/wc.c:864:13: call_function: calling 'get_input_fstatus' from 'single_binary_main_wc'
coreutils-9.7/src/wc.c:864:13: return_function: returning to 'single_binary_main_wc' from 'get_input_fstatus'
coreutils-9.7/src/wc.c:873:32: throw: if 'argv_iter' throws an exception...
coreutils-9.7/src/wc.c:873:32: danger: 'ai' leaks here; was allocated at [(8)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/7)
#  871|     enum argv_iter_err ai_err;
#  872|     char *file_name;
#  873|->   for (int i = 0; (file_name = argv_iter (ai, &ai_err)); i++)
#  874|       {
#  875|         bool skip_file = false;

Error: COMPILER_WARNING: [#def544]
coreutils-9.7/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: [#def545]
coreutils-9.7/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: [#def546]
coreutils-9.7/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: [#def547]
coreutils-9.7/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: [#def548]
coreutils-9.7/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: GCC_ANALYZER_WARNING (CWE-401): [#def549]
coreutils-9.7/src/who.c:250:15: warning[-Wanalyzer-malloc-leak]: leak of 'host'
coreutils-9.7/src/who.c:679:1: enter_function: entry to 'single_binary_main_who'
coreutils-9.7/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): [#def550]
coreutils-9.7/src/who.c:390:25: warning[-Wanalyzer-malloc-leak]: leak of 'host'
coreutils-9.7/src/who.c:679:1: enter_function: entry to 'single_binary_main_who'
coreutils-9.7/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): [#def551]
coreutils-9.7/src/who.c:404:25: warning[-Wanalyzer-malloc-leak]: leak of 'host'
coreutils-9.7/src/who.c:679:1: enter_function: entry to 'single_binary_main_who'
coreutils-9.7/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.7-6.fc43
store-results-to/tmp/tmpii1bet1g/coreutils-9.7-6.fc43.tar.xz
time-created2026-01-08 15:48:05
time-finished2026-01-08 15:54:10
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpii1bet1g/coreutils-9.7-6.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpii1bet1g/coreutils-9.7-6.fc43.src.rpm'
tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9