elfutils-0.192-3.fc42

List of Findings

Error: SHELLCHECK_WARNING (CWE-758): [#def1]
/etc/profile.d/debuginfod.sh:1:1: error[SC2148]: Tips depend on target shell and yours is unknown. Add a shebang or a 'shell' directive.
#    1|-> # $HOME/.profile* or similar files may first set $DEBUGINFOD_URLS.
#    2|   # If $DEBUGINFOD_URLS is not set there, we set it from system *.url files.
#    3|   # $HOME/.*rc or similar files may then amend $DEBUGINFOD_URLS.

Error: SHELLCHECK_WARNING (CWE-563): [#def2]
/etc/profile.d/debuginfod.sh:7:1: warning[SC2034]: prefix appears unused. Verify use (or export if used externally).
#    5|   # such as $DEBUGINFOD_MAXSIZE, $DEBUGINFOD_MAXTIME, $DEBUGINFOD_PROGRESS.
#    6|   
#    7|-> prefix="/usr"
#    8|   if [ -z "$DEBUGINFOD_URLS" ]; then
#    9|       DEBUGINFOD_URLS=$(cat /dev/null "/etc/debuginfod"/*.urls 2>/dev/null | tr '\n' ' ' || :)

Error: SHELLCHECK_WARNING (CWE-477): [#def3]
/usr/bin/eu-make-debug-archive:71:46: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
#   69|   done
#   70|   
#   71|-> if [ $kernel = no ] && [ $force_kernel = yes -o -n "$sudo" ]; then
#   72|     usage
#   73|   fi

Error: SHELLCHECK_WARNING (CWE-477): [#def4]
/usr/bin/eu-make-debug-archive:95:27: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
#   93|     # Without --force, bail if the kernel installation is not newer.
#   94|     # This file is normally touched by installing new kernels or modules.
#   95|->   if [ $force_kernel = no -a "$archive" -nt "$dep" ]; then
#   96|       exit 0
#   97|     fi

Error: SHELLCHECK_WARNING: [#def5]
/usr/bin/eu-make-debug-archive:95:41: warning[SC3013]: In POSIX sh, -nt is undefined.
#   93|     # Without --force, bail if the kernel installation is not newer.
#   94|     # This file is normally touched by installing new kernels or modules.
#   95|->   if [ $force_kernel = no -a "$archive" -nt "$dep" ]; then
#   96|       exit 0
#   97|     fi

Error: GCC_ANALYZER_WARNING (CWE-775): [#def6]
elfutils-0.192-build/elfutils-0.192/debuginfod/debuginfod-client.c: scope_hint: In function ‘debuginfod_find_metadata’
elfutils-0.192-build/elfutils-0.192/debuginfod/debuginfod-client.c:745:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(target_cache_path, 0)’
elfutils-0.192-build/elfutils-0.192/debuginfod/debuginfod-client.c:2764:7: note: in expansion of macro ‘xalloc_str’
elfutils-0.192-build/elfutils-0.192/debuginfod/debuginfod-client.c:2737:5: note: in expansion of macro ‘xalloc_str’
elfutils-0.192-build/elfutils-0.192/debuginfod/debuginfod-client.c:2738:5: note: in expansion of macro ‘xalloc_str’
elfutils-0.192-build/elfutils-0.192/debuginfod/debuginfod-client.c:2738:5: note: in expansion of macro ‘xalloc_str’
elfutils-0.192-build/elfutils-0.192/debuginfod/debuginfod-client.c:1693:5: note: in expansion of macro ‘xalloc_str’
elfutils-0.192-build/elfutils-0.192/debuginfod/debuginfod-client.c:2751:3: note: in expansion of macro ‘xalloc_str’
elfutils-0.192-build/elfutils-0.192/debuginfod/debuginfod-client.c:2751:3: note: in expansion of macro ‘xalloc_str’
elfutils-0.192-build/elfutils-0.192/debuginfod/debuginfod-client.c:2753:3: note: in expansion of macro ‘xalloc_str’
elfutils-0.192-build/elfutils-0.192/debuginfod/debuginfod-client.c:2754:3: note: in expansion of macro ‘xalloc_str’
elfutils-0.192-build/elfutils-0.192/debuginfod/debuginfod-client.c:2754:3: note: in expansion of macro ‘xalloc_str’
elfutils-0.192-build/elfutils-0.192/debuginfod/debuginfod-client.c:2764:7: note: in expansion of macro ‘xalloc_str’
#  743|     do                                       \
#  744|       {                                      \
#  745|->       if (asprintf (&p, fmt, args) < 0)    \
#  746|           {                                  \
#  747|             p = NULL;                        \

Error: GCC_ANALYZER_WARNING (CWE-121): [#def7]
/usr/include/bits/sigstksz.h:24: included_from: Included from here.
/usr/include/signal.h:328: included_from: Included from here.
/usr/include/sys/param.h:28: included_from: Included from here.
elfutils-0.192-build/elfutils-0.192/lib/system.h:47: included_from: Included from here.
elfutils-0.192-build/elfutils-0.192/libdw/memory-access.h:35: included_from: Included from here.
elfutils-0.192-build/elfutils-0.192/libdw/libdwP.h:696: included_from: Included from here.
elfutils-0.192-build/elfutils-0.192/libdwfl/libdwflP.h:41: included_from: Included from here.
elfutils-0.192-build/elfutils-0.192/libdwfl/image-header.c:34: included_from: Included from here.
elfutils-0.192-build/elfutils-0.192/lib/system.h: scope_hint: In function ‘pread_retry’
elfutils-0.192-build/elfutils-0.192/lib/system.h:192:41: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
elfutils-0.192-build/elfutils-0.192/lib/system.h:192:41: note: write of 496 bytes to beyond the end of ‘header_buffer’
elfutils-0.192-build/elfutils-0.192/lib/system.h:192:41: note: valid subscripts for ‘header_buffer’ are ‘[0]’ to ‘[591]’
/usr/include/unistd.h:389:16: note: parameter 2 of ‘pread’ marked with attribute ‘access (write_only, 2, 3)’
#  190|     do
#  191|       {
#  192|->       ssize_t ret = TEMP_FAILURE_RETRY (pread (fd, ((char *)buf) + recvd, len - recvd,
#  193|   					       off + recvd));
#  194|         if (ret <= 0)

Error: CPPCHECK_WARNING (CWE-758): [#def8]
elfutils-0.192-build/elfutils-0.192/libasm/asm_addsleb128.c:59: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#   57|         char *dest = tmpbuf;
#   58|         uint32_t byte;
#   59|->       int32_t endval = num >> 31;
#   60|   
#   61|         if (num == 0)

Error: CPPCHECK_WARNING (CWE-457): [#def9]
elfutils-0.192-build/elfutils-0.192/libcpu/i386_data.h:250: error[uninitvar]: Uninitialized variable: &p
#  248|   	      int p;
#  249|   	      n = snprintf (tmpbuf, sizeof (tmpbuf), "%s0x%" PRIx32 "(%%%n%s)",
#  250|-> 			    disp < 0 ? "-" : "", disp < 0 ? -disp : disp, &p,
#  251|   #ifdef X86_64
#  252|   			    (prefixes & has_rex_b) ? hiregs[modrm & 7] :

Error: CPPCHECK_WARNING (CWE-401): [#def10]
elfutils-0.192-build/elfutils-0.192/libdw/cfi.c:78: error[memleak]: Memory leak: bigger
#   76|            {
#   77|              *result = DWARF_E_NOMEM;
#   78|->            return false;
#   79|            }
#   80|          else

Error: CPPCHECK_WARNING (CWE-401): [#def11]
elfutils-0.192-build/elfutils-0.192/libdw/cfi.c:483: error[memleak]: Memory leak: cie_fs
#  481|     Dwarf_Frame *cie_fs = calloc (1, sizeof (Dwarf_Frame));
#  482|     if (unlikely (cie_fs == NULL))
#  483|->     return DWARF_E_NOMEM;
#  484|   
#  485|     /* If the default state of any register is not "undefined"

Error: GCC_ANALYZER_WARNING (CWE-401): [#def12]
elfutils-0.192-build/elfutils-0.192/libdw/cie.c: scope_hint: In function ‘intern_new_cie’
elfutils-0.192-build/elfutils-0.192/libdw/cie.c:147:6: warning[-Wanalyzer-malloc-leak]: leak of ‘cie’
#  145|   
#  146|     /* Add the new entry to the search tree.  */
#  147|->   if (eu_tsearch (cie, &cache->cie_tree, &compare_cie) == NULL)
#  148|       {
#  149|         free (cie);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def13]
elfutils-0.192-build/elfutils-0.192/libdw/dwarf_cu_dwp_section_info.c: scope_hint: In function ‘__libdw_package_index.part.0’
elfutils-0.192-build/elfutils-0.192/libdw/dwarf_cu_dwp_section_info.c:47:27: warning[-Wanalyzer-malloc-leak]: leak of ‘__libdw_read_package_index(dbg, (int)tu)’
elfutils-0.192-build/elfutils-0.192/libdw/dwarf_cu_dwp_section_info.c:33: included_from: Included from here.
#   45|   
#   46|     /* We need at least 16 bytes for the header.  */
#   47|->   if (data == NULL || data->d_size < 16)
#   48|       {
#   49|       invalid:

Error: GCC_ANALYZER_WARNING (CWE-775): [#def14]
elfutils-0.192-build/elfutils-0.192/libdw/dwarf_getalt.c: scope_hint: In function ‘find_debug_altlink’
elfutils-0.192-build/elfutils-0.192/libdw/dwarf_getalt.c:150:6: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
/usr/include/bits/sigstksz.h:24: included_from: Included from here.
/usr/include/signal.h:328: included_from: Included from here.
/usr/include/sys/param.h:28: included_from: Included from here.
elfutils-0.192-build/elfutils-0.192/lib/system.h:47: included_from: Included from here.
elfutils-0.192-build/elfutils-0.192/libdw/memory-access.h:35: included_from: Included from here.
elfutils-0.192-build/elfutils-0.192/libdw/libdwP.h:696: included_from: Included from here.
elfutils-0.192-build/elfutils-0.192/libdw/dwarf_getalt.c:33: included_from: Included from here.
#  148|       }
#  149|   
#  150|->   if (fd >= 0)
#  151|       {
#  152|         Dwarf *alt = dwarf_begin (fd, O_RDONLY);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def15]
elfutils-0.192-build/elfutils-0.192/libdw/dwarf_getalt.c:156:23: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
#  154|   	{
#  155|   	  dbg->alt_dwarf = alt;
#  156|-> 	  dbg->alt_fd = fd;
#  157|   	}
#  158|         else

Error: GCC_ANALYZER_WARNING (CWE-401): [#def16]
elfutils-0.192-build/elfutils-0.192/libdw/dwarf_getcfi_elf.c: scope_hint: In function ‘dwarf_getcfi_elf’
elfutils-0.192-build/elfutils-0.192/libdw/dwarf_getcfi_elf.c:282:16: warning[-Wanalyzer-malloc-leak]: leak of ‘getcfi_shdr(elf,  gelf_getehdr(elf, & ehdr_mem))’
#  280|       }
#  281|   
#  282|->   if (shstrndx != 0)
#  283|       {
#  284|         Elf_Scn *hdr_scn = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def17]
elfutils-0.192-build/elfutils-0.192/libdw/libdw_alloc.c: scope_hint: In function ‘__libdw_allocate’
elfutils-0.192-build/elfutils-0.192/libdw/libdw_alloc.c:137:10: warning[-Wanalyzer-malloc-leak]: leak of ‘newp’
#  135|     pthread_rwlock_unlock (&dbg->mem_rwl);
#  136|   
#  137|->   return (void *) result;
#  138|   }
#  139|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def18]
elfutils-0.192-build/elfutils-0.192/libdwfl/core-file.c: scope_hint: In function ‘dwfl_core_file_report’
elfutils-0.192-build/elfutils-0.192/libdwfl/core-file.c:479:10: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(executable)’
#  477|   	}
#  478|         dwfl->user_core->executable_for_core = strdup (executable);
#  479|->       if (dwfl->user_core->executable_for_core == NULL)
#  480|   	{
#  481|   	  if (cleanup_user_core)

Error: CPPCHECK_WARNING (CWE-401): [#def19]
elfutils-0.192-build/elfutils-0.192/libdwfl/cu.c:63: error[memleak]: Memory leak: aranges
#   61|   	  aranges = malloc (naranges * sizeof *aranges);
#   62|   	  if (unlikely (aranges == NULL))
#   63|-> 	    return DWFL_E_NOMEM;
#   64|   
#   65|   	  /* libdw has sorted its list by address, which is how we want it.

Error: CPPCHECK_WARNING (CWE-401): [#def20]
elfutils-0.192-build/elfutils-0.192/libdwfl/cu.c:213: error[memleak]: Memory leak: cu
#  211|         struct dwfl_cu *cu = malloc (sizeof *cu);
#  212|         if (unlikely (cu == NULL))
#  213|-> 	return DWFL_E_NOMEM;
#  214|   
#  215|         cu->mod = mod;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def21]
elfutils-0.192-build/elfutils-0.192/libdwfl/dwfl_build_id_find_elf.c: scope_hint: In function ‘dwfl_build_id_find_elf’
elfutils-0.192-build/elfutils-0.192/libdwfl/dwfl_build_id_find_elf.c:198:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
/usr/include/bits/sigstksz.h:24: included_from: Included from here.
/usr/include/signal.h:328: included_from: Included from here.
/usr/include/sys/param.h:28: included_from: Included from here.
elfutils-0.192-build/elfutils-0.192/lib/system.h:47: included_from: Included from here.
elfutils-0.192-build/elfutils-0.192/libdw/memory-access.h:35: included_from: Included from here.
elfutils-0.192-build/elfutils-0.192/libdw/libdwP.h:696: included_from: Included from here.
elfutils-0.192-build/elfutils-0.192/libdwfl/libdwflP.h:41: included_from: Included from here.
elfutils-0.192-build/elfutils-0.192/libdwfl/dwfl_build_id_find_elf.c:33: included_from: Included from here.
#  196|   	 debuginfo-server if enabled.  */
#  197|         if (fd < 0 && mod->build_id_len > 0)
#  198|-> 	fd = __libdwfl_debuginfod_find_executable (mod->dwfl,
#  199|   						   mod->build_id_bits,
#  200|   						   mod->build_id_len);

Error: CPPCHECK_WARNING (CWE-401): [#def22]
elfutils-0.192-build/elfutils-0.192/libdwfl/dwfl_module_build_id.c:50: error[memleak]: Memory leak: copy
#   48|       {
#   49|         __libdwfl_seterrno (DWFL_E_NOMEM);
#   50|->       return -1;
#   51|       }
#   52|   

Error: CPPCHECK_WARNING (CWE-401): [#def23]
elfutils-0.192-build/elfutils-0.192/libdwfl/dwfl_module_build_id.c:56: error[memleak]: Memory leak: copy
#   54|     mod->build_id_vaddr = vaddr;
#   55|     mod->build_id_len = len;
#   56|->   return len;
#   57|   }
#   58|   

Error: CPPCHECK_WARNING (CWE-401): [#def24]
elfutils-0.192-build/elfutils-0.192/libdwfl/dwfl_module_report_build_id.c:71: error[memleak]: Memory leak: copy
#   69|   	{
#   70|   	  __libdwfl_seterrno (DWFL_E_NOMEM);
#   71|-> 	  return -1;
#   72|   	}
#   73|         memcpy (copy, bits, len);

Error: CPPCHECK_WARNING (CWE-401): [#def25]
elfutils-0.192-build/elfutils-0.192/libdwfl/elf-from-memory.c:77: error[memleak]: Memory leak: buffer
#   75|       no_memory:
#   76|         __libdwfl_seterrno (DWFL_E_NOMEM);
#   77|->       return NULL;
#   78|       }
#   79|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def26]
elfutils-0.192-build/elfutils-0.192/libdwfl/find-debuginfo.c:48:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘try_open(&main_stat,  dir,  subdir,  file, & fname)’
elfutils-0.192-build/elfutils-0.192/lib/eu-config.h:114:46: note: in definition of macro ‘unlikely’
/usr/include/bits/sigstksz.h:24: included_from: Included from here.
/usr/include/signal.h:328: included_from: Included from here.
/usr/include/sys/param.h:28: included_from: Included from here.
elfutils-0.192-build/elfutils-0.192/lib/system.h:47: included_from: Included from here.
elfutils-0.192-build/elfutils-0.192/libdw/memory-access.h:35: included_from: Included from here.
elfutils-0.192-build/elfutils-0.192/libdw/libdwP.h:696: included_from: Included from here.
elfutils-0.192-build/elfutils-0.192/libdwfl/libdwflP.h:41: included_from: Included from here.
elfutils-0.192-build/elfutils-0.192/libdwfl/find-debuginfo.c:33: included_from: Included from here.
#   46|   {
#   47|     char *fname;
#   48|->   if (dir == NULL && subdir == NULL)
#   49|       {
#   50|         fname = strdup (debuglink);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def27]
elfutils-0.192-build/elfutils-0.192/libdwfl/find-debuginfo.c:48:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘try_open(&main_stat,  dir, ".dwz",  xbasename(file), &fname)’
elfutils-0.192-build/elfutils-0.192/lib/eu-config.h:114:46: note: in definition of macro ‘unlikely’
elfutils-0.192-build/elfutils-0.192/libdwfl/libdwflP.h:36: included_from: Included from here.
#   46|   {
#   47|     char *fname;
#   48|->   if (dir == NULL && subdir == NULL)
#   49|       {
#   50|         fname = strdup (debuglink);

Error: CPPCHECK_WARNING (CWE-401): [#def28]
elfutils-0.192-build/elfutils-0.192/libdwfl/find-debuginfo.c:52: error[memleak]: Memory leak: fname
#   50|         fname = strdup (debuglink);
#   51|         if (unlikely (fname == NULL))
#   52|-> 	return -1;
#   53|       }
#   54|     else if ((subdir == NULL ? asprintf (&fname, "%s/%s", dir, debuglink)

Error: CPPCHECK_WARNING (CWE-401): [#def29]
elfutils-0.192-build/elfutils-0.192/libdwfl/find-debuginfo.c:186: error[memleak]: Memory leak: localname
#  184|         localname = malloc (len + sizeof ".debug");
#  185|         if (unlikely (localname == NULL))
#  186|-> 	return -1;
#  187|         memcpy (localname, file_basename, len);
#  188|         memcpy (&localname[len], ".debug", sizeof ".debug");

Error: CPPCHECK_WARNING (CWE-401): [#def30]
elfutils-0.192-build/elfutils-0.192/libdwfl/find-debuginfo.c:202: error[memleak]: Memory leak: localpath
#  200|       {
#  201|         free (localname);
#  202|->       return -1;
#  203|       }
#  204|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def31]
elfutils-0.192-build/elfutils-0.192/libdwfl/find-debuginfo.c:271:24: warning[-Wanalyzer-null-argument]: use of NULL ‘subdir’ where non-null expected
elfutils-0.192-build/elfutils-0.192/lib/eu-config.h:114:46: note: in definition of macro ‘unlikely’
<built-in>: note: argument 1 of ‘__builtin_strchr’ must be non-null
#  269|   		 at a time.  */
#  270|   	    explore_dir:
#  271|-> 	      subdir = strchr (subdir, '/');
#  272|   	      if (subdir != NULL)
#  273|   		subdir = subdir + 1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def32]
elfutils-0.192-build/elfutils-0.192/libdwfl/find-debuginfo.c: scope_hint: In function ‘find_debuginfo_in_path’
elfutils-0.192-build/elfutils-0.192/libdwfl/find-debuginfo.c:345:1: warning[-Wanalyzer-malloc-leak]: leak of ‘fname’
elfutils-0.192-build/elfutils-0.192/config.h:235: included_from: Included from here.
elfutils-0.192-build/elfutils-0.192/libdwfl/find-debuginfo.c:30: included_from: Included from here.
elfutils-0.192-build/elfutils-0.192/lib/eu-config.h:114:46: note: in definition of macro ‘unlikely’
#  343|     free (file_dirname);
#  344|     return -1;
#  345|-> }
#  346|   
#  347|   int

Error: GCC_ANALYZER_WARNING (CWE-401): [#def33]
elfutils-0.192-build/elfutils-0.192/libdwfl/frame_unwind.c: scope_hint: In function ‘do_push’
elfutils-0.192-build/elfutils-0.192/libdwfl/frame_unwind.c:111:11: warning[-Wanalyzer-malloc-leak]: leak of ‘new_addrs’
elfutils-0.192-build/elfutils-0.192/config.h:235: included_from: Included from here.
elfutils-0.192-build/elfutils-0.192/libdwfl/frame_unwind.c:30: included_from: Included from here.
elfutils-0.192-build/elfutils-0.192/lib/eu-config.h:151:23: note: in definition of macro ‘INTUSE’
elfutils-0.192-build/elfutils-0.192/lib/eu-config.h:151:23: note: in definition of macro ‘INTUSE’
elfutils-0.192-build/elfutils-0.192/libdwelf/libdwelfP.h:34: included_from: Included from here.
elfutils-0.192-build/elfutils-0.192/libdwfl/libdwflP.h:42: included_from: Included from here.
elfutils-0.192-build/elfutils-0.192/libdwfl/frame_unwind.c:35: included_from: Included from here.
elfutils-0.192-build/elfutils-0.192/libdwfl/frame_unwind.c:153:33: note: in definition of macro ‘push’
elfutils-0.192-build/elfutils-0.192/libdwfl/frame_unwind.c:264:17: note: in expansion of macro ‘push’
elfutils-0.192-build/elfutils-0.192/lib/system.h:47: included_from: Included from here.
elfutils-0.192-build/elfutils-0.192/libdw/memory-access.h:35: included_from: Included from here.
elfutils-0.192-build/elfutils-0.192/libdw/libdwP.h:696: included_from: Included from here.
elfutils-0.192-build/elfutils-0.192/libdw/cfi.h:32: included_from: Included from here.
elfutils-0.192-build/elfutils-0.192/libdwfl/frame_unwind.c:33: included_from: Included from here.
#  109|         if (new_addrs == NULL)
#  110|           {
#  111|->           __libdwfl_seterrno (DWFL_E_NOMEM);
#  112|             return false;
#  113|           }

Error: GCC_ANALYZER_WARNING (CWE-416): [#def34]
elfutils-0.192-build/elfutils-0.192/libdwfl/frame_unwind.c: scope_hint: In function ‘expr_eval’
elfutils-0.192-build/elfutils-0.192/libdwfl/frame_unwind.c:313:41: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘frame’
elfutils-0.192-build/elfutils-0.192/lib/eu-config.h:151:23: note: in definition of macro ‘INTUSE’
elfutils-0.192-build/elfutils-0.192/lib/eu-config.h:151:23: note: in definition of macro ‘INTUSE’
elfutils-0.192-build/elfutils-0.192/libdwfl/frame_unwind.c:204:20: note: in expansion of macro ‘push’
elfutils-0.192-build/elfutils-0.192/libdwfl/frame_unwind.c:204:20: note: in expansion of macro ‘push’
elfutils-0.192-build/elfutils-0.192/libdwfl/frame_unwind.c:204:20: note: in expansion of macro ‘push’
elfutils-0.192-build/elfutils-0.192/libdwfl/frame_unwind.c:304:17: note: in expansion of macro ‘pop’
elfutils-0.192-build/elfutils-0.192/libdwfl/frame_unwind.c:304:17: note: in expansion of macro ‘pop’
elfutils-0.192-build/elfutils-0.192/libdwfl/frame_unwind.c:304:17: note: in expansion of macro ‘pop’
#  311|   	  if (op->atom == DW_OP_deref_size)
#  312|   	    {
#  313|-> 	      const int elfclass = frame->cache->e_ident[EI_CLASS];
#  314|   	      const unsigned addr_bytes = elfclass == ELFCLASS32 ? 4 : 8;
#  315|   	      if (op->number > addr_bytes)

Error: CPPCHECK_WARNING (CWE-401): [#def35]
elfutils-0.192-build/elfutils-0.192/libdwfl/frame_unwind.c:511: error[memleak]: Memory leak: unwound
#  509|     unwound = malloc (sizeof (*unwound) + sizeof (*unwound->regs) * nregs);
#  510|     if (unlikely (unwound == NULL))
#  511|->     return NULL;
#  512|     state->unwound = unwound;
#  513|     unwound->thread = thread;

Error: CPPCHECK_WARNING (CWE-401): [#def36]
elfutils-0.192-build/elfutils-0.192/libdwfl/gzip.c:202: error[memleak]: Memory leak: state.input_buffer
#  200|   	  state.input_buffer = malloc (READ_SIZE);
#  201|   	  if (unlikely (state.input_buffer == NULL))
#  202|-> 	    return DWFL_E_NOMEM;
#  203|   
#  204|   	  ssize_t n = pread_retry (fd, state.input_buffer, READ_SIZE, start_offset);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def37]
elfutils-0.192-build/elfutils-0.192/libdwfl/linux-kernel-modules.c: scope_hint: In function ‘try_kernel_name’
elfutils-0.192-build/elfutils-0.192/libdwfl/linux-kernel-modules.c:104:6: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘<unknown>’
/usr/include/bits/sigstksz.h:24: included_from: Included from here.
/usr/include/signal.h:328: included_from: Included from here.
/usr/include/sys/param.h:28: included_from: Included from here.
elfutils-0.192-build/elfutils-0.192/lib/system.h:47: included_from: Included from here.
elfutils-0.192-build/elfutils-0.192/libdwfl/linux-kernel-modules.c:40: included_from: Included from here.
#  102|   	    : TEMP_FAILURE_RETRY (open (*fname, O_RDONLY)));
#  103|   
#  104|->   if (fd < 0)
#  105|       {
#  106|         Dwfl_Module fakemod = { .dwfl = dwfl };

Error: CPPCHECK_WARNING (CWE-401): [#def38]
elfutils-0.192-build/elfutils-0.192/libdwfl/linux-kernel-modules.c:827: error[memleak]: Memory leak: alternate_name
#  825|       {
#  826|         free (modulesdir[0]);
#  827|->       return ENOMEM;
#  828|       }
#  829|     if (!subst_name ('-', '_', module_name, alternate_name, namelen) &&

Error: GCC_ANALYZER_WARNING (CWE-457): [#def39]
elfutils-0.192-build/elfutils-0.192/libdwfl/relocate.c: scope_hint: In function ‘relocate’
elfutils-0.192-build/elfutils-0.192/libdwfl/relocate.c:369:32: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘shndx’
elfutils-0.192-build/elfutils-0.192/config.h:235: included_from: Included from here.
elfutils-0.192-build/elfutils-0.192/libdwfl/relocate.c:30: included_from: Included from here.
elfutils-0.192-build/elfutils-0.192/lib/eu-config.h:114:46: note: in definition of macro ‘unlikely’
elfutils-0.192-build/elfutils-0.192/lib/eu-config.h:114:46: note: in definition of macro ‘unlikely’
elfutils-0.192-build/elfutils-0.192/libelf/libelf.h:36: included_from: Included from here.
elfutils-0.192-build/elfutils-0.192/libelf/gelf.h:32: included_from: Included from here.
elfutils-0.192-build/elfutils-0.192/libelf/libelfP.h:35: included_from: Included from here.
elfutils-0.192-build/elfutils-0.192/libdwfl/relocate.c:35: included_from: Included from here.
elfutils-0.192-build/elfutils-0.192/libelf/elf.h:679:43: note: in definition of macro ‘ELF64_R_SYM’
elfutils-0.192-build/elfutils-0.192/libdwfl/relocate.c:639:28: note: in expansion of macro ‘GELF_R_SYM’
elfutils-0.192-build/elfutils-0.192/lib/eu-config.h:114:46: note: in definition of macro ‘unlikely’
elfutils-0.192-build/elfutils-0.192/lib/eu-config.h:114:46: note: in definition of macro ‘unlikely’
elfutils-0.192-build/elfutils-0.192/libdwfl/relocate.c:168:28: note: in expansion of macro ‘INTUSE’
#  367|   	  return error;
#  368|   
#  369|-> 	if (shndx == SHN_UNDEF || shndx == SHN_COMMON)
#  370|   	  {
#  371|   	    /* Maybe we can figure it out anyway.  */

Error: CPPCHECK_WARNING (CWE-401): [#def40]
elfutils-0.192-build/elfutils-0.192/libdwfl/segment.c:68: error[memleak]: Memory leak: naddr
#   66|         GElf_Addr *naddr = realloc (dwfl->lookup_addr, sizeof naddr[0] * n);
#   67|         if (unlikely (naddr == NULL))
#   68|-> 	return true;
#   69|         int *nsegndx = realloc (dwfl->lookup_segndx, sizeof nsegndx[0] * n);
#   70|         if (unlikely (nsegndx == NULL))

Error: CPPCHECK_WARNING (CWE-401): [#def41]
elfutils-0.192-build/elfutils-0.192/libdwfl/segment.c:74: error[memleak]: Memory leak: nsegndx
#   72|   	  if (naddr != dwfl->lookup_addr)
#   73|   	    free (naddr);
#   74|-> 	  return true;
#   75|   	}
#   76|         dwfl->lookup_alloc = n;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def42]
elfutils-0.192-build/elfutils-0.192/libelf/libelf.h:36: included_from: Included from here.
elfutils-0.192-build/elfutils-0.192/libelf/gelf.h:32: included_from: Included from here.
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:46: included_from: Included from here.
elfutils-0.192-build/elfutils-0.192/src/unstrip.c: scope_hint: In function ‘adjust_reloc’
elfutils-0.192-build/elfutils-0.192/libelf/elf.h:681:44: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
elfutils-0.192-build/elfutils-0.192/libelf/gelf.h:146:41: note: in expansion of macro ‘ELF64_R_INFO’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:443:15: note: in expansion of macro ‘GELF_R_INFO’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:32: included_from: Included from here.
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:2298:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:2310:7: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:2196:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:1431:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/config.h:235: included_from: Included from here.
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:28: included_from: Included from here.
elfutils-0.192-build/elfutils-0.192/lib/eu-config.h:114:46: note: in definition of macro ‘unlikely’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:1435:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:1435:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/lib/eu-config.h:114:46: note: in definition of macro ‘unlikely’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:1439:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:1439:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/lib/eu-config.h:114:46: note: in definition of macro ‘unlikely’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:1443:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:1443:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:1446:7: note: in expansion of macro ‘unlikely’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:1450:7: note: in expansion of macro ‘unlikely’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:1498:3: note: in expansion of macro ‘ELF_CHECK’
/usr/include/bits/types/stack_t.h:23: included_from: Included from here.
/usr/include/signal.h:313: included_from: Included from here.
/usr/include/sys/param.h:28: included_from: Included from here.
elfutils-0.192-build/elfutils-0.192/lib/system.h:47: included_from: Included from here.
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:49: included_from: Included from here.
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:1688:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:392:7: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:396:7: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:640:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:417:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:666:7: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/lib/eu-config.h:114:46: note: in definition of macro ‘unlikely’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:667:7: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:667:7: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:622:9: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:464:11: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/libelf/elf.h:681:59: note: in definition of macro ‘ELF64_R_INFO’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:443:15: note: in expansion of macro ‘GELF_R_INFO’
elfutils-0.192-build/elfutils-0.192/libelf/gelf.h:146:41: note: in expansion of macro ‘ELF64_R_INFO’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:443:15: note: in expansion of macro ‘GELF_R_INFO’
#  679|   #define ELF64_R_SYM(i)			((i) >> 32)
#  680|   #define ELF64_R_TYPE(i)			((i) & 0xffffffff)
#  681|-> #define ELF64_R_INFO(sym,type)		((((Elf64_Xword) (sym)) << 32) + (type))
#  682|   
#  683|   /* Program segment header.  */

Error: CPPCHECK_WARNING (CWE-401): [#def43]
elfutils-0.192-build/elfutils-0.192/libelf/elf32_updatefile.c:222: error[memleak]: Memory leak: scns
#  220|   	{
#  221|   	  __libelf_seterrno (ELF_E_NOMEM);
#  222|-> 	  return -1;
#  223|   	}
#  224|         char *const shdr_start = ((char *) elf->map_address + elf->start_offset

Error: GCC_ANALYZER_WARNING (CWE-401): [#def44]
elfutils-0.192-build/elfutils-0.192/libelf/elf32_updatefile.c: scope_hint: In function ‘__elf32_updatemmap’
elfutils-0.192-build/elfutils-0.192/libelf/elf32_updatefile.c:251:25: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
elfutils-0.192-build/elfutils-0.192/libelf/elf32_updatefile.c:34: included_from: Included from here.
elfutils-0.192-build/elfutils-0.192/libelf/elf32_updatefile.c:173:18: note: in expansion of macro ‘elf_typesize’
elfutils-0.192-build/elfutils-0.192/libelf/elf32_updatefile.c:188:13: note: in expansion of macro ‘fctp’
elfutils-0.192-build/elfutils-0.192/config.h:235: included_from: Included from here.
elfutils-0.192-build/elfutils-0.192/libelf/elf32_updatefile.c:31: included_from: Included from here.
elfutils-0.192-build/elfutils-0.192/libelf/elf32_updatefile.c:214:11: note: in expansion of macro ‘unlikely’
#  249|   			 + elf->maximum_size));
#  250|   
#  251|-> 	      void *p = malloc (sizeof (ElfW2(LIBELFBITS,Shdr)));
#  252|   	      if (unlikely (p == NULL))
#  253|   		{

Error: CPPCHECK_WARNING (CWE-401): [#def45]
elfutils-0.192-build/elfutils-0.192/libelf/elf32_updatefile.c:618: error[memleak]: Memory leak: tmp_phdr
#  616|   	    {
#  617|   	      __libelf_seterrno (ELF_E_NOMEM);
#  618|-> 	      return 1;
#  619|   	    }
#  620|   

Error: CPPCHECK_WARNING (CWE-401): [#def46]
elfutils-0.192-build/elfutils-0.192/libelf/elf32_updatefile.c:678: error[memleak]: Memory leak: shdr_data_mem
#  676|   	    {
#  677|   	      __libelf_seterrno (ELF_E_NOMEM);
#  678|-> 	      return -1;
#  679|   	    }
#  680|   	  shdr_data = shdr_data_mem;

Error: CPPCHECK_WARNING (CWE-401): [#def47]
elfutils-0.192-build/elfutils-0.192/libelf/elf32_updatefile.c:693: error[memleak]: Memory leak: scns
#  691|   	  free (shdr_data_mem);
#  692|   	  __libelf_seterrno (ELF_E_NOMEM);
#  693|-> 	  return -1;
#  694|   	}
#  695|         sort_sections (scns, list);

Error: CPPCHECK_WARNING (CWE-401): [#def48]
elfutils-0.192-build/elfutils-0.192/libelf/elf_compress.c:375: error[memleak]: Memory leak: buf_out
#  373|       {
#  374|         __libelf_seterrno (ELF_E_NOMEM);
#  375|->       return NULL;
#  376|       }
#  377|   

Error: CPPCHECK_WARNING (CWE-401): [#def49]
elfutils-0.192-build/elfutils-0.192/libelf/elf_compress.c:421: error[memleak]: Memory leak: buf_out
#  419|       {
#  420|         __libelf_seterrno (ELF_E_NOMEM);
#  421|->       return NULL;
#  422|       }
#  423|   

Error: COMPILER_WARNING: [#def50]
elfutils-0.192-build/elfutils-0.192/src/ar.c: scope_hint: In function ‘do_oper_extract’
elfutils-0.192-build/elfutils-0.192/src/ar.c:459:1: warning[-Wstack-usage=]: stack usage might be unbounded
#  459 | do_oper_extract (int oper, const char *arfname, char **argv, int argc,
#      | ^
#  457|   
#  458|   static int
#  459|-> do_oper_extract (int oper, const char *arfname, char **argv, int argc,
#  460|   		 long int instance)
#  461|   {

Error: COMPILER_WARNING: [#def51]
elfutils-0.192-build/elfutils-0.192/src/ar.c: scope_hint: In function ‘do_oper_delete’
elfutils-0.192-build/elfutils-0.192/src/ar.c:914:1: warning[-Wstack-usage=]: stack usage might be unbounded
#  914 | do_oper_delete (const char *arfname, char **argv, int argc,
#      | ^
#  912|   
#  913|   static int
#  914|-> do_oper_delete (const char *arfname, char **argv, int argc,
#  915|   		long int instance)
#  916|   {

Error: COMPILER_WARNING: [#def52]
elfutils-0.192-build/elfutils-0.192/src/ar.c: scope_hint: In function ‘no0print’
elfutils-0.192-build/elfutils-0.192/src/ar.c:1087:1: warning[-Wstack-usage=]: stack usage might be unbounded
# 1087 | no0print (bool ofmt, char *buf, int bufsize, long int val)
#      | ^
# 1085|      Returns false if the given value doesn't fit in the given buffer.  */
# 1086|   static bool
# 1087|-> no0print (bool ofmt, char *buf, int bufsize, long int val)
# 1088|   {
# 1089|     char tmpbuf[bufsize + 1];

Error: COMPILER_WARNING: [#def53]
elfutils-0.192-build/elfutils-0.192/src/ar.c: scope_hint: In function ‘do_oper_insert’
elfutils-0.192-build/elfutils-0.192/src/ar.c:1100:1: warning[-Wstack-usage=]: stack usage might be unbounded
# 1100 | do_oper_insert (int oper, const char *arfname, char **argv, int argc,
#      | ^
# 1098|   
# 1099|   static int
# 1100|-> do_oper_insert (int oper, const char *arfname, char **argv, int argc,
# 1101|   		const char *member)
# 1102|   {

Error: GCC_ANALYZER_WARNING (CWE-457): [#def54]
elfutils-0.192-build/elfutils-0.192/src/ar.c: scope_hint: In function ‘do_oper_insert’
elfutils-0.192-build/elfutils-0.192/src/ar.c:1281:20: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘st.st_mtim.tv_sec’
elfutils-0.192-build/elfutils-0.192/src/ar.c:38: included_from: Included from here.
# 1279|   	  else if (update_newer
# 1280|   		   && found[cnt]->old_off != -1l
# 1281|-> 		   && found[cnt]->sec > st.st_mtime)
# 1282|   	    /* Do nothing, the file in the archive is younger.  */
# 1283|   	    close (newfd);

Error: CPPCHECK_WARNING (CWE-457): [#def55]
elfutils-0.192-build/elfutils-0.192/src/arlib.c:174: error[legacyUninitvar]: Uninitialized variable: tmpbuf
#  172|   
#  173|     /* See comment for ar_date above.  */
#  174|->   memcpy (&((struct ar_hdr *) symtab.symsoff)->ar_size, tmpbuf,
#  175|   	  snprintf (tmpbuf, sizeof (tmpbuf), "%-*" PRIu32 "",
#  176|   		    (int) sizeof (((struct ar_hdr *) NULL)->ar_size),

Error: COMPILER_WARNING: [#def56]
elfutils-0.192-build/elfutils-0.192/src/elfcmp.c: scope_hint: In function ‘main’
elfutils-0.192-build/elfutils-0.192/src/elfcmp.c:122:1: warning[-Wstack-usage=]: stack usage might be unbounded
#  122 | main (int argc, char *argv[])
#      | ^
#  120|   
#  121|   int
#  122|-> main (int argc, char *argv[])
#  123|   {
#  124|     /* Set locale.  */

Error: GCC_ANALYZER_WARNING (CWE-476): [#def57]
elfutils-0.192-build/elfutils-0.192/src/elfcompress.c: scope_hint: In function ‘process_file’
elfutils-0.192-build/elfutils-0.192/src/elfcompress.c:769:35: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘snamebuf’
elfutils-0.192-build/elfutils-0.192/src/elfcompress.c:19: included_from: Included from here.
elfutils-0.192-build/elfutils-0.192/src/elfcompress.c: scope_hint: In function ‘process_file’
#  767|   		  if (schtype == ZLIB_GNU)
#  768|   		    {
#  769|-> 		      snamebuf[0] = '.';
#  770|   		      strcpy (&snamebuf[1], &sname[2]);
#  771|   		      newname = snamebuf;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def58]
elfutils-0.192-build/elfutils-0.192/src/elfcompress.c:793:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘snamebuf’
elfutils-0.192-build/elfutils-0.192/src/elfcompress.c: scope_hint: In function ‘process_file’
#  791|   		    }
#  792|   
#  793|-> 		  snamebuf[0] = '.';
#  794|   		  snamebuf[1] = 'z';
#  795|   		  strcpy (&snamebuf[2], &sname[1]);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def59]
elfutils-0.192-build/elfutils-0.192/src/elfcompress.c:860:39: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘snamebuf’
elfutils-0.192-build/elfutils-0.192/src/elfcompress.c: scope_hint: In function ‘process_file’
#  858|   		      if (schtype == ZLIB_GNU)
#  859|   			{
#  860|-> 			  snamebuf[0] = '.';
#  861|   			  strcpy (&snamebuf[1], &sname[2]);
#  862|   			  newname = snamebuf;

Error: COMPILER_WARNING: [#def60]
elfutils-0.192-build/elfutils-0.192/src/elflint.c: scope_hint: In function ‘process_file’
elfutils-0.192-build/elfutils-0.192/src/elflint.c:232:1: warning[-Wstack-usage=]: stack usage might be unbounded
#  232 | process_file (int fd, Elf *elf, const char *prefix, const char *suffix,
#      | ^
#  230|   /* Process one file.  */
#  231|   static void
#  232|-> process_file (int fd, Elf *elf, const char *prefix, const char *suffix,
#  233|   	      const char *fname, size_t size, bool only_one)
#  234|   {

Error: COMPILER_WARNING: [#def61]
elfutils-0.192-build/elfutils-0.192/src/elflint.c: scope_hint: In function ‘compare_hash_gnu_hash’
elfutils-0.192-build/elfutils-0.192/src/elflint.c:2416:1: warning[-Wstack-usage=]: stack usage might be unbounded
# 2416 | compare_hash_gnu_hash (Ebl *ebl, GElf_Ehdr *ehdr, size_t hash_idx,
#      | ^
# 2414|   /* Compare content of both hash tables, it must be identical.  */
# 2415|   static void
# 2416|-> compare_hash_gnu_hash (Ebl *ebl, GElf_Ehdr *ehdr, size_t hash_idx,
# 2417|   		       size_t gnu_hash_idx)
# 2418|   {

Error: COMPILER_WARNING: [#def62]
elfutils-0.192-build/elfutils-0.192/src/elflint.c: scope_hint: In function ‘check_verdef’
elfutils-0.192-build/elfutils-0.192/src/elflint.c:3274:1: warning[-Wstack-usage=]: stack usage might be unbounded
# 3274 | check_verdef (Ebl *ebl, GElf_Shdr *shdr, int idx)
#      | ^
# 3272|   
# 3273|   static void
# 3274|-> check_verdef (Ebl *ebl, GElf_Shdr *shdr, int idx)
# 3275|   {
# 3276|     if (++nverdef == 2)

Error: COMPILER_WARNING: [#def63]
elfutils-0.192-build/elfutils-0.192/src/nm.c: scope_hint: In function ‘handle_ar’
elfutils-0.192-build/elfutils-0.192/src/nm.c:409:1: warning[-Wstack-usage=]: stack usage might be unbounded
#  409 | handle_ar (int fd, Elf *elf, const char *prefix, const char *fname,
#      | ^
#  407|   
#  408|   static int
#  409|-> handle_ar (int fd, Elf *elf, const char *prefix, const char *fname,
#  410|   	   const char *suffix)
#  411|   {

Error: COMPILER_WARNING: [#def64]
elfutils-0.192-build/elfutils-0.192/src/nm.c: scope_hint: In function ‘show_symbols_sysv’
elfutils-0.192-build/elfutils-0.192/src/nm.c:725:1: warning[-Wstack-usage=]: stack usage might be unbounded
#  725 | show_symbols_sysv (Ebl *ebl, GElf_Word strndx, const char *fullname,
#      | ^
#  723|   /* Show symbols in SysV format.  */
#  724|   static void
#  725|-> show_symbols_sysv (Ebl *ebl, GElf_Word strndx, const char *fullname,
#  726|   		   GElf_SymX *syms, size_t nsyms, int longest_name,
#  727|   		   int longest_where)

Error: COMPILER_WARNING: [#def65]
elfutils-0.192-build/elfutils-0.192/src/nm.c: scope_hint: In function ‘show_symbols’
elfutils-0.192-build/elfutils-0.192/src/nm.c:1226:1: warning[-Wstack-usage=]: stack usage might be unbounded
# 1226 | show_symbols (int fd, Ebl *ebl, GElf_Ehdr *ehdr,
#      | ^
# 1224|   
# 1225|   static void
# 1226|-> show_symbols (int fd, Ebl *ebl, GElf_Ehdr *ehdr,
# 1227|   	      Elf_Scn *scn, Elf_Scn *xndxscn,
# 1228|   	      GElf_Shdr *shdr, const char *prefix, const char *fname,

Error: COMPILER_WARNING: [#def66]
elfutils-0.192-build/elfutils-0.192/src/nm.c: scope_hint: In function ‘handle_elf’
elfutils-0.192-build/elfutils-0.192/src/nm.c:1528:1: warning[-Wstack-usage=]: stack usage might be unbounded
# 1528 | handle_elf (int fd, Elf *elf, const char *prefix, const char *fname,
#      | ^
# 1526|   
# 1527|   static int
# 1528|-> handle_elf (int fd, Elf *elf, const char *prefix, const char *fname,
# 1529|   	    const char *suffix)
# 1530|   {

Error: COMPILER_WARNING: [#def67]
elfutils-0.192-build/elfutils-0.192/src/objdump.c: scope_hint: In function ‘handle_ar’
elfutils-0.192-build/elfutils-0.192/src/objdump.c:286:1: warning[-Wstack-usage=]: stack usage might be unbounded
#  286 | handle_ar (int fd, Elf *elf, const char *prefix, const char *fname,
#      | ^
#  284|   
#  285|   static int
#  286|-> handle_ar (int fd, Elf *elf, const char *prefix, const char *fname,
#  287|   	   const char *suffix)
#  288|   {

Error: COMPILER_WARNING: [#def68]
elfutils-0.192-build/elfutils-0.192/src/objdump.c: scope_hint: In function ‘handle_elf.isra’
elfutils-0.192-build/elfutils-0.192/src/objdump.c:750:1: warning[-Wstack-usage=]: stack usage might be unbounded
#  750 | handle_elf (Elf *elf, const char *prefix, const char *fname,
#      | ^
#  748|   
#  749|   static int
#  750|-> handle_elf (Elf *elf, const char *prefix, const char *fname,
#  751|   	    const char *suffix)
#  752|   {

Error: COMPILER_WARNING: [#def69]
elfutils-0.192-build/elfutils-0.192/src/ranlib.c: scope_hint: In function ‘handle_file’
elfutils-0.192-build/elfutils-0.192/src/ranlib.c:135:1: warning[-Wstack-usage=]: stack usage might be unbounded
#  135 | handle_file (const char *fname)
#      | ^
#  133|   /* Handle a file given on the command line.  */
#  134|   static int
#  135|-> handle_file (const char *fname)
#  136|   {
#  137|     int fd = open (fname, O_RDONLY);

Error: COMPILER_WARNING: [#def70]
elfutils-0.192-build/elfutils-0.192/src/readelf.c: scope_hint: In function ‘open_input_section’
elfutils-0.192-build/elfutils-0.192/src/readelf.c:661:1: warning[-Wstack-usage=]: stack usage might be unbounded
#  661 | open_input_section (int fd)
#      | ^
#  659|      elf_input_section given a file descriptor to an ELF file.  */
#  660|   static int
#  661|-> open_input_section (int fd)
#  662|   {
#  663|     size_t shnums;

Error: COMPILER_WARNING: [#def71]
elfutils-0.192-build/elfutils-0.192/src/readelf.c: scope_hint: In function ‘process_file’
elfutils-0.192-build/elfutils-0.192/src/readelf.c:913:1: warning[-Wstack-usage=]: stack usage might be unbounded
#  913 | process_file (int fd, const char *fname, bool only_one)
#      | ^
#  911|   /* Process one input file.  */
#  912|   static void
#  913|-> process_file (int fd, const char *fname, bool only_one)
#  914|   {
#  915|     if (print_archive_index)

Error: COMPILER_WARNING: [#def72]
elfutils-0.192-build/elfutils-0.192/src/readelf.c: scope_hint: In function ‘handle_versym’
elfutils-0.192-build/elfutils-0.192/src/readelf.c:3287:1: warning[-Wstack-usage=]: stack usage might be unbounded
# 3287 | handle_versym (Ebl *ebl, Elf_Scn *scn, GElf_Shdr *shdr)
#      | ^
# 3285|   
# 3286|   static void
# 3287|-> handle_versym (Ebl *ebl, Elf_Scn *scn, GElf_Shdr *shdr)
# 3288|   {
# 3289|     int class = gelf_getclass (ebl->elf);

Error: COMPILER_WARNING: [#def73]
elfutils-0.192-build/elfutils-0.192/src/readelf.c: scope_hint: In function ‘print_debug_frame_section’
elfutils-0.192-build/elfutils-0.192/src/readelf.c:7155:1: warning[-Wstack-usage=]: stack usage might be unbounded
# 7155 | print_debug_frame_section (Dwfl_Module *dwflmod, Ebl *ebl, GElf_Ehdr *ehdr,
#      | ^
# 7153|   
# 7154|   static void
# 7155|-> print_debug_frame_section (Dwfl_Module *dwflmod, Ebl *ebl, GElf_Ehdr *ehdr,
# 7156|   			   Elf_Scn *scn, GElf_Shdr *shdr, Dwarf *dbg)
# 7157|   {

Error: COMPILER_WARNING: [#def74]
elfutils-0.192-build/elfutils-0.192/src/readelf.c: scope_hint: In function ‘print_debug_macinfo_section’
elfutils-0.192-build/elfutils-0.192/src/readelf.c:10421:1: warning[-Wstack-usage=]: stack usage might be unbounded
#10421 | print_debug_macinfo_section (Dwfl_Module *dwflmod __attribute__ ((unused)),
#      | ^
#10419|   
#10420|   static void
#10421|-> print_debug_macinfo_section (Dwfl_Module *dwflmod __attribute__ ((unused)),
#10422|   			     Ebl *ebl,
#10423|   			     GElf_Ehdr *ehdr __attribute__ ((unused)),

Error: COMPILER_WARNING: [#def75]
elfutils-0.192-build/elfutils-0.192/src/readelf.c: scope_hint: In function ‘print_debug_macro_section’
elfutils-0.192-build/elfutils-0.192/src/readelf.c:10583:1: warning[-Wstack-usage=]: stack usage might be unbounded
#10583 | print_debug_macro_section (Dwfl_Module *dwflmod __attribute__ ((unused)),
#      | ^
#10581|   
#10582|   static void
#10583|-> print_debug_macro_section (Dwfl_Module *dwflmod __attribute__ ((unused)),
#10584|   			   Ebl *ebl,
#10585|   			   GElf_Ehdr *ehdr __attribute__ ((unused)),

Error: COMPILER_WARNING: [#def76]
elfutils-0.192-build/elfutils-0.192/src/readelf.c: scope_hint: In function ‘handle_core_item’
elfutils-0.192-build/elfutils-0.192/src/readelf.c:12256:1: warning[-Wstack-usage=]: stack usage might be unbounded
#12256 | handle_core_item (Elf *core, const Ebl_Core_Item *item, const void *desc,
#      | ^
#12254|   
#12255|   static unsigned int
#12256|-> handle_core_item (Elf *core, const Ebl_Core_Item *item, const void *desc,
#12257|   		  unsigned int colno, size_t *repeated_size)
#12258|   {

Error: COMPILER_WARNING: [#def77]
elfutils-0.192-build/elfutils-0.192/src/readelf.c: scope_hint: In function ‘handle_core_note’
elfutils-0.192-build/elfutils-0.192/src/readelf.c:13080:1: warning[-Wstack-usage=]: stack usage might be unbounded
#13080 | handle_core_note (Ebl *ebl, const GElf_Nhdr *nhdr,
#      | ^
#13078|   
#13079|   static void
#13080|-> handle_core_note (Ebl *ebl, const GElf_Nhdr *nhdr,
#13081|   		  const char *name, const void *desc)
#13082|   {

Error: COMPILER_WARNING: [#def78]
elfutils-0.192-build/elfutils-0.192/src/size.c: scope_hint: In function ‘handle_ar’
elfutils-0.192-build/elfutils-0.192/src/size.c:340:1: warning[-Wstack-usage=]: stack usage might be unbounded
#  340 | handle_ar (int fd, Elf *elf, const char *prefix, const char *fname)
#      | ^
#  338|   
#  339|   static int
#  340|-> handle_ar (int fd, Elf *elf, const char *prefix, const char *fname)
#  341|   {
#  342|     size_t prefix_len = prefix == NULL ? 0 : strlen (prefix);

Error: COMPILER_WARNING: [#def79]
elfutils-0.192-build/elfutils-0.192/src/size.c: scope_hint: In function ‘handle_elf’
elfutils-0.192-build/elfutils-0.192/src/size.c:634:1: warning[-Wstack-usage=]: stack usage might be unbounded
#  634 | handle_elf (Elf *elf, const char *prefix, const char *fname)
#      | ^
#  632|   
#  633|   static void
#  634|-> handle_elf (Elf *elf, const char *prefix, const char *fname)
#  635|   {
#  636|     size_t prefix_len = prefix == NULL ? 0 : strlen (prefix);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def80]
elfutils-0.192-build/elfutils-0.192/src/stack.c: scope_hint: In function ‘main’
elfutils-0.192-build/elfutils-0.192/src/stack.c:757:46: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
elfutils-0.192-build/elfutils-0.192/src/stack.c:28: included_from: Included from here.
elfutils-0.192-build/elfutils-0.192/libdwfl/libdwfl.h:749:7: note: argument 1 of ‘dwfl_pid’ must be non-null
#  755|     else
#  756|       {
#  757|->       printf ("PID %lld - %s\n", (long long) dwfl_pid (dwfl),
#  758|   	      pid != 0 ? "process" : "core");
#  759|         switch (dwfl_getthreads (dwfl, thread_callback, &frames))

Error: COMPILER_WARNING: [#def81]
elfutils-0.192-build/elfutils-0.192/src/strip.c: scope_hint: In function ‘handle_elf.constprop’
elfutils-0.192-build/elfutils-0.192/src/strip.c:981:1: warning[-Wstack-usage=]: stack usage might be unbounded
#  981 | handle_elf (int fd, Elf *elf, const char *prefix, const char *fname,
#      | ^
#  979|   
#  980|   static int
#  981|-> handle_elf (int fd, Elf *elf, const char *prefix, const char *fname,
#  982|   	    mode_t mode, struct timespec tvp[2])
#  983|   {

Error: GCC_ANALYZER_WARNING (CWE-457): [#def82]
elfutils-0.192-build/elfutils-0.192/src/unstrip.c: scope_hint: In function ‘adjust_relocs’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:493:35: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:2298:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:2310:7: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:2196:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:1431:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/lib/eu-config.h:114:46: note: in definition of macro ‘unlikely’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:1435:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:1435:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/lib/eu-config.h:114:46: note: in definition of macro ‘unlikely’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:1439:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:1439:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/lib/eu-config.h:114:46: note: in definition of macro ‘unlikely’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:1443:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:1443:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:1446:7: note: in expansion of macro ‘unlikely’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:1450:7: note: in expansion of macro ‘unlikely’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:1498:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:1688:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:392:7: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:396:7: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:640:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:417:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:666:7: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/lib/eu-config.h:114:46: note: in definition of macro ‘unlikely’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:667:7: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:667:7: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:622:9: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:490:9: note: in expansion of macro ‘ELF_CHECK’
#  491|   	if (newshdr->sh_info != STN_UNDEF)
#  492|   	  {
#  493|-> 	    newshdr->sh_info = map[newshdr->sh_info - 1];
#  494|   	    update_shdr (outscn, newshdr);
#  495|   	  }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def83]
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:530:34: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:544:13: note: in expansion of macro ‘CONVERT_HASH’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:2298:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:2310:7: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:2196:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:1431:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/lib/eu-config.h:114:46: note: in definition of macro ‘unlikely’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:1435:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:1435:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/lib/eu-config.h:114:46: note: in definition of macro ‘unlikely’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:1439:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:1439:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/lib/eu-config.h:114:46: note: in definition of macro ‘unlikely’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:1443:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:1443:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:1446:7: note: in expansion of macro ‘unlikely’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:1450:7: note: in expansion of macro ‘unlikely’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:1498:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:1688:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:392:7: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:396:7: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:640:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:417:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:666:7: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/lib/eu-config.h:114:46: note: in definition of macro ‘unlikely’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:667:7: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:667:7: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:622:9: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:544:13: note: in expansion of macro ‘CONVERT_HASH’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:544:13: note: in expansion of macro ‘CONVERT_HASH’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:544:13: note: in expansion of macro ‘CONVERT_HASH’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:544:13: note: in expansion of macro ‘CONVERT_HASH’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:544:13: note: in expansion of macro ‘CONVERT_HASH’
#  528|   	  for (size_t i = 0; i < nbucket; ++i)				      \
#  529|   	    if (old_bucket[i] != STN_UNDEF)				      \
#  530|-> 	      new_bucket[i] = map[old_bucket[i] - 1];			      \
#  531|   									      \
#  532|   	  for (size_t i = 1; i < nchain; ++i)				      \

Error: GCC_ANALYZER_WARNING (CWE-457): [#def84]
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:534:28: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:544:13: note: in expansion of macro ‘CONVERT_HASH’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:2298:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:2310:7: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:2196:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:1431:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/lib/eu-config.h:114:46: note: in definition of macro ‘unlikely’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:1435:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:1435:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/lib/eu-config.h:114:46: note: in definition of macro ‘unlikely’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:1439:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:1439:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/lib/eu-config.h:114:46: note: in definition of macro ‘unlikely’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:1443:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:1443:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:1446:7: note: in expansion of macro ‘unlikely’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:1450:7: note: in expansion of macro ‘unlikely’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:1498:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:1688:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:392:7: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:396:7: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:640:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:417:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:666:7: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/lib/eu-config.h:114:46: note: in definition of macro ‘unlikely’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:667:7: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:667:7: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:622:9: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:544:13: note: in expansion of macro ‘CONVERT_HASH’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:544:13: note: in expansion of macro ‘CONVERT_HASH’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:544:13: note: in expansion of macro ‘CONVERT_HASH’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:544:13: note: in expansion of macro ‘CONVERT_HASH’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:544:13: note: in expansion of macro ‘CONVERT_HASH’
#  532|   	  for (size_t i = 1; i < nchain; ++i)				      \
#  533|   	    if (old_chain[i] != STN_UNDEF)				      \
#  534|-> 	      new_chain[map[i - 1]] = map[old_chain[i] - 1];		      \
#  535|   									      \
#  536|   	  record_new_data (new_hash);					\

Error: GCC_ANALYZER_WARNING (CWE-457): [#def85]
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:579:66: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:2298:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:2310:7: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:2196:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:1431:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/lib/eu-config.h:114:46: note: in definition of macro ‘unlikely’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:1435:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:1435:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/lib/eu-config.h:114:46: note: in definition of macro ‘unlikely’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:1439:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:1439:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/lib/eu-config.h:114:46: note: in definition of macro ‘unlikely’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:1443:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:1443:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:1446:7: note: in expansion of macro ‘unlikely’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:1450:7: note: in expansion of macro ‘unlikely’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:1498:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:1688:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:392:7: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:396:7: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:640:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:417:3: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:666:7: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/lib/eu-config.h:114:46: note: in definition of macro ‘unlikely’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:667:7: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:667:7: note: in expansion of macro ‘ELF_CHECK’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:622:9: note: in expansion of macro ‘ELF_CHECK’
#  577|   	for (size_t i = 1; i < onent; ++i)
#  578|   	  {
#  579|-> 	    GElf_Versym *v = gelf_getversym (data, i, &versym[map[i - 1]]);
#  580|   	    ELF_CHECK (v != NULL, _("cannot get symbol version: %s"));
#  581|   	  }

Error: COMPILER_WARNING: [#def86]
elfutils-0.192-build/elfutils-0.192/src/unstrip.c: scope_hint: In function ‘add_new_section_symbols.isra’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:633:1: warning[-Wstack-usage=]: stack usage might be unbounded
#  633 | add_new_section_symbols (Elf_Scn *old_symscn, size_t old_shnum,
#      | ^
#  631|      possible, add in section symbols for the added sections.  */
#  632|   static Elf_Data *
#  633|-> add_new_section_symbols (Elf_Scn *old_symscn, size_t old_shnum,
#  634|   			 Elf *elf, bool rel, Elf_Scn *symscn, size_t shnum)
#  635|   {

Error: COMPILER_WARNING: [#def87]
elfutils-0.192-build/elfutils-0.192/src/unstrip.c: scope_hint: In function ‘copy_elided_sections’
elfutils-0.192-build/elfutils-0.192/src/unstrip.c:1427:1: warning[-Wstack-usage=]: stack usage might be unbounded
# 1427 | copy_elided_sections (Elf *unstripped, Elf *stripped,
#      | ^
# 1425|      copying their contents and sh_type from STRIPPED.  */
# 1426|   static void
# 1427|-> copy_elided_sections (Elf *unstripped, Elf *stripped,
# 1428|   		      const GElf_Ehdr *stripped_ehdr, GElf_Addr bias)
# 1429|   {

Scan Properties

analyzer-version-clippy1.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer15.0.0
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-134.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-nameelfutils-0.192-3.fc42
store-results-to/tmp/tmpw_4rbio2/elfutils-0.192-3.fc42.tar.xz
time-created2024-11-12 23:47:37
time-finished2024-11-12 23:52:21
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpw_4rbio2/elfutils-0.192-3.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpw_4rbio2/elfutils-0.192-3.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9