gdb-16.3-6.fc44

List of Findings

Error: SHELLCHECK_WARNING (CWE-569): [#def1]
/usr/bin/gdb-add-index:150:13: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled.
#  148|   
#  149|   # Ensure intermediate index file is removed when we exit.
#  150|-> trap "rm -f $tmp_files" 0
#  151|   
#  152|   $GDB --batch -nx -iex 'set auto-load no' \

Error: COMPILER_WARNING: [#def2]
gdb-16.3/bfd/archive.c: scope_hint: In function ‘_bfd_compute_and_write_armap’
gdb-16.3/bfd/archive.c:2307:12: warning[-Wunused-but-set-variable=]: variable ‘elt_no’ set but not used
# 2307 |   file_ptr elt_no = 0;
#      |            ^~~~~~
# 2305|     char *first_name = NULL;
# 2306|     bfd *current;
# 2307|->   file_ptr elt_no = 0;
# 2308|     struct orl *map = NULL;
# 2309|     unsigned int orl_max = 1024;		/* Fine initial default.  */

Error: GCC_ANALYZER_WARNING (CWE-476): [#def3]
gdb-16.3/bfd/archive.c:2382:36: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘syms’
gdb-16.3/bfd/archive.c:2303:1: enter_function: entry to ‘_bfd_compute_and_write_armap’
gdb-16.3/bfd/archive.c:2325:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/archive.c:2330:25: branch_false: ...to here
gdb-16.3/bfd/archive.c:2331:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/archive.c:2331:6: branch_false: ...to here
gdb-16.3/bfd/archive.c:2335:10: branch_true: following ‘true’ branch...
gdb-16.3/bfd/archive.c:2336:13: call_function: inlined call to ‘bfd_get_filename’ from ‘_bfd_compute_and_write_armap’
gdb-16.3/bfd/archive.c:2341:8: branch_true: following ‘true’ branch (when ‘current’ is non-NULL)...
gdb-16.3/bfd/archive.c:2344:11: branch_true: ...to here
gdb-16.3/bfd/archive.c:2344:10: branch_true: following ‘true’ branch...
gdb-16.3/bfd/archive.c:2345:15: call_function: inlined call to ‘bfd_get_file_flags’ from ‘_bfd_compute_and_write_armap’
gdb-16.3/bfd/archive.c:2344:11: branch_true: following ‘true’ branch...
gdb-16.3/bfd/archive.c:2351:15: call_function: inlined call to ‘bfd_get_lto_type’ from ‘_bfd_compute_and_write_armap’
gdb-16.3/bfd/archive.c:2361:14: branch_false: following ‘false’ branch...
gdb-16.3/bfd/archive.c:2364:14: branch_false: ...to here
gdb-16.3/bfd/archive.c:2364:14: branch_true: following ‘true’ branch...
gdb-16.3/bfd/archive.c:2366:18: branch_true: ...to here
gdb-16.3/bfd/archive.c:2366:18: branch_false: following ‘false’ branch...
gdb-16.3/bfd/archive.c:2374:26: branch_false: ...to here
gdb-16.3/bfd/archive.c:2375:18: branch_false: following ‘false’ branch...
gdb-16.3/bfd/archive.c:2375:18: branch_false: ...to here
gdb-16.3/bfd/archive.c:2380:35: branch_true: following ‘true’ branch...
gdb-16.3/bfd/archive.c:2382:41: branch_true: ...to here
gdb-16.3/bfd/archive.c:2382:36: danger: dereference of NULL ‘syms + (long unsigned int)src_count * 8’
# 2380|   	      for (src_count = 0; src_count < symcount; src_count++)
# 2381|   		{
# 2382|-> 		  flagword flags = (syms[src_count])->flags;
# 2383|   		  asection *sec = syms[src_count]->section;
# 2384|   

Error: GCC_ANALYZER_WARNING (CWE-674): [#def4]
gdb-16.3/bfd/bfd.c:889:25: warning[-Wanalyzer-infinite-recursion]: infinite recursion
gdb-16.3/bfd/bfd.c:882:1: enter_function: entry to ‘bfd_errmsg’
gdb-16.3/bfd/bfd.c:889:25: call_function: calling ‘bfd_errmsg’ from ‘bfd_errmsg’
#  887|     if (error_tag == bfd_error_on_input)
#  888|       {
#  889|->       const char *msg = bfd_errmsg (input_error);
#  890|         char *ret = bfd_asprintf (_(bfd_errmsgs[error_tag]),
#  891|   				bfd_get_filename (input_bfd), msg);

Error: COMPILER_WARNING (CWE-704): [#def5]
gdb-16.3/bfd/bfd.c: scope_hint: In function ‘_bfd_doprnt’
gdb-16.3/bfd/bfd.c:1062:23: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
# 1062 |           char *end = strchr (ptr, '%');
#      |                       ^~~~~~
# 1060|   	{
# 1061|   	  /* While we have regular characters, print them.  */
# 1062|-> 	  char *end = strchr (ptr, '%');
# 1063|   	  if (end != NULL)
# 1064|   	    result = print (stream, "%.*s", (int) (end - ptr), ptr);

Error: COMPILER_WARNING (CWE-704): [#def6]
gdb-16.3/bfd/bfd.c:1062:23: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
# 1060|   	{
# 1061|   	  /* While we have regular characters, print them.  */
# 1062|-> 	  char *end = strchr (ptr, '%');
# 1063|   	  if (end != NULL)
# 1064|   	    result = print (stream, "%.*s", (int) (end - ptr), ptr);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def7]
gdb-16.3/bfd/bfd.c:1768:5: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
gdb-16.3/bfd/bfd.c:1760:3: acquire_resource: ‘va_start’ called here
gdb-16.3/bfd/bfd.c:1761:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/bfd.c:1765:11: branch_false: ...to here
gdb-16.3/bfd/bfd.c:1765:11: branch_false: following ‘false’ branch...
gdb-16.3/bfd/bfd.c:1768:5: branch_false: ...to here
gdb-16.3/bfd/bfd.c:1768:5: throw: if the called function throws an exception...
gdb-16.3/bfd/bfd.c:1768:5: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
# 1766|       error_handler_sprintf (fmt, ap);
# 1767|     else
# 1768|->     _bfd_error_internal (fmt, ap);
# 1769|     va_end (ap);
# 1770|   }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def8]
gdb-16.3/bfd/bfd.c:2270:3: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
gdb-16.3/bfd/bfd.c:1756:1: enter_function: entry to ‘_bfd_error_handler’
gdb-16.3/bfd/bfd.c:1760:3: acquire_resource: ‘va_start’ called here
gdb-16.3/bfd/bfd.c:1761:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/bfd.c:1765:11: branch_false: ...to here
gdb-16.3/bfd/bfd.c:1765:11: branch_true: following ‘true’ branch...
gdb-16.3/bfd/bfd.c:1766:5: branch_true: ...to here
gdb-16.3/bfd/bfd.c:1766:5: call_function: calling ‘error_handler_sprintf’ from ‘_bfd_error_handler’
# 2268|   _bfd_abort (const char *file, int line, const char *fn)
# 2269|   {
# 2270|->   fflush (stdout);
# 2271|   
# 2272|     if (fn != NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def9]
gdb-16.3/bfd/bfdio.c:82:10: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen64(filename,  modes)’
gdb-16.3/bfd/bfdio.c:90:1: enter_function: entry to ‘_bfd_real_fopen’
gdb-16.3/bfd/bfdio.c:256:10: acquire_memory: allocated here
gdb-16.3/bfd/bfdio.c:256:10: call_function: calling ‘close_on_exec’ from ‘_bfd_real_fopen’
#   80|         int fd = fileno (file);
#   81|         int old = fcntl (fd, F_GETFD, 0);
#   82|->       if (old >= 0)
#   83|   	fcntl (fd, F_SETFD, old | FD_CLOEXEC);
#   84|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def10]
gdb-16.3/bfd/bfdio.c:83:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen64(filename,  modes)’
gdb-16.3/bfd/bfdio.c:90:1: enter_function: entry to ‘_bfd_real_fopen’
gdb-16.3/bfd/bfdio.c:256:10: acquire_memory: allocated here
gdb-16.3/bfd/bfdio.c:256:10: call_function: calling ‘close_on_exec’ from ‘_bfd_real_fopen’
#   81|         int old = fcntl (fd, F_GETFD, 0);
#   82|         if (old >= 0)
#   83|-> 	fcntl (fd, F_SETFD, old | FD_CLOEXEC);
#   84|       }
#   85|   #endif

Error: CPPCHECK_WARNING (CWE-457): [#def11]
gdb-16.3/bfd/coffcode.h:3375: warning[uninitvar]: Uninitialized variable: *pelength
# 3373|       *value = (unsigned int) (b[0] + (b[1] << 8));
# 3374|   
# 3375|->   *pelength += status;
# 3376|   
# 3377|     return true;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def12]
gdb-16.3/bfd/coffcode.h:3375:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*pelength’
gdb-16.3/bfd/coffcode.h:3462:1: enter_function: entry to ‘coff_apply_checksum’
gdb-16.3/bfd/coffcode.h:3469:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/coffcode.h:3472:8: branch_false: ...to here
gdb-16.3/bfd/coffcode.h:3472:8: call_function: calling ‘coff_read_word’ from ‘coff_apply_checksum’
# 3373|       *value = (unsigned int) (b[0] + (b[1] << 8));
# 3374|   
# 3375|->   *pelength += status;
# 3376|   
# 3377|     return true;

Error: GCC_ANALYZER_WARNING (CWE-465): [#def13]
gdb-16.3/bfd/coffcode.h:3848:22: warning[-Wanalyzer-deref-before-check]: check of ‘**abfd.outsymbols’ for NULL after already dereferencing it
gdb-16.3/bfd/coffcode.h:3498:1: enter_function: entry to ‘coff_write_object_contents’
gdb-16.3/bfd/coffcode.h:3532:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/coffcode.h:3538:16: branch_false: ...to here
gdb-16.3/bfd/coffcode.h:3603:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/coffcode.h:3607:8: branch_false: ...to here
gdb-16.3/bfd/coffcode.h:3608:8: branch_true: following ‘true’ branch (when ‘current’ is non-NULL)...
gdb-16.3/bfd/coffcode.h:3615:11: branch_true: ...to here
gdb-16.3/bfd/coffcode.h:3704:10: branch_true: following ‘true’ branch (when the strings are equal)...
gdb-16.3/bfd/coffcode.h:3704:10: branch_true: ...to here
gdb-16.3/bfd/coffcode.h:3722:10: branch_true: following ‘true’ branch...
gdb-16.3/bfd/coffcode.h:3723:14: branch_true: ...to here
gdb-16.3/bfd/coffcode.h:3722:11: branch_true: following ‘true’ branch...
gdb-16.3/bfd/coffcode.h:3724:27: branch_true: ...to here
gdb-16.3/bfd/coffcode.h:3731:10: branch_true: following ‘true’ branch...
gdb-16.3/bfd/coffcode.h:3733:9: branch_true: ...to here
gdb-16.3/bfd/coffcode.h:3746:10: branch_true: following ‘true’ branch...
gdb-16.3/bfd/coffcode.h:3746:10: branch_true: ...to here
gdb-16.3/bfd/coffcode.h:3749:10: branch_true: following ‘true’ branch...
gdb-16.3/bfd/coffcode.h:3749:11: branch_true: ...to here
gdb-16.3/bfd/coffcode.h:3749:11: branch_false: following ‘false’ branch (when ‘is_reloc_section == 0’)...
gdb-16.3/bfd/coffcode.h:3765:25: branch_false: ...to here
gdb-16.3/bfd/coffcode.h:3767:10: branch_true: following ‘true’ branch (when the strings are equal)...
gdb-16.3/bfd/coffcode.h:3782:11: branch_true: ...to here
gdb-16.3/bfd/coffcode.h:3783:11: branch_true: following ‘true’ branch...
gdb-16.3/bfd/coffcode.h:3782:11: branch_true: ...to here
gdb-16.3/bfd/coffcode.h:3782:11: branch_true: following ‘true’ branch...
gdb-16.3/bfd/coffcode.h:3786:24: branch_true: ...to here
gdb-16.3/bfd/coffcode.h:3786:23: branch_true: following ‘true’ branch...
gdb-16.3/bfd/coffcode.h:3789:11: branch_true: following ‘true’ branch...
gdb-16.3/bfd/coffcode.h:3791:14: branch_true: ...to here
gdb-16.3/bfd/coffcode.h:3794:14: branch_true: following ‘true’ branch...
gdb-16.3/bfd/coffcode.h:3808:11: branch_true: ...to here
gdb-16.3/bfd/coffcode.h:3808:10: branch_true: following ‘true’ branch...
gdb-16.3/bfd/coffcode.h:3809:9: branch_true: ...to here
gdb-16.3/bfd/coffcode.h:3825:10: branch_true: following ‘true’ branch...
gdb-16.3/bfd/coffcode.h:3833:19: call_function: inlined call to ‘bfd_get_symcount’ from ‘coff_write_object_contents’
gdb-16.3/bfd/coffcode.h:3834:48: branch_true: following ‘true’ branch...
gdb-16.3/bfd/coffcode.h:3836:19: branch_true: ...to here
gdb-16.3/bfd/coffcode.h:3836:18: branch_false: following ‘false’ branch...
gdb-16.3/bfd/coffcode.h:3841:18: branch_false: ...to here
gdb-16.3/bfd/coffcode.h:3841:18: branch_true: following ‘true’ branch (when ‘psymsec’ is NULL)...
gdb-16.3/bfd/coffcode.h:3841:18: branch_true: ...to here
gdb-16.3/bfd/coffcode.h:3845:18: branch_true: following ‘true’ branch (when the strings are equal)...
gdb-16.3/bfd/coffcode.h:3847:26: call_function: inlined call to ‘bfd_asymbol_bfd’ from ‘coff_write_object_contents’
gdb-16.3/bfd/coffcode.h:3847:26: call_function: inlined call to ‘bfd_family_coff’ from ‘coff_write_object_contents’
gdb-16.3/bfd/coffcode.h:3847:26: branch_true: ...to here
gdb-16.3/bfd/coffcode.h:3847:26: branch_true: following ‘true’ branch...
gdb-16.3/bfd/coffcode.h:3848:22: branch_true: ...to here
gdb-16.3/bfd/coffcode.h:3848:22: danger: pointer ‘**abfd.outsymbols’ is checked for NULL here but it was already dereferenced at [(42)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/41)
# 3846|   		{
# 3847|   		  csym = coff_symbol_from (*psym);
# 3848|-> 		  if (csym == NULL
# 3849|   		      || csym->native == NULL
# 3850|   		      || ! csym->native->is_sym

Error: GCC_ANALYZER_WARNING (CWE-476): [#def14]
gdb-16.3/bfd/cofflink.c:3004:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sym’
gdb-16.3/bfd/cofflink.c:2924:10: branch_true: following ‘true’ branch (when ‘rel < relend’)...
gdb-16.3/bfd/cofflink.c:2935:7: branch_true: ...to here
gdb-16.3/bfd/cofflink.c:2942:15: branch_false: following ‘false’ branch (when ‘symndx >= 0’)...
gdb-16.3/bfd/cofflink.c:2943:45: branch_false: ...to here
gdb-16.3/bfd/cofflink.c:2942:16: branch_false: following ‘false’ branch...
gdb-16.3/bfd/cofflink.c:2952:15: branch_false: ...to here
gdb-16.3/bfd/cofflink.c:2967:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/cofflink.c:2974:11: branch_false: ...to here
gdb-16.3/bfd/cofflink.c:2984:10: branch_true: following ‘true’ branch (when ‘h’ is NULL)...
gdb-16.3/bfd/cofflink.c:2986:14: branch_true: ...to here
gdb-16.3/bfd/cofflink.c:2986:14: branch_false: following ‘false’ branch (when ‘symndx != -1’)...
gdb-16.3/bfd/cofflink.c:2993:29: branch_false: ...to here
gdb-16.3/bfd/cofflink.c:2999:18: branch_false: following ‘false’ branch...
gdb-16.3/bfd/cofflink.c:3004:24: danger: dereference of NULL ‘sym’
# 3002|   	      val = (sec->output_section->vma
# 3003|   		     + sec->output_offset
# 3004|-> 		     + sym->n_value);
# 3005|   	      if (! obj_pe (input_bfd))
# 3006|   		val -= sec->vma;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def15]
gdb-16.3/bfd/cofflink.c:3132:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sym’
gdb-16.3/bfd/cofflink.c:2910:1: enter_function: entry to ‘_bfd_coff_generic_relocate_section’
gdb-16.3/bfd/cofflink.c:2924:10: branch_true: following ‘true’ branch (when ‘rel < relend’)...
gdb-16.3/bfd/cofflink.c:2935:7: branch_true: ...to here
gdb-16.3/bfd/cofflink.c:2967:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/cofflink.c:2974:11: branch_false: ...to here
gdb-16.3/bfd/cofflink.c:2984:10: branch_true: following ‘true’ branch (when ‘h’ is NULL)...
gdb-16.3/bfd/cofflink.c:2986:14: branch_true: ...to here
gdb-16.3/bfd/cofflink.c:2986:14: branch_true: following ‘true’ branch (when ‘symndx == -1’)...
gdb-16.3/bfd/cofflink.c:3071:26: branch_true: ...to here
gdb-16.3/bfd/cofflink.c:3071:26: call_function: calling ‘discarded_section’ from ‘_bfd_coff_generic_relocate_section’
gdb-16.3/bfd/cofflink.c:3071:26: return_function: returning to ‘_bfd_coff_generic_relocate_section’ from ‘discarded_section’
gdb-16.3/bfd/cofflink.c:3071:11: branch_false: following ‘false’ branch...
gdb-16.3/bfd/cofflink.c:3078:11: branch_false: ...to here
gdb-16.3/bfd/cofflink.c:3129:16: branch_true: following ‘true’ branch (when ‘val == 0’)...
gdb-16.3/bfd/cofflink.c:3131:20: branch_true: ...to here
gdb-16.3/bfd/cofflink.c:3129:17: branch_true: following ‘true’ branch...
gdb-16.3/bfd/cofflink.c:3132:20: branch_true: ...to here
gdb-16.3/bfd/cofflink.c:3132:20: danger: dereference of NULL ‘sym’
# 3130|   		/* Reverse the hack where 4 is subtracted from the addend.  */
# 3131|   		&& (addend + 4) == 0
# 3132|-> 		&& sym->n_sclass == C_NT_WEAK
# 3133|   		&& bfd_coff_classify_symbol (output_bfd, sym)
# 3134|   		     == COFF_SYMBOL_UNDEFINED)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def16]
gdb-16.3/bfd/doc/chew.c:1296:7: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
gdb-16.3/bfd/doc/chew.c:1516:1: enter_function: entry to ‘main’
gdb-16.3/bfd/doc/chew.c:1522:3: call_function: inlined call to ‘init_string’ from ‘main’
gdb-16.3/bfd/doc/chew.c:1522:3: call_function: inlined call to ‘init_string’ from ‘main’
gdb-16.3/bfd/doc/chew.c:1523:3: call_function: inlined call to ‘init_string’ from ‘main’
gdb-16.3/bfd/doc/chew.c:1523:3: call_function: inlined call to ‘init_string’ from ‘main’
gdb-16.3/bfd/doc/chew.c:1524:3: call_function: inlined call to ‘init_string’ from ‘main’
gdb-16.3/bfd/doc/chew.c:1524:3: call_function: inlined call to ‘init_string’ from ‘main’
gdb-16.3/bfd/doc/chew.c:1528:3: call_function: calling ‘add_intrinsic’ from ‘main’
gdb-16.3/bfd/doc/chew.c:1528:3: return_function: returning to ‘main’ from ‘add_intrinsic’
gdb-16.3/bfd/doc/chew.c:1529:3: call_function: calling ‘add_intrinsic’ from ‘main’
gdb-16.3/bfd/doc/chew.c:1529:3: return_function: returning to ‘main’ from ‘add_intrinsic’
gdb-16.3/bfd/doc/chew.c:1530:3: call_function: calling ‘add_intrinsic’ from ‘main’
gdb-16.3/bfd/doc/chew.c:1530:3: return_function: returning to ‘main’ from ‘add_intrinsic’
gdb-16.3/bfd/doc/chew.c:1531:3: call_function: calling ‘add_intrinsic’ from ‘main’
gdb-16.3/bfd/doc/chew.c:1531:3: return_function: returning to ‘main’ from ‘add_intrinsic’
gdb-16.3/bfd/doc/chew.c:1532:3: call_function: calling ‘add_intrinsic’ from ‘main’
# 1294|       {
# 1295|         entry->code_length += 2;
# 1296|->       entry->code = xrealloc (entry->code,
# 1297|   			      entry->code_length * sizeof (*entry->code));
# 1298|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def17]
gdb-16.3/bfd/dwarf2.c:4069:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
gdb-16.3/bfd/dwarf2.c:4731:1: enter_function: entry to ‘comp_unit_maybe_decode_line_info’
gdb-16.3/bfd/dwarf2.c:4752:10: branch_true: following ‘true’ branch...
gdb-16.3/bfd/dwarf2.c:4753:16: branch_true: ...to here
gdb-16.3/bfd/dwarf2.c:4753:16: call_function: calling ‘scan_unit_for_symbols’ from ‘comp_unit_maybe_decode_line_info’
# 4067|         func = NULL;
# 4068|         var = NULL;
# 4069|->       if (abbrev->tag == DW_TAG_subprogram
# 4070|   	  || abbrev->tag == DW_TAG_entry_point
# 4071|   	  || abbrev->tag == DW_TAG_inlined_subroutine)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def18]
gdb-16.3/bfd/elf-eh-frame.c:744:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cie’
gdb-16.3/bfd/elf-eh-frame.c:578:1: enter_function: entry to ‘_bfd_elf_parse_eh_frame’
gdb-16.3/bfd/elf-eh-frame.c:604:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf-eh-frame.c:605:11: branch_false: ...to here
gdb-16.3/bfd/elf-eh-frame.c:604:7: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf-eh-frame.c:606:10: branch_false: ...to here
gdb-16.3/bfd/elf-eh-frame.c:604:7: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf-eh-frame.c:612:27: branch_false: ...to here
gdb-16.3/bfd/elf-eh-frame.c:612:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf-eh-frame.c:621:3: branch_false: ...to here
gdb-16.3/bfd/elf-eh-frame.c:621:3: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf-eh-frame.c:625:3: branch_true: ...to here
gdb-16.3/bfd/elf-eh-frame.c:625:3: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf-eh-frame.c:627:15: branch_false: ...to here
gdb-16.3/bfd/elf-eh-frame.c:629:3: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf-eh-frame.c:633:3: branch_false: ...to here
gdb-16.3/bfd/elf-eh-frame.c:661:3: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf-eh-frame.c:664:6: branch_false: ...to here
gdb-16.3/bfd/elf-eh-frame.c:664:6: branch_false: following ‘false’ branch (when ‘num_cies == 0’)...
gdb-16.3/bfd/elf-eh-frame.c:694:3: branch_false: ...to here
gdb-16.3/bfd/elf-eh-frame.c:697:10: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf-eh-frame.c:704:18: branch_true: ...to here
gdb-16.3/bfd/elf-eh-frame.c:708:7: call_function: inlined call to ‘skip_bytes’ from ‘_bfd_elf_parse_eh_frame’
gdb-16.3/bfd/elf-eh-frame.c:712:7: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf-eh-frame.c:713:7: branch_false: ...to here
gdb-16.3/bfd/elf-eh-frame.c:719:10: branch_false: following ‘false’ branch (when ‘hdr_length != 0’)...
gdb-16.3/bfd/elf-eh-frame.c:731:7: call_function: inlined call to ‘skip_bytes’ from ‘_bfd_elf_parse_eh_frame’
gdb-16.3/bfd/elf-eh-frame.c:734:10: branch_true: following ‘true’ branch (when ‘hdr_id == 0’)...
gdb-16.3/bfd/elf-eh-frame.c:739:11: branch_true: ...to here
gdb-16.3/bfd/elf-eh-frame.c:744:11: danger: dereference of NULL ‘cie’
#  742|   	  cie = local_cies + cie_count++;
#  743|   
#  744|-> 	  cie->cie_inf = this_inf;
#  745|   	  cie->length = hdr_length;
#  746|   	  start = buf;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def19]
gdb-16.3/bfd/elf-eh-frame.c:1361:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ent’
gdb-16.3/bfd/elf-eh-frame.c:1343:6: branch_false: following ‘false’ branch (when ‘hi != 0’)...
gdb-16.3/bfd/elf-eh-frame.c:1343:6: branch_false: ...to here
gdb-16.3/bfd/elf-eh-frame.c:1346:10: branch_false: following ‘false’ branch (when ‘lo >= hi’)...
gdb-16.3/bfd/elf-eh-frame.c:1360:7: branch_false: ...to here
gdb-16.3/bfd/elf-eh-frame.c:1360:6: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf-eh-frame.c:1361:23: branch_true: ...to here
gdb-16.3/bfd/elf-eh-frame.c:1361:23: danger: dereference of NULL ‘ent’
# 1359|   
# 1360|     if (!ent->removed)
# 1361|->     delta = (bfd_vma) ent->new_offset - (bfd_vma) ent->offset;
# 1362|     else if (ent->cie && ent->u.cie.merged)
# 1363|       {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def20]
gdb-16.3/bfd/elf-eh-frame.c:1366:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ent’
gdb-16.3/bfd/elf-eh-frame.c:1343:6: branch_false: following ‘false’ branch (when ‘hi != 0’)...
gdb-16.3/bfd/elf-eh-frame.c:1343:6: branch_false: ...to here
gdb-16.3/bfd/elf-eh-frame.c:1346:10: branch_false: following ‘false’ branch (when ‘lo >= hi’)...
gdb-16.3/bfd/elf-eh-frame.c:1360:7: branch_false: ...to here
gdb-16.3/bfd/elf-eh-frame.c:1360:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf-eh-frame.c:1362:12: branch_false: ...to here
gdb-16.3/bfd/elf-eh-frame.c:1362:11: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf-eh-frame.c:1366:28: danger: dereference of NULL ‘ent’
# 1364|         struct eh_cie_fde *cie = ent->u.cie.u.merged_with;
# 1365|         delta = ((bfd_vma) cie->new_offset + cie->u.cie.u.sec->output_offset
# 1366|-> 	       - (bfd_vma) ent->offset - sec->output_offset);
# 1367|       }
# 1368|     else

Error: GCC_ANALYZER_WARNING (CWE-476): [#def21]
gdb-16.3/bfd/elf-eh-frame.c:1374:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ent’
gdb-16.3/bfd/elf-eh-frame.c:1343:6: branch_false: following ‘false’ branch (when ‘hi != 0’)...
gdb-16.3/bfd/elf-eh-frame.c:1343:6: branch_false: ...to here
gdb-16.3/bfd/elf-eh-frame.c:1346:10: branch_false: following ‘false’ branch (when ‘lo >= hi’)...
gdb-16.3/bfd/elf-eh-frame.c:1360:7: branch_false: ...to here
gdb-16.3/bfd/elf-eh-frame.c:1360:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf-eh-frame.c:1362:12: branch_false: ...to here
gdb-16.3/bfd/elf-eh-frame.c:1374:28: danger: dereference of NULL ‘ent’
# 1372|         struct eh_cie_fde *last = sec_info->entry + sec_info->count;
# 1373|         delta = ((bfd_vma) next_cie_fde_offset (ent, last, sec)
# 1374|-> 	       - (bfd_vma) ent->offset);
# 1375|         return delta;
# 1376|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def22]
gdb-16.3/bfd/elf-eh-frame.c:2323:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sec’
gdb-16.3/bfd/elf-eh-frame.c:2299:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf-eh-frame.c:2300:10: branch_false: ...to here
gdb-16.3/bfd/elf-eh-frame.c:2299:7: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf-eh-frame.c:2301:10: branch_false: ...to here
gdb-16.3/bfd/elf-eh-frame.c:2299:7: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf-eh-frame.c:2306:10: branch_false: ...to here
gdb-16.3/bfd/elf-eh-frame.c:2307:15: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf-eh-frame.c:2323:12: branch_false: ...to here
gdb-16.3/bfd/elf-eh-frame.c:2323:12: danger: dereference of NULL ‘sec’
# 2321|   
# 2322|     /* Fix the link_order to match.  */
# 2323|->   for (p = sec->output_section->map_head.link_order; p != NULL; p = p->next)
# 2324|       {
# 2325|         if (p->type != bfd_indirect_link_order)

Error: CPPCHECK_WARNING (CWE-457): [#def23]
gdb-16.3/bfd/elf-nacl.c:192: error[uninitvar]: Uninitialized variable: *m
#  190|   
#  191|         m = first_load;
#  192|->       while ((seg = *m) != NULL)
#  193|   	{
#  194|   	  if (seg->p_type == PT_LOAD)

Error: CPPCHECK_WARNING (CWE-457): [#def24]
gdb-16.3/bfd/elf32-arm.c:5651: error[uninitvar]: Uninitialized variables: &key.destination, &key.hash, &key.sym_name, &key.r_type, &key.branch_type, &key.non_a8_stub
# 5649|   		  key.from = base_vma + i;
# 5650|   		  found = (struct a8_erratum_reloc *)
# 5651|-> 		      bsearch (&key, a8_relocs, num_a8_relocs,
# 5652|   			       sizeof (struct a8_erratum_reloc),
# 5653|   			       &a8_reloc_compare);

Error: COMPILER_WARNING: [#def25]
gdb-16.3/bfd/elf32-arm.c: scope_hint: In function ‘elf32_arm_size_stubs’
gdb-16.3/bfd/elf32-arm.c:6528:20: warning[-Wunused-but-set-variable=]: variable ‘bfd_indx’ set but not used
# 6528 |       unsigned int bfd_indx;
#      |                    ^~~~~~~~
# 6526|       {
# 6527|         bfd *input_bfd;
# 6528|->       unsigned int bfd_indx;
# 6529|         asection *stub_sec;
# 6530|         enum elf32_arm_stub_type stub_type;

Error: CPPCHECK_WARNING (CWE-457): [#def26]
gdb-16.3/bfd/elf32-arm.c:17636: error[uninitvar]: Uninitialized variable: &rel
#17634|   	      Elf_Internal_Rela rel;
#17635|   
#17636|-> 	      SWAP_RELOC_IN (htab) (output_bfd, p, &rel);
#17637|   	      rel.r_info = ELF32_R_INFO (htab->root.hgot->indx, R_ARM_ABS32);
#17638|   	      SWAP_RELOC_OUT (htab) (output_bfd, &rel, p);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def27]
gdb-16.3/bfd/elf32-i386.c:3597:46: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elf32-i386.c:3597:20: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-i386.c:3597:46: branch_true: ...to here
gdb-16.3/bfd/elf32-i386.c:3597:46: danger: dereference of NULL ‘htab’
# 3595|   
# 3596|     /* Use the second PLT section only if there is .plt section.  */
# 3597|->   use_plt_second = htab->elf.splt != NULL && htab->plt_second != NULL;
# 3598|   
# 3599|     eh = (struct elf_x86_link_hash_entry *) h;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def28]
gdb-16.3/bfd/elf32-i386.c:3707:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elf32-i386.c:3597:20: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-i386.c:3597:20: branch_false: ...to here
gdb-16.3/bfd/elf32-i386.c:3600:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-i386.c:3606:21: branch_false: ...to here
gdb-16.3/bfd/elf32-i386.c:3608:6: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-i386.c:3618:11: branch_true: ...to here
gdb-16.3/bfd/elf32-i386.c:3618:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-i386.c:3626:11: branch_false: ...to here
gdb-16.3/bfd/elf32-i386.c:3631:7: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-i386.c:3644:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-i386.c:3652:24: branch_false: ...to here
gdb-16.3/bfd/elf32-i386.c:3661:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-i386.c:3677:11: branch_false: ...to here
gdb-16.3/bfd/elf32-i386.c:3680:10: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-i386.c:3682:11: branch_true: ...to here
gdb-16.3/bfd/elf32-i386.c:3689:14: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-i386.c:3697:21: branch_true: ...to here
gdb-16.3/bfd/elf32-i386.c:3707:22: danger: dereference of NULL ‘htab’
# 3705|   		 the other PLT slots. */
# 3706|   	      reloc_index = k + s * PLT_NON_JUMP_SLOT_RELOCS;
# 3707|-> 	      loc = (htab->srelplt2->contents + reloc_index
# 3708|   		     * sizeof (Elf32_External_Rel));
# 3709|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def29]
gdb-16.3/bfd/elf32-i386.c:3739:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elf32-i386.c:3597:20: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-i386.c:3597:20: branch_false: ...to here
gdb-16.3/bfd/elf32-i386.c:3600:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-i386.c:3606:21: branch_false: ...to here
gdb-16.3/bfd/elf32-i386.c:3608:6: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-i386.c:3618:11: branch_true: ...to here
gdb-16.3/bfd/elf32-i386.c:3618:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-i386.c:3626:11: branch_false: ...to here
gdb-16.3/bfd/elf32-i386.c:3631:7: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-i386.c:3644:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-i386.c:3652:24: branch_false: ...to here
gdb-16.3/bfd/elf32-i386.c:3661:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-i386.c:3677:11: branch_false: ...to here
gdb-16.3/bfd/elf32-i386.c:3736:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-i386.c:3738:15: branch_false: ...to here
gdb-16.3/bfd/elf32-i386.c:3738:14: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-i386.c:3739:13: branch_true: ...to here
gdb-16.3/bfd/elf32-i386.c:3739:13: danger: dereference of NULL ‘htab’
# 3737|   	{
# 3738|   	  if (htab->plt.has_plt0)
# 3739|-> 	    bfd_put_32 (output_bfd,
# 3740|   			(plt->output_section->vma
# 3741|   			 + plt->output_offset

Error: GCC_ANALYZER_WARNING (CWE-476): [#def30]
gdb-16.3/bfd/elf32-i386.c:3766:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elf32-i386.c:3597:20: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-i386.c:3597:20: branch_false: ...to here
gdb-16.3/bfd/elf32-i386.c:3600:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-i386.c:3606:21: branch_false: ...to here
gdb-16.3/bfd/elf32-i386.c:3608:6: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-i386.c:3618:11: branch_true: ...to here
gdb-16.3/bfd/elf32-i386.c:3618:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-i386.c:3626:11: branch_false: ...to here
gdb-16.3/bfd/elf32-i386.c:3631:7: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-i386.c:3644:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-i386.c:3652:24: branch_false: ...to here
gdb-16.3/bfd/elf32-i386.c:3661:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-i386.c:3677:11: branch_false: ...to here
gdb-16.3/bfd/elf32-i386.c:3736:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-i386.c:3738:15: branch_false: ...to here
gdb-16.3/bfd/elf32-i386.c:3738:14: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-i386.c:3747:27: branch_false: ...to here
gdb-16.3/bfd/elf32-i386.c:3766:19: danger: dereference of NULL ‘htab’
# 3764|   	      rel.r_info = ELF32_R_INFO (0, R_386_IRELATIVE);
# 3765|   
# 3766|-> 	      if (htab->params->report_relative_reloc)
# 3767|   		_bfd_x86_elf_link_report_relative_reloc
# 3768|   		  (info, relplt, h, sym, "R_386_IRELATIVE", &rel);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def31]
gdb-16.3/bfd/elf32-i386.c:3776:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elf32-i386.c:3597:20: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-i386.c:3597:20: branch_false: ...to here
gdb-16.3/bfd/elf32-i386.c:3600:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-i386.c:3606:21: branch_false: ...to here
gdb-16.3/bfd/elf32-i386.c:3608:6: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-i386.c:3618:11: branch_true: ...to here
gdb-16.3/bfd/elf32-i386.c:3618:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-i386.c:3626:11: branch_false: ...to here
gdb-16.3/bfd/elf32-i386.c:3631:7: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-i386.c:3644:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-i386.c:3652:24: branch_false: ...to here
gdb-16.3/bfd/elf32-i386.c:3661:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-i386.c:3677:11: branch_false: ...to here
gdb-16.3/bfd/elf32-i386.c:3736:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-i386.c:3738:15: branch_false: ...to here
gdb-16.3/bfd/elf32-i386.c:3738:14: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-i386.c:3747:27: branch_false: ...to here
gdb-16.3/bfd/elf32-i386.c:3750:14: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-i386.c:3750:15: branch_false: ...to here
gdb-16.3/bfd/elf32-i386.c:3776:27: danger: dereference of NULL ‘htab’
# 3774|   	    {
# 3775|   	      rel.r_info = ELF32_R_INFO (h->dynindx, R_386_JUMP_SLOT);
# 3776|-> 	      plt_index = htab->next_jump_slot_index++;
# 3777|   	    }
# 3778|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def32]
gdb-16.3/bfd/elf32-i386.c:3805:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elf32-i386.c:3597:20: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-i386.c:3597:20: branch_false: ...to here
gdb-16.3/bfd/elf32-i386.c:3600:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-i386.c:3606:21: branch_false: ...to here
gdb-16.3/bfd/elf32-i386.c:3608:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-i386.c:3798:12: branch_false: ...to here
gdb-16.3/bfd/elf32-i386.c:3798:11: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-i386.c:3805:7: branch_true: ...to here
gdb-16.3/bfd/elf32-i386.c:3805:7: danger: dereference of NULL ‘htab’
# 3803|   
# 3804|         /* Set the entry in the GOT procedure linkage table.  */
# 3805|->       plt = htab->plt_got;
# 3806|         got = htab->elf.sgot;
# 3807|         gotplt = htab->elf.sgotplt;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def33]
gdb-16.3/bfd/elf32-i386.c:3931:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elf32-i386.c:3597:20: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-i386.c:3597:20: branch_false: ...to here
gdb-16.3/bfd/elf32-i386.c:3600:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-i386.c:3606:21: branch_false: ...to here
gdb-16.3/bfd/elf32-i386.c:3798:11: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-i386.c:3839:6: branch_false: ...to here
gdb-16.3/bfd/elf32-i386.c:3861:6: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-i386.c:3862:12: branch_true: ...to here
gdb-16.3/bfd/elf32-i386.c:3861:7: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-i386.c:3861:7: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-i386.c:3861:7: branch_true: ...to here
gdb-16.3/bfd/elf32-i386.c:3861:7: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-i386.c:3867:17: branch_false: ...to here
gdb-16.3/bfd/elf32-i386.c:3874:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-i386.c:3886:10: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-i386.c:3887:14: branch_true: ...to here
gdb-16.3/bfd/elf32-i386.c:3886:11: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-i386.c:3889:15: branch_true: ...to here
gdb-16.3/bfd/elf32-i386.c:3889:14: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-i386.c:3915:20: branch_false: ...to here
gdb-16.3/bfd/elf32-i386.c:3915:19: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-i386.c:3925:19: branch_false: ...to here
gdb-16.3/bfd/elf32-i386.c:3925:18: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-i386.c:3931:19: branch_false: ...to here
gdb-16.3/bfd/elf32-i386.c:3931:19: danger: dereference of NULL ‘htab’
# 3929|   		 contains the real function addres if we need pointer
# 3930|   		 equality.  We load the GOT entry with the PLT entry.  */
# 3931|-> 	      if (htab->plt_second != NULL)
# 3932|   		{
# 3933|   		  plt = htab->plt_second;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def34]
gdb-16.3/bfd/elf32-i386.c:3972:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elf32-i386.c:3597:20: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-i386.c:3597:20: branch_false: ...to here
gdb-16.3/bfd/elf32-i386.c:3600:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-i386.c:3606:21: branch_false: ...to here
gdb-16.3/bfd/elf32-i386.c:3798:11: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-i386.c:3839:6: branch_false: ...to here
gdb-16.3/bfd/elf32-i386.c:3861:6: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-i386.c:3862:12: branch_true: ...to here
gdb-16.3/bfd/elf32-i386.c:3861:7: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-i386.c:3861:7: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-i386.c:3861:7: branch_true: ...to here
gdb-16.3/bfd/elf32-i386.c:3861:7: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-i386.c:3867:17: branch_false: ...to here
gdb-16.3/bfd/elf32-i386.c:3874:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-i386.c:3948:15: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-i386.c:3949:19: branch_true: ...to here
gdb-16.3/bfd/elf32-i386.c:3948:16: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-i386.c:3951:11: branch_true: ...to here
gdb-16.3/bfd/elf32-i386.c:3952:14: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-i386.c:3956:15: branch_false: ...to here
gdb-16.3/bfd/elf32-i386.c:3971:14: branch_true: following ‘true’ branch (when ‘relative_reloc_name’ is non-NULL)...
gdb-16.3/bfd/elf32-i386.c:3972:18: branch_true: ...to here
gdb-16.3/bfd/elf32-i386.c:3972:18: danger: dereference of NULL ‘htab’
# 3970|   	{
# 3971|   	  if (relative_reloc_name != NULL
# 3972|-> 	      && htab->params->report_relative_reloc)
# 3973|   	    _bfd_x86_elf_link_report_relative_reloc
# 3974|   	      (info, relgot, h, sym, relative_reloc_name, &rel);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def35]
gdb-16.3/bfd/elf32-ppc.c:1283:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
gdb-16.3/bfd/elf32-ppc.c:1280:9: acquire_resource: ‘va_start’ called here
gdb-16.3/bfd/elf32-ppc.c:1283:9: throw: if the called function throws an exception...
gdb-16.3/bfd/elf32-ppc.c:1283:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
# 1281|   	memset (data, 0, 72);
# 1282|   	pid = va_arg (ap, long);
# 1283|-> 	bfd_put_32 (abfd, pid, data + 24);
# 1284|   	cursig = va_arg (ap, int);
# 1285|   	bfd_put_16 (abfd, cursig, data + 12);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def36]
gdb-16.3/bfd/elf32-ppc.c:1285:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
gdb-16.3/bfd/elf32-ppc.c:1280:9: acquire_resource: ‘va_start’ called here
gdb-16.3/bfd/elf32-ppc.c:1285:9: throw: if the called function throws an exception...
gdb-16.3/bfd/elf32-ppc.c:1285:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
# 1283|   	bfd_put_32 (abfd, pid, data + 24);
# 1284|   	cursig = va_arg (ap, int);
# 1285|-> 	bfd_put_16 (abfd, cursig, data + 12);
# 1286|   	greg = va_arg (ap, const void *);
# 1287|   	memcpy (data + 72, greg, 192);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def37]
gdb-16.3/bfd/elf32-ppc.c:2386:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
# 2384|   	   | SEC_IN_MEMORY | SEC_LINKER_CREATED);
# 2385|     s = bfd_make_section_anyway_with_flags (abfd, ".glink", flags);
# 2386|->   htab->glink = s;
# 2387|     p2align = htab->params->ppc476_workaround ? 6 : 4;
# 2388|     if (p2align < htab->params->plt_stub_align)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def38]
gdb-16.3/bfd/elf32-ppc.c:2471:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elf32-ppc.c:2468:6: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:2471:7: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:2471:7: danger: dereference of NULL ‘htab’
# 2469|       return false;
# 2470|   
# 2471|->   if (htab->glink == NULL
# 2472|         && !ppc_elf_create_glink (abfd, info))
# 2473|       return false;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def39]
gdb-16.3/bfd/elf32-ppc.c:2630:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elf32-ppc.c:2620:7: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:2620:7: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:2629:14: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:2630:11: danger: dereference of NULL ‘htab’
# 2628|   
# 2629|         htab = ppc_elf_hash_table (info);
# 2630|->       if (htab->sbss == NULL)
# 2631|   	{
# 2632|   	  flagword flags = SEC_IS_COMMON | SEC_SMALL_DATA | SEC_LINKER_CREATED;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def40]
gdb-16.3/bfd/elf32-ppc.c:2906:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elf32-ppc.c:2878:1: enter_function: entry to ‘ppc_elf_check_relocs’
gdb-16.3/bfd/elf32-ppc.c:2891:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:2899:3: call_function: inlined call to ‘bfd_get_flavour’ from ‘ppc_elf_check_relocs’
gdb-16.3/bfd/elf32-ppc.c:2906:7: danger: dereference of NULL ‘htab’
# 2904|   
# 2905|     htab = ppc_elf_hash_table (info);
# 2906|->   if (htab->glink == NULL)
# 2907|       {
# 2908|         if (htab->elf.dynobj == NULL)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def41]
gdb-16.3/bfd/elf32-ppc.c:2976:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘isym’
gdb-16.3/bfd/elf32-ppc.c:2878:1: enter_function: entry to ‘ppc_elf_check_relocs’
gdb-16.3/bfd/elf32-ppc.c:2891:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:2899:3: call_function: inlined call to ‘bfd_get_flavour’ from ‘ppc_elf_check_relocs’
gdb-16.3/bfd/elf32-ppc.c:2905:10: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:2905:10: call_function: inlined call to ‘elf_hash_table_id’ from ‘ppc_elf_check_relocs’
gdb-16.3/bfd/elf32-ppc.c:2905:10: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:2906:7: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:2906:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:2913:9: call_function: inlined call to ‘elf_link_hash_lookup’ from ‘ppc_elf_check_relocs’
gdb-16.3/bfd/elf32-ppc.c:2921:22: branch_true: following ‘true’ branch (when ‘rel < rel_end’)...
gdb-16.3/bfd/elf32-ppc.c:2932:18: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:2933:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:2942:26: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:3008:10: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:3009:14: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:3008:11: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:3010:14: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:3008:11: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:3013:14: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:3013:14: branch_false: following ‘false’ branch (when ‘rel == relocs’)...
gdb-16.3/bfd/elf32-ppc.c:3021:13: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:2921:22: branch_true: following ‘true’ branch (when ‘rel < rel_end’)...
gdb-16.3/bfd/elf32-ppc.c:2932:18: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:2933:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:2942:26: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:2966:10: branch_false: following ‘false’ branch (when ‘h’ is NULL)...
gdb-16.3/bfd/elf32-ppc.c:2974:16: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:2974:15: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:2976:15: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:2976:15: danger: dereference of NULL ‘isym’
# 2974|         else if (htab->elf.target_os != is_vxworks)
# 2975|   	{
# 2976|-> 	  if (ELF_ST_TYPE (isym->st_info) == STT_GNU_IFUNC)
# 2977|   	    {
# 2978|   	      /* Set PLT_IFUNC flag for this sym, no GOT entry yet.  */

Error: GCC_ANALYZER_WARNING (CWE-476): [#def42]
gdb-16.3/bfd/elf32-ppc.c:3969:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
# 3967|     htab = ppc_elf_hash_table (info);
# 3968|   
# 3969|->   if (htab->plt_type == PLT_UNSET)
# 3970|       {
# 3971|         struct elf_link_hash_entry *h;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def43]
gdb-16.3/bfd/elf32-ppc.c:4281:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘tls_maskp’
gdb-16.3/bfd/elf32-ppc.c:4171:1: enter_function: entry to ‘ppc_elf_inline_plt’
gdb-16.3/bfd/elf32-ppc.c:4178:10: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:4178:10: call_function: inlined call to ‘elf_hash_table_id’ from ‘ppc_elf_inline_plt’
gdb-16.3/bfd/elf32-ppc.c:4178:10: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:4188:14: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:4200:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4219:8: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4219:33: branch_true: following ‘true’ branch (when ‘ibfd’ is non-NULL)...
gdb-16.3/bfd/elf32-ppc.c:4224:12: call_function: inlined call to ‘bfd_get_flavour’ from ‘ppc_elf_inline_plt’
gdb-16.3/bfd/elf32-ppc.c:4239:16: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4242:33: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4257:22: call_function: calling ‘get_sym_h’ from ‘ppc_elf_inline_plt’
gdb-16.3/bfd/elf32-ppc.c:4257:22: return_function: returning to ‘ppc_elf_inline_plt’ from ‘get_sym_h’
gdb-16.3/bfd/elf32-ppc.c:4257:20: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:4267:21: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:4270:24: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4273:31: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4281:23: release_memory: ‘tls_maskp’ is NULL
gdb-16.3/bfd/elf32-ppc.c:4281:23: danger: dereference of NULL ‘tls_maskp’
# 4279|   			    + sec->output_section->vma);
# 4280|   		    if (to - from + limit < 2 * limit)
# 4281|-> 		      *tls_maskp &= ~PLT_KEEP;
# 4282|   		  }
# 4283|   	      }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def44]
gdb-16.3/bfd/elf32-ppc.c:4310:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
# 4308|   
# 4309|     htab = ppc_elf_hash_table (info);
# 4310|->   htab->tls_get_addr = elf_link_hash_lookup (&htab->elf, "__tls_get_addr",
# 4311|   					     false, false, true);
# 4312|     if (htab->plt_type != PLT_NEW)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def45]
gdb-16.3/bfd/elf32-ppc.c:4860:41: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elf32-ppc.c:4774:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4776:7: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4774:7: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4847:5: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4852:6: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:4852:6: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:4855:7: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4856:31: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4858:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4859:41: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4858:11: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4860:41: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4860:41: danger: dereference of NULL ‘htab’
# 4858|         if (def->root.u.def.section == htab->elf.sdynbss
# 4859|   	  || def->root.u.def.section == htab->elf.sdynrelro
# 4860|-> 	  || def->root.u.def.section == htab->dynsbss)
# 4861|   	h->dyn_relocs = NULL;
# 4862|         return true;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def46]
gdb-16.3/bfd/elf32-ppc.c:4895:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elf32-ppc.c:4774:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4776:7: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4774:7: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4847:5: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4852:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4872:7: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4872:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4872:6: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4880:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4890:7: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4890:6: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:4893:11: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:4892:10: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:4894:11: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:4892:11: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:4895:14: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:4895:14: danger: dereference of NULL ‘htab’
# 4893|   	  && ppc_elf_hash_entry (h)->has_addr16_ha
# 4894|   	  && ppc_elf_hash_entry (h)->has_addr16_lo
# 4895|-> 	  && htab->params->pic_fixup == 0
# 4896|   	  && info->disable_target_specific_optimizations <= 1)
# 4897|   	htab->params->pic_fixup = 1;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def47]
gdb-16.3/bfd/elf32-ppc.c:4931:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elf32-ppc.c:4774:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4776:7: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4774:7: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4847:5: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4852:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4872:7: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4872:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4872:6: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4880:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4890:7: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4890:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4902:7: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4902:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4912:10: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4930:6: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:4931:5: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:4931:5: danger: dereference of NULL ‘htab’
# 4929|        must instead allocate it in .sbss.  */
# 4930|     if (ppc_elf_hash_entry (h)->has_sda_refs)
# 4931|->     s = htab->dynsbss;
# 4932|     else if ((h->root.u.def.section->flags & SEC_READONLY) != 0)
# 4933|       s = htab->elf.sdynrelro;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def48]
gdb-16.3/bfd/elf32-ppc.c:4946:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elf32-ppc.c:4774:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4776:7: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4774:7: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4847:5: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4852:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4872:7: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4872:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4872:6: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4880:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4890:7: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4890:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4902:7: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4902:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4912:10: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4930:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4932:13: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4936:3: branch_false: following ‘false’ branch (when ‘s’ is non-NULL)...
gdb-16.3/bfd/elf32-ppc.c:4938:8: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4938:6: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:4945:10: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:4946:9: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:4946:9: danger: dereference of NULL ‘htab’
# 4944|   	 and into the runtime process image.  */
# 4945|         if (ppc_elf_hash_entry (h)->has_sda_refs)
# 4946|-> 	srel = htab->relsbss;
# 4947|         else if ((h->root.u.def.section->flags & SEC_READONLY) != 0)
# 4948|   	srel = htab->elf.sreldynrelro;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def49]
gdb-16.3/bfd/elf32-ppc.c:5002:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elf32-ppc.c:4989:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4991:37: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4997:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4999:7: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4999:6: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:5001:7: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:5002:32: danger: dereference of NULL ‘htab’
# 5000|       {
# 5001|         sh->root.type = bfd_link_hash_defined;
# 5002|->       sh->root.u.def.section = htab->glink;
# 5003|         sh->root.u.def.value = ent->glink_offset;
# 5004|         sh->ref_regular = 1;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def50]
gdb-16.3/bfd/elf32-ppc.c:5023:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elf32-ppc.c:5107:1: enter_function: entry to ‘allocate_dynrelocs’
gdb-16.3/bfd/elf32-ppc.c:5114:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:5117:10: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:5119:6: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:5128:12: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:5128:10: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:5131:47: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:5146:10: branch_false: following ‘false’ branch (when ‘need != 0’)...
gdb-16.3/bfd/elf32-ppc.c:5150:32: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:5150:32: call_function: calling ‘allocate_got’ from ‘allocate_dynrelocs’
# 5021|     unsigned int max_before_header;
# 5022|   
# 5023|->   if (htab->plt_type == PLT_VXWORKS)
# 5024|       {
# 5025|         where = htab->elf.sgot->size;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def51]
gdb-16.3/bfd/elf32-ppc.c:5125:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elf32-ppc.c:5114:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:5117:10: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:5119:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:5121:14: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:5119:7: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:5122:11: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:5120:11: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:5123:11: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:5120:11: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:5124:11: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:5120:11: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:5125:14: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:5125:14: danger: dereference of NULL ‘htab’
# 5123|   	  && eh->has_addr16_ha
# 5124|   	  && eh->has_addr16_lo
# 5125|-> 	  && htab->params->pic_fixup > 0))
# 5126|       {
# 5127|         /* Make sure this symbol is output as a dynamic symbol.  */

Error: GCC_ANALYZER_WARNING (CWE-476): [#def52]
gdb-16.3/bfd/elf32-ppc.c:5255:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elf32-ppc.c:5114:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:5117:10: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:5189:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:5197:12: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:5197:11: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:5245:12: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:5245:11: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:5251:15: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:5245:11: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:5253:16: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:5252:16: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:5254:16: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:5252:16: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:5255:19: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:5255:19: danger: dereference of NULL ‘htab’
# 5253|   	       && eh->has_addr16_ha
# 5254|   	       && eh->has_addr16_lo
# 5255|-> 	       && htab->params->pic_fixup > 0))
# 5256|   	{
# 5257|   	  /* Make sure this symbol is output as a dynamic symbol.  */

Error: GCC_ANALYZER_WARNING (CWE-476): [#def53]
gdb-16.3/bfd/elf32-ppc.c:5508:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elf32-ppc.c:5493:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:5496:7: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:5508:7: danger: dereference of NULL ‘htab’
# 5506|       }
# 5507|   
# 5508|->   if (htab->plt_type == PLT_OLD)
# 5509|       htab->got_header_size = 16;
# 5510|     else if (htab->plt_type == PLT_NEW)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def54]
gdb-16.3/bfd/elf32-ppc.c:6728:8: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
gdb-16.3/bfd/elf32-ppc.c:6724:3: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:6724:3: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:6728:8: danger: dereference of NULL ‘<unknown>’
# 6726|     /* Offset will always be a multiple of four, so use the bottom bit
# 6727|        as a "written" flag.  */
# 6728|->   if ((linker_section_ptr->offset & 1) == 0)
# 6729|       {
# 6730|         bfd_put_32 (lsect->section->owner,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def55]
gdb-16.3/bfd/elf32-ppc.c:6762:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elf32-ppc.c:6762:28: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)...
gdb-16.3/bfd/elf32-ppc.c:6762:28: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:6762:28: danger: dereference of NULL ‘htab’
# 6760|     bfd *output_bfd = info->output_bfd;
# 6761|     bfd_vma plt;
# 6762|->   unsigned char *end = p + GLINK_ENTRY_SIZE (htab, h);
# 6763|   
# 6764|     if (h != NULL

Error: GCC_ANALYZER_WARNING (CWE-476): [#def56]
gdb-16.3/bfd/elf32-ppc.c:9183:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elf32-ppc.c:7022:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:7043:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:7046:21: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:9147:6: branch_false: following ‘false’ branch (when ‘rel == wrel’)...
gdb-16.3/bfd/elf32-ppc.c:9173:7: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:9183:7: danger: dereference of NULL ‘htab’
# 9181|       }
# 9182|   
# 9183|->   if (htab->params->ppc476_workaround
# 9184|         && input_section->sec_info_type == SEC_INFO_TYPE_TARGET
# 9185|         && (!bfd_link_relocatable (info)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def57]
gdb-16.3/bfd/elf32-ppc.c:9192:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘relax_info’
gdb-16.3/bfd/elf32-ppc.c:6990:1: enter_function: entry to ‘ppc_elf_relocate_section’
gdb-16.3/bfd/elf32-ppc.c:7022:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:7034:10: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:7034:10: call_function: inlined call to ‘elf_hash_table_id’ from ‘ppc_elf_relocate_section’
gdb-16.3/bfd/elf32-ppc.c:7034:10: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:7035:23: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:7043:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:7046:21: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:7047:10: branch_true: following ‘true’ branch (when ‘rel < relend’)...
gdb-16.3/bfd/elf32-ppc.c:7047:10: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:7075:10: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:7077:28: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:7095:10: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:7114:14: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:7115:19: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:7114:15: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:7116:13: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:7047:10: branch_false: following ‘false’ branch (when ‘rel >= relend’)...
gdb-16.3/bfd/elf32-ppc.c:9147:6: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:9147:6: branch_true: following ‘true’ branch (when ‘rel != wrel’)...
gdb-16.3/bfd/elf32-ppc.c:9150:28: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:9154:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:9164:17: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:9183:6: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:9184:10: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:9183:7: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:9185:11: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:9192:11: danger: dereference of NULL ‘relax_info’
# 9190|         bfd_vma pagesize = (bfd_vma) 1 << htab->params->pagesize_p2;
# 9191|   
# 9192|->       if (relax_info->workaround_size != 0)
# 9193|   	{
# 9194|   	  bfd_byte *p;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def58]
gdb-16.3/bfd/elf32-ppc.c:9492:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elf32-ppc.c:9471:1: enter_function: entry to ‘write_global_sym_plt’
gdb-16.3/bfd/elf32-ppc.c:9479:28: branch_true: following ‘true’ branch (when ‘ent’ is non-NULL)...
gdb-16.3/bfd/elf32-ppc.c:9480:9: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:9480:8: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:9482:21: call_function: inlined call to ‘use_local_plt’ from ‘write_global_sym_plt’
gdb-16.3/bfd/elf32-ppc.c:9484:12: branch_false: following ‘false’ branch (when ‘doneone == 0’)...
gdb-16.3/bfd/elf32-ppc.c:9489:23: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:9492:17: danger: dereference of NULL ‘htab’
# 9490|   	    asection *relplt = htab->elf.srelplt;
# 9491|   
# 9492|-> 	    if (htab->plt_type == PLT_NEW || !dyn)
# 9493|   	      reloc_index = ent->plt.offset / 4;
# 9494|   	    else

Error: GCC_ANALYZER_WARNING (CWE-476): [#def59]
gdb-16.3/bfd/elf32-ppc.c:9888:39: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elf32-ppc.c:9852:7: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:9854:30: branch_true: following ‘true’ branch (when ‘ent’ is non-NULL)...
gdb-16.3/bfd/elf32-ppc.c:9855:11: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:9855:10: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:9857:14: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:9857:14: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:9888:39: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:9888:39: danger: dereference of NULL ‘htab’
# 9886|   	      sym->st_shndx
# 9887|   		= (_bfd_elf_section_from_bfd_section
# 9888|-> 		   (info->output_bfd, htab->glink->output_section));
# 9889|   	      sym->st_value = (ent->glink_offset
# 9890|   			       + htab->glink->output_offset

Error: GCC_ANALYZER_WARNING (CWE-476): [#def60]
gdb-16.3/bfd/elf32-ppc.c:9910:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elf32-ppc.c:9896:6: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:9907:7: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:9909:10: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:9910:9: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:9910:9: danger: dereference of NULL ‘htab’
# 9908|   
# 9909|         if (ppc_elf_hash_entry (h)->has_sda_refs)
# 9910|-> 	s = htab->relsbss;
# 9911|         else if (h->root.u.def.section == htab->elf.sdynrelro)
# 9912|   	s = htab->elf.sreldynrelro;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def61]
gdb-16.3/bfd/elf32-ppc.c:10046:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elf32-ppc.c:10037:6: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:10038:10: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:10037:7: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:10040:11: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:10046:15: danger: dereference of NULL ‘htab’
#10044|   
#10045|   	  p += htab->elf.hgot->root.u.def.value;
#10046|-> 	  if (htab->plt_type == PLT_OLD)
#10047|   	    {
#10048|   	      /* Add a blrl instruction at _GLOBAL_OFFSET_TABLE_-4

Error: GCC_ANALYZER_WARNING (CWE-476): [#def62]
gdb-16.3/bfd/elf32-ppc.c:10116:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elf32-ppc.c:10079:6: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:10080:10: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:10079:7: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:10081:10: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:10079:7: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:10082:10: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:10079:7: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:10086:35: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:10111:10: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:10116:17: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:10116:17: danger: dereference of NULL ‘htab’
#10114|   	  bfd_byte *loc;
#10115|   
#10116|-> 	  loc = htab->srelplt2->contents;
#10117|   
#10118|   	  /* Output the @ha relocation for the first instruction.  */

Error: GCC_ANALYZER_WARNING (CWE-476): [#def63]
gdb-16.3/bfd/elf32-ppc.c:10161:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
#10159|       }
#10160|   
#10161|->   if (htab->glink != NULL
#10162|         && htab->glink->contents != NULL
#10163|         && htab->elf.dynamic_sections_created)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def64]
gdb-16.3/bfd/elf32-s390.c:1913:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elf32-s390.c:1788:6: branch_false: following ‘false’ branch (when ‘dynobj’ is non-NULL)...
gdb-16.3/bfd/elf32-s390.c:1791:7: branch_false: ...to here
gdb-16.3/bfd/elf32-s390.c:1901:30: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
gdb-16.3/bfd/elf32-s390.c:1903:12: branch_true: ...to here
gdb-16.3/bfd/elf32-s390.c:1906:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-s390.c:1907:19: branch_false: ...to here
gdb-16.3/bfd/elf32-s390.c:1906:11: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-s390.c:1908:19: branch_false: ...to here
gdb-16.3/bfd/elf32-s390.c:1906:11: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-s390.c:1909:19: branch_false: ...to here
gdb-16.3/bfd/elf32-s390.c:1906:11: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-s390.c:1910:19: branch_false: ...to here
gdb-16.3/bfd/elf32-s390.c:1906:11: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-s390.c:1911:19: branch_false: ...to here
gdb-16.3/bfd/elf32-s390.c:1906:11: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-s390.c:1912:19: branch_false: ...to here
gdb-16.3/bfd/elf32-s390.c:1906:11: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-s390.c:1913:19: branch_false: ...to here
gdb-16.3/bfd/elf32-s390.c:1913:19: danger: dereference of NULL ‘htab’
# 1911|   	  || s == htab->elf.iplt
# 1912|   	  || s == htab->elf.igotplt
# 1913|-> 	  || s == htab->irelifunc)
# 1914|   	{
# 1915|   	  /* Strip this section if we don't need it; see the

Error: GCC_ANALYZER_WARNING (CWE-476): [#def65]
gdb-16.3/bfd/elf32-s390.c:3115:55: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sym’
gdb-16.3/bfd/elf32-s390.c:2032:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-s390.c:2045:10: branch_true: following ‘true’ branch (when ‘rel < relend’)...
gdb-16.3/bfd/elf32-s390.c:2058:17: branch_true: ...to here
gdb-16.3/bfd/elf32-s390.c:2062:10: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-s390.c:2062:10: branch_true: ...to here
gdb-16.3/bfd/elf32-s390.c:2045:10: branch_true: following ‘true’ branch (when ‘rel < relend’)...
gdb-16.3/bfd/elf32-s390.c:2058:17: branch_true: ...to here
gdb-16.3/bfd/elf32-s390.c:2045:10: branch_true: following ‘true’ branch (when ‘rel < relend’)...
gdb-16.3/bfd/elf32-s390.c:2058:17: branch_true: ...to here
gdb-16.3/bfd/elf32-s390.c:2045:10: branch_true: following ‘true’ branch (when ‘rel < relend’)...
gdb-16.3/bfd/elf32-s390.c:2058:17: branch_true: ...to here
gdb-16.3/bfd/elf32-s390.c:2065:10: branch_false: following ‘false’ branch (when ‘r_type <= 251’)...
gdb-16.3/bfd/elf32-s390.c:2071:31: branch_false: ...to here
gdb-16.3/bfd/elf32-s390.c:2078:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-s390.c:2138:11: branch_false: ...to here
gdb-16.3/bfd/elf32-s390.c:2138:11: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-s390.c:2144:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-s390.c:2148:11: branch_false: ...to here
gdb-16.3/bfd/elf32-s390.c:2148:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-s390.c:2151:26: branch_false: ...to here
gdb-16.3/bfd/elf32-s390.c:3065:10: branch_false: following ‘false’ branch (when ‘unresolved_reloc == 0’)...
gdb-16.3/bfd/elf32-s390.c:3080:5: branch_false: ...to here
gdb-16.3/bfd/elf32-s390.c:3085:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-s390.c:3089:11: branch_false: ...to here
gdb-16.3/bfd/elf32-s390.c:3105:10: branch_true: following ‘true’ branch (when ‘r != 2’)...
gdb-16.3/bfd/elf32-s390.c:3109:14: branch_true: ...to here
gdb-16.3/bfd/elf32-s390.c:3109:14: branch_false: following ‘false’ branch (when ‘h’ is NULL)...
gdb-16.3/bfd/elf32-s390.c:3115:55: branch_false: ...to here
gdb-16.3/bfd/elf32-s390.c:3115:55: danger: dereference of NULL ‘sym’
# 3113|   	      name = bfd_elf_string_from_elf_section (input_bfd,
# 3114|   						      symtab_hdr->sh_link,
# 3115|-> 						      sym->st_name);
# 3116|   	      if (name == NULL)
# 3117|   		return false;

Error: CPPCHECK_WARNING (CWE-457): [#def66]
gdb-16.3/bfd/elf64-ppc.c:7305: error[uninitvar]: Uninitialized variable: *pp
# 7303|   	return true;
# 7304|   
# 7305|->       while ((p = *pp) != NULL)
# 7306|   	{
# 7307|   	  if (p->sec == sec)

Error: CPPCHECK_WARNING (CWE-457): [#def67]
gdb-16.3/bfd/elf64-ppc.c:7340: error[uninitvar]: Uninitialized variable: *pp
# 7338|   
# 7339|         is_ifunc = ELF_ST_TYPE (sym->st_info) == STT_GNU_IFUNC;
# 7340|->       while ((p = *pp) != NULL)
# 7341|   	{
# 7342|   	  if (p->sec == sec && p->ifunc == is_ifunc)

Error: COMPILER_WARNING: [#def68]
gdb-16.3/bfd/elf64-ppc.c: scope_hint: In function ‘ppc64_elf_size_stubs’
gdb-16.3/bfd/elf64-ppc.c:13811:20: warning[-Wunused-but-set-variable=]: variable ‘bfd_indx’ set but not used
#13811 |       unsigned int bfd_indx;
#      |                    ^~~~~~~~
#13809|       {
#13810|         bfd *input_bfd;
#13811|->       unsigned int bfd_indx;
#13812|         struct map_stub *group;
#13813|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def69]
gdb-16.3/bfd/elf64-s390.c:3190:55: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sym’
gdb-16.3/bfd/elf64-s390.c:1985:1: enter_function: entry to ‘elf_s390_relocate_section’
gdb-16.3/bfd/elf64-s390.c:2001:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-s390.c:2007:10: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf64-s390.c:2007:10: call_function: inlined call to ‘elf_hash_table_id’ from ‘elf_s390_relocate_section’
gdb-16.3/bfd/elf64-s390.c:2007:10: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf64-s390.c:2012:3: branch_true: ...to here
gdb-16.3/bfd/elf64-s390.c:2017:10: branch_true: following ‘true’ branch (when ‘rel < relend’)...
gdb-16.3/bfd/elf64-s390.c:2032:16: branch_true: ...to here
gdb-16.3/bfd/elf64-s390.c:2017:10: branch_true: following ‘true’ branch (when ‘rel < relend’)...
gdb-16.3/bfd/elf64-s390.c:2032:16: branch_true: ...to here
gdb-16.3/bfd/elf64-s390.c:2017:10: branch_true: following ‘true’ branch (when ‘rel < relend’)...
gdb-16.3/bfd/elf64-s390.c:2032:16: branch_true: ...to here
gdb-16.3/bfd/elf64-s390.c:2017:10: branch_true: following ‘true’ branch (when ‘rel < relend’)...
gdb-16.3/bfd/elf64-s390.c:2032:16: branch_true: ...to here
gdb-16.3/bfd/elf64-s390.c:2036:10: branch_false: following ‘false’ branch (when ‘r_type <= 251’)...
gdb-16.3/bfd/elf64-s390.c:2042:31: branch_false: ...to here
gdb-16.3/bfd/elf64-s390.c:2049:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-s390.c:2113:11: branch_false: ...to here
gdb-16.3/bfd/elf64-s390.c:2113:11: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-s390.c:2119:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-s390.c:2123:11: branch_false: ...to here
gdb-16.3/bfd/elf64-s390.c:2123:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-s390.c:2126:26: branch_false: ...to here
gdb-16.3/bfd/elf64-s390.c:3122:10: branch_false: following ‘false’ branch (when ‘unresolved_reloc == 0’)...
gdb-16.3/bfd/elf64-s390.c:3137:5: branch_false: ...to here
gdb-16.3/bfd/elf64-s390.c:3142:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-s390.c:3148:11: branch_false: ...to here
gdb-16.3/bfd/elf64-s390.c:3180:10: branch_true: following ‘true’ branch (when ‘r != 2’)...
gdb-16.3/bfd/elf64-s390.c:3184:14: branch_true: ...to here
gdb-16.3/bfd/elf64-s390.c:3184:14: branch_false: following ‘false’ branch (when ‘h’ is NULL)...
gdb-16.3/bfd/elf64-s390.c:3190:55: branch_false: ...to here
gdb-16.3/bfd/elf64-s390.c:3190:55: danger: dereference of NULL ‘sym’
# 3188|   	      name = bfd_elf_string_from_elf_section (input_bfd,
# 3189|   						      symtab_hdr->sh_link,
# 3190|-> 						      sym->st_name);
# 3191|   	      if (name == NULL)
# 3192|   		return false;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def70]
gdb-16.3/bfd/elf64-x86-64.c:1334:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elf64-x86-64.c:2735:1: enter_function: entry to ‘elf_x86_64_relocate_section’
gdb-16.3/bfd/elf64-x86-64.c:2759:10: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf64-x86-64.c:2759:10: call_function: inlined call to ‘elf_hash_table_id’ from ‘elf_x86_64_relocate_section’
gdb-16.3/bfd/elf64-x86-64.c:2759:10: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf64-x86-64.c:2763:8: call_function: inlined call to ‘bfd_get_flavour’ from ‘elf_x86_64_relocate_section’
gdb-16.3/bfd/elf64-x86-64.c:2763:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-x86-64.c:2780:10: branch_true: following ‘true’ branch (when ‘relend > rel’)...
gdb-16.3/bfd/elf64-x86-64.c:2802:16: branch_true: ...to here
gdb-16.3/bfd/elf64-x86-64.c:2820:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-x86-64.c:2825:7: branch_false: ...to here
gdb-16.3/bfd/elf64-x86-64.c:2827:10: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf64-x86-64.c:2829:28: branch_true: ...to here
gdb-16.3/bfd/elf64-x86-64.c:2837:14: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf64-x86-64.c:2838:18: branch_true: ...to here
gdb-16.3/bfd/elf64-x86-64.c:2837:15: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf64-x86-64.c:2840:19: branch_true: ...to here
gdb-16.3/bfd/elf64-x86-64.c:2842:18: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-x86-64.c:2846:37: branch_false: ...to here
gdb-16.3/bfd/elf64-x86-64.c:2880:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-x86-64.c:2887:11: branch_false: ...to here
gdb-16.3/bfd/elf64-x86-64.c:2909:10: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)...
gdb-16.3/bfd/elf64-x86-64.c:2910:14: branch_true: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4385:17: call_function: calling ‘elf_x86_64_tls_transition’ from ‘elf_x86_64_relocate_section’
# 1332|   	}
# 1333|   
# 1334|->       r_symndx = htab->r_sym (rel[1].r_info);
# 1335|         if (r_symndx < symtab_hdr->sh_info)
# 1336|   	return elf_x86_tls_error_yes;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def71]
gdb-16.3/bfd/elf64-x86-64.c:4664:46: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elf64-x86-64.c:4664:20: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4664:46: branch_true: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4664:46: danger: dereference of NULL ‘htab’
# 4662|   
# 4663|     /* Use the second PLT section only if there is .plt section.  */
# 4664|->   use_plt_second = htab->elf.splt != NULL && htab->plt_second != NULL;
# 4665|   
# 4666|     eh = (struct elf_x86_link_hash_entry *) h;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def72]
gdb-16.3/bfd/elf64-x86-64.c:4772:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elf64-x86-64.c:4664:20: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4664:20: branch_false: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4667:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4673:21: branch_false: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4675:6: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4687:11: branch_true: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4687:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4695:11: branch_false: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4700:7: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4713:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4721:40: branch_false: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4728:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4740:11: branch_false: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4769:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4771:15: branch_false: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4771:14: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4772:13: branch_true: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4772:13: danger: dereference of NULL ‘htab’
# 4770|   	{
# 4771|   	  if (htab->plt.has_plt0)
# 4772|-> 	    bfd_put_64 (output_bfd, (plt->output_section->vma
# 4773|   				     + plt->output_offset
# 4774|   				     + h->plt.offset

Error: GCC_ANALYZER_WARNING (CWE-476): [#def73]
gdb-16.3/bfd/elf64-x86-64.c:4790:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elf64-x86-64.c:4664:20: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4664:20: branch_false: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4667:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4673:21: branch_false: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4675:6: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4687:11: branch_true: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4687:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4695:11: branch_false: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4700:7: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4713:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4721:40: branch_false: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4728:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4740:11: branch_false: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4769:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4771:15: branch_false: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4771:14: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4779:28: branch_false: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4790:29: danger: dereference of NULL ‘htab’
# 4788|   	      /* If an STT_GNU_IFUNC symbol is locally defined, generate
# 4789|   		 R_X86_64_IRELATIVE instead of R_X86_64_JUMP_SLOT.  */
# 4790|-> 	      rela.r_info = htab->r_info (0, R_X86_64_IRELATIVE);
# 4791|   	      rela.r_addend = (h->root.u.def.value
# 4792|   			       + h->root.u.def.section->output_section->vma

Error: GCC_ANALYZER_WARNING (CWE-476): [#def74]
gdb-16.3/bfd/elf64-x86-64.c:4804:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elf64-x86-64.c:4664:20: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4664:20: branch_false: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4667:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4673:21: branch_false: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4675:6: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4687:11: branch_true: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4687:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4695:11: branch_false: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4700:7: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4713:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4721:40: branch_false: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4728:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4740:11: branch_false: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4769:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4771:15: branch_false: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4771:14: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4779:28: branch_false: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4782:14: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4782:15: branch_false: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4804:29: danger: dereference of NULL ‘htab’
# 4802|   	  else
# 4803|   	    {
# 4804|-> 	      rela.r_info = htab->r_info (h->dynindx, R_X86_64_JUMP_SLOT);
# 4805|   	      if (htab->params->mark_plt)
# 4806|   		rela.r_addend = (resolved_plt->output_section->vma

Error: GCC_ANALYZER_WARNING (CWE-476): [#def75]
gdb-16.3/bfd/elf64-x86-64.c:4851:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elf64-x86-64.c:4664:20: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4664:20: branch_false: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4667:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4673:21: branch_false: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4675:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4843:12: branch_false: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4843:11: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4851:7: branch_true: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4851:7: danger: dereference of NULL ‘htab’
# 4849|   
# 4850|         /* Set the entry in the GOT procedure linkage table.  */
# 4851|->       plt = htab->plt_got;
# 4852|         got = htab->elf.sgot;
# 4853|         got_offset = h->got.offset;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def76]
gdb-16.3/bfd/elf64-x86-64.c:4956:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elf64-x86-64.c:4664:20: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4664:20: branch_false: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4667:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4673:21: branch_false: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4843:11: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4892:6: branch_false: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4914:6: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4915:12: branch_true: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4914:7: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4914:7: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4914:7: branch_true: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4914:7: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4920:17: branch_false: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4926:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4938:10: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4939:14: branch_true: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4938:11: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4941:15: branch_true: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4941:14: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4944:19: branch_true: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4944:18: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4948:19: branch_true: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4950:18: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4952:19: branch_true: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4956:33: danger: dereference of NULL ‘htab’
# 4954|   					  h->root.u.def.section->owner);
# 4955|   
# 4956|-> 		  rela.r_info = htab->r_info (0,
# 4957|   					      R_X86_64_IRELATIVE);
# 4958|   		  rela.r_addend = (h->root.u.def.value

Error: GCC_ANALYZER_WARNING (CWE-476): [#def77]
gdb-16.3/bfd/elf64-x86-64.c:4982:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elf64-x86-64.c:4664:20: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4664:20: branch_false: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4667:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4673:21: branch_false: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4843:11: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4892:6: branch_false: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4914:6: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4915:12: branch_true: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4914:7: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4914:7: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4914:7: branch_true: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4914:7: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4920:17: branch_false: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4926:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4938:10: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4939:14: branch_true: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4938:11: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4941:15: branch_true: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4941:14: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4966:20: branch_false: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4966:19: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4976:19: branch_false: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4976:18: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4982:19: branch_false: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4982:19: danger: dereference of NULL ‘htab’
# 4980|   		 contains the real function addres if we need pointer
# 4981|   		 equality.  We load the GOT entry with the PLT entry.  */
# 4982|-> 	      if (htab->plt_second != NULL)
# 4983|   		{
# 4984|   		  plt = htab->plt_second;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def78]
gdb-16.3/bfd/elf64-x86-64.c:5009:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elf64-x86-64.c:4664:20: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4664:20: branch_false: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4667:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4673:21: branch_false: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4843:11: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4892:6: branch_false: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4914:6: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4915:12: branch_true: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4914:7: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4914:7: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4914:7: branch_true: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4914:7: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4920:17: branch_false: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4926:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4999:15: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf64-x86-64.c:5000:19: branch_true: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4999:16: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf64-x86-64.c:5002:16: branch_true: ...to here
gdb-16.3/bfd/elf64-x86-64.c:5005:14: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-x86-64.c:5009:29: branch_false: ...to here
gdb-16.3/bfd/elf64-x86-64.c:5009:29: danger: dereference of NULL ‘htab’
# 5007|   	  else
# 5008|   	    {
# 5009|-> 	      rela.r_info = htab->r_info (0, R_X86_64_RELATIVE);
# 5010|   	      rela.r_addend = (h->root.u.def.value
# 5011|   			       + h->root.u.def.section->output_section->vma

Error: GCC_ANALYZER_WARNING (CWE-476): [#def79]
gdb-16.3/bfd/elf64-x86-64.c:5022:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elf64-x86-64.c:4664:20: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4664:20: branch_false: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4667:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4673:21: branch_false: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4843:11: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4892:6: branch_false: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4914:6: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4915:12: branch_true: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4914:7: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4914:7: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4914:7: branch_true: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4914:7: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4920:17: branch_false: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4926:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4966:19: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4969:15: branch_true: ...to here
gdb-16.3/bfd/elf64-x86-64.c:5022:25: danger: dereference of NULL ‘htab’
# 5020|   	  bfd_put_64 (output_bfd, (bfd_vma) 0,
# 5021|   		      htab->elf.sgot->contents + h->got.offset);
# 5022|-> 	  rela.r_info = htab->r_info (h->dynindx, R_X86_64_GLOB_DAT);
# 5023|   	  rela.r_addend = 0;
# 5024|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def80]
gdb-16.3/bfd/elf64-x86-64.c:5048:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elf64-x86-64.c:4664:20: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4664:20: branch_false: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4667:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4673:21: branch_false: ...to here
gdb-16.3/bfd/elf64-x86-64.c:4843:11: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-x86-64.c:4892:6: branch_false: ...to here
gdb-16.3/bfd/elf64-x86-64.c:5037:6: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf64-x86-64.c:5043:7: branch_true: ...to here
gdb-16.3/bfd/elf64-x86-64.c:5043:7: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf64-x86-64.c:5048:21: danger: dereference of NULL ‘htab’
# 5046|   		       + h->root.u.def.section->output_section->vma
# 5047|   		       + h->root.u.def.section->output_offset);
# 5048|->       rela.r_info = htab->r_info (h->dynindx, R_X86_64_COPY);
# 5049|         rela.r_addend = 0;
# 5050|         if (h->root.u.def.section == htab->elf.sdynrelro)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def81]
gdb-16.3/bfd/elf64-x86-64.c:5112:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elf64-x86-64.c:5107:6: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf64-x86-64.c:5108:10: branch_true: ...to here
gdb-16.3/bfd/elf64-x86-64.c:5107:7: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf64-x86-64.c:5112:32: branch_true: ...to here
gdb-16.3/bfd/elf64-x86-64.c:5112:32: danger: dereference of NULL ‘htab’
# 5110|         /* Check relocation against STT_GNU_IFUNC symbol if there are
# 5111|   	 dynamic symbols.  */
# 5112|->       unsigned long r_symndx = htab->r_sym (rela->r_info);
# 5113|         if (r_symndx != STN_UNDEF)
# 5114|   	{

Error: COMPILER_WARNING (CWE-704): [#def82]
gdb-16.3/bfd/elflink.c: scope_hint: In function ‘bfd_elf_link_record_dynamic_symbol’
gdb-16.3/bfd/elflink.c:605:9: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  605 |       p = strchr (name, ELF_VER_CHR);
#      |         ^
#  603|   	 table.  */
#  604|         name = h->root.root.string;
#  605|->       p = strchr (name, ELF_VER_CHR);
#  606|         if (p != NULL)
#  607|   	{

Error: COMPILER_WARNING (CWE-704): [#def83]
gdb-16.3/bfd/elflink.c: scope_hint: In function ‘bfd_elf_record_link_assignment’
gdb-16.3/bfd/elflink.c:685:23: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
#  685 |       char *version = strrchr (name, ELF_VER_CHR);
#      |                       ^~~~~~~
#  683|       {
#  684|         /* Set versioned if symbol version is unknown.  */
#  685|->       char *version = strrchr (name, ELF_VER_CHR);
#  686|         if (version)
#  687|   	{

Error: COMPILER_WARNING (CWE-704): [#def84]
gdb-16.3/bfd/elflink.c: scope_hint: In function ‘_bfd_elf_merge_symbol’
gdb-16.3/bfd/elflink.c:1144:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 1144 |       new_version = strrchr (name, ELF_VER_CHR);
#      |                   ^
# 1142|       {
# 1143|         /* Symbol version is unknown or versioned.  */
# 1144|->       new_version = strrchr (name, ELF_VER_CHR);
# 1145|         if (new_version)
# 1146|   	{

Error: COMPILER_WARNING (CWE-704): [#def85]
gdb-16.3/bfd/elflink.c:1194:29: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 1194 |                 old_version = strrchr (h->root.root.string,
#      |                             ^
# 1192|   
# 1193|   	      if (h->versioned >= versioned)
# 1194|-> 		old_version = strrchr (h->root.root.string,
# 1195|   				       ELF_VER_CHR) + 1;
# 1196|   	      else

Error: COMPILER_WARNING (CWE-704): [#def86]
gdb-16.3/bfd/elflink.c: scope_hint: In function ‘_bfd_elf_add_default_symbol’
gdb-16.3/bfd/elflink.c:1929:5: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 1929 |   p = strchr (name, ELF_VER_CHR);
#      |     ^
# 1927|        decorated name.  This will cause external references which do not
# 1928|        specify a version to be bound to this version of the symbol.  */
# 1929|->   p = strchr (name, ELF_VER_CHR);
# 1930|     if (h->versioned == unknown)
# 1931|       {

Error: COMPILER_WARNING (CWE-704): [#def87]
gdb-16.3/bfd/elflink.c: scope_hint: In function ‘_bfd_elf_link_assign_sym_version’
gdb-16.3/bfd/elflink.c:2614:5: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 2614 |   p = strchr (h->root.root.string, ELF_VER_CHR);
#      |     ^
# 2612|   
# 2613|     hide = false;
# 2614|->   p = strchr (h->root.root.string, ELF_VER_CHR);
# 2615|     if (p != NULL && h->verinfo.vertree == NULL)
# 2616|       {

Error: COMPILER_WARNING (CWE-704): [#def88]
gdb-16.3/bfd/elflink.c: scope_hint: In function ‘elf_link_add_object_symbols’
gdb-16.3/bfd/elflink.c:5597:25: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
# 5597 |               char *p = strchr (name, ELF_VER_CHR);
#      |                         ^~~~~~
# 5595|   	      && (abfd->flags & BFD_PLUGIN) == 0)
# 5596|   	    {
# 5597|-> 	      char *p = strchr (name, ELF_VER_CHR);
# 5598|   	      if (p != NULL && p[1] != ELF_VER_CHR)
# 5599|   		{

Error: COMPILER_WARNING (CWE-704): [#def89]
gdb-16.3/bfd/elflink.c:5842:13: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 5842 |           p = strchr (h->root.root.string, ELF_VER_CHR);
#      |             ^
# 5840|   	  size_t amt;
# 5841|   
# 5842|-> 	  p = strchr (h->root.root.string, ELF_VER_CHR);
# 5843|   	  if (p == NULL
# 5844|   	      || (h->root.type != bfd_link_hash_defined

Error: COMPILER_WARNING (CWE-704): [#def90]
gdb-16.3/bfd/elflink.c: scope_hint: In function ‘_bfd_elf_archive_symbol_lookup’
gdb-16.3/bfd/elflink.c:6131:5: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 6131 |   p = strchr (name, ELF_VER_CHR);
#      |     ^
# 6129|        version will be matched by the default symbol in the archive.  */
# 6130|   
# 6131|->   p = strchr (name, ELF_VER_CHR);
# 6132|     if (p == NULL || p[1] != ELF_VER_CHR)
# 6133|       {

Error: COMPILER_WARNING (CWE-704): [#def91]
gdb-16.3/bfd/elflink.c: scope_hint: In function ‘elf_collect_hash_codes’
gdb-16.3/bfd/elflink.c:6396:17: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
# 6396 |       char *p = strchr (name, ELF_VER_CHR);
#      |                 ^~~~~~
# 6394|     if (h->versioned >= versioned)
# 6395|       {
# 6396|->       char *p = strchr (name, ELF_VER_CHR);
# 6397|         if (p != NULL)
# 6398|   	{

Error: COMPILER_WARNING (CWE-704): [#def92]
gdb-16.3/bfd/elflink.c: scope_hint: In function ‘elf_collect_gnu_hash_codes’
gdb-16.3/bfd/elflink.c:6469:17: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
# 6469 |       char *p = strchr (name, ELF_VER_CHR);
#      |                 ^~~~~~
# 6467|     if (h->versioned >= versioned)
# 6468|       {
# 6469|->       char *p = strchr (name, ELF_VER_CHR);
# 6470|         if (p != NULL)
# 6471|   	{

Error: COMPILER_WARNING (CWE-704): [#def93]
gdb-16.3/bfd/elflink.c: scope_hint: In function ‘elf_link_output_symstrtab’
gdb-16.3/bfd/elflink.c:10295:31: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
#10295 |               char *version = strrchr (name, ELF_VER_CHR);
#      |                               ^~~~~~~
#10293|   	      /* Keep only one '@' for versioned symbols defined in
#10294|   	         shared objects.  */
#10295|-> 	      char *version = strrchr (name, ELF_VER_CHR);
#10296|   	      char *base_end = strchr (name, ELF_VER_CHR);
#10297|   	      if (version != base_end)

Error: COMPILER_WARNING (CWE-704): [#def94]
gdb-16.3/bfd/elflink.c:10296:32: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
#10296 |               char *base_end = strchr (name, ELF_VER_CHR);
#      |                                ^~~~~~
#10294|   	         shared objects.  */
#10295|   	      char *version = strrchr (name, ELF_VER_CHR);
#10296|-> 	      char *base_end = strchr (name, ELF_VER_CHR);
#10297|   	      if (version != base_end)
#10298|   		{

Error: COMPILER_WARNING (CWE-704): [#def95]
gdb-16.3/bfd/elflink.c: scope_hint: In function ‘elf_link_output_extsym’
gdb-16.3/bfd/elflink.c:11039:21: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
#11039 |           char *p = strrchr (h->root.root.string, ELF_VER_CHR);
#      |                     ^~~~~~~
#11037|   	      || !h->def_regular))
#11038|   	{
#11039|-> 	  char *p = strrchr (h->root.root.string, ELF_VER_CHR);
#11040|   
#11041|   	  if (p && p [1] != '\0')

Error: GCC_ANALYZER_WARNING (CWE-469): [#def96]
gdb-16.3/bfd/elfnn-aarch64.c:2178:13: warning[-Wanalyzer-undefined-behavior-ptrdiff]: undefined behavior when subtracting pointers
gdb-16.3/bfd/elfnn-aarch64.c:6922:1: enter_function: entry to ‘elf64_aarch64_relocate_section’
gdb-16.3/bfd/elfnn-aarch64.c:6947:10: branch_true: following ‘true’ branch (when ‘rel < relend’)...
gdb-16.3/bfd/elfnn-aarch64.c:6961:12: branch_true: ...to here
gdb-16.3/bfd/elfnn-aarch64.c:6967:25: call_function: inlined call to ‘elf64_aarch64_howto_from_type’ from ‘elf64_aarch64_relocate_section’
gdb-16.3/bfd/elfnn-aarch64.c:6970:10: branch_true: ...to here
gdb-16.3/bfd/elfnn-aarch64.c:6970:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elfnn-aarch64.c:6973:20: call_function: inlined call to ‘elf64_aarch64_bfd_reloc_from_howto’ from ‘elf64_aarch64_relocate_section’
# 2176|       = (int) ARRAY_SIZE (elfNN_aarch64_howto_table);
# 2177|     const ptrdiff_t offset
# 2178|->     = howto - elfNN_aarch64_howto_table;
# 2179|   
# 2180|     if (offset > 0 && offset < size - 1)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def97]
gdb-16.3/bfd/elfnn-aarch64.c:7040:52: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sym’
gdb-16.3/bfd/elfnn-aarch64.c:6922:1: enter_function: entry to ‘elf32_aarch64_relocate_section’
gdb-16.3/bfd/elfnn-aarch64.c:6947:10: branch_true: following ‘true’ branch (when ‘rel < relend’)...
gdb-16.3/bfd/elfnn-aarch64.c:6961:12: branch_true: ...to here
gdb-16.3/bfd/elfnn-aarch64.c:6967:25: call_function: calling ‘elf32_aarch64_howto_from_type’ from ‘elf32_aarch64_relocate_section’
gdb-16.3/bfd/elfnn-aarch64.c:6967:25: return_function: returning to ‘elf32_aarch64_relocate_section’ from ‘elf32_aarch64_howto_from_type’
gdb-16.3/bfd/elfnn-aarch64.c:6970:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elfnn-aarch64.c:6973:20: call_function: inlined call to ‘elf32_aarch64_bfd_reloc_from_howto’ from ‘elf32_aarch64_relocate_section’
gdb-16.3/bfd/elfnn-aarch64.c:6977:7: branch_false: ...to here
gdb-16.3/bfd/elfnn-aarch64.c:6979:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elfnn-aarch64.c:7020:11: branch_false: ...to here
gdb-16.3/bfd/elfnn-aarch64.c:7020:11: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elfnn-aarch64.c:7028:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elfnn-aarch64.c:7032:11: branch_false: ...to here
gdb-16.3/bfd/elfnn-aarch64.c:7032:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elfnn-aarch64.c:7035:10: branch_false: ...to here
gdb-16.3/bfd/elfnn-aarch64.c:7035:10: branch_false: following ‘false’ branch (when ‘h’ is NULL)...
gdb-16.3/bfd/elfnn-aarch64.c:7040:52: branch_false: ...to here
gdb-16.3/bfd/elfnn-aarch64.c:7040:52: danger: dereference of NULL ‘sym’
# 7038|   	{
# 7039|   	  name = (bfd_elf_string_from_elf_section
# 7040|-> 		  (input_bfd, symtab_hdr->sh_link, sym->st_name));
# 7041|   	  if (name == NULL || *name == '\0')
# 7042|   	    name = bfd_section_name (sec);

Error: COMPILER_WARNING: [#def98]
gdb-16.3/bfd/elfnn-aarch64.c: scope_hint: In function ‘elf64_aarch64_modify_headers’
gdb-16.3/bfd/elfnn-aarch64.c:8435:16: warning[-Wunused-but-set-variable=]: variable ‘segment_count’ set but not used
# 8435 |   unsigned int segment_count = 0;
#      |                ^~~~~~~~~~~~~
# 8433|   {
# 8434|     struct elf_segment_map *m;
# 8435|->   unsigned int segment_count = 0;
# 8436|     Elf_Internal_Phdr *p;
# 8437|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def99]
gdb-16.3/bfd/elfnn-aarch64.c:9976:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sym’
gdb-16.3/bfd/elfnn-aarch64.c:10104:1: enter_function: entry to ‘elf64_aarch64_finish_local_dynamic_symbol’
gdb-16.3/bfd/elfnn-aarch64.c:10111:10: call_function: calling ‘elf64_aarch64_finish_dynamic_symbol’ from ‘elf64_aarch64_finish_local_dynamic_symbol’
# 9974|   	  /* Mark the symbol as undefined, rather than as defined in
# 9975|   	     the .plt section.  */
# 9976|-> 	  sym->st_shndx = SHN_UNDEF;
# 9977|   	  /* If the symbol is weak we need to clear the value.
# 9978|   	     Otherwise, the PLT entry would provide a definition for

Error: GCC_ANALYZER_WARNING (CWE-476): [#def100]
gdb-16.3/bfd/elfnn-riscv.c:450:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elfnn-riscv.c:2223:1: enter_function: entry to ‘riscv_elf_relocate_section’
gdb-16.3/bfd/elfnn-riscv.c:2244:6: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elfnn-riscv.c:2247:21: branch_true: ...to here
gdb-16.3/bfd/elfnn-riscv.c:2248:22: branch_true: following ‘true’ branch (when ‘rel < relend’)...
gdb-16.3/bfd/elfnn-riscv.c:2259:20: branch_true: ...to here
gdb-16.3/bfd/elfnn-riscv.c:2274:10: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elfnn-riscv.c:2276:28: branch_true: ...to here
gdb-16.3/bfd/elfnn-riscv.c:2281:14: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elfnn-riscv.c:2282:18: branch_true: ...to here
gdb-16.3/bfd/elfnn-riscv.c:2281:15: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elfnn-riscv.c:2284:19: branch_true: ...to here
gdb-16.3/bfd/elfnn-riscv.c:2284:19: call_function: calling ‘riscv_elf_get_local_sym_hash’ from ‘riscv_elf_relocate_section’
#  448|     eh.elf.indx = sec->id;
#  449|     eh.elf.dynstr_index = ELFNN_R_SYM (rel->r_info);
#  450|->   slot = htab_find_slot_with_hash (htab->loc_hash_table, &eh, h,
#  451|   				   create ? INSERT : NO_INSERT);
#  452|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def101]
gdb-16.3/bfd/elfnn-riscv.c:1191:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elfnn-riscv.c:1111:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elfnn-riscv.c:1135:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elfnn-riscv.c:1151:7: branch_false: ...to here
gdb-16.3/bfd/elfnn-riscv.c:1151:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elfnn-riscv.c:1151:6: branch_false: ...to here
gdb-16.3/bfd/elfnn-riscv.c:1156:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elfnn-riscv.c:1160:7: branch_false: ...to here
gdb-16.3/bfd/elfnn-riscv.c:1160:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elfnn-riscv.c:1168:8: branch_false: ...to here
gdb-16.3/bfd/elfnn-riscv.c:1168:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elfnn-riscv.c:1189:7: branch_false: ...to here
gdb-16.3/bfd/elfnn-riscv.c:1189:6: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elfnn-riscv.c:1191:7: branch_true: ...to here
gdb-16.3/bfd/elfnn-riscv.c:1191:7: danger: dereference of NULL ‘htab’
# 1189|     if (eh->tls_type & ~GOT_NORMAL)
# 1190|       {
# 1191|->       s = htab->sdyntdata;
# 1192|         srel = htab->elf.srelbss;
# 1193|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def102]
gdb-16.3/bfd/elfnn-riscv.c:1290:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elfnn-riscv.c:1223:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elfnn-riscv.c:1227:10: branch_false: ...to here
gdb-16.3/bfd/elfnn-riscv.c:1245:11: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elfnn-riscv.c:1246:15: branch_true: ...to here
gdb-16.3/bfd/elfnn-riscv.c:1245:12: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elfnn-riscv.c:1250:11: branch_true: ...to here
gdb-16.3/bfd/elfnn-riscv.c:1289:14: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elfnn-riscv.c:1290:13: branch_true: ...to here
gdb-16.3/bfd/elfnn-riscv.c:1290:13: danger: dereference of NULL ‘htab’
# 1288|   	     variant_cc flag of riscv_elf_link_hash_table.  */
# 1289|   	  if (h->other & STO_RISCV_VARIANT_CC)
# 1290|-> 	    htab->variant_cc = 1;
# 1291|   	}
# 1292|         else

Error: GCC_ANALYZER_WARNING (CWE-476): [#def103]
gdb-16.3/bfd/elfnn-riscv.c:1621:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elfnn-riscv.c:1501:1: enter_function: entry to ‘riscv_elf_late_size_sections’
gdb-16.3/bfd/elfnn-riscv.c:1511:6: branch_false: following ‘false’ branch (when ‘dynobj’ is non-NULL)...
gdb-16.3/bfd/elfnn-riscv.c:1514:7: call_function: inlined call to ‘elf_hash_table’ from ‘riscv_elf_late_size_sections’
gdb-16.3/bfd/elfnn-riscv.c:1621:3: danger: dereference of NULL ‘htab’
# 1619|     /* Allocate .plt and .got entries and space dynamic relocs for
# 1620|        local ifunc symbols.  */
# 1621|->   htab_traverse (htab->loc_hash_table, allocate_local_ifunc_dynrelocs, info);
# 1622|   
# 1623|     /* Used to resolve the dynamic relocs overwite problems when

Error: GCC_ANALYZER_WARNING (CWE-476): [#def104]
gdb-16.3/bfd/elfnn-riscv.c:2440:44: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elfnn-riscv.c:2244:6: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elfnn-riscv.c:2247:21: branch_true: ...to here
gdb-16.3/bfd/elfnn-riscv.c:2248:22: branch_true: following ‘true’ branch (when ‘rel < relend’)...
gdb-16.3/bfd/elfnn-riscv.c:2259:20: branch_true: ...to here
gdb-16.3/bfd/elfnn-riscv.c:2274:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elfnn-riscv.c:2297:11: branch_false: ...to here
gdb-16.3/bfd/elfnn-riscv.c:2297:11: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elfnn-riscv.c:2313:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elfnn-riscv.c:2317:11: branch_false: ...to here
gdb-16.3/bfd/elfnn-riscv.c:2317:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elfnn-riscv.c:2322:10: branch_false: ...to here
gdb-16.3/bfd/elfnn-riscv.c:2322:10: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)...
gdb-16.3/bfd/elfnn-riscv.c:2323:14: branch_true: ...to here
gdb-16.3/bfd/elfnn-riscv.c:2322:11: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elfnn-riscv.c:2324:11: branch_true: ...to here
gdb-16.3/bfd/elfnn-riscv.c:2322:11: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elfnn-riscv.c:2328:16: branch_true: ...to here
gdb-16.3/bfd/elfnn-riscv.c:2328:14: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elfnn-riscv.c:2343:20: branch_false: ...to here
gdb-16.3/bfd/elfnn-riscv.c:2365:18: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elfnn-riscv.c:2383:22: branch_false: ...to here
gdb-16.3/bfd/elfnn-riscv.c:2383:21: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elfnn-riscv.c:2390:39: branch_true: ...to here
gdb-16.3/bfd/elfnn-riscv.c:2394:24: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elfnn-riscv.c:2398:40: branch_false: ...to here
gdb-16.3/bfd/elfnn-riscv.c:2426:24: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elfnn-riscv.c:2429:30: branch_false: ...to here
gdb-16.3/bfd/elfnn-riscv.c:2429:29: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elfnn-riscv.c:2439:33: branch_false: ...to here
gdb-16.3/bfd/elfnn-riscv.c:2440:44: danger: dereference of NULL ‘htab’
# 2438|   			const struct elf_backend_data *bed =
# 2439|   				get_elf_backend_data (output_bfd);
# 2440|-> 			bfd_vma iplt_idx = htab->last_iplt_index--;
# 2441|   			bfd_byte *loc = htab->elf.irelplt->contents
# 2442|   					+ iplt_idx * sizeof (ElfNN_External_Rela);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def105]
gdb-16.3/bfd/elfnn-riscv.c:2558:52: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sym’
gdb-16.3/bfd/elfnn-riscv.c:2223:1: enter_function: entry to ‘riscv_elf_relocate_section’
gdb-16.3/bfd/elfnn-riscv.c:2236:44: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elfnn-riscv.c:2236:44: call_function: inlined call to ‘elf_hash_table_id’ from ‘riscv_elf_relocate_section’
gdb-16.3/bfd/elfnn-riscv.c:2236:44: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elfnn-riscv.c:2237:36: branch_true: ...to here
gdb-16.3/bfd/elfnn-riscv.c:2244:6: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elfnn-riscv.c:2247:21: branch_true: ...to here
gdb-16.3/bfd/elfnn-riscv.c:2248:22: branch_true: following ‘true’ branch (when ‘rel < relend’)...
gdb-16.3/bfd/elfnn-riscv.c:2259:20: branch_true: ...to here
gdb-16.3/bfd/elfnn-riscv.c:2274:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elfnn-riscv.c:2297:11: branch_false: ...to here
gdb-16.3/bfd/elfnn-riscv.c:2297:11: branch_false: following ‘false’ branch (when ‘sym_hashes’ is non-NULL)...
gdb-16.3/bfd/elfnn-riscv.c:2297:11: branch_false: ...to here
gdb-16.3/bfd/elfnn-riscv.c:2297:11: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elfnn-riscv.c:2297:11: branch_true: ...to here
gdb-16.3/bfd/elfnn-riscv.c:2317:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elfnn-riscv.c:2322:10: branch_false: ...to here
gdb-16.3/bfd/elfnn-riscv.c:2322:10: branch_false: following ‘false’ branch (when ‘h’ is NULL)...
gdb-16.3/bfd/elfnn-riscv.c:2558:52: branch_false: ...to here
gdb-16.3/bfd/elfnn-riscv.c:2558:52: danger: dereference of NULL ‘sym’
# 2556|   	{
# 2557|   	  name = (bfd_elf_string_from_elf_section
# 2558|-> 		  (input_bfd, symtab_hdr->sh_link, sym->st_name));
# 2559|   	  if (name == NULL || *name == '\0')
# 2560|   	    name = bfd_section_name (sec);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def106]
gdb-16.3/bfd/elfnn-riscv.c:3475:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elfnn-riscv.c:3512:1: enter_function: entry to ‘riscv_elf_finish_local_dynamic_symbol’
gdb-16.3/bfd/elfnn-riscv.c:3517:10: call_function: calling ‘riscv_elf_finish_dynamic_symbol’ from ‘riscv_elf_finish_local_dynamic_symbol’
# 3473|   	     One solution is that add these dynamic relocs (GOT IFUNC)
# 3474|   	     from the last of .rela.iplt section.  */
# 3475|-> 	  bfd_vma iplt_idx = htab->last_iplt_index--;
# 3476|   	  bfd_byte *loc = srela->contents
# 3477|   			  + iplt_idx * sizeof (ElfNN_External_Rela);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def107]
gdb-16.3/bfd/elfnn-riscv.c:3503:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sym’
gdb-16.3/bfd/elfnn-riscv.c:3512:1: enter_function: entry to ‘riscv_elf_finish_local_dynamic_symbol’
gdb-16.3/bfd/elfnn-riscv.c:3517:10: call_function: calling ‘riscv_elf_finish_dynamic_symbol’ from ‘riscv_elf_finish_local_dynamic_symbol’
# 3501|     if (h == htab->elf.hdynamic
# 3502|         || (h == htab->elf.hgot || h == htab->elf.hplt))
# 3503|->     sym->st_shndx = SHN_ABS;
# 3504|   
# 3505|     return true;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def108]
gdb-16.3/bfd/elfnn-riscv.c:3644:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
# 3642|   
# 3643|     /* Fill PLT and GOT entries for local STT_GNU_IFUNC symbols.  */
# 3644|->   htab_traverse (htab->loc_hash_table,
# 3645|   		 riscv_elf_finish_local_dynamic_symbol,
# 3646|   		 info);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def109]
gdb-16.3/bfd/elfnn-riscv.c:4753:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
# 4751|     bfd_byte *contents = elf_section_data (sec)->this_hdr.contents;
# 4752|     /* Can relax to x0 even when gp relaxation is disabled.  */
# 4753|->   bfd_vma gp = htab->params->relax_gp
# 4754|   	       ? riscv_global_pointer_value (link_info)
# 4755|   	       : 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def110]
gdb-16.3/bfd/elfnn-riscv.c:4979:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
# 4977|     struct riscv_elf_link_hash_table *htab = riscv_elf_hash_table (link_info);
# 4978|     /* Can relax to x0 even when gp relaxation is disabled.  */
# 4979|->   bfd_vma gp = htab->params->relax_gp
# 4980|   	       ? riscv_global_pointer_value (link_info)
# 4981|   	       : 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def111]
gdb-16.3/bfd/elfnn-riscv.c:5125:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
# 5123|   {
# 5124|     struct riscv_elf_link_hash_table *htab = riscv_elf_hash_table (info);
# 5125|->   htab->data_segment_phase = data_segment_phase;
# 5126|   }
# 5127|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def112]
gdb-16.3/bfd/elfnn-riscv.c:5160:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elfnn-riscv.c:5151:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elfnn-riscv.c:5152:7: branch_false: ...to here
gdb-16.3/bfd/elfnn-riscv.c:5151:7: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elfnn-riscv.c:5153:10: branch_false: ...to here
gdb-16.3/bfd/elfnn-riscv.c:5151:7: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elfnn-riscv.c:5154:11: branch_false: ...to here
gdb-16.3/bfd/elfnn-riscv.c:5151:7: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elfnn-riscv.c:5155:10: branch_false: ...to here
gdb-16.3/bfd/elfnn-riscv.c:5151:7: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elfnn-riscv.c:5156:11: branch_false: ...to here
gdb-16.3/bfd/elfnn-riscv.c:5160:11: danger: dereference of NULL ‘htab’
# 5158|         /* The exp_seg_relro_adjust is enum phase_enum (0x4),
# 5159|   	 and defined in ld/ldexp.h.  */
# 5160|->       || *(htab->data_segment_phase) == 4)
# 5161|       return true;
# 5162|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def113]
gdb-16.3/bfd/elfxx-aarch64.c:688:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
gdb-16.3/bfd/elfxx-aarch64.c:685:9: acquire_resource: ‘va_start’ called here
gdb-16.3/bfd/elfxx-aarch64.c:688:9: throw: if the called function throws an exception...
gdb-16.3/bfd/elfxx-aarch64.c:688:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  686|   	memset (data, 0, sizeof (data));
#  687|   	pid = va_arg (ap, long);
#  688|-> 	bfd_put_32 (abfd, pid, data + 32);
#  689|   	cursig = va_arg (ap, int);
#  690|   	bfd_put_16 (abfd, cursig, data + 12);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def114]
gdb-16.3/bfd/elfxx-aarch64.c:690:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
gdb-16.3/bfd/elfxx-aarch64.c:685:9: acquire_resource: ‘va_start’ called here
gdb-16.3/bfd/elfxx-aarch64.c:690:9: throw: if the called function throws an exception...
gdb-16.3/bfd/elfxx-aarch64.c:690:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  688|   	bfd_put_32 (abfd, pid, data + 32);
#  689|   	cursig = va_arg (ap, int);
#  690|-> 	bfd_put_16 (abfd, cursig, data + 12);
#  691|   	greg = va_arg (ap, const void *);
#  692|   	memcpy (data + 112, greg, 272);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def115]
gdb-16.3/bfd/elfxx-x86.c:1857:36: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elfxx-x86.c:1857:15: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elfxx-x86.c:1857:36: branch_true: ...to here
gdb-16.3/bfd/elfxx-x86.c:1857:36: danger: dereference of NULL ‘htab’
# 1855|   
# 1856|   	  plt0_entry_size
# 1857|-> 	    = htab->plt.has_plt0 ? htab->sframe_plt->plt0_entry_size : 0;
# 1858|   	  plt_entry_size = htab->sframe_plt->pltn_entry_size;
# 1859|   	  pltn_fres = htab->sframe_plt->pltn_fres;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def116]
gdb-16.3/bfd/elfxx-x86.c:1858:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elfxx-x86.c:1857:15: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elfxx-x86.c:1858:28: branch_false: ...to here
gdb-16.3/bfd/elfxx-x86.c:1858:28: danger: dereference of NULL ‘htab’
# 1856|   	  plt0_entry_size
# 1857|   	    = htab->plt.has_plt0 ? htab->sframe_plt->plt0_entry_size : 0;
# 1858|-> 	  plt_entry_size = htab->sframe_plt->pltn_entry_size;
# 1859|   	  pltn_fres = htab->sframe_plt->pltn_fres;
# 1860|   	  num_pltn_fres = htab->sframe_plt->pltn_num_fres;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def117]
gdb-16.3/bfd/elfxx-x86.c:1869:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
# 1867|   	{
# 1868|   	  ectx = &htab->plt_second_cfe_ctx;
# 1869|-> 	  dpltsec = htab->plt_second;
# 1870|   
# 1871|   	  plt0_entry_size = 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def118]
gdb-16.3/bfd/elfxx-x86.c:1883:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
# 1881|   	{
# 1882|   	  ectx = &htab->plt_got_cfe_ctx;
# 1883|-> 	  dpltsec = htab->plt_got;
# 1884|   
# 1885|   	  plt0_entry_size = 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def119]
gdb-16.3/bfd/elfxx-x86.c:1992:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
# 1990|       {
# 1991|       case SFRAME_PLT:
# 1992|->       ectx = htab->plt_cfe_ctx;
# 1993|         sec = htab->plt_sframe;
# 1994|         break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def120]
gdb-16.3/bfd/elfxx-x86.c:1996:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
# 1994|         break;
# 1995|       case SFRAME_PLT_SEC:
# 1996|->       ectx = htab->plt_second_cfe_ctx;
# 1997|         sec = htab->plt_second_sframe;
# 1998|         break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def121]
gdb-16.3/bfd/elfxx-x86.c:2000:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
# 1998|         break;
# 1999|       case SFRAME_PLT_GOT:
# 2000|->       ectx = htab->plt_got_cfe_ctx;
# 2001|         sec = htab->plt_got_sframe;
# 2002|         break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def122]
gdb-16.3/bfd/elfxx-x86.c:3332:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
# 3330|   
# 3331|       case elf_x86_tls_error_indirect_call:
# 3332|->       info->callbacks->einfo
# 3333|   	/* xgettext:c-format */
# 3334|   	(_("%pB(%pA+0x%v): relocation %s against `%s' must be used "

Error: GCC_ANALYZER_WARNING (CWE-476): [#def123]
gdb-16.3/bfd/ihex.c:323:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘buf’
gdb-16.3/bfd/ihex.c:240:1: enter_function: entry to ‘ihex_scan’
gdb-16.3/bfd/ihex.c:251:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/ihex.c:254:3: branch_false: ...to here
gdb-16.3/bfd/ihex.c:263:15: call_function: calling ‘ihex_get_byte’ from ‘ihex_scan’
gdb-16.3/bfd/ihex.c:263:15: return_function: returning to ‘ihex_scan’ from ‘ihex_get_byte’
gdb-16.3/bfd/ihex.c:263:10: branch_true: following ‘true’ branch...
gdb-16.3/bfd/ihex.c:265:10: branch_true: ...to here
gdb-16.3/bfd/ihex.c:267:15: branch_false: following ‘false’ branch...
gdb-16.3/bfd/ihex.c:272:15: branch_false: ...to here
gdb-16.3/bfd/ihex.c:272:15: branch_false: following ‘false’ branch...
gdb-16.3/bfd/ihex.c:289:17: branch_false: ...to here
gdb-16.3/bfd/ihex.c:292:14: branch_false: following ‘false’ branch...
gdb-16.3/bfd/ihex.c:292:14: branch_false: ...to here
gdb-16.3/bfd/ihex.c:295:23: branch_true: following ‘true’ branch (when ‘i != 8’)...
gdb-16.3/bfd/ihex.c:297:21: branch_true: ...to here
gdb-16.3/bfd/ihex.c:297:18: branch_false: following ‘false’ branch...
gdb-16.3/bfd/ihex.c:295:30: branch_false: ...to here
gdb-16.3/bfd/ihex.c:297:18: branch_false: following ‘false’ branch...
gdb-16.3/bfd/ihex.c:295:30: branch_false: ...to here
gdb-16.3/bfd/ihex.c:310:14: branch_false: following ‘false’ branch...
gdb-16.3/bfd/ihex.c:318:15: branch_false: ...to here
gdb-16.3/bfd/ihex.c:318:14: branch_false: following ‘false’ branch...
gdb-16.3/bfd/ihex.c:318:14: branch_false: ...to here
gdb-16.3/bfd/ihex.c:321:23: branch_true: following ‘true’ branch (when ‘i < chars’)...
gdb-16.3/bfd/ihex.c:323:21: branch_true: ...to here
gdb-16.3/bfd/ihex.c:323:21: danger: dereference of NULL ‘buf + (sizetype)i’
#  321|   	  for (i = 0; i < chars; i++)
#  322|   	    {
#  323|-> 	      if (! ISHEX (buf[i]))
#  324|   		{
#  325|   		  ihex_bad_byte (abfd, lineno, buf[i], error);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def124]
gdb-16.3/bfd/ihex.c:333:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘buf’
gdb-16.3/bfd/ihex.c:240:1: enter_function: entry to ‘ihex_scan’
gdb-16.3/bfd/ihex.c:251:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/ihex.c:254:3: branch_false: ...to here
gdb-16.3/bfd/ihex.c:263:15: call_function: calling ‘ihex_get_byte’ from ‘ihex_scan’
gdb-16.3/bfd/ihex.c:263:15: return_function: returning to ‘ihex_scan’ from ‘ihex_get_byte’
gdb-16.3/bfd/ihex.c:263:10: branch_true: following ‘true’ branch...
gdb-16.3/bfd/ihex.c:265:10: branch_true: ...to here
gdb-16.3/bfd/ihex.c:267:15: branch_false: following ‘false’ branch...
gdb-16.3/bfd/ihex.c:272:15: branch_false: ...to here
gdb-16.3/bfd/ihex.c:272:15: branch_false: following ‘false’ branch...
gdb-16.3/bfd/ihex.c:289:17: branch_false: ...to here
gdb-16.3/bfd/ihex.c:292:14: branch_false: following ‘false’ branch...
gdb-16.3/bfd/ihex.c:292:14: branch_false: ...to here
gdb-16.3/bfd/ihex.c:295:23: branch_true: following ‘true’ branch (when ‘i != 8’)...
gdb-16.3/bfd/ihex.c:297:21: branch_true: ...to here
gdb-16.3/bfd/ihex.c:297:18: branch_false: following ‘false’ branch...
gdb-16.3/bfd/ihex.c:295:30: branch_false: ...to here
gdb-16.3/bfd/ihex.c:297:18: branch_false: following ‘false’ branch...
gdb-16.3/bfd/ihex.c:295:30: branch_false: ...to here
gdb-16.3/bfd/ihex.c:310:14: branch_false: following ‘false’ branch...
gdb-16.3/bfd/ihex.c:318:15: branch_false: ...to here
gdb-16.3/bfd/ihex.c:318:14: branch_false: following ‘false’ branch...
gdb-16.3/bfd/ihex.c:318:14: branch_false: ...to here
gdb-16.3/bfd/ihex.c:321:23: branch_false: following ‘false’ branch (when ‘i >= chars’)...
gdb-16.3/bfd/ihex.c:331:20: branch_false: ...to here
gdb-16.3/bfd/ihex.c:332:23: branch_true: following ‘true’ branch (when ‘i < len’)...
gdb-16.3/bfd/ihex.c:333:23: branch_true: ...to here
gdb-16.3/bfd/ihex.c:333:23: danger: dereference of NULL ‘buf + (sizetype)(i * 2)’
#  331|   	  chksum = len + addr + (addr >> 8) + type;
#  332|   	  for (i = 0; i < len; i++)
#  333|-> 	    chksum += HEX2 (buf + 2 * i);
#  334|   	  if (((- chksum) & 0xff) != (unsigned int) HEX2 (buf + 2 * i))
#  335|   	    {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def125]
gdb-16.3/bfd/ihex.c:334:53: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘buf’
gdb-16.3/bfd/ihex.c:240:1: enter_function: entry to ‘ihex_scan’
gdb-16.3/bfd/ihex.c:251:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/ihex.c:254:3: branch_false: ...to here
gdb-16.3/bfd/ihex.c:263:15: call_function: calling ‘ihex_get_byte’ from ‘ihex_scan’
gdb-16.3/bfd/ihex.c:263:15: return_function: returning to ‘ihex_scan’ from ‘ihex_get_byte’
gdb-16.3/bfd/ihex.c:263:10: branch_true: following ‘true’ branch...
gdb-16.3/bfd/ihex.c:265:10: branch_true: ...to here
gdb-16.3/bfd/ihex.c:267:15: branch_false: following ‘false’ branch...
gdb-16.3/bfd/ihex.c:272:15: branch_false: ...to here
gdb-16.3/bfd/ihex.c:272:15: branch_false: following ‘false’ branch...
gdb-16.3/bfd/ihex.c:289:17: branch_false: ...to here
gdb-16.3/bfd/ihex.c:292:14: branch_false: following ‘false’ branch...
gdb-16.3/bfd/ihex.c:292:14: branch_false: ...to here
gdb-16.3/bfd/ihex.c:295:23: branch_true: following ‘true’ branch (when ‘i != 8’)...
gdb-16.3/bfd/ihex.c:297:21: branch_true: ...to here
gdb-16.3/bfd/ihex.c:297:18: branch_false: following ‘false’ branch...
gdb-16.3/bfd/ihex.c:295:30: branch_false: ...to here
gdb-16.3/bfd/ihex.c:297:18: branch_false: following ‘false’ branch...
gdb-16.3/bfd/ihex.c:295:30: branch_false: ...to here
gdb-16.3/bfd/ihex.c:310:14: branch_false: following ‘false’ branch...
gdb-16.3/bfd/ihex.c:318:15: branch_false: ...to here
gdb-16.3/bfd/ihex.c:318:14: branch_false: following ‘false’ branch...
gdb-16.3/bfd/ihex.c:318:14: branch_false: ...to here
gdb-16.3/bfd/ihex.c:321:23: branch_false: following ‘false’ branch (when ‘i >= chars’)...
gdb-16.3/bfd/ihex.c:331:20: branch_false: ...to here
gdb-16.3/bfd/ihex.c:332:23: branch_false: following ‘false’ branch (when ‘i >= len’)...
gdb-16.3/bfd/ihex.c:334:16: branch_false: ...to here
gdb-16.3/bfd/ihex.c:334:53: danger: dereference of NULL ‘buf + (sizetype)(i * 2)’
#  332|   	  for (i = 0; i < len; i++)
#  333|   	    chksum += HEX2 (buf + 2 * i);
#  334|-> 	  if (((- chksum) & 0xff) != (unsigned int) HEX2 (buf + 2 * i))
#  335|   	    {
#  336|   	      _bfd_error_handler

Error: GCC_ANALYZER_WARNING (CWE-476): [#def126]
gdb-16.3/bfd/ihex.c:597:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘buf’
gdb-16.3/bfd/ihex.c:542:1: enter_function: entry to ‘ihex_read_section’
gdb-16.3/bfd/ihex.c:550:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/ihex.c:550:6: branch_false: ...to here
gdb-16.3/bfd/ihex.c:556:15: call_function: calling ‘ihex_get_byte’ from ‘ihex_read_section’
gdb-16.3/bfd/ihex.c:556:15: return_function: returning to ‘ihex_read_section’ from ‘ihex_get_byte’
gdb-16.3/bfd/ihex.c:556:10: branch_true: following ‘true’ branch...
gdb-16.3/bfd/ihex.c:563:11: branch_true: ...to here
gdb-16.3/bfd/ihex.c:570:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/ihex.c:573:13: branch_false: ...to here
gdb-16.3/bfd/ihex.c:577:10: branch_false: following ‘false’ branch (when ‘type == 0’)...
gdb-16.3/bfd/ihex.c:585:11: branch_false: ...to here
gdb-16.3/bfd/ihex.c:585:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/ihex.c:593:11: branch_false: ...to here
gdb-16.3/bfd/ihex.c:593:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/ihex.c:593:10: branch_false: ...to here
gdb-16.3/bfd/ihex.c:596:19: branch_true: following ‘true’ branch (when ‘i < len’)...
gdb-16.3/bfd/ihex.c:597:16: branch_true: ...to here
gdb-16.3/bfd/ihex.c:597:16: danger: dereference of NULL ‘buf + (sizetype)(i * 2)’
#  595|   
#  596|         for (i = 0; i < len; i++)
#  597|-> 	*p++ = HEX2 (buf + 2 * i);
#  598|         if ((bfd_size_type) (p - contents) >= section->size)
#  599|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def127]
gdb-16.3/bfd/libbfd.c:285:10: warning[-Wanalyzer-malloc-leak]: leak of ‘bfd_malloc(asize)’
gdb-16.3/bfd/libbfd.h:899:1: enter_function: entry to ‘_bfd_malloc_and_read’
gdb-16.3/bfd/libbfd.h:911:9: call_function: calling ‘bfd_malloc’ from ‘_bfd_malloc_and_read’
gdb-16.3/bfd/libbfd.h:911:9: return_function: returning to ‘_bfd_malloc_and_read’ from ‘bfd_malloc’
gdb-16.3/bfd/libbfd.h:912:6: branch_true: following ‘true’ branch...
gdb-16.3/bfd/libbfd.h:914:11: branch_true: ...to here
gdb-16.3/bfd/libbfd.h:914:11: throw: if ‘bfd_read’ throws an exception...
gdb-16.3/bfd/libbfd.c:285:10: danger: ‘bfd_malloc(asize)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/5)
#  283|     if (size != sz
#  284|         /* This is to pacify memory checkers like valgrind.  */
#  285|->       || sz > SSIZE_MAX)
#  286|       {
#  287|         bfd_set_error (bfd_error_no_memory);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def128]
gdb-16.3/bfd/linker.c:1710:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘inh’
gdb-16.3/bfd/linker.c:1402:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/linker.c:1403:10: branch_false: ...to here
gdb-16.3/bfd/linker.c:1402:7: branch_false: following ‘false’ branch...
gdb-16.3/bfd/linker.c:1414:12: branch_false: ...to here
gdb-16.3/bfd/linker.c:1710:15: danger: dereference of NULL ‘inh’
# 1708|   	  /* Fall through.  */
# 1709|   	case IND:
# 1710|-> 	  if (inh->type == bfd_link_hash_indirect
# 1711|   	      && inh->u.i.link == h)
# 1712|   	    {

Error: CPPCHECK_WARNING (CWE-119): [#def129]
gdb-16.3/bfd/peXXigen.c:302: error[bufferAccessOutOfBounds]: Buffer is accessed out of bounds: ext->x_file.x_fname
#  300|   	}
#  301|         else
#  302|-> 	memcpy (in->x_file.x_n.x_fname, ext->x_file.x_fname, FILNMLEN);
#  303|         return;
#  304|   

Error: CPPCHECK_WARNING (CWE-457): [#def130]
gdb-16.3/bfd/peXXigen.c:2668: warning[uninitvar]: Uninitialized variable: signature
# 2666|   	  fprintf (file, _("(format %c%c%c%c signature %s age %ld pdb %s)\n"),
# 2667|   		   buffer[0], buffer[1], buffer[2], buffer[3],
# 2668|-> 		   signature, cvinfo->Age, pdb[0] ? pdb : "(none)");
# 2669|   
# 2670|   	  free (pdb);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def131]
gdb-16.3/bfd/plugin.c:553:32: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(make_relative_prefix(plugin_program_name, "/usr/bin",  path[i]))’
gdb-16.3/bfd/plugin.c:597:1: enter_function: entry to ‘bfd_plugin_object_p’
gdb-16.3/bfd/plugin.c:606:6: branch_true: following ‘true’ branch...
gdb-16.3/bfd/plugin.c:606:53: branch_true: ...to here
gdb-16.3/bfd/plugin.c:606:53: call_function: calling ‘load_plugin’ from ‘bfd_plugin_object_p’
#  551|   	      struct dirent *ent;
#  552|   
#  553|-> 	      last_st.st_dev = st.st_dev;
#  554|   	      last_st.st_ino = st.st_ino;
#  555|   	      while ((ent = readdir (d)) != NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def132]
gdb-16.3/bfd/simple.c:267:3: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_offsets.sections’
gdb-16.3/bfd/simple.c:218:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/simple.c:219:13: branch_false: ...to here
gdb-16.3/bfd/simple.c:218:7: branch_false: following ‘false’ branch...
gdb-16.3/bfd/simple.c:230:3: branch_false: ...to here
gdb-16.3/bfd/simple.c:263:28: acquire_memory: allocated here
gdb-16.3/bfd/simple.c:265:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/simple.c:267:3: branch_false: ...to here
gdb-16.3/bfd/simple.c:267:3: throw: if ‘bfd_map_over_sections’ throws an exception...
gdb-16.3/bfd/simple.c:267:3: danger: ‘saved_offsets.sections’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#  265|     if (saved_offsets.sections == NULL)
#  266|       goto out1;
#  267|->   bfd_map_over_sections (abfd, simple_save_output_info, &saved_offsets);
#  268|   
#  269|     if (symbol_table == NULL)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def133]
gdb-16.3/bfd/srec.c:521:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘buf’
gdb-16.3/bfd/srec.c:677:1: enter_function: entry to ‘symbolsrec_object_p’
gdb-16.3/bfd/srec.c:683:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/srec.c:684:10: branch_false: ...to here
gdb-16.3/bfd/srec.c:683:7: branch_false: following ‘false’ branch...
gdb-16.3/bfd/srec.c:687:7: branch_false: ...to here
gdb-16.3/bfd/srec.c:687:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/srec.c:693:6: branch_true: following ‘true’ branch...
gdb-16.3/bfd/srec.c:696:8: branch_true: ...to here
gdb-16.3/bfd/srec.c:696:8: call_function: calling ‘srec_scan’ from ‘symbolsrec_object_p’
#  519|   
#  520|   	      case '3':
#  521|-> 		check_sum += HEX (data);
#  522|   		address = HEX (data);
#  523|   		data += 2;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def134]
gdb-16.3/bfd/srec.c:527:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘data’
gdb-16.3/bfd/srec.c:677:1: enter_function: entry to ‘symbolsrec_object_p’
gdb-16.3/bfd/srec.c:683:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/srec.c:684:10: branch_false: ...to here
gdb-16.3/bfd/srec.c:683:7: branch_false: following ‘false’ branch...
gdb-16.3/bfd/srec.c:687:7: branch_false: ...to here
gdb-16.3/bfd/srec.c:687:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/srec.c:693:6: branch_true: following ‘true’ branch...
gdb-16.3/bfd/srec.c:696:8: branch_true: ...to here
gdb-16.3/bfd/srec.c:696:8: call_function: calling ‘srec_scan’ from ‘symbolsrec_object_p’
#  525|   		/* Fall through.  */
#  526|   	      case '2':
#  527|-> 		check_sum += HEX (data);
#  528|   		address = (address << 8) | HEX (data);
#  529|   		data += 2;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def135]
gdb-16.3/bfd/srec.c:533:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘data’
gdb-16.3/bfd/srec.c:677:1: enter_function: entry to ‘symbolsrec_object_p’
gdb-16.3/bfd/srec.c:683:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/srec.c:684:10: branch_false: ...to here
gdb-16.3/bfd/srec.c:683:7: branch_false: following ‘false’ branch...
gdb-16.3/bfd/srec.c:687:7: branch_false: ...to here
gdb-16.3/bfd/srec.c:687:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/srec.c:693:6: branch_true: following ‘true’ branch...
gdb-16.3/bfd/srec.c:696:8: branch_true: ...to here
gdb-16.3/bfd/srec.c:696:8: call_function: calling ‘srec_scan’ from ‘symbolsrec_object_p’
#  531|   		/* Fall through.  */
#  532|   	      case '1':
#  533|-> 		check_sum += HEX (data);
#  534|   		address = (address << 8) | HEX (data);
#  535|   		data += 2;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def136]
gdb-16.3/bfd/srec.c:589:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘buf’
gdb-16.3/bfd/srec.c:677:1: enter_function: entry to ‘symbolsrec_object_p’
gdb-16.3/bfd/srec.c:683:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/srec.c:684:10: branch_false: ...to here
gdb-16.3/bfd/srec.c:683:7: branch_false: following ‘false’ branch...
gdb-16.3/bfd/srec.c:687:7: branch_false: ...to here
gdb-16.3/bfd/srec.c:687:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/srec.c:693:6: branch_true: following ‘true’ branch...
gdb-16.3/bfd/srec.c:696:8: branch_true: ...to here
gdb-16.3/bfd/srec.c:696:8: call_function: calling ‘srec_scan’ from ‘symbolsrec_object_p’
#  587|   
#  588|   	      case '7':
#  589|-> 		check_sum += HEX (data);
#  590|   		address = HEX (data);
#  591|   		data += 2;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def137]
gdb-16.3/bfd/srec.c:594:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘data’
gdb-16.3/bfd/srec.c:677:1: enter_function: entry to ‘symbolsrec_object_p’
gdb-16.3/bfd/srec.c:683:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/srec.c:684:10: branch_false: ...to here
gdb-16.3/bfd/srec.c:683:7: branch_false: following ‘false’ branch...
gdb-16.3/bfd/srec.c:687:7: branch_false: ...to here
gdb-16.3/bfd/srec.c:687:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/srec.c:693:6: branch_true: following ‘true’ branch...
gdb-16.3/bfd/srec.c:696:8: branch_true: ...to here
gdb-16.3/bfd/srec.c:696:8: call_function: calling ‘srec_scan’ from ‘symbolsrec_object_p’
#  592|   		/* Fall through.  */
#  593|   	      case '8':
#  594|-> 		check_sum += HEX (data);
#  595|   		address = (address << 8) | HEX (data);
#  596|   		data += 2;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def138]
gdb-16.3/bfd/srec.c:599:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘data’
gdb-16.3/bfd/srec.c:677:1: enter_function: entry to ‘symbolsrec_object_p’
gdb-16.3/bfd/srec.c:683:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/srec.c:684:10: branch_false: ...to here
gdb-16.3/bfd/srec.c:683:7: branch_false: following ‘false’ branch...
gdb-16.3/bfd/srec.c:687:7: branch_false: ...to here
gdb-16.3/bfd/srec.c:687:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/srec.c:693:6: branch_true: following ‘true’ branch...
gdb-16.3/bfd/srec.c:696:8: branch_true: ...to here
gdb-16.3/bfd/srec.c:696:8: call_function: calling ‘srec_scan’ from ‘symbolsrec_object_p’
#  597|   		/* Fall through.  */
#  598|   	      case '9':
#  599|-> 		check_sum += HEX (data);
#  600|   		address = (address << 8) | HEX (data);
#  601|   		data += 2;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def139]
gdb-16.3/bfd/srec.c:767:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘buf’
gdb-16.3/bfd/srec.c:711:1: enter_function: entry to ‘srec_read_section’
gdb-16.3/bfd/srec.c:719:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/srec.c:719:6: branch_false: ...to here
gdb-16.3/bfd/srec.c:722:15: call_function: calling ‘srec_get_byte’ from ‘srec_read_section’
gdb-16.3/bfd/srec.c:722:15: return_function: returning to ‘srec_read_section’ from ‘srec_get_byte’
gdb-16.3/bfd/srec.c:722:10: branch_true: following ‘true’ branch...
gdb-16.3/bfd/srec.c:729:11: branch_true: ...to here
gdb-16.3/bfd/srec.c:734:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/srec.c:737:11: branch_false: ...to here
gdb-16.3/bfd/srec.c:737:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/srec.c:740:7: branch_false: ...to here
gdb-16.3/bfd/srec.c:744:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/srec.c:753:11: branch_false: ...to here
gdb-16.3/bfd/srec.c:753:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/srec.c:758:15: branch_false: ...to here
gdb-16.3/bfd/srec.c:767:21: danger: dereference of NULL ‘buf’
#  765|   
#  766|   	case '3':
#  767|-> 	  address = HEX (data);
#  768|   	  data += 2;
#  769|   	  --bytes;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def140]
gdb-16.3/bfd/srec.c:772:38: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘data’
gdb-16.3/bfd/srec.c:711:1: enter_function: entry to ‘srec_read_section’
gdb-16.3/bfd/srec.c:719:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/srec.c:719:6: branch_false: ...to here
gdb-16.3/bfd/srec.c:722:15: call_function: calling ‘srec_get_byte’ from ‘srec_read_section’
gdb-16.3/bfd/srec.c:722:15: return_function: returning to ‘srec_read_section’ from ‘srec_get_byte’
gdb-16.3/bfd/srec.c:722:10: branch_true: following ‘true’ branch...
gdb-16.3/bfd/srec.c:729:11: branch_true: ...to here
gdb-16.3/bfd/srec.c:734:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/srec.c:737:11: branch_false: ...to here
gdb-16.3/bfd/srec.c:737:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/srec.c:740:7: branch_false: ...to here
gdb-16.3/bfd/srec.c:744:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/srec.c:753:11: branch_false: ...to here
gdb-16.3/bfd/srec.c:753:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/srec.c:758:15: branch_false: ...to here
gdb-16.3/bfd/srec.c:772:38: danger: dereference of NULL ‘data’
#  770|   	  /* Fall through.  */
#  771|   	case '2':
#  772|-> 	  address = (address << 8) | HEX (data);
#  773|   	  data += 2;
#  774|   	  --bytes;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def141]
gdb-16.3/bfd/srec.c:777:38: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘data’
gdb-16.3/bfd/srec.c:711:1: enter_function: entry to ‘srec_read_section’
gdb-16.3/bfd/srec.c:719:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/srec.c:719:6: branch_false: ...to here
gdb-16.3/bfd/srec.c:722:15: call_function: calling ‘srec_get_byte’ from ‘srec_read_section’
gdb-16.3/bfd/srec.c:722:15: return_function: returning to ‘srec_read_section’ from ‘srec_get_byte’
gdb-16.3/bfd/srec.c:722:10: branch_true: following ‘true’ branch...
gdb-16.3/bfd/srec.c:729:11: branch_true: ...to here
gdb-16.3/bfd/srec.c:734:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/srec.c:737:11: branch_false: ...to here
gdb-16.3/bfd/srec.c:737:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/srec.c:740:7: branch_false: ...to here
gdb-16.3/bfd/srec.c:744:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/srec.c:753:11: branch_false: ...to here
gdb-16.3/bfd/srec.c:753:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/srec.c:758:15: branch_false: ...to here
gdb-16.3/bfd/srec.c:777:38: danger: dereference of NULL ‘data’
#  775|   	  /* Fall through.  */
#  776|   	case '1':
#  777|-> 	  address = (address << 8) | HEX (data);
#  778|   	  data += 2;
#  779|   	  address = (address << 8) | HEX (data);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def142]
gdb-16.3/bfd/stabs.c:401:20: warning[-Wanalyzer-null-argument]: use of NULL ‘symb’ where non-null expected
gdb-16.3/bfd/stabs.c:191:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/stabs.c:192:10: branch_false: ...to here
gdb-16.3/bfd/stabs.c:191:7: branch_false: following ‘false’ branch...
gdb-16.3/bfd/stabs.c:193:11: branch_false: ...to here
gdb-16.3/bfd/stabs.c:191:7: branch_false: following ‘false’ branch...
gdb-16.3/bfd/stabs.c:194:11: branch_false: ...to here
gdb-16.3/bfd/stabs.c:191:7: branch_false: following ‘false’ branch...
gdb-16.3/bfd/stabs.c:198:7: branch_false: ...to here
gdb-16.3/bfd/stabs.c:198:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/stabs.c:203:7: branch_false: ...to here
gdb-16.3/bfd/stabs.c:203:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/stabs.c:208:27: branch_false: ...to here
gdb-16.3/bfd/stabs.c:208:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/stabs.c:209:30: branch_false: ...to here
gdb-16.3/bfd/stabs.c:208:7: branch_false: following ‘false’ branch...
gdb-16.3/bfd/stabs.c:216:7: branch_false: ...to here
gdb-16.3/bfd/stabs.c:246:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/stabs.c:250:3: branch_false: ...to here
gdb-16.3/bfd/stabs.c:256:6: branch_true: following ‘true’ branch...
gdb-16.3/bfd/stabs.c:257:11: branch_true: ...to here
gdb-16.3/bfd/stabs.c:256:7: branch_true: following ‘true’ branch...
gdb-16.3/bfd/stabs.c:267:17: branch_true: ...to here
gdb-16.3/bfd/stabs.c:272:8: branch_true: following ‘true’ branch (when ‘sym < symend’)...
gdb-16.3/bfd/stabs.c:279:11: branch_true: ...to here
gdb-16.3/bfd/stabs.c:304:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/stabs.c:313:16: branch_false: ...to here
gdb-16.3/bfd/stabs.c:389:11: branch_false: following ‘false’ branch...
gdb-16.3/bfd/stabs.c:394:13: branch_false: ...to here
gdb-16.3/bfd/stabs.c:395:14: branch_false: following ‘false’ branch...
gdb-16.3/bfd/stabs.c:398:16: branch_false: ...to here
gdb-16.3/bfd/stabs.c:398:40: branch_true: following ‘true’ branch (when ‘t’ is non-NULL)...
gdb-16.3/bfd/stabs.c:399:17: branch_true: ...to here
gdb-16.3/bfd/stabs.c:399:16: branch_true: following ‘true’ branch...
gdb-16.3/bfd/stabs.c:400:20: branch_true: ...to here
gdb-16.3/bfd/stabs.c:399:17: branch_true: following ‘true’ branch...
gdb-16.3/bfd/stabs.c:401:28: branch_true: ...to here
gdb-16.3/bfd/stabs.c:401:20: danger: argument 2 (‘symb’) NULL where non-null expected
#  399|   	    if (t->sum_chars == sum_chars
#  400|   		&& t->num_chars == num_chars
#  401|-> 		&& memcmp (t->symb, symb, num_chars) == 0)
#  402|   	      break;
#  403|   

Error: COMPILER_WARNING (CWE-704): [#def143]
gdb-16.3/bfd/targets.c: scope_hint: In function ‘bfd_get_target_info’
gdb-16.3/bfd/targets.c:1671:23: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
# 1671 |           char *hyp = strchr (tname, '-');
#      |                       ^~~~~~
# 1669|         if (arches && tname)
# 1670|   	{
# 1671|-> 	  char *hyp = strchr (tname, '-');
# 1672|   
# 1673|   	  if (hyp != NULL)

Error: COMPILER_WARNING (CWE-704): [#def144]
gdb-16.3/bfd/targets.c:1671:23: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
# 1669|         if (arches && tname)
# 1670|   	{
# 1671|-> 	  char *hyp = strchr (tname, '-');
# 1672|   
# 1673|   	  if (hyp != NULL)

Error: COMPILER_WARNING (CWE-457): [#def145]
gdb-16.3/gdb/ui-out.h:417:18: warning[-Wmaybe-uninitialized]: ‘*(ui_out_emit_type<ui_out_type_list>*)((char*)&sources_list + offsetof(std::optional<ui_out_emit_type<ui_out_type_list> >,std::optional<ui_out_emit_type<ui_out_type_list> >::<unnamed>.std::_Optional_base<ui_out_emit_type<ui_out_type_list>, false, false>::_M_payload.std::_Optional_payload<ui_out_emit_type<ui_out_type_list>, false, false, false>::<unnamed>.std::_Optional_payload<ui_out_emit_type<ui_out_type_list>, true, false, false>::<unnamed>.std::_Optional_payload_base<ui_out_emit_type<ui_out_type_list> [...]
#  417 |     m_uiout->end (Type);
#      |     ~~~~~~~~~~~~~^~~~~~
gdb-16.3/gdb/symtab.c: scope_hint: In function ‘void info_sources_worker(ui_out*, bool, const info_sources_filter&)’
gdb-16.3/gdb/symtab.c:4694:35: note: ‘*(ui_out_emit_type<ui_out_type_list>*)((char*)&sources_list + offsetof(std::optional<ui_out_emit_type<ui_out_type_list> >,std::optional<ui_out_emit_type<ui_out_type_list> >::<unnamed>.std::_Optional_base<ui_out_emit_type<ui_out_type_list>, false, false>::_M_payload.std::_Optional_payload<ui_out_emit_type<ui_out_type_list>, false, false, false>::<unnamed>.std::_Optional_payload<ui_out_emit_type<ui_out_type_list>, true, false, false>::<unnamed>.std::_Optional_payload_base<ui_out_emit_type<ui_out_type_list> [...]
# 4694 |   std::optional<ui_out_emit_list> sources_list;
#      |                                   ^~~~~~~~~~~~
#  415|     ~ui_out_emit_type ()
#  416|     {
#  417|->     m_uiout->end (Type);
#  418|     }
#  419|   
gdb-16.3/gdb/ui-out.h:417:18: note: trimmed 2 message(s) with length over 512

Error: COMPILER_WARNING (CWE-457): [#def146]
gdb-16.3/gdb/ui-out.h:417:18: warning[-Wmaybe-uninitialized]: ‘*(ui_out_emit_type<ui_out_type_tuple>*)((char*)&output_tuple + offsetof(std::optional<ui_out_emit_type<ui_out_type_tuple> >,std::optional<ui_out_emit_type<ui_out_type_tuple> >::<unnamed>.std::_Optional_base<ui_out_emit_type<ui_out_type_tuple>, false, false>::_M_payload.std::_Optional_payload<ui_out_emit_type<ui_out_type_tuple>, false, false, false>::<unnamed>.std::_Optional_payload<ui_out_emit_type<ui_out_type_tuple>, true, false, false>::<unnamed>.std::_Optional_payload_base<ui_out_emit_type<ui_out_type [...]
#  417 |     m_uiout->end (Type);
#      |     ~~~~~~~~~~~~~^~~~~~
gdb-16.3/gdb/symtab.c: scope_hint: In function ‘void info_sources_worker(ui_out*, bool, const info_sources_filter&)’
gdb-16.3/gdb/symtab.c:4693:36: note: ‘*(ui_out_emit_type<ui_out_type_tuple>*)((char*)&output_tuple + offsetof(std::optional<ui_out_emit_type<ui_out_type_tuple> >,std::optional<ui_out_emit_type<ui_out_type_tuple> >::<unnamed>.std::_Optional_base<ui_out_emit_type<ui_out_type_tuple>, false, false>::_M_payload.std::_Optional_payload<ui_out_emit_type<ui_out_type_tuple>, false, false, false>::<unnamed>.std::_Optional_payload<ui_out_emit_type<ui_out_type_tuple>, true, false, false>::<unnamed>.std::_Optional_payload_base<ui_out_emit_type<ui_out_type [...]
# 4693 |   std::optional<ui_out_emit_tuple> output_tuple;
#      |                                    ^~~~~~~~~~~~
#  415|     ~ui_out_emit_type ()
#  416|     {
#  417|->     m_uiout->end (Type);
#  418|     }
#  419|   
gdb-16.3/gdb/ui-out.h:417:18: note: trimmed 2 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-562): [#def147]
gdb-16.3/gdbserver/mem-break.cc:477: error[returnDanglingLifetime]: Returning pointer to local variable 'bp_holder' that will be invalid when returning.
#  475|         proc->raw_breakpoints = bp;
#  476|       }
#  477|->   return bp;
#  478|   }
#  479|   

Error: CPPCHECK_WARNING (CWE-457): [#def148]
gdb-16.3/gdbserver/server.cc:4124: error[uninitvar]: Uninitialized variable: dummy_buffer
# 4122|     /* Validate the 0-length comparison (due to the comparison offset being
# 4123|        equal to the length of the register) returns true.  */
# 4124|->   SELF_CHECK (dummy_regcache.raw_compare (0, dummy_buffer, 4));
# 4125|   }
# 4126|   

Error: CPPCHECK_WARNING (CWE-457): [#def149]
gdb-16.3/gdbsupport/filestuff.cc:153: error[uninitvar]: Uninitialized variable: max
#  151|         }
#  152|   
#  153|->     for (fd = 0; fd < max; ++fd)
#  154|         {
#  155|   	struct stat sb;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def150]
gdb-16.3/gnulib/import/fcntl.c:328:22: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
gdb-16.3/gnulib/import/fcntl.c:210:3: acquire_resource: ‘va_start’ called here
gdb-16.3/gnulib/import/fcntl.c:328:22: throw: if ‘fcntl’ throws an exception...
gdb-16.3/gnulib/import/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): [#def151]
gdb-16.3/gnulib/import/fcntl.c:424:24: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
gdb-16.3/gnulib/import/fcntl.c:210:3: acquire_resource: ‘va_start’ called here
gdb-16.3/gnulib/import/fcntl.c:424:24: throw: if ‘fcntl’ throws an exception...
gdb-16.3/gnulib/import/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): [#def152]
gdb-16.3/gnulib/import/fcntl.c:432:24: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
gdb-16.3/gnulib/import/fcntl.c:210:3: acquire_resource: ‘va_start’ called here
gdb-16.3/gnulib/import/fcntl.c:432:24: throw: if ‘fcntl’ throws an exception...
gdb-16.3/gnulib/import/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): [#def153]
gdb-16.3/gnulib/import/fcntl.c:482:12: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
gdb-16.3/gnulib/import/fcntl.c:202:1: enter_function: entry to ‘rpl_fcntl’
gdb-16.3/gnulib/import/fcntl.c:210:3: acquire_resource: ‘va_start’ called here
gdb-16.3/gnulib/import/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): [#def154]
gdb-16.3/gnulib/import/fcntl.c:512:16: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
gdb-16.3/gnulib/import/fcntl.c:202:1: enter_function: entry to ‘rpl_fcntl’
gdb-16.3/gnulib/import/fcntl.c:210:3: acquire_resource: ‘va_start’ called here
gdb-16.3/gnulib/import/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): [#def155]
gdb-16.3/gnulib/import/fcntl.c:533:19: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
gdb-16.3/gnulib/import/fcntl.c:202:1: enter_function: entry to ‘rpl_fcntl’
gdb-16.3/gnulib/import/fcntl.c:210:3: acquire_resource: ‘va_start’ called here
gdb-16.3/gnulib/import/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): [#def156]
gdb-16.3/gnulib/import/fcntl.c:534:24: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
gdb-16.3/gnulib/import/fcntl.c:202:1: enter_function: entry to ‘rpl_fcntl’
gdb-16.3/gnulib/import/fcntl.c:210:3: acquire_resource: ‘va_start’ called here
gdb-16.3/gnulib/import/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): [#def157]
gdb-16.3/gnulib/import/fcntl.c:537:11: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
gdb-16.3/gnulib/import/fcntl.c:202:1: enter_function: entry to ‘rpl_fcntl’
gdb-16.3/gnulib/import/fcntl.c:210:3: acquire_resource: ‘va_start’ called here
gdb-16.3/gnulib/import/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-401): [#def158]
gdb-16.3/gnulib/import/getcwd.c:276:12: warning[-Wanalyzer-malloc-leak]: leak of ‘dir’
gdb-16.3/gnulib/import/getcwd.c:208:6: branch_false: following ‘false’ branch (when ‘dir’ is NULL)...
gdb-16.3/gnulib/import/getcwd.c:208:7: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:232:10: branch_false: following ‘false’ branch (when ‘buf’ is NULL)...
gdb-16.3/gnulib/import/getcwd.c:243:13: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:243:13: acquire_memory: allocated here
gdb-16.3/gnulib/import/getcwd.c:244:10: branch_false: following ‘false’ branch (when ‘dir’ is non-NULL)...
gdb-16.3/gnulib/import/getcwd.c:250:3: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:253:6: branch_false: following ‘false’ branch...
gdb-16.3/gnulib/import/getcwd.c:255:3: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:258:6: branch_false: following ‘false’ branch...
gdb-16.3/gnulib/import/getcwd.c:260:3: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:263:10: branch_true: following ‘true’ branch...
gdb-16.3/gnulib/import/getcwd.c:276:12: branch_true: ...to here
gdb-16.3/gnulib/import/getcwd.c:276:12: throw: if ‘openat’ throws an exception...
gdb-16.3/gnulib/import/getcwd.c:276:12: danger: ‘dir’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#  274|         /* Look at the parent directory.  */
#  275|   #if HAVE_OPENAT_SUPPORT
#  276|->       fd = __openat64 (fd, "..", O_RDONLY);
#  277|         if (fd < 0)
#  278|           goto lose;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def159]
gdb-16.3/gnulib/import/getcwd.c:290:24: warning[-Wanalyzer-malloc-leak]: leak of ‘dir’
gdb-16.3/gnulib/import/getcwd.c:208:6: branch_false: following ‘false’ branch (when ‘dir’ is NULL)...
gdb-16.3/gnulib/import/getcwd.c:208:7: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:232:10: branch_false: following ‘false’ branch (when ‘buf’ is NULL)...
gdb-16.3/gnulib/import/getcwd.c:243:13: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:243:13: acquire_memory: allocated here
gdb-16.3/gnulib/import/getcwd.c:244:10: branch_false: following ‘false’ branch (when ‘dir’ is non-NULL)...
gdb-16.3/gnulib/import/getcwd.c:250:3: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:253:6: branch_false: following ‘false’ branch...
gdb-16.3/gnulib/import/getcwd.c:255:3: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:258:6: branch_false: following ‘false’ branch...
gdb-16.3/gnulib/import/getcwd.c:260:3: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:263:10: branch_true: following ‘true’ branch...
gdb-16.3/gnulib/import/getcwd.c:276:12: branch_true: ...to here
gdb-16.3/gnulib/import/getcwd.c:277:10: branch_false: following ‘false’ branch...
gdb-16.3/gnulib/import/getcwd.c:280:23: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:287:10: branch_false: following ‘false’ branch (when ‘parent_status == 0’)...
gdb-16.3/gnulib/import/getcwd.c:290:10: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:290:10: branch_false: following ‘false’ branch (when ‘dirstream’ is NULL)...
gdb-16.3/gnulib/import/getcwd.c:297:7: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:304:10: branch_false: following ‘false’ branch...
gdb-16.3/gnulib/import/getcwd.c:304:10: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:401:16: branch_true: following ‘true’ branch...
gdb-16.3/gnulib/import/getcwd.c:401:17: branch_true: following ‘true’ branch...
gdb-16.3/gnulib/import/getcwd.c:410:10: branch_true: following ‘true’ branch (when ‘dirroom <= namlen’)...
gdb-16.3/gnulib/import/getcwd.c:412:14: branch_true: ...to here
gdb-16.3/gnulib/import/getcwd.c:412:14: branch_false: following ‘false’ branch (when ‘size == 0’)...
gdb-16.3/gnulib/import/getcwd.c:422:28: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:423:18: branch_false: following ‘false’ branch (when ‘allocated <= allocated’)...
gdb-16.3/gnulib/import/getcwd.c:424:31: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:423:19: branch_false: following ‘false’ branch (when ‘tmp’ is non-NULL)...
gdb-16.3/gnulib/import/getcwd.c:429:22: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:263:10: branch_true: following ‘true’ branch...
gdb-16.3/gnulib/import/getcwd.c:276:12: branch_true: ...to here
gdb-16.3/gnulib/import/getcwd.c:277:10: branch_false: following ‘false’ branch...
gdb-16.3/gnulib/import/getcwd.c:280:23: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:287:10: branch_false: following ‘false’ branch (when ‘parent_status == 0’)...
gdb-16.3/gnulib/import/getcwd.c:290:10: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:290:10: branch_true: following ‘true’ branch (when ‘dirstream’ is non-NULL)...
gdb-16.3/gnulib/import/getcwd.c:290:24: branch_true: ...to here
gdb-16.3/gnulib/import/getcwd.c:290:24: throw: if ‘closedir’ throws an exception...
gdb-16.3/gnulib/import/getcwd.c:290:24: danger: ‘dir’ leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
#  288|           goto lose;
#  289|   
#  290|->       if (dirstream && __closedir (dirstream) != 0)
#  291|           {
#  292|             dirstream = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def160]
gdb-16.3/gnulib/import/getcwd.c:303:19: warning[-Wanalyzer-malloc-leak]: leak of ‘dir’
gdb-16.3/gnulib/import/getcwd.c:208:6: branch_false: following ‘false’ branch (when ‘dir’ is NULL)...
gdb-16.3/gnulib/import/getcwd.c:208:7: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:232:10: branch_false: following ‘false’ branch (when ‘buf’ is NULL)...
gdb-16.3/gnulib/import/getcwd.c:243:13: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:243:13: acquire_memory: allocated here
gdb-16.3/gnulib/import/getcwd.c:244:10: branch_false: following ‘false’ branch (when ‘dir’ is non-NULL)...
gdb-16.3/gnulib/import/getcwd.c:250:3: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:253:6: branch_false: following ‘false’ branch...
gdb-16.3/gnulib/import/getcwd.c:255:3: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:258:6: branch_false: following ‘false’ branch...
gdb-16.3/gnulib/import/getcwd.c:260:3: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:263:10: branch_true: following ‘true’ branch...
gdb-16.3/gnulib/import/getcwd.c:276:12: branch_true: ...to here
gdb-16.3/gnulib/import/getcwd.c:277:10: branch_false: following ‘false’ branch...
gdb-16.3/gnulib/import/getcwd.c:280:23: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:287:10: branch_false: following ‘false’ branch (when ‘parent_status == 0’)...
gdb-16.3/gnulib/import/getcwd.c:290:10: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:290:10: branch_false: following ‘false’ branch (when ‘dirstream’ is NULL)...
gdb-16.3/gnulib/import/getcwd.c:297:7: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:303:19: throw: if ‘fdopendir’ throws an exception...
gdb-16.3/gnulib/import/getcwd.c:303:19: danger: ‘dir’ leaks here; was allocated at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
#  301|         /* Search for the last directory.  */
#  302|   #if HAVE_OPENAT_SUPPORT
#  303|->       dirstream = __fdopendir (fd);
#  304|         if (dirstream == NULL)
#  305|           goto lose;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def161]
gdb-16.3/gnulib/import/getcwd.c:318:15: warning[-Wanalyzer-malloc-leak]: leak of ‘dir’
gdb-16.3/gnulib/import/getcwd.c:208:6: branch_false: following ‘false’ branch (when ‘dir’ is NULL)...
gdb-16.3/gnulib/import/getcwd.c:208:7: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:232:10: branch_false: following ‘false’ branch (when ‘buf’ is NULL)...
gdb-16.3/gnulib/import/getcwd.c:243:13: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:243:13: acquire_memory: allocated here
gdb-16.3/gnulib/import/getcwd.c:244:10: branch_false: following ‘false’ branch (when ‘dir’ is non-NULL)...
gdb-16.3/gnulib/import/getcwd.c:250:3: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:253:6: branch_false: following ‘false’ branch...
gdb-16.3/gnulib/import/getcwd.c:255:3: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:258:6: branch_false: following ‘false’ branch...
gdb-16.3/gnulib/import/getcwd.c:260:3: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:263:10: branch_true: following ‘true’ branch...
gdb-16.3/gnulib/import/getcwd.c:276:12: branch_true: ...to here
gdb-16.3/gnulib/import/getcwd.c:277:10: branch_false: following ‘false’ branch...
gdb-16.3/gnulib/import/getcwd.c:280:23: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:287:10: branch_false: following ‘false’ branch (when ‘parent_status == 0’)...
gdb-16.3/gnulib/import/getcwd.c:290:10: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:290:10: branch_false: following ‘false’ branch (when ‘dirstream’ is NULL)...
gdb-16.3/gnulib/import/getcwd.c:297:7: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:304:10: branch_false: following ‘false’ branch...
gdb-16.3/gnulib/import/getcwd.c:304:10: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:318:15: throw: if ‘readdir’ throws an exception...
gdb-16.3/gnulib/import/getcwd.c:318:15: danger: ‘dir’ leaks here; was allocated at [(5)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/4)
#  316|                NULL.  */
#  317|             __set_errno (0);
#  318|->           d = __readdir64 (dirstream);
#  319|   
#  320|             /* When we've iterated through all directory entries without finding

Error: GCC_ANALYZER_WARNING (CWE-401): [#def162]
gdb-16.3/gnulib/import/getcwd.c:318:15: warning[-Wanalyzer-malloc-leak]: leak of ‘fdopendir(openat(fd, "..", 0))’
gdb-16.3/gnulib/import/getcwd.c:208:6: branch_false: following ‘false’ branch...
gdb-16.3/gnulib/import/getcwd.c:230:6: branch_false: following ‘false’ branch (when ‘size != 0’)...
gdb-16.3/gnulib/import/getcwd.c:241:6: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:241:6: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
gdb-16.3/gnulib/import/getcwd.c:250:3: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:253:6: branch_false: following ‘false’ branch...
gdb-16.3/gnulib/import/getcwd.c:255:3: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:258:6: branch_false: following ‘false’ branch...
gdb-16.3/gnulib/import/getcwd.c:260:3: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:263:10: branch_true: following ‘true’ branch...
gdb-16.3/gnulib/import/getcwd.c:276:12: branch_true: ...to here
gdb-16.3/gnulib/import/getcwd.c:277:10: branch_false: following ‘false’ branch...
gdb-16.3/gnulib/import/getcwd.c:280:23: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:287:10: branch_false: following ‘false’ branch (when ‘parent_status == 0’)...
gdb-16.3/gnulib/import/getcwd.c:290:10: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:290:10: branch_false: following ‘false’ branch (when ‘dirstream’ is NULL)...
gdb-16.3/gnulib/import/getcwd.c:297:7: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:303:19: acquire_memory: allocated here
gdb-16.3/gnulib/import/getcwd.c:304:10: branch_false: following ‘false’ branch...
gdb-16.3/gnulib/import/getcwd.c:304:10: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:318:15: throw: if ‘readdir’ throws an exception...
gdb-16.3/gnulib/import/getcwd.c:318:15: danger: ‘fdopendir(openat(fd, "..", 0))’ leaks here; was allocated at [(19)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/18)
#  316|                NULL.  */
#  317|             __set_errno (0);
#  318|->           d = __readdir64 (dirstream);
#  319|   
#  320|             /* When we've iterated through all directory entries without finding

Error: GCC_ANALYZER_WARNING (CWE-401): [#def163]
gdb-16.3/gnulib/import/getcwd.c:331:19: warning[-Wanalyzer-malloc-leak]: leak of ‘dir’
gdb-16.3/gnulib/import/getcwd.c:208:6: branch_false: following ‘false’ branch (when ‘dir’ is NULL)...
gdb-16.3/gnulib/import/getcwd.c:208:7: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:232:10: branch_false: following ‘false’ branch (when ‘buf’ is NULL)...
gdb-16.3/gnulib/import/getcwd.c:243:13: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:243:13: acquire_memory: allocated here
gdb-16.3/gnulib/import/getcwd.c:244:10: branch_false: following ‘false’ branch (when ‘dir’ is non-NULL)...
gdb-16.3/gnulib/import/getcwd.c:250:3: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:253:6: branch_false: following ‘false’ branch...
gdb-16.3/gnulib/import/getcwd.c:255:3: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:258:6: branch_false: following ‘false’ branch...
gdb-16.3/gnulib/import/getcwd.c:260:3: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:263:10: branch_true: following ‘true’ branch...
gdb-16.3/gnulib/import/getcwd.c:276:12: branch_true: ...to here
gdb-16.3/gnulib/import/getcwd.c:277:10: branch_false: following ‘false’ branch...
gdb-16.3/gnulib/import/getcwd.c:280:23: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:287:10: branch_false: following ‘false’ branch (when ‘parent_status == 0’)...
gdb-16.3/gnulib/import/getcwd.c:290:10: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:290:10: branch_false: following ‘false’ branch (when ‘dirstream’ is NULL)...
gdb-16.3/gnulib/import/getcwd.c:297:7: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:304:10: branch_false: following ‘false’ branch...
gdb-16.3/gnulib/import/getcwd.c:304:10: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:327:14: branch_true: following ‘true’ branch...
gdb-16.3/gnulib/import/getcwd.c:331:19: throw: if ‘readdir’ throws an exception...
gdb-16.3/gnulib/import/getcwd.c:331:19: danger: ‘dir’ leaks here; was allocated at [(5)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/4)
#  329|                 use_d_ino = false;
#  330|                 __rewinddir (dirstream);
#  331|->               d = __readdir64 (dirstream);
#  332|               }
#  333|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def164]
gdb-16.3/gnulib/import/getcwd.c:443:20: warning[-Wanalyzer-malloc-leak]: leak of ‘dir’
gdb-16.3/gnulib/import/getcwd.c:208:6: branch_false: following ‘false’ branch (when ‘dir’ is NULL)...
gdb-16.3/gnulib/import/getcwd.c:208:7: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:232:10: branch_false: following ‘false’ branch (when ‘buf’ is NULL)...
gdb-16.3/gnulib/import/getcwd.c:243:13: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:243:13: acquire_memory: allocated here
gdb-16.3/gnulib/import/getcwd.c:244:10: branch_false: following ‘false’ branch (when ‘dir’ is non-NULL)...
gdb-16.3/gnulib/import/getcwd.c:250:3: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:253:6: branch_false: following ‘false’ branch...
gdb-16.3/gnulib/import/getcwd.c:255:3: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:258:6: branch_false: following ‘false’ branch...
gdb-16.3/gnulib/import/getcwd.c:260:3: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:263:10: branch_true: following ‘true’ branch...
gdb-16.3/gnulib/import/getcwd.c:276:12: branch_true: ...to here
gdb-16.3/gnulib/import/getcwd.c:277:10: branch_false: following ‘false’ branch...
gdb-16.3/gnulib/import/getcwd.c:280:23: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:287:10: branch_false: following ‘false’ branch (when ‘parent_status == 0’)...
gdb-16.3/gnulib/import/getcwd.c:290:10: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:290:10: branch_false: following ‘false’ branch (when ‘dirstream’ is NULL)...
gdb-16.3/gnulib/import/getcwd.c:297:7: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:304:10: branch_false: following ‘false’ branch...
gdb-16.3/gnulib/import/getcwd.c:304:10: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:401:16: branch_true: following ‘true’ branch...
gdb-16.3/gnulib/import/getcwd.c:401:17: branch_true: following ‘true’ branch...
gdb-16.3/gnulib/import/getcwd.c:410:10: branch_true: following ‘true’ branch (when ‘dirroom <= namlen’)...
gdb-16.3/gnulib/import/getcwd.c:412:14: branch_true: ...to here
gdb-16.3/gnulib/import/getcwd.c:412:14: branch_false: following ‘false’ branch (when ‘size == 0’)...
gdb-16.3/gnulib/import/getcwd.c:422:28: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:423:18: branch_false: following ‘false’ branch (when ‘allocated <= allocated’)...
gdb-16.3/gnulib/import/getcwd.c:424:31: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:423:19: branch_false: following ‘false’ branch (when ‘tmp’ is non-NULL)...
gdb-16.3/gnulib/import/getcwd.c:429:22: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:263:10: branch_false: following ‘false’ branch...
gdb-16.3/gnulib/import/getcwd.c:443:6: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:443:6: branch_true: following ‘true’ branch (when ‘dirstream’ is non-NULL)...
gdb-16.3/gnulib/import/getcwd.c:443:20: branch_true: ...to here
gdb-16.3/gnulib/import/getcwd.c:443:20: throw: if ‘closedir’ throws an exception...
gdb-16.3/gnulib/import/getcwd.c:443:20: danger: ‘dir’ leaks here; was allocated at [(5)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/4)
#  441|       }
#  442|   
#  443|->   if (dirstream && __closedir (dirstream) != 0)
#  444|       {
#  445|         dirstream = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def165]
gdb-16.3/gnulib/import/getcwd.c:477:7: warning[-Wanalyzer-malloc-leak]: leak of ‘dir’
gdb-16.3/gnulib/import/getcwd.c:208:6: branch_false: following ‘false’ branch (when ‘dir’ is NULL)...
gdb-16.3/gnulib/import/getcwd.c:208:7: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:232:10: branch_false: following ‘false’ branch (when ‘buf’ is NULL)...
gdb-16.3/gnulib/import/getcwd.c:243:13: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:243:13: acquire_memory: allocated here
gdb-16.3/gnulib/import/getcwd.c:244:10: branch_false: following ‘false’ branch (when ‘dir’ is non-NULL)...
gdb-16.3/gnulib/import/getcwd.c:250:3: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:253:6: branch_false: following ‘false’ branch...
gdb-16.3/gnulib/import/getcwd.c:255:3: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:258:6: branch_false: following ‘false’ branch...
gdb-16.3/gnulib/import/getcwd.c:260:3: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:263:10: branch_true: following ‘true’ branch...
gdb-16.3/gnulib/import/getcwd.c:276:12: branch_true: ...to here
gdb-16.3/gnulib/import/getcwd.c:277:10: branch_false: following ‘false’ branch...
gdb-16.3/gnulib/import/getcwd.c:280:23: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:287:10: branch_false: following ‘false’ branch (when ‘parent_status == 0’)...
gdb-16.3/gnulib/import/getcwd.c:290:10: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:290:10: branch_false: following ‘false’ branch (when ‘dirstream’ is NULL)...
gdb-16.3/gnulib/import/getcwd.c:297:7: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:304:10: branch_false: following ‘false’ branch...
gdb-16.3/gnulib/import/getcwd.c:304:10: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:334:14: branch_true: following ‘true’ branch (when ‘d’ is NULL)...
gdb-16.3/gnulib/import/getcwd.c:336:19: branch_true: ...to here
gdb-16.3/gnulib/import/getcwd.c:476:8: branch_true: following ‘true’ branch (when ‘dirstream’ is non-NULL)...
gdb-16.3/gnulib/import/getcwd.c:477:7: branch_true: ...to here
gdb-16.3/gnulib/import/getcwd.c:477:7: throw: if ‘closedir’ throws an exception...
gdb-16.3/gnulib/import/getcwd.c:477:7: danger: ‘dir’ leaks here; was allocated at [(5)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/4)
#  475|       int save = errno;
#  476|       if (dirstream)
#  477|->       __closedir (dirstream);
#  478|   #if HAVE_OPENAT_SUPPORT
#  479|       if (fd_needs_closing)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def166]
gdb-16.3/gnulib/import/getcwd.c:480:8: warning[-Wanalyzer-malloc-leak]: leak of ‘dir’
gdb-16.3/gnulib/import/getcwd.c:208:6: branch_false: following ‘false’ branch (when ‘dir’ is NULL)...
gdb-16.3/gnulib/import/getcwd.c:208:7: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:232:10: branch_false: following ‘false’ branch (when ‘buf’ is NULL)...
gdb-16.3/gnulib/import/getcwd.c:243:13: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:243:13: acquire_memory: allocated here
gdb-16.3/gnulib/import/getcwd.c:244:10: branch_false: following ‘false’ branch (when ‘dir’ is non-NULL)...
gdb-16.3/gnulib/import/getcwd.c:250:3: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:253:6: branch_false: following ‘false’ branch...
gdb-16.3/gnulib/import/getcwd.c:255:3: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:258:6: branch_false: following ‘false’ branch...
gdb-16.3/gnulib/import/getcwd.c:260:3: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:263:10: branch_true: following ‘true’ branch...
gdb-16.3/gnulib/import/getcwd.c:276:12: branch_true: ...to here
gdb-16.3/gnulib/import/getcwd.c:277:10: branch_false: following ‘false’ branch...
gdb-16.3/gnulib/import/getcwd.c:280:23: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:287:10: branch_false: following ‘false’ branch (when ‘parent_status == 0’)...
gdb-16.3/gnulib/import/getcwd.c:290:10: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:290:10: branch_false: following ‘false’ branch (when ‘dirstream’ is NULL)...
gdb-16.3/gnulib/import/getcwd.c:297:7: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:304:10: branch_true: following ‘true’ branch...
gdb-16.3/gnulib/import/getcwd.c:305:9: branch_true: ...to here
gdb-16.3/gnulib/import/getcwd.c:476:8: branch_false: following ‘false’ branch (when ‘dirstream’ is NULL)...
gdb-16.3/gnulib/import/getcwd.c:479:8: branch_false: ...to here
gdb-16.3/gnulib/import/getcwd.c:479:8: branch_true: following ‘true’ branch (when ‘fd_needs_closing != 0’)...
gdb-16.3/gnulib/import/getcwd.c:480:8: branch_true: ...to here
gdb-16.3/gnulib/import/getcwd.c:480:8: throw: if ‘close’ throws an exception...
gdb-16.3/gnulib/import/getcwd.c:480:8: danger: ‘dir’ leaks here; was allocated at [(5)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/4)
#  478|   #if HAVE_OPENAT_SUPPORT
#  479|       if (fd_needs_closing)
#  480|->        __close_nocancel_nostatus (fd);
#  481|   #else
#  482|       if (dotlist != dots)

Error: CPPCHECK_WARNING (CWE-562): [#def167]
gdb-16.3/gnulib/import/gettext.h:247: error[returnDanglingLifetime]: Returning pointer to local variable 'msg_ctxt_id' that will be invalid when returning.
#  245|   #endif
#  246|         if (found_translation)
#  247|->         return translation;
#  248|       }
#  249|     return msgid;

Error: CPPCHECK_WARNING (CWE-401): [#def168]
gdb-16.3/gnulib/import/malloc/scratch_buffer_dupfree.c:38: error[memleak]: Memory leak: copy
#   36|       {
#   37|         void *copy = realloc (data, size);
#   38|->       return copy != NULL ? copy : data;
#   39|       }
#   40|   }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def169]
gdb-16.3/gnulib/import/openat-proc.c:91:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/proc/self/fd", 592128)’
gdb-16.3/gnulib/import/openat-proc.c:50:6: branch_false: following ‘false’ branch...
gdb-16.3/gnulib/import/openat-proc.c:66:9: branch_false: ...to here
gdb-16.3/gnulib/import/openat-proc.c:66:8: branch_true: following ‘true’ branch...
gdb-16.3/gnulib/import/openat-proc.c:77:11: branch_true: ...to here
gdb-16.3/gnulib/import/openat-proc.c:77:11: acquire_resource: opened here
gdb-16.3/gnulib/import/openat-proc.c:79:12: branch_false: following ‘false’ branch...
gdb-16.3/gnulib/import/openat-proc.c:89:13: branch_false: ...to here
gdb-16.3/gnulib/import/openat-proc.c:91:13: danger: ‘open("/proc/self/fd", 592128)’ leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#   89|               sprintf (dotdot_buf, PROC_SELF_FD_FORMAT "../fd", proc_self_fd);
#   90|               proc_status = access (dotdot_buf, F_OK) ? -1 : 1;
#   91|->             close (proc_self_fd);
#   92|             }
#   93|         }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def170]
gdb-16.3/libbacktrace/posix.c:86:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(filename, 524288)’
gdb-16.3/libbacktrace/posix.c:67:16: acquire_resource: opened here
gdb-16.3/libbacktrace/posix.c:68:6: branch_false: following ‘false’ branch...
gdb-16.3/libbacktrace/posix.c:86:3: branch_false: ...to here
gdb-16.3/libbacktrace/posix.c:86:3: throw: if ‘fcntl’ throws an exception...
gdb-16.3/libbacktrace/posix.c:86:3: danger: ‘open(filename, 524288)’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   84|        FIXME: At some point it should be safe to only do this if
#   85|        O_CLOEXEC == 0.  */
#   86|->   fcntl (descriptor, F_SETFD, FD_CLOEXEC);
#   87|   #endif
#   88|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def171]
gdb-16.3/libctf/ctf-archive.c:686:3: warning[-Wanalyzer-malloc-leak]: leak of ‘dupname’
gdb-16.3/libctf/ctf-archive.c:1002:1: enter_function: entry to ‘ctf_arc_lookup_symbol_name’
gdb-16.3/libctf/ctf-archive.c:1005:10: call_function: calling ‘ctf_arc_lookup_sym_or_name’ from ‘ctf_arc_lookup_symbol_name’
#  684|   
#  685|    oom:
#  686|->   ctf_dict_close (fp);
#  687|     free (dupname);
#  688|     if (errp)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def172]
gdb-16.3/libctf/ctf-archive.c:768:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘err’
gdb-16.3/libctf/ctf-archive.c:650:1: enter_function: entry to ‘ctf_dict_open_cached’
gdb-16.3/libctf/ctf-archive.c:664:8: call_function: calling ‘ctf_dict_open’ from ‘ctf_dict_open_cached’
#  766|   						 fp->ctf_parname, &err);
#  767|         if (errp)
#  768|-> 	*errp = err;
#  769|   
#  770|         if (parent)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def173]
gdb-16.3/libctf/ctf-archive.c:979:13: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp’
gdb-16.3/libctf/ctf-archive.c:1002:1: enter_function: entry to ‘ctf_arc_lookup_symbol_name’
gdb-16.3/libctf/ctf-archive.c:1005:10: call_function: calling ‘ctf_arc_lookup_sym_or_name’ from ‘ctf_arc_lookup_symbol_name’
#  977|   	 impact.  */
#  978|         if ((tmp = strdup (symname)) != NULL)
#  979|-> 	if (ctf_dynhash_insert (wrapper->ctfi_symnamedicts, tmp, &enosym) < 0)
#  980|   	  free (tmp);
#  981|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def174]
gdb-16.3/libctf/ctf-create.c:467:28: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
gdb-16.3/libctf/ctf-create.c:420:1: enter_function: entry to ‘ctf_add_generic’
gdb-16.3/libctf/ctf-create.c:449:7: call_function: calling ‘ctf_grow_ptrtab’ from ‘ctf_add_generic’
gdb-16.3/libctf/ctf-create.c:449:7: return_function: returning to ‘ctf_add_generic’ from ‘ctf_grow_ptrtab’
gdb-16.3/libctf/ctf-create.c:449:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-create.c:452:14: branch_false: ...to here
gdb-16.3/libctf/ctf-create.c:452:6: branch_false: following ‘false’ branch (when ‘dtd’ is non-NULL)...
gdb-16.3/libctf/ctf-create.c:455:3: branch_false: ...to here
gdb-16.3/libctf/ctf-create.c:456:6: branch_true: following ‘true’ branch (when ‘vlen != 0’)...
gdb-16.3/libctf/ctf-create.c:458:28: branch_true: ...to here
gdb-16.3/libctf/ctf-create.c:458:28: acquire_memory: allocated here
gdb-16.3/libctf/ctf-create.c:458:10: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-create.c:464:12: branch_false: ...to here
gdb-16.3/libctf/ctf-create.c:467:28: throw: if ‘ctf_str_add_ref’ throws an exception...
gdb-16.3/libctf/ctf-create.c:467:28: danger: ‘<unknown>’ leaks here; was allocated at [(13)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/12)
#  465|     type = LCTF_INDEX_TO_TYPE (fp, type, (fp->ctf_flags & LCTF_CHILD));
#  466|   
#  467|->   dtd->dtd_data.ctt_name = ctf_str_add_ref (fp, name, &dtd->dtd_data.ctt_name);
#  468|     dtd->dtd_type = type;
#  469|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def175]
gdb-16.3/libctf/ctf-create.c:467:28: warning[-Wanalyzer-malloc-leak]: leak of ‘dtd’
gdb-16.3/libctf/ctf-create.c:420:1: enter_function: entry to ‘ctf_add_generic’
gdb-16.3/libctf/ctf-create.c:449:7: call_function: calling ‘ctf_grow_ptrtab’ from ‘ctf_add_generic’
gdb-16.3/libctf/ctf-create.c:449:7: return_function: returning to ‘ctf_add_generic’ from ‘ctf_grow_ptrtab’
gdb-16.3/libctf/ctf-create.c:449:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-create.c:452:14: branch_false: ...to here
gdb-16.3/libctf/ctf-create.c:452:14: acquire_memory: allocated here
gdb-16.3/libctf/ctf-create.c:452:6: branch_false: following ‘false’ branch (when ‘dtd’ is non-NULL)...
gdb-16.3/libctf/ctf-create.c:455:3: branch_false: ...to here
gdb-16.3/libctf/ctf-create.c:456:6: branch_false: following ‘false’ branch (when ‘vlen == 0’)...
gdb-16.3/libctf/ctf-create.c:462:5: branch_false: ...to here
gdb-16.3/libctf/ctf-create.c:467:28: throw: if ‘ctf_str_add_ref’ throws an exception...
gdb-16.3/libctf/ctf-create.c:467:28: danger: ‘dtd’ leaks here; was allocated at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
#  465|     type = LCTF_INDEX_TO_TYPE (fp, type, (fp->ctf_flags & LCTF_CHILD));
#  466|   
#  467|->   dtd->dtd_data.ctt_name = ctf_str_add_ref (fp, name, &dtd->dtd_data.ctt_name);
#  468|     dtd->dtd_type = type;
#  469|   

Error: CPPCHECK_WARNING (CWE-190): [#def176]
gdb-16.3/libctf/ctf-create.c:526: error[integerOverflow]: Signed integer overflow for expression '-8'.
#  524|   
#  525|     dtd->dtd_data.ctt_info = CTF_TYPE_INFO (kind, flag, 0);
#  526|->   dtd->dtd_data.ctt_size = clp2 (P2ROUNDUP (ep->cte_bits, CHAR_BIT)
#  527|   				 / CHAR_BIT);
#  528|     switch (kind)

Error: CPPCHECK_WARNING (CWE-190): [#def177]
gdb-16.3/libctf/ctf-create.c:628: error[integerOverflow]: Signed integer overflow for expression '-8'.
#  626|   
#  627|     dtd->dtd_data.ctt_info = CTF_TYPE_INFO (CTF_K_SLICE, flag, 0);
#  628|->   dtd->dtd_data.ctt_size = clp2 (P2ROUNDUP (ep->cte_bits, CHAR_BIT)
#  629|   				 / CHAR_BIT);
#  630|     slice.cts_type = (uint32_t) ref;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def178]
gdb-16.3/libctf/ctf-create.c:1588:3: warning[-Wanalyzer-malloc-leak]: leak of ‘key’
gdb-16.3/libctf/ctf-create.c:2064:1: enter_function: entry to ‘ctf_add_type’
gdb-16.3/libctf/ctf-create.c:2068:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-create.c:2075:8: branch_false: ...to here
gdb-16.3/libctf/ctf-create.c:2075:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-create.c:2078:8: branch_false: ...to here
gdb-16.3/libctf/ctf-create.c:2078:8: call_function: calling ‘ctf_add_type_internal’ from ‘ctf_add_type’
# 1586|        add a few more duplicate types (which will probably run out of memory
# 1587|        anyway).  */
# 1588|->   ctf_dynhash_insert (dst_fp->ctf_link_type_mapping, key,
# 1589|   		      (void *) (uintptr_t) dst_type);
# 1590|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def179]
gdb-16.3/libctf/ctf-decl.c:162:5: warning[-Wanalyzer-malloc-leak]: leak of ‘cdp’
gdb-16.3/libctf/ctf-decl.c:75:1: enter_function: entry to ‘ctf_decl_push’
gdb-16.3/libctf/ctf-decl.c:85:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-decl.c:91:18: branch_false: ...to here
gdb-16.3/libctf/ctf-decl.c:95:7: call_function: calling ‘ctf_decl_push’ from ‘ctf_decl_push’
#  160|       ctf_list_prepend (&cd->cd_nodes[prec], cdp);
#  161|     else
#  162|->     ctf_list_append (&cd->cd_nodes[prec], cdp);
#  163|   }
#  164|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def180]
gdb-16.3/libctf/ctf-decls.h:35:3: warning[-Wanalyzer-malloc-leak]: leak of ‘sorted’
gdb-16.3/libctf/ctf-lookup.c:1298:1: enter_function: entry to ‘ctf_func_args’
gdb-16.3/libctf/ctf-lookup.c:1303:15: call_function: inlined call to ‘ctf_lookup_by_symbol’ from ‘ctf_func_args’
#   33|   	     void *arg)
#   34|   {
#   35|->   qsort_r (base, nmemb, size, compar, arg);
#   36|   }
#   37|   #elif HAVE_QSORT_R_COMPAR_LAST

Error: GCC_ANALYZER_WARNING (CWE-401): [#def181]
gdb-16.3/libctf/ctf-dump.c:62:3: warning[-Wanalyzer-malloc-leak]: leak of ‘cdi’
gdb-16.3/libctf/ctf-dump.c:664:1: enter_function: entry to ‘ctf_dump_str’
gdb-16.3/libctf/ctf-dump.c:668:10: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-dump.c:673:37: branch_true: ...to here
gdb-16.3/libctf/ctf-dump.c:672:10: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-dump.c:676:7: branch_false: ...to here
gdb-16.3/libctf/ctf-dump.c:676:7: call_function: calling ‘ctf_dump_append’ from ‘ctf_dump_str’
#   60|   
#   61|     cdi->cdi_item = str;
#   62|->   ctf_list_append (&state->cds_items, cdi);
#   63|     return 0;
#   64|   }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def182]
gdb-16.3/libctf/ctf-dump.c:807:13: warning[-Wanalyzer-null-argument]: use of NULL ‘str’ where non-null expected
gdb-16.3/libctf/ctf-dump.c:761:10: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-dump.c:768:7: branch_false: ...to here
gdb-16.3/libctf/ctf-dump.c:773:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-dump.c:778:6: branch_false: ...to here
gdb-16.3/libctf/ctf-dump.c:778:6: branch_true: following ‘true’ branch (when ‘func’ is non-NULL)...
gdb-16.3/libctf/ctf-dump.c:783:12: branch_true: ...to here
gdb-16.3/libctf/ctf-dump.c:807:13: danger: argument 1 (‘str’) NULL where non-null expected
#  805|   	}
#  806|   
#  807|->       len = strlen (str);
#  808|   
#  809|         if (str[len-1] == '\n')

Error: GCC_ANALYZER_WARNING (CWE-401): [#def183]
gdb-16.3/libctf/ctf-hash.c:177:24: warning[-Wanalyzer-malloc-leak]: leak of ‘dynhash’
gdb-16.3/libctf/ctf-hash.c:164:6: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-hash.c:165:15: branch_true: ...to here
gdb-16.3/libctf/ctf-hash.c:165:15: acquire_memory: allocated here
gdb-16.3/libctf/ctf-hash.c:171:6: branch_false: following ‘false’ branch (when ‘dynhash’ is non-NULL)...
gdb-16.3/libctf/ctf-hash.c:174:7: branch_false: ...to here
gdb-16.3/libctf/ctf-hash.c:174:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-hash.c:177:24: branch_false: ...to here
gdb-16.3/libctf/ctf-hash.c:177:24: throw: if ‘htab_create_alloc’ throws an exception...
gdb-16.3/libctf/ctf-hash.c:177:24: danger: ‘dynhash’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  175|       del = free;
#  176|   
#  177|->   if ((dynhash->htab = htab_create_alloc (nelems, (htab_hash) hash_fun, eq_fun,
#  178|   					  del, xcalloc, free)) == NULL)
#  179|       {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def184]
gdb-16.3/libctf/ctf-hash.c:177:24: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
gdb-16.3/libctf/ctf-hash.c:164:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-hash.c:168:17: branch_false: ...to here
gdb-16.3/libctf/ctf-hash.c:168:17: acquire_memory: allocated here
gdb-16.3/libctf/ctf-hash.c:171:6: branch_false: following ‘false’ branch (when ‘dynhash’ is non-NULL)...
gdb-16.3/libctf/ctf-hash.c:174:7: branch_false: ...to here
gdb-16.3/libctf/ctf-hash.c:174:6: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-hash.c:174:6: branch_true: ...to here
gdb-16.3/libctf/ctf-hash.c:177:24: throw: if ‘htab_create_alloc’ throws an exception...
gdb-16.3/libctf/ctf-hash.c:177:24: danger: ‘p’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  175|       del = free;
#  176|   
#  177|->   if ((dynhash->htab = htab_create_alloc (nelems, (htab_hash) hash_fun, eq_fun,
#  178|   					  del, xcalloc, free)) == NULL)
#  179|       {

Error: GCC_ANALYZER_WARNING (CWE-122): [#def185]
gdb-16.3/libctf/ctf-hash.c:186:7: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
gdb-16.3/libctf/ctf-hash.c:164:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-hash.c:168:17: branch_false: ...to here
gdb-16.3/libctf/ctf-hash.c:171:6: branch_false: following ‘false’ branch (when ‘dynhash’ is non-NULL)...
gdb-16.3/libctf/ctf-hash.c:174:7: branch_false: ...to here
gdb-16.3/libctf/ctf-hash.c:174:6: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-hash.c:174:6: branch_true: ...to here
gdb-16.3/libctf/ctf-hash.c:177:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-hash.c:184:6: branch_false: ...to here
gdb-16.3/libctf/ctf-hash.c:184:6: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-hash.c:186:7: branch_true: ...to here
gdb-16.3/libctf/ctf-hash.c:186:7: danger: out-of-bounds write from byte 8 till byte 15 but region ends at byte 8
#  184|     if (key_free || value_free)
#  185|       {
#  186|->       dynhash->key_free = key_free;
#  187|         dynhash->value_free = value_free;
#  188|       }

Error: GCC_ANALYZER_WARNING (CWE-122): [#def186]
gdb-16.3/libctf/ctf-hash.c:187:7: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
gdb-16.3/libctf/ctf-hash.c:164:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-hash.c:168:17: branch_false: ...to here
gdb-16.3/libctf/ctf-hash.c:171:6: branch_false: following ‘false’ branch (when ‘dynhash’ is non-NULL)...
gdb-16.3/libctf/ctf-hash.c:174:7: branch_false: ...to here
gdb-16.3/libctf/ctf-hash.c:174:6: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-hash.c:174:6: branch_true: ...to here
gdb-16.3/libctf/ctf-hash.c:177:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-hash.c:184:6: branch_false: ...to here
gdb-16.3/libctf/ctf-hash.c:184:6: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-hash.c:186:7: branch_true: ...to here
gdb-16.3/libctf/ctf-hash.c:187:7: danger: out-of-bounds write from byte 16 till byte 23 but region ends at byte 8
#  185|       {
#  186|         dynhash->key_free = key_free;
#  187|->       dynhash->value_free = value_free;
#  188|       }
#  189|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def187]
gdb-16.3/libctf/ctf-inlines.h:68:10: warning[-Wanalyzer-malloc-leak]: leak of ‘new_sym’
gdb-16.3/libctf/ctf-link.c:1669:1: enter_function: entry to ‘ctf_link_shuffle_syms’
gdb-16.3/libctf/ctf-link.c:1676:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:1679:8: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:1679:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:1694:8: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:1694:58: branch_true: following ‘true’ branch (when ‘did’ is non-NULL)...
gdb-16.3/libctf/ctf-link.c:1698:7: branch_true: ...to here
gdb-16.3/libctf/ctf-link.c:1704:10: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-link.c:1706:26: branch_true: ...to here
gdb-16.3/libctf/ctf-link.c:1710:14: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:1716:12: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:1716:10: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-link.c:1718:11: branch_true: ...to here
gdb-16.3/libctf/ctf-link.c:1721:26: acquire_memory: allocated here
gdb-16.3/libctf/ctf-link.c:1721:14: branch_false: following ‘false’ branch (when ‘new_sym’ is non-NULL)...
gdb-16.3/libctf/ctf-link.c:1724:11: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:1725:15: call_function: inlined call to ‘ctf_dynhash_cinsert’ from ‘ctf_link_shuffle_syms’
#   66|   ctf_dynhash_cinsert (ctf_dynhash_t *h, const void *k, const void *v)
#   67|   {
#   68|->   return ctf_dynhash_insert (h, (void *) k, (void *) v);
#   69|   }
#   70|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def188]
gdb-16.3/libctf/ctf-inlines.h:88:5: warning[-Wanalyzer-malloc-leak]: leak of ‘sorttab’
gdb-16.3/libctf/ctf-string.c:648:1: enter_function: entry to ‘ctf_str_write_strtab’
gdb-16.3/libctf/ctf-string.c:662:6: branch_false: following ‘false’ branch (when ‘strtab’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:671:21: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:700:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-string.c:709:32: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:713:13: acquire_memory: allocated here
gdb-16.3/libctf/ctf-string.c:714:6: branch_false: following ‘false’ branch (when ‘sorttab’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:714:6: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:721:10: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-string.c:725:14: branch_true: ...to here
gdb-16.3/libctf/ctf-string.c:726:12: call_function: inlined call to ‘ctf_assert_internal’ from ‘ctf_str_write_strtab’
#   86|   {
#   87|     if (_libctf_unlikely_ (!expr))
#   88|->     ctf_assert_fail_internal (fp, file, line, exprstr);
#   89|   
#   90|     return expr;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def189]
gdb-16.3/libctf/ctf-inlines.h:88:5: warning[-Wanalyzer-malloc-leak]: leak of ‘strtab’
gdb-16.3/libctf/ctf-string.c:648:1: enter_function: entry to ‘ctf_str_write_strtab’
gdb-16.3/libctf/ctf-string.c:661:12: acquire_memory: allocated here
gdb-16.3/libctf/ctf-string.c:662:6: branch_false: following ‘false’ branch (when ‘strtab’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:671:21: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:683:10: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-string.c:685:19: branch_true: ...to here
gdb-16.3/libctf/ctf-string.c:689:12: call_function: inlined call to ‘ctf_assert_internal’ from ‘ctf_str_write_strtab’
#   86|   {
#   87|     if (_libctf_unlikely_ (!expr))
#   88|->     ctf_assert_fail_internal (fp, file, line, exprstr);
#   89|   
#   90|     return expr;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def190]
gdb-16.3/libctf/ctf-link.c:122:14: warning[-Wanalyzer-malloc-leak]: leak of ‘filename’
gdb-16.3/libctf/ctf-link.c:113:19: acquire_memory: allocated here
gdb-16.3/libctf/ctf-link.c:113:6: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
gdb-16.3/libctf/ctf-link.c:116:16: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:116:6: branch_false: following ‘false’ branch (when ‘input’ is non-NULL)...
gdb-16.3/libctf/ctf-link.c:119:3: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:122:14: throw: if ‘ctf_dynhash_elements’ throws an exception...
gdb-16.3/libctf/ctf-link.c:122:14: danger: ‘filename’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  120|     input->clin_fp = fp_input;
#  121|     input->clin_filename = filename;
#  122|->   input->n = ctf_dynhash_elements (fp->ctf_link_inputs);
#  123|   
#  124|     if (existing)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def191]
gdb-16.3/libctf/ctf-link.c:122:14: warning[-Wanalyzer-malloc-leak]: leak of ‘input’
gdb-16.3/libctf/ctf-link.c:113:6: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
gdb-16.3/libctf/ctf-link.c:116:16: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:116:16: acquire_memory: allocated here
gdb-16.3/libctf/ctf-link.c:116:6: branch_false: following ‘false’ branch (when ‘input’ is non-NULL)...
gdb-16.3/libctf/ctf-link.c:119:3: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:122:14: throw: if ‘ctf_dynhash_elements’ throws an exception...
gdb-16.3/libctf/ctf-link.c:122:14: danger: ‘input’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  120|     input->clin_fp = fp_input;
#  121|     input->clin_filename = filename;
#  122|->   input->n = ctf_dynhash_elements (fp->ctf_link_inputs);
#  123|   
#  124|     if (existing)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def192]
gdb-16.3/libctf/ctf-link.c:127:21: warning[-Wanalyzer-malloc-leak]: leak of ‘filename’
gdb-16.3/libctf/ctf-link.c:113:19: acquire_memory: allocated here
gdb-16.3/libctf/ctf-link.c:113:6: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
gdb-16.3/libctf/ctf-link.c:116:16: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:116:6: branch_false: following ‘false’ branch (when ‘input’ is non-NULL)...
gdb-16.3/libctf/ctf-link.c:119:3: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:124:6: branch_true: following ‘true’ branch (when ‘existing != 0’)...
gdb-16.3/libctf/ctf-link.c:127:21: branch_true: ...to here
gdb-16.3/libctf/ctf-link.c:127:21: throw: if ‘ctf_dynhash_elements’ throws an exception...
gdb-16.3/libctf/ctf-link.c:127:21: danger: ‘filename’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  125|       {
#  126|         if (asprintf (&keyname, "%s#%li", name, (long int)
#  127|-> 		    ctf_dynhash_elements (fp->ctf_link_inputs)) < 0)
#  128|   	goto oom2;
#  129|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def193]
gdb-16.3/libctf/ctf-link.c:127:21: warning[-Wanalyzer-malloc-leak]: leak of ‘input’
gdb-16.3/libctf/ctf-link.c:113:6: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
gdb-16.3/libctf/ctf-link.c:116:16: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:116:16: acquire_memory: allocated here
gdb-16.3/libctf/ctf-link.c:116:6: branch_false: following ‘false’ branch (when ‘input’ is non-NULL)...
gdb-16.3/libctf/ctf-link.c:119:3: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:124:6: branch_true: following ‘true’ branch (when ‘existing != 0’)...
gdb-16.3/libctf/ctf-link.c:127:21: branch_true: ...to here
gdb-16.3/libctf/ctf-link.c:127:21: throw: if ‘ctf_dynhash_elements’ throws an exception...
gdb-16.3/libctf/ctf-link.c:127:21: danger: ‘input’ leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
#  125|       {
#  126|         if (asprintf (&keyname, "%s#%li", name, (long int)
#  127|-> 		    ctf_dynhash_elements (fp->ctf_link_inputs)) < 0)
#  128|   	goto oom2;
#  129|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def194]
gdb-16.3/libctf/ctf-link.c:133:7: warning[-Wanalyzer-malloc-leak]: leak of ‘filename’
gdb-16.3/libctf/ctf-link.c:113:19: acquire_memory: allocated here
gdb-16.3/libctf/ctf-link.c:113:6: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
gdb-16.3/libctf/ctf-link.c:116:16: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:116:6: branch_false: following ‘false’ branch (when ‘input’ is non-NULL)...
gdb-16.3/libctf/ctf-link.c:119:3: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:124:6: branch_false: following ‘false’ branch (when ‘existing == 0’)...
gdb-16.3/libctf/ctf-link.c:130:23: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:130:11: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:133:7: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:133:7: throw: if ‘ctf_dynhash_insert’ throws an exception...
gdb-16.3/libctf/ctf-link.c:133:7: danger: ‘filename’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#  131|       goto oom2;
#  132|   
#  133|->   if (ctf_dynhash_insert (fp->ctf_link_inputs, keyname, input) < 0)
#  134|       goto oom3;
#  135|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def195]
gdb-16.3/libctf/ctf-link.c:133:7: warning[-Wanalyzer-malloc-leak]: leak of ‘input’
gdb-16.3/libctf/ctf-link.c:113:6: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
gdb-16.3/libctf/ctf-link.c:116:16: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:116:16: acquire_memory: allocated here
gdb-16.3/libctf/ctf-link.c:116:6: branch_false: following ‘false’ branch (when ‘input’ is non-NULL)...
gdb-16.3/libctf/ctf-link.c:119:3: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:124:6: branch_false: following ‘false’ branch (when ‘existing == 0’)...
gdb-16.3/libctf/ctf-link.c:130:23: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:130:11: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:133:7: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:133:7: throw: if ‘ctf_dynhash_insert’ throws an exception...
gdb-16.3/libctf/ctf-link.c:133:7: danger: ‘input’ leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
#  131|       goto oom2;
#  132|   
#  133|->   if (ctf_dynhash_insert (fp->ctf_link_inputs, keyname, input) < 0)
#  134|       goto oom3;
#  135|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def196]
gdb-16.3/libctf/ctf-link.c:133:7: warning[-Wanalyzer-malloc-leak]: leak of ‘keyname’
gdb-16.3/libctf/ctf-link.c:113:6: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)...
gdb-16.3/libctf/ctf-link.c:116:16: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:116:6: branch_false: following ‘false’ branch (when ‘input’ is non-NULL)...
gdb-16.3/libctf/ctf-link.c:119:3: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:124:6: branch_false: following ‘false’ branch (when ‘existing == 0’)...
gdb-16.3/libctf/ctf-link.c:130:23: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:130:23: acquire_memory: allocated here
gdb-16.3/libctf/ctf-link.c:130:11: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:133:7: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:133:7: throw: if ‘ctf_dynhash_insert’ throws an exception...
gdb-16.3/libctf/ctf-link.c:133:7: danger: ‘keyname’ leaks here; was allocated at [(7)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/6)
#  131|       goto oom2;
#  132|   
#  133|->   if (ctf_dynhash_insert (fp->ctf_link_inputs, keyname, input) < 0)
#  134|       goto oom3;
#  135|   

Error: CPPCHECK_WARNING (CWE-457): [#def197]
gdb-16.3/libctf/ctf-link.c:254: error[uninitvar]: Uninitialized variable: err
#  252|     if (!input->clin_arc)
#  253|       {
#  254|->       if (err == ECTF_NOCTFDATA)
#  255|   	return 0;
#  256|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def198]
gdb-16.3/libctf/ctf-link.c:281:10: warning[-Wanalyzer-malloc-leak]: leak of ‘ctf_new_per_cu_name(fp,  ctf_name)’
gdb-16.3/libctf/ctf-link.c:295:1: enter_function: entry to ‘ctf_create_per_cu’
gdb-16.3/libctf/ctf-link.c:331:10: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:340:7: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:343:22: call_function: calling ‘ctf_new_per_cu_name’ from ‘ctf_create_per_cu’
gdb-16.3/libctf/ctf-link.c:343:22: return_function: returning to ‘ctf_create_per_cu’ from ‘ctf_new_per_cu_name’
gdb-16.3/libctf/ctf-link.c:343:10: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:346:7: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:346:7: throw: if ‘ctf_cuname_set’ throws an exception...
gdb-16.3/libctf/ctf-link.c:281:10: danger: ‘ctf_new_per_cu_name(fp,  ctf_name)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/5)
#  279|       return NULL;
#  280|   
#  281|->   while ((ctf_dynhash_lookup (fp->ctf_link_outputs, dynname)) != NULL)
#  282|       {
#  283|         free (dynname);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def199]
gdb-16.3/libctf/ctf-link.c:281:10: warning[-Wanalyzer-malloc-leak]: leak of ‘dynname’
gdb-16.3/libctf/ctf-link.c:278:18: acquire_memory: allocated here
gdb-16.3/libctf/ctf-link.c:278:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:278:6: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:281:10: throw: if ‘ctf_dynhash_lookup’ throws an exception...
gdb-16.3/libctf/ctf-link.c:281:10: danger: ‘dynname’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#  279|       return NULL;
#  280|   
#  281|->   while ((ctf_dynhash_lookup (fp->ctf_link_outputs, dynname)) != NULL)
#  282|       {
#  283|         free (dynname);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def200]
gdb-16.3/libctf/ctf-link.c:422:14: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
gdb-16.3/libctf/ctf-link.c:388:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:391:7: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:396:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:402:19: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:412:7: acquire_memory: allocated here
gdb-16.3/libctf/ctf-link.c:414:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:422:14: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:422:14: throw: if ‘ctf_dynhash_insert’ throws an exception...
gdb-16.3/libctf/ctf-link.c:422:14: danger: ‘f’ leaks here; was allocated at [(5)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/4)
#  420|        corresponding to a single output CU.  */
#  421|   
#  422|->   if ((err = ctf_dynhash_insert (fp->ctf_link_in_cu_mapping, f, t)) < 0)
#  423|       {
#  424|         ctf_set_errno (fp, err);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def201]
gdb-16.3/libctf/ctf-link.c:422:14: warning[-Wanalyzer-malloc-leak]: leak of ‘t’
gdb-16.3/libctf/ctf-link.c:388:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:391:7: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:396:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:402:19: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:413:7: acquire_memory: allocated here
gdb-16.3/libctf/ctf-link.c:414:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:422:14: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:422:14: throw: if ‘ctf_dynhash_insert’ throws an exception...
gdb-16.3/libctf/ctf-link.c:422:14: danger: ‘t’ leaks here; was allocated at [(5)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/4)
#  420|        corresponding to a single output CU.  */
#  421|   
#  422|->   if ((err = ctf_dynhash_insert (fp->ctf_link_in_cu_mapping, f, t)) < 0)
#  423|       {
#  424|         ctf_set_errno (fp, err);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def202]
gdb-16.3/libctf/ctf-link.c:434:18: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
gdb-16.3/libctf/ctf-link.c:388:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:391:7: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:396:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:402:19: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:414:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:422:14: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:422:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:429:7: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:429:7: acquire_memory: allocated here
gdb-16.3/libctf/ctf-link.c:431:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:434:18: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:434:18: throw: if ‘ctf_dynhash_lookup’ throws an exception...
gdb-16.3/libctf/ctf-link.c:434:18: danger: ‘f’ leaks here; was allocated at [(9)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/8)
#  432|       goto oom;
#  433|   
#  434|->   if ((one_out = ctf_dynhash_lookup (fp->ctf_link_out_cu_mapping, t)) == NULL)
#  435|       {
#  436|         if ((one_out = ctf_dynhash_create (ctf_hash_string, ctf_hash_eq_string,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def203]
gdb-16.3/libctf/ctf-link.c:434:18: warning[-Wanalyzer-malloc-leak]: leak of ‘t’
gdb-16.3/libctf/ctf-link.c:388:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:391:7: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:396:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:402:19: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:414:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:422:14: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:422:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:429:7: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:430:7: acquire_memory: allocated here
gdb-16.3/libctf/ctf-link.c:431:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:434:18: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:434:18: throw: if ‘ctf_dynhash_lookup’ throws an exception...
gdb-16.3/libctf/ctf-link.c:434:18: danger: ‘t’ leaks here; was allocated at [(9)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/8)
#  432|       goto oom;
#  433|   
#  434|->   if ((one_out = ctf_dynhash_lookup (fp->ctf_link_out_cu_mapping, t)) == NULL)
#  435|       {
#  436|         if ((one_out = ctf_dynhash_create (ctf_hash_string, ctf_hash_eq_string,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def204]
gdb-16.3/libctf/ctf-link.c:436:22: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
gdb-16.3/libctf/ctf-link.c:388:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:391:7: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:396:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:402:19: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:414:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:422:14: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:422:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:429:7: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:429:7: acquire_memory: allocated here
gdb-16.3/libctf/ctf-link.c:431:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:434:18: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:434:6: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-link.c:436:22: branch_true: ...to here
gdb-16.3/libctf/ctf-link.c:436:22: throw: if ‘ctf_dynhash_create’ throws an exception...
gdb-16.3/libctf/ctf-link.c:436:22: danger: ‘f’ leaks here; was allocated at [(9)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/8)
#  434|     if ((one_out = ctf_dynhash_lookup (fp->ctf_link_out_cu_mapping, t)) == NULL)
#  435|       {
#  436|->       if ((one_out = ctf_dynhash_create (ctf_hash_string, ctf_hash_eq_string,
#  437|   					 free, NULL)) == NULL)
#  438|   	goto oom;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def205]
gdb-16.3/libctf/ctf-link.c:436:22: warning[-Wanalyzer-malloc-leak]: leak of ‘t’
gdb-16.3/libctf/ctf-link.c:388:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:391:7: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:396:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:402:19: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:414:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:422:14: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:422:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:429:7: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:430:7: acquire_memory: allocated here
gdb-16.3/libctf/ctf-link.c:431:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:434:18: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:434:6: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-link.c:436:22: branch_true: ...to here
gdb-16.3/libctf/ctf-link.c:436:22: throw: if ‘ctf_dynhash_create’ throws an exception...
gdb-16.3/libctf/ctf-link.c:436:22: danger: ‘t’ leaks here; was allocated at [(9)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/8)
#  434|     if ((one_out = ctf_dynhash_lookup (fp->ctf_link_out_cu_mapping, t)) == NULL)
#  435|       {
#  436|->       if ((one_out = ctf_dynhash_create (ctf_hash_string, ctf_hash_eq_string,
#  437|   					 free, NULL)) == NULL)
#  438|   	goto oom;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def206]
gdb-16.3/libctf/ctf-link.c:439:18: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
gdb-16.3/libctf/ctf-link.c:388:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:391:7: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:396:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:402:19: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:414:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:422:14: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:422:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:429:7: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:429:7: acquire_memory: allocated here
gdb-16.3/libctf/ctf-link.c:431:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:434:18: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:434:6: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-link.c:436:22: branch_true: ...to here
gdb-16.3/libctf/ctf-link.c:436:10: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:439:18: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:439:18: throw: if ‘ctf_dynhash_insert’ throws an exception...
gdb-16.3/libctf/ctf-link.c:439:18: danger: ‘f’ leaks here; was allocated at [(9)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/8)
#  437|   					 free, NULL)) == NULL)
#  438|   	goto oom;
#  439|->       if ((err = ctf_dynhash_insert (fp->ctf_link_out_cu_mapping,
#  440|   				     t, one_out)) < 0)
#  441|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def207]
gdb-16.3/libctf/ctf-link.c:439:18: warning[-Wanalyzer-malloc-leak]: leak of ‘t’
gdb-16.3/libctf/ctf-link.c:388:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:391:7: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:396:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:402:19: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:414:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:422:14: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:422:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:429:7: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:430:7: acquire_memory: allocated here
gdb-16.3/libctf/ctf-link.c:431:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:434:18: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:434:6: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-link.c:436:22: branch_true: ...to here
gdb-16.3/libctf/ctf-link.c:436:10: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:439:18: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:439:18: throw: if ‘ctf_dynhash_insert’ throws an exception...
gdb-16.3/libctf/ctf-link.c:439:18: danger: ‘t’ leaks here; was allocated at [(9)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/8)
#  437|   					 free, NULL)) == NULL)
#  438|   	goto oom;
#  439|->       if ((err = ctf_dynhash_insert (fp->ctf_link_out_cu_mapping,
#  440|   				     t, one_out)) < 0)
#  441|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def208]
gdb-16.3/libctf/ctf-link.c:442:11: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
gdb-16.3/libctf/ctf-link.c:388:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:391:7: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:396:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:402:19: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:414:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:422:14: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:422:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:429:7: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:429:7: acquire_memory: allocated here
gdb-16.3/libctf/ctf-link.c:431:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:434:18: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:434:6: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-link.c:436:22: branch_true: ...to here
gdb-16.3/libctf/ctf-link.c:436:10: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:439:18: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:439:10: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-link.c:442:11: branch_true: ...to here
gdb-16.3/libctf/ctf-link.c:442:11: throw: if ‘ctf_dynhash_destroy’ throws an exception...
gdb-16.3/libctf/ctf-link.c:442:11: danger: ‘f’ leaks here; was allocated at [(9)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/8)
#  440|   				     t, one_out)) < 0)
#  441|   	{
#  442|-> 	  ctf_dynhash_destroy (one_out);
#  443|   	  ctf_set_errno (fp, err);
#  444|   	  goto oom_noerrno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def209]
gdb-16.3/libctf/ctf-link.c:453:7: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
gdb-16.3/libctf/ctf-link.c:388:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:391:7: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:396:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:402:19: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:414:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:422:14: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:422:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:429:7: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:429:7: acquire_memory: allocated here
gdb-16.3/libctf/ctf-link.c:431:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:434:18: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:434:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:449:7: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:453:7: throw: if ‘ctf_dynhash_insert’ throws an exception...
gdb-16.3/libctf/ctf-link.c:453:7: danger: ‘f’ leaks here; was allocated at [(9)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/8)
#  451|       }
#  452|   
#  453|->   if (ctf_dynhash_insert (one_out, f, NULL) < 0)
#  454|       {
#  455|         ctf_set_errno (fp, err);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def210]
gdb-16.3/libctf/ctf-link.c:760:17: warning[-Wanalyzer-malloc-leak]: leak of ‘parents_’
gdb-16.3/libctf/ctf-link.c:746:6: branch_false: following ‘false’ branch (when ‘dedup_inputs’ is non-NULL)...
gdb-16.3/libctf/ctf-link.c:749:19: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:749:19: acquire_memory: allocated here
gdb-16.3/libctf/ctf-link.c:749:6: branch_false: following ‘false’ branch (when ‘parents_’ is non-NULL)...
gdb-16.3/libctf/ctf-link.c:757:27: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:760:17: throw: if ‘ctf_dynhash_next_sorted’ throws an exception...
gdb-16.3/libctf/ctf-link.c:760:17: danger: ‘parents_’ leaks here; was allocated at [(3)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/2)
#  758|     sort_arg.fp = fp;
#  759|   
#  760|->   while ((err = ctf_dynhash_next_sorted (inputs, &i, &name, &input,
#  761|   					 ctf_link_sort_inputs, &sort_arg)) == 0)
#  762|       {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def211]
gdb-16.3/libctf/ctf-link.c:760:17: warning[-Wanalyzer-malloc-leak]: leak of ‘walk’
gdb-16.3/libctf/ctf-link.c:746:23: acquire_memory: allocated here
gdb-16.3/libctf/ctf-link.c:746:6: branch_false: following ‘false’ branch (when ‘dedup_inputs’ is non-NULL)...
gdb-16.3/libctf/ctf-link.c:749:19: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:749:6: branch_false: following ‘false’ branch (when ‘parents_’ is non-NULL)...
gdb-16.3/libctf/ctf-link.c:757:27: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:760:17: throw: if ‘ctf_dynhash_next_sorted’ throws an exception...
gdb-16.3/libctf/ctf-link.c:760:17: danger: ‘walk’ leaks here; was allocated at [(1)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/0)
#  758|     sort_arg.fp = fp;
#  759|   
#  760|->   while ((err = ctf_dynhash_next_sorted (inputs, &i, &name, &input,
#  761|   					 ctf_link_sort_inputs, &sort_arg)) == 0)
#  762|       {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def212]
gdb-16.3/libctf/ctf-link.c:773:21: warning[-Wanalyzer-malloc-leak]: leak of ‘parents_’
gdb-16.3/libctf/ctf-link.c:746:6: branch_false: following ‘false’ branch (when ‘dedup_inputs’ is non-NULL)...
gdb-16.3/libctf/ctf-link.c:749:19: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:749:19: acquire_memory: allocated here
gdb-16.3/libctf/ctf-link.c:749:6: branch_false: following ‘false’ branch (when ‘parents_’ is non-NULL)...
gdb-16.3/libctf/ctf-link.c:757:27: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:760:10: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-link.c:763:19: branch_true: ...to here
gdb-16.3/libctf/ctf-link.c:772:10: branch_true: following ‘true’ branch (when ‘cu_names’ is non-NULL)...
gdb-16.3/libctf/ctf-link.c:773:21: branch_true: ...to here
gdb-16.3/libctf/ctf-link.c:773:21: throw: if ‘ctf_dynhash_lookup’ throws an exception...
gdb-16.3/libctf/ctf-link.c:773:21: danger: ‘parents_’ leaks here; was allocated at [(3)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/2)
#  771|   	 will have been opened, if they contained any CTF at all.  */
#  772|         if (cu_names)
#  773|-> 	one_input = ctf_dynhash_lookup (fp->ctf_link_inputs, one_name);
#  774|         else
#  775|   	one_input = (ctf_link_input_t *) input;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def213]
gdb-16.3/libctf/ctf-link.c:773:21: warning[-Wanalyzer-malloc-leak]: leak of ‘walk’
gdb-16.3/libctf/ctf-link.c:746:23: acquire_memory: allocated here
gdb-16.3/libctf/ctf-link.c:746:6: branch_false: following ‘false’ branch (when ‘dedup_inputs’ is non-NULL)...
gdb-16.3/libctf/ctf-link.c:749:19: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:749:6: branch_false: following ‘false’ branch (when ‘parents_’ is non-NULL)...
gdb-16.3/libctf/ctf-link.c:757:27: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:760:10: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-link.c:763:19: branch_true: ...to here
gdb-16.3/libctf/ctf-link.c:772:10: branch_true: following ‘true’ branch (when ‘cu_names’ is non-NULL)...
gdb-16.3/libctf/ctf-link.c:773:21: branch_true: ...to here
gdb-16.3/libctf/ctf-link.c:773:21: throw: if ‘ctf_dynhash_lookup’ throws an exception...
gdb-16.3/libctf/ctf-link.c:773:21: danger: ‘walk’ leaks here; was allocated at [(1)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/0)
#  771|   	 will have been opened, if they contained any CTF at all.  */
#  772|         if (cu_names)
#  773|-> 	one_input = ctf_dynhash_lookup (fp->ctf_link_inputs, one_name);
#  774|         else
#  775|   	one_input = (ctf_link_input_t *) input;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def214]
gdb-16.3/libctf/ctf-link.c:793:24: warning[-Wanalyzer-malloc-leak]: leak of ‘parents_’
gdb-16.3/libctf/ctf-link.c:746:6: branch_false: following ‘false’ branch (when ‘dedup_inputs’ is non-NULL)...
gdb-16.3/libctf/ctf-link.c:749:19: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:749:19: acquire_memory: allocated here
gdb-16.3/libctf/ctf-link.c:749:6: branch_false: following ‘false’ branch (when ‘parents_’ is non-NULL)...
gdb-16.3/libctf/ctf-link.c:757:27: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:760:10: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-link.c:763:19: branch_true: ...to here
gdb-16.3/libctf/ctf-link.c:781:10: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:793:24: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:793:24: throw: if ‘ctf_dict_open’ throws an exception...
gdb-16.3/libctf/ctf-link.c:793:24: danger: ‘parents_’ leaks here; was allocated at [(3)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/2)
#  791|   	 _CTF_SECTION.  */
#  792|   
#  793|->       if ((parent_fp = ctf_dict_open (one_input->clin_arc, _CTF_SECTION,
#  794|   				      &err)) == NULL)
#  795|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def215]
gdb-16.3/libctf/ctf-link.c:798:15: warning[-Wanalyzer-malloc-leak]: leak of ‘parents_’
gdb-16.3/libctf/ctf-link.c:746:6: branch_false: following ‘false’ branch (when ‘dedup_inputs’ is non-NULL)...
gdb-16.3/libctf/ctf-link.c:749:19: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:749:19: acquire_memory: allocated here
gdb-16.3/libctf/ctf-link.c:749:6: branch_false: following ‘false’ branch (when ‘parents_’ is non-NULL)...
gdb-16.3/libctf/ctf-link.c:757:27: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:760:10: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-link.c:763:19: branch_true: ...to here
gdb-16.3/libctf/ctf-link.c:781:10: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:793:24: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:793:10: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-link.c:796:15: branch_true: ...to here
gdb-16.3/libctf/ctf-link.c:796:14: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-link.c:798:15: branch_true: ...to here
gdb-16.3/libctf/ctf-link.c:798:15: throw: if ‘ctf_next_destroy’ throws an exception...
gdb-16.3/libctf/ctf-link.c:798:15: danger: ‘parents_’ leaks here; was allocated at [(3)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/2)
#  796|   	  if (err != ECTF_NOMEMBNAM)
#  797|   	    {
#  798|-> 	      ctf_next_destroy (i);
#  799|   	      ctf_set_errno (fp, err);
#  800|   	      goto err;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def216]
gdb-16.3/libctf/ctf-link.c:815:24: warning[-Wanalyzer-malloc-leak]: leak of ‘parents_’
gdb-16.3/libctf/ctf-link.c:746:6: branch_false: following ‘false’ branch (when ‘dedup_inputs’ is non-NULL)...
gdb-16.3/libctf/ctf-link.c:749:19: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:749:19: acquire_memory: allocated here
gdb-16.3/libctf/ctf-link.c:749:6: branch_false: following ‘false’ branch (when ‘parents_’ is non-NULL)...
gdb-16.3/libctf/ctf-link.c:757:27: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:760:10: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-link.c:763:19: branch_true: ...to here
gdb-16.3/libctf/ctf-link.c:781:10: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:793:24: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:793:10: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-link.c:796:15: branch_true: ...to here
gdb-16.3/libctf/ctf-link.c:796:14: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:796:14: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:815:24: throw: if ‘ctf_archive_next’ throws an exception...
gdb-16.3/libctf/ctf-link.c:815:24: danger: ‘parents_’ leaks here; was allocated at [(3)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/2)
#  813|   	 of a relink with CU-mapping off (i.e. ld -r) in which case the cuname
#  814|   	 is correctly set regardless.  */
#  815|->       while ((one_fp = ctf_archive_next (one_input->clin_arc, &j, NULL,
#  816|   					 1, &err)) != NULL)
#  817|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def217]
gdb-16.3/libctf/ctf-link.c:825:15: warning[-Wanalyzer-malloc-leak]: leak of ‘parents_’
gdb-16.3/libctf/ctf-link.c:746:6: branch_false: following ‘false’ branch (when ‘dedup_inputs’ is non-NULL)...
gdb-16.3/libctf/ctf-link.c:749:19: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:749:19: acquire_memory: allocated here
gdb-16.3/libctf/ctf-link.c:749:6: branch_false: following ‘false’ branch (when ‘parents_’ is non-NULL)...
gdb-16.3/libctf/ctf-link.c:757:27: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:760:10: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-link.c:763:19: branch_true: ...to here
gdb-16.3/libctf/ctf-link.c:781:10: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:793:24: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:793:10: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-link.c:796:15: branch_true: ...to here
gdb-16.3/libctf/ctf-link.c:796:14: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:796:14: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:815:14: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-link.c:818:15: branch_true: ...to here
gdb-16.3/libctf/ctf-link.c:818:14: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-link.c:825:15: branch_true: ...to here
gdb-16.3/libctf/ctf-link.c:825:15: throw: if ‘ctf_import’ throws an exception...
gdb-16.3/libctf/ctf-link.c:825:15: danger: ‘parents_’ leaks here; was allocated at [(3)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/2)
#  823|   		 it to itself.  */
#  824|   
#  825|-> 	      ctf_import (one_fp, parent_fp);
#  826|   	      if (parent_fp)
#  827|   		parents_[walk - dedup_inputs] = parent_i;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def218]
gdb-16.3/libctf/ctf-link.c:836:11: warning[-Wanalyzer-malloc-leak]: leak of ‘parents_’
gdb-16.3/libctf/ctf-link.c:746:6: branch_false: following ‘false’ branch (when ‘dedup_inputs’ is non-NULL)...
gdb-16.3/libctf/ctf-link.c:749:19: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:749:19: acquire_memory: allocated here
gdb-16.3/libctf/ctf-link.c:749:6: branch_false: following ‘false’ branch (when ‘parents_’ is non-NULL)...
gdb-16.3/libctf/ctf-link.c:757:27: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:760:10: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-link.c:763:19: branch_true: ...to here
gdb-16.3/libctf/ctf-link.c:781:10: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:793:24: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:796:14: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:796:14: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:815:14: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:834:11: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:834:10: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-link.c:836:11: branch_true: ...to here
gdb-16.3/libctf/ctf-link.c:836:11: throw: if ‘ctf_next_destroy’ throws an exception...
gdb-16.3/libctf/ctf-link.c:836:11: danger: ‘parents_’ leaks here; was allocated at [(3)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/2)
#  834|         if (err != ECTF_NEXT_END)
#  835|   	{
#  836|-> 	  ctf_next_destroy (i);
#  837|   	  goto iterr;
#  838|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def219]
gdb-16.3/libctf/ctf-link.c:1653:3: warning[-Wanalyzer-malloc-leak]: leak of ‘cid’
gdb-16.3/libctf/ctf-link.c:1635:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:1638:7: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:1638:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:1641:7: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:1641:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:1644:7: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:1644:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-link.c:1649:14: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:1649:14: acquire_memory: allocated here
gdb-16.3/libctf/ctf-link.c:1649:6: branch_false: following ‘false’ branch (when ‘cid’ is non-NULL)...
gdb-16.3/libctf/ctf-link.c:1652:3: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:1653:3: throw: if ‘ctf_list_append’ throws an exception...
gdb-16.3/libctf/ctf-link.c:1653:3: danger: ‘cid’ leaks here; was allocated at [(9)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/8)
# 1651|   
# 1652|     cid->cid_sym = *sym;
# 1653|->   ctf_list_append (&fp->ctf_in_flight_dynsyms, cid);
# 1654|   
# 1655|     return 0;

Error: CPPCHECK_WARNING (CWE-457): [#def220]
gdb-16.3/libctf/ctf-link.c:1760: error[legacyUninitvar]: Uninitialized variable: name
# 1758|     while ((err = ctf_dynhash_next (fp->ctf_dynsyms, &i, &name_, &sym_)) == 0)
# 1759|       {
# 1760|->       const char *name = (const char *) name;
# 1761|         ctf_link_sym_t *symp = (ctf_link_sym_t *) sym_;
# 1762|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def221]
gdb-16.3/libctf/ctf-link.c:1835:16: warning[-Wanalyzer-malloc-leak]: leak of ‘files’
gdb-16.3/libctf/ctf-link.c:1810:6: branch_false: following ‘false’ branch (when ‘names’ is non-NULL)...
gdb-16.3/libctf/ctf-link.c:1817:61: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:1817:6: branch_false: following ‘false’ branch (when ‘files’ is non-NULL)...
gdb-16.3/libctf/ctf-link.c:1829:7: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:1829:6: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-link.c:1833:13: branch_true: ...to here
gdb-16.3/libctf/ctf-link.c:1835:16: throw: if the called function throws an exception...
gdb-16.3/libctf/ctf-link.c:1835:16: danger: ‘files’ leaks here; was allocated at [(4)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/3)
# 1833|         void *nc_arg = fp->ctf_link_memb_name_changer_arg;
# 1834|   
# 1835|->       dyname = fp->ctf_link_memb_name_changer (fp, name, nc_arg);
# 1836|   
# 1837|         if (dyname != NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def222]
gdb-16.3/libctf/ctf-link.c:1835:16: warning[-Wanalyzer-malloc-leak]: leak of ‘names’
gdb-16.3/libctf/ctf-link.c:1810:6: branch_false: following ‘false’ branch (when ‘names’ is non-NULL)...
gdb-16.3/libctf/ctf-link.c:1817:61: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:1817:6: branch_false: following ‘false’ branch (when ‘files’ is non-NULL)...
gdb-16.3/libctf/ctf-link.c:1829:7: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:1829:6: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-link.c:1833:13: branch_true: ...to here
gdb-16.3/libctf/ctf-link.c:1835:16: throw: if the called function throws an exception...
gdb-16.3/libctf/ctf-link.c:1835:16: danger: ‘names’ leaks here; was allocated at [(1)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/0)
# 1833|         void *nc_arg = fp->ctf_link_memb_name_changer_arg;
# 1834|   
# 1835|->       dyname = fp->ctf_link_memb_name_changer (fp, name, nc_arg);
# 1836|   
# 1837|         if (dyname != NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def223]
gdb-16.3/libctf/ctf-link.c:1855:1: warning[-Wanalyzer-malloc-leak]: leak of ‘files’
gdb-16.3/libctf/ctf-link.c:1810:6: branch_false: following ‘false’ branch (when ‘names’ is non-NULL)...
gdb-16.3/libctf/ctf-link.c:1817:61: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:1817:6: branch_false: following ‘false’ branch (when ‘files’ is non-NULL)...
gdb-16.3/libctf/ctf-link.c:1829:7: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:1829:6: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-link.c:1833:13: branch_true: ...to here
gdb-16.3/libctf/ctf-link.c:1837:10: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-link.c:1840:55: branch_true: ...to here
gdb-16.3/libctf/ctf-link.c:1839:14: branch_true: following ‘true’ branch (when ‘dynames’ is NULL)...
gdb-16.3/libctf/ctf-link.c:1842:15: branch_true: ...to here
gdb-16.3/libctf/ctf-link.c:1855:1: danger: ‘files’ leaks here; was allocated at [(4)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/3)
# 1853|     arg->files = files;
# 1854|     arg->files[(arg->i) - 1] = fp;
# 1855|-> }
# 1856|   
# 1857|   /* Change the name of the parent CTF section, if the name transformer has got to

Error: GCC_ANALYZER_WARNING (CWE-401): [#def224]
gdb-16.3/libctf/ctf-link.c:1855:1: warning[-Wanalyzer-malloc-leak]: leak of ‘names’
gdb-16.3/libctf/ctf-link.c:1810:6: branch_false: following ‘false’ branch (when ‘names’ is non-NULL)...
gdb-16.3/libctf/ctf-link.c:1817:61: branch_false: ...to here
gdb-16.3/libctf/ctf-link.c:1817:6: branch_true: following ‘true’ branch (when ‘files’ is NULL)...
gdb-16.3/libctf/ctf-link.c:1819:7: branch_true: ...to here
gdb-16.3/libctf/ctf-link.c:1855:1: danger: ‘names’ leaks here; was allocated at [(1)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/0)
# 1853|     arg->files = files;
# 1854|     arg->files[(arg->i) - 1] = fp;
# 1855|-> }
# 1856|   
# 1857|   /* Change the name of the parent CTF section, if the name transformer has got to

Error: GCC_ANALYZER_WARNING (CWE-401): [#def225]
gdb-16.3/libctf/ctf-lookup.c:603:7: warning[-Wanalyzer-malloc-leak]: leak of ‘sorted’
gdb-16.3/libctf/ctf-lookup.c:1298:1: enter_function: entry to ‘ctf_func_args’
gdb-16.3/libctf/ctf-lookup.c:1303:15: call_function: inlined call to ‘ctf_lookup_by_symbol’ from ‘ctf_func_args’
#  601|       {
#  602|         ctf_symidx_sort_arg_cb_t arg = { fp, idx };
#  603|->       ctf_dprintf ("Index section unsorted: sorting.\n");
#  604|         ctf_qsort_r (sorted, *nidx, sizeof (uint32_t), sort_symidx_by_name, &arg);
#  605|         fp->ctf_header->cth_flags |= CTF_F_IDXSORTED;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def226]
gdb-16.3/libctf/ctf-open-bfd.c:148:17: warning[-Wanalyzer-malloc-leak]: leak of ‘symtab’
gdb-16.3/libctf/ctf-open-bfd.c:251:1: enter_function: entry to ‘ctf_fdopen’
gdb-16.3/libctf/ctf-open-bfd.c:267:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open-bfd.c:270:17: branch_false: ...to here
gdb-16.3/libctf/ctf-open-bfd.c:270:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open-bfd.c:277:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open-bfd.c:300:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open-bfd.c:303:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open-bfd.c:316:6: branch_false: following ‘false’ branch (when ‘nfd >= 0’)...
gdb-16.3/libctf/ctf-open-bfd.c:319:15: branch_false: ...to here
gdb-16.3/libctf/ctf-open-bfd.c:319:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open-bfd.c:326:3: call_function: inlined call to ‘bfd_set_cacheable’ from ‘ctf_fdopen’
gdb-16.3/libctf/ctf-open-bfd.c:328:6: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-open-bfd.c:339:15: branch_true: ...to here
gdb-16.3/libctf/ctf-open-bfd.c:339:15: call_function: calling ‘ctf_bfdopen’ from ‘ctf_fdopen’
#  146|   	}
#  147|   
#  148|->       isymbuf = bfd_elf_get_elf_syms (abfd, symhdr, symcount, 0,
#  149|   				      NULL, symtab, NULL);
#  150|         free (isymbuf);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def227]
gdb-16.3/libctf/ctf-open-bfd.c:265:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(filename, 0)’
gdb-16.3/libctf/ctf-open-bfd.c:357:1: enter_function: entry to ‘ctf_open’
gdb-16.3/libctf/ctf-open-bfd.c:362:13: acquire_resource: opened here
gdb-16.3/libctf/ctf-open-bfd.c:362:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open-bfd.c:369:9: branch_false: ...to here
gdb-16.3/libctf/ctf-open-bfd.c:369:9: call_function: calling ‘ctf_fdopen’ from ‘ctf_open’
#  263|     memset (&ctfhdr, 0, sizeof (ctfhdr));
#  264|   
#  265|->   libctf_init_debug();
#  266|   
#  267|     if (fstat (fd, &st) == -1)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def228]
gdb-16.3/libctf/ctf-open-bfd.c:319:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘nfd’
gdb-16.3/libctf/ctf-open-bfd.c:267:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open-bfd.c:270:17: branch_false: ...to here
gdb-16.3/libctf/ctf-open-bfd.c:270:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open-bfd.c:277:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open-bfd.c:300:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open-bfd.c:303:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open-bfd.c:316:14: acquire_resource: opened here
gdb-16.3/libctf/ctf-open-bfd.c:316:6: branch_false: following ‘false’ branch (when ‘nfd >= 0’)...
gdb-16.3/libctf/ctf-open-bfd.c:319:15: branch_false: ...to here
gdb-16.3/libctf/ctf-open-bfd.c:319:15: throw: if ‘bfd_fdopenr’ throws an exception...
gdb-16.3/libctf/ctf-open-bfd.c:319:15: danger: ‘nfd’ leaks here; was opened at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
#  317|         return (ctf_set_open_errno (errp, errno));
#  318|   
#  319|->   if ((abfd = bfd_fdopenr (filename, target, nfd)) == NULL)
#  320|       {
#  321|         ctf_err_warn (NULL, 0, 0, _("cannot open BFD from %s: %s"),

Error: CPPCHECK_WARNING (CWE-457): [#def229]
gdb-16.3/libctf/ctf-open.c:1385: error[uninitvar]: Uninitialized variables: &skeleton.cts_data, &skeleton.cts_size
# 1383|     if (ctfsect)
# 1384|       {
# 1385|->       memcpy (&ctf_sect, &skeleton, sizeof (struct ctf_sect));
# 1386|         ctf_sect.cts_data = ctfsect;
# 1387|         ctf_sect.cts_size = ctfsect_size;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def230]
gdb-16.3/libctf/ctf-open.c:1506:15: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(52)’
gdb-16.3/libctf/ctf-open.c:1442:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1443:10: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1442:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1449:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1465:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1469:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1484:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1492:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1492:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1495:13: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1495:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
gdb-16.3/libctf/ctf-open.c:1498:3: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1500:25: acquire_memory: allocated here
gdb-16.3/libctf/ctf-open.c:1500:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1506:15: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1507:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1510:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1510:6: branch_false: following ‘false’ branch (when ‘foreign_endian == 0’)...
gdb-16.3/libctf/ctf-open.c:1512:23: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1515:3: throw: if ‘ctf_dprintf’ throws an exception...
gdb-16.3/libctf/ctf-open.c:1506:15: danger: ‘malloc(52)’ leaks here; was allocated at [(13)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/12)
# 1504|       }
# 1505|     hp = fp->ctf_header;
# 1506|->   memcpy (hp, ctfsect->cts_data, hdrsz);
# 1507|     if (pp->ctp_version < CTF_VERSION_3)
# 1508|       upgrade_header (hp);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def231]
gdb-16.3/libctf/ctf-open.c:1515:3: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
gdb-16.3/libctf/ctf-open.c:1442:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1443:10: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1442:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1449:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1465:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1469:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1484:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1492:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1492:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1495:13: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1495:13: acquire_memory: allocated here
gdb-16.3/libctf/ctf-open.c:1495:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
gdb-16.3/libctf/ctf-open.c:1498:3: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1500:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1506:15: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1507:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1510:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1510:6: branch_false: following ‘false’ branch (when ‘foreign_endian == 0’)...
gdb-16.3/libctf/ctf-open.c:1512:23: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1515:3: throw: if ‘ctf_dprintf’ throws an exception...
gdb-16.3/libctf/ctf-open.c:1515:3: danger: ‘fp’ leaks here; was allocated at [(11)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/10)
# 1513|     fp->ctf_size = hp->cth_stroff + hp->cth_strlen;
# 1514|   
# 1515|->   ctf_dprintf ("ctf_bufopen: uncompressed size=%lu\n",
# 1516|   	       (unsigned long) fp->ctf_size);
# 1517|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def232]
gdb-16.3/libctf/ctf-open.c:1523:7: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
gdb-16.3/libctf/ctf-open.c:1442:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1443:10: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1442:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1449:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1465:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1469:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1484:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1492:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1492:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1495:13: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1495:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
gdb-16.3/libctf/ctf-open.c:1498:3: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1500:25: acquire_memory: allocated here
gdb-16.3/libctf/ctf-open.c:1500:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1506:15: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1507:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1510:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1510:6: branch_false: following ‘false’ branch (when ‘foreign_endian == 0’)...
gdb-16.3/libctf/ctf-open.c:1512:23: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1523:7: throw: if ‘ctf_err_warn’ throws an exception...
gdb-16.3/libctf/ctf-open.c:1523:7: danger: ‘<unknown>’ leaks here; was allocated at [(13)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/12)
# 1521|         || hp->cth_stroff > fp->ctf_size)
# 1522|       {
# 1523|->       ctf_err_warn (NULL, 0, ECTF_CORRUPT, _("header offset exceeds CTF size"));
# 1524|         return (ctf_set_open_errno (errp, ECTF_CORRUPT));
# 1525|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def233]
gdb-16.3/libctf/ctf-open.c:1523:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
gdb-16.3/libctf/ctf-open.c:1442:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1443:10: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1442:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1449:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1465:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1469:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1484:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1492:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1492:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1495:13: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1495:13: acquire_memory: allocated here
gdb-16.3/libctf/ctf-open.c:1495:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
gdb-16.3/libctf/ctf-open.c:1498:3: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1500:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1506:15: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1507:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1510:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1510:6: branch_false: following ‘false’ branch (when ‘foreign_endian == 0’)...
gdb-16.3/libctf/ctf-open.c:1512:23: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1523:7: throw: if ‘ctf_err_warn’ throws an exception...
gdb-16.3/libctf/ctf-open.c:1523:7: danger: ‘fp’ leaks here; was allocated at [(11)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/10)
# 1521|         || hp->cth_stroff > fp->ctf_size)
# 1522|       {
# 1523|->       ctf_err_warn (NULL, 0, ECTF_CORRUPT, _("header offset exceeds CTF size"));
# 1524|         return (ctf_set_open_errno (errp, ECTF_CORRUPT));
# 1525|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def234]
gdb-16.3/libctf/ctf-open.c:1524:14: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
gdb-16.3/libctf/ctf-open.c:1442:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1443:10: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1442:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1449:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1465:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1469:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1484:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1492:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1492:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1495:13: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1495:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
gdb-16.3/libctf/ctf-open.c:1498:3: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1500:25: acquire_memory: allocated here
gdb-16.3/libctf/ctf-open.c:1500:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1506:15: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1507:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1510:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1510:6: branch_false: following ‘false’ branch (when ‘foreign_endian == 0’)...
gdb-16.3/libctf/ctf-open.c:1512:23: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1524:14: throw: if ‘ctf_set_open_errno’ throws an exception...
gdb-16.3/libctf/ctf-open.c:1524:14: danger: ‘<unknown>’ leaks here; was allocated at [(13)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/12)
# 1522|       {
# 1523|         ctf_err_warn (NULL, 0, ECTF_CORRUPT, _("header offset exceeds CTF size"));
# 1524|->       return (ctf_set_open_errno (errp, ECTF_CORRUPT));
# 1525|       }
# 1526|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def235]
gdb-16.3/libctf/ctf-open.c:1524:14: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
gdb-16.3/libctf/ctf-open.c:1442:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1443:10: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1442:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1449:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1465:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1469:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1484:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1492:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1492:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1495:13: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1495:13: acquire_memory: allocated here
gdb-16.3/libctf/ctf-open.c:1495:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
gdb-16.3/libctf/ctf-open.c:1498:3: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1500:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1506:15: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1507:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1510:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1510:6: branch_false: following ‘false’ branch (when ‘foreign_endian == 0’)...
gdb-16.3/libctf/ctf-open.c:1512:23: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1524:14: throw: if ‘ctf_set_open_errno’ throws an exception...
gdb-16.3/libctf/ctf-open.c:1524:14: danger: ‘fp’ leaks here; was allocated at [(11)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/10)
# 1522|       {
# 1523|         ctf_err_warn (NULL, 0, ECTF_CORRUPT, _("header offset exceeds CTF size"));
# 1524|->       return (ctf_set_open_errno (errp, ECTF_CORRUPT));
# 1525|       }
# 1526|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def236]
gdb-16.3/libctf/ctf-open.c:1535:7: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
gdb-16.3/libctf/ctf-open.c:1442:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1443:10: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1442:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1449:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1465:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1469:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1484:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1492:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1492:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1495:13: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1495:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
gdb-16.3/libctf/ctf-open.c:1498:3: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1500:25: acquire_memory: allocated here
gdb-16.3/libctf/ctf-open.c:1500:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1506:15: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1507:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1510:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1510:6: branch_false: following ‘false’ branch (when ‘foreign_endian == 0’)...
gdb-16.3/libctf/ctf-open.c:1512:23: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1518:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1535:7: throw: if ‘ctf_err_warn’ throws an exception...
gdb-16.3/libctf/ctf-open.c:1535:7: danger: ‘<unknown>’ leaks here; was allocated at [(13)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/12)
# 1533|         || hp->cth_varoff > hp->cth_typeoff || hp->cth_typeoff > hp->cth_stroff)
# 1534|       {
# 1535|->       ctf_err_warn (NULL, 0, ECTF_CORRUPT, _("overlapping CTF sections"));
# 1536|         return (ctf_set_open_errno (errp, ECTF_CORRUPT));
# 1537|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def237]
gdb-16.3/libctf/ctf-open.c:1535:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
gdb-16.3/libctf/ctf-open.c:1442:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1443:10: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1442:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1449:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1465:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1469:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1484:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1492:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1492:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1495:13: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1495:13: acquire_memory: allocated here
gdb-16.3/libctf/ctf-open.c:1495:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
gdb-16.3/libctf/ctf-open.c:1498:3: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1500:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1506:15: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1507:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1510:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1510:6: branch_false: following ‘false’ branch (when ‘foreign_endian == 0’)...
gdb-16.3/libctf/ctf-open.c:1512:23: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1518:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1535:7: throw: if ‘ctf_err_warn’ throws an exception...
gdb-16.3/libctf/ctf-open.c:1535:7: danger: ‘fp’ leaks here; was allocated at [(11)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/10)
# 1533|         || hp->cth_varoff > hp->cth_typeoff || hp->cth_typeoff > hp->cth_stroff)
# 1534|       {
# 1535|->       ctf_err_warn (NULL, 0, ECTF_CORRUPT, _("overlapping CTF sections"));
# 1536|         return (ctf_set_open_errno (errp, ECTF_CORRUPT));
# 1537|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def238]
gdb-16.3/libctf/ctf-open.c:1536:14: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
gdb-16.3/libctf/ctf-open.c:1442:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1443:10: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1442:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1449:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1465:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1469:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1484:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1492:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1492:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1495:13: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1495:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
gdb-16.3/libctf/ctf-open.c:1498:3: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1500:25: acquire_memory: allocated here
gdb-16.3/libctf/ctf-open.c:1500:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1506:15: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1507:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1510:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1510:6: branch_false: following ‘false’ branch (when ‘foreign_endian == 0’)...
gdb-16.3/libctf/ctf-open.c:1512:23: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1518:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1536:14: throw: if ‘ctf_set_open_errno’ throws an exception...
gdb-16.3/libctf/ctf-open.c:1536:14: danger: ‘<unknown>’ leaks here; was allocated at [(13)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/12)
# 1534|       {
# 1535|         ctf_err_warn (NULL, 0, ECTF_CORRUPT, _("overlapping CTF sections"));
# 1536|->       return (ctf_set_open_errno (errp, ECTF_CORRUPT));
# 1537|       }
# 1538|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def239]
gdb-16.3/libctf/ctf-open.c:1536:14: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
gdb-16.3/libctf/ctf-open.c:1442:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1443:10: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1442:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1449:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1465:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1469:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1484:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1492:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1492:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1495:13: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1495:13: acquire_memory: allocated here
gdb-16.3/libctf/ctf-open.c:1495:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
gdb-16.3/libctf/ctf-open.c:1498:3: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1500:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1506:15: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1507:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1510:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1510:6: branch_false: following ‘false’ branch (when ‘foreign_endian == 0’)...
gdb-16.3/libctf/ctf-open.c:1512:23: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1518:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1536:14: throw: if ‘ctf_set_open_errno’ throws an exception...
gdb-16.3/libctf/ctf-open.c:1536:14: danger: ‘fp’ leaks here; was allocated at [(11)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/10)
# 1534|       {
# 1535|         ctf_err_warn (NULL, 0, ECTF_CORRUPT, _("overlapping CTF sections"));
# 1536|->       return (ctf_set_open_errno (errp, ECTF_CORRUPT));
# 1537|       }
# 1538|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def240]
gdb-16.3/libctf/ctf-open.c:1544:7: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
gdb-16.3/libctf/ctf-open.c:1442:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1443:10: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1442:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1449:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1465:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1469:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1484:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1492:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1492:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1495:13: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1495:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
gdb-16.3/libctf/ctf-open.c:1498:3: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1500:25: acquire_memory: allocated here
gdb-16.3/libctf/ctf-open.c:1500:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1506:15: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1507:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1510:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1510:6: branch_false: following ‘false’ branch (when ‘foreign_endian == 0’)...
gdb-16.3/libctf/ctf-open.c:1512:23: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1518:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1532:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1544:7: throw: if ‘ctf_err_warn’ throws an exception...
gdb-16.3/libctf/ctf-open.c:1544:7: danger: ‘<unknown>’ leaks here; was allocated at [(13)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/12)
# 1542|         || (hp->cth_typeoff & 3))
# 1543|       {
# 1544|->       ctf_err_warn (NULL, 0, ECTF_CORRUPT,
# 1545|   		    _("CTF sections not properly aligned"));
# 1546|         return (ctf_set_open_errno (errp, ECTF_CORRUPT));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def241]
gdb-16.3/libctf/ctf-open.c:1544:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
gdb-16.3/libctf/ctf-open.c:1442:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1443:10: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1442:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1449:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1465:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1469:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1484:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1492:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1492:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1495:13: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1495:13: acquire_memory: allocated here
gdb-16.3/libctf/ctf-open.c:1495:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
gdb-16.3/libctf/ctf-open.c:1498:3: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1500:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1506:15: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1507:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1510:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1510:6: branch_false: following ‘false’ branch (when ‘foreign_endian == 0’)...
gdb-16.3/libctf/ctf-open.c:1512:23: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1518:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1532:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1544:7: throw: if ‘ctf_err_warn’ throws an exception...
gdb-16.3/libctf/ctf-open.c:1544:7: danger: ‘fp’ leaks here; was allocated at [(11)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/10)
# 1542|         || (hp->cth_typeoff & 3))
# 1543|       {
# 1544|->       ctf_err_warn (NULL, 0, ECTF_CORRUPT,
# 1545|   		    _("CTF sections not properly aligned"));
# 1546|         return (ctf_set_open_errno (errp, ECTF_CORRUPT));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def242]
gdb-16.3/libctf/ctf-open.c:1546:14: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
gdb-16.3/libctf/ctf-open.c:1442:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1443:10: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1442:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1449:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1465:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1469:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1484:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1492:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1492:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1495:13: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1495:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
gdb-16.3/libctf/ctf-open.c:1498:3: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1500:25: acquire_memory: allocated here
gdb-16.3/libctf/ctf-open.c:1500:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1506:15: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1507:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1510:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1510:6: branch_false: following ‘false’ branch (when ‘foreign_endian == 0’)...
gdb-16.3/libctf/ctf-open.c:1512:23: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1518:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1532:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1546:14: throw: if ‘ctf_set_open_errno’ throws an exception...
gdb-16.3/libctf/ctf-open.c:1546:14: danger: ‘<unknown>’ leaks here; was allocated at [(13)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/12)
# 1544|         ctf_err_warn (NULL, 0, ECTF_CORRUPT,
# 1545|   		    _("CTF sections not properly aligned"));
# 1546|->       return (ctf_set_open_errno (errp, ECTF_CORRUPT));
# 1547|       }
# 1548|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def243]
gdb-16.3/libctf/ctf-open.c:1546:14: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
gdb-16.3/libctf/ctf-open.c:1442:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1443:10: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1442:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1449:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1465:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1469:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1484:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1492:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1492:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1495:13: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1495:13: acquire_memory: allocated here
gdb-16.3/libctf/ctf-open.c:1495:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
gdb-16.3/libctf/ctf-open.c:1498:3: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1500:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1506:15: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1507:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1510:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1510:6: branch_false: following ‘false’ branch (when ‘foreign_endian == 0’)...
gdb-16.3/libctf/ctf-open.c:1512:23: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1518:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1532:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1546:14: throw: if ‘ctf_set_open_errno’ throws an exception...
gdb-16.3/libctf/ctf-open.c:1546:14: danger: ‘fp’ leaks here; was allocated at [(11)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/10)
# 1544|         ctf_err_warn (NULL, 0, ECTF_CORRUPT,
# 1545|   		    _("CTF sections not properly aligned"));
# 1546|->       return (ctf_set_open_errno (errp, ECTF_CORRUPT));
# 1547|       }
# 1548|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def244]
gdb-16.3/libctf/ctf-open.c:1555:7: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
gdb-16.3/libctf/ctf-open.c:1442:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1443:10: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1442:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1449:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1465:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1469:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1484:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1492:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1492:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1495:13: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1495:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
gdb-16.3/libctf/ctf-open.c:1498:3: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1500:25: acquire_memory: allocated here
gdb-16.3/libctf/ctf-open.c:1500:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1506:15: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1507:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1510:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1510:6: branch_false: following ‘false’ branch (when ‘foreign_endian == 0’)...
gdb-16.3/libctf/ctf-open.c:1512:23: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1518:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1532:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1551:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1551:6: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-open.c:1552:8: branch_true: ...to here
gdb-16.3/libctf/ctf-open.c:1551:7: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-open.c:1556:21: branch_true: ...to here
gdb-16.3/libctf/ctf-open.c:1555:7: throw: if ‘ctf_err_warn’ throws an exception...
gdb-16.3/libctf/ctf-open.c:1555:7: danger: ‘<unknown>’ leaks here; was allocated at [(13)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/12)
# 1553|          != hp->cth_funcoff - hp->cth_objtoff))
# 1554|       {
# 1555|->       ctf_err_warn (NULL, 0, ECTF_CORRUPT,
# 1556|   		    _("Object index section is neither empty nor the "
# 1557|   		      "same length as the object section: %u versus %u "

Error: GCC_ANALYZER_WARNING (CWE-401): [#def245]
gdb-16.3/libctf/ctf-open.c:1555:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
gdb-16.3/libctf/ctf-open.c:1442:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1443:10: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1442:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1449:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1465:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1469:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1484:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1492:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1492:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1495:13: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1495:13: acquire_memory: allocated here
gdb-16.3/libctf/ctf-open.c:1495:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
gdb-16.3/libctf/ctf-open.c:1498:3: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1500:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1506:15: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1507:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1510:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1510:6: branch_false: following ‘false’ branch (when ‘foreign_endian == 0’)...
gdb-16.3/libctf/ctf-open.c:1512:23: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1518:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1532:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1551:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1551:6: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-open.c:1552:8: branch_true: ...to here
gdb-16.3/libctf/ctf-open.c:1551:7: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-open.c:1556:21: branch_true: ...to here
gdb-16.3/libctf/ctf-open.c:1555:7: throw: if ‘ctf_err_warn’ throws an exception...
gdb-16.3/libctf/ctf-open.c:1555:7: danger: ‘fp’ leaks here; was allocated at [(11)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/10)
# 1553|          != hp->cth_funcoff - hp->cth_objtoff))
# 1554|       {
# 1555|->       ctf_err_warn (NULL, 0, ECTF_CORRUPT,
# 1556|   		    _("Object index section is neither empty nor the "
# 1557|   		      "same length as the object section: %u versus %u "

Error: GCC_ANALYZER_WARNING (CWE-401): [#def246]
gdb-16.3/libctf/ctf-open.c:1560:14: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
gdb-16.3/libctf/ctf-open.c:1442:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1443:10: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1442:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1449:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1465:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1469:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1484:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1492:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1492:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1495:13: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1495:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
gdb-16.3/libctf/ctf-open.c:1498:3: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1500:25: acquire_memory: allocated here
gdb-16.3/libctf/ctf-open.c:1500:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1506:15: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1507:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1510:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1510:6: branch_false: following ‘false’ branch (when ‘foreign_endian == 0’)...
gdb-16.3/libctf/ctf-open.c:1512:23: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1518:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1532:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1551:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1551:6: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-open.c:1552:8: branch_true: ...to here
gdb-16.3/libctf/ctf-open.c:1551:7: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-open.c:1556:21: branch_true: ...to here
gdb-16.3/libctf/ctf-open.c:1560:14: throw: if ‘ctf_set_open_errno’ throws an exception...
gdb-16.3/libctf/ctf-open.c:1560:14: danger: ‘<unknown>’ leaks here; was allocated at [(13)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/12)
# 1558|   		      "bytes"), hp->cth_funcoff - hp->cth_objtoff,
# 1559|   		    hp->cth_funcidxoff - hp->cth_objtidxoff);
# 1560|->       return (ctf_set_open_errno (errp, ECTF_CORRUPT));
# 1561|       }
# 1562|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def247]
gdb-16.3/libctf/ctf-open.c:1560:14: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
gdb-16.3/libctf/ctf-open.c:1442:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1443:10: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1442:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1449:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1465:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1469:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1484:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1492:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1492:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1495:13: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1495:13: acquire_memory: allocated here
gdb-16.3/libctf/ctf-open.c:1495:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
gdb-16.3/libctf/ctf-open.c:1498:3: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1500:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1506:15: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1507:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1510:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1510:6: branch_false: following ‘false’ branch (when ‘foreign_endian == 0’)...
gdb-16.3/libctf/ctf-open.c:1512:23: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1518:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1532:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1551:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1551:6: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-open.c:1552:8: branch_true: ...to here
gdb-16.3/libctf/ctf-open.c:1551:7: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-open.c:1556:21: branch_true: ...to here
gdb-16.3/libctf/ctf-open.c:1560:14: throw: if ‘ctf_set_open_errno’ throws an exception...
gdb-16.3/libctf/ctf-open.c:1560:14: danger: ‘fp’ leaks here; was allocated at [(11)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/10)
# 1558|   		      "bytes"), hp->cth_funcoff - hp->cth_objtoff,
# 1559|   		    hp->cth_funcidxoff - hp->cth_objtidxoff);
# 1560|->       return (ctf_set_open_errno (errp, ECTF_CORRUPT));
# 1561|       }
# 1562|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def248]
gdb-16.3/libctf/ctf-open.c:1568:7: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
gdb-16.3/libctf/ctf-open.c:1442:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1443:10: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1442:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1449:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1465:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1469:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1484:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1492:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1492:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1495:13: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1495:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
gdb-16.3/libctf/ctf-open.c:1498:3: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1500:25: acquire_memory: allocated here
gdb-16.3/libctf/ctf-open.c:1500:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1506:15: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1507:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1510:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1510:6: branch_false: following ‘false’ branch (when ‘foreign_endian == 0’)...
gdb-16.3/libctf/ctf-open.c:1512:23: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1518:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1532:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1551:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1563:6: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-open.c:1564:8: branch_true: ...to here
gdb-16.3/libctf/ctf-open.c:1563:7: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-open.c:1566:8: branch_true: ...to here
gdb-16.3/libctf/ctf-open.c:1563:7: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-open.c:1569:21: branch_true: ...to here
gdb-16.3/libctf/ctf-open.c:1568:7: throw: if ‘ctf_err_warn’ throws an exception...
gdb-16.3/libctf/ctf-open.c:1568:7: danger: ‘<unknown>’ leaks here; was allocated at [(13)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/12)
# 1566|         (hp->cth_flags & CTF_F_NEWFUNCINFO))
# 1567|       {
# 1568|->       ctf_err_warn (NULL, 0, ECTF_CORRUPT,
# 1569|   		    _("Function index section is neither empty nor the "
# 1570|   		      "same length as the function section: %u versus %u "

Error: GCC_ANALYZER_WARNING (CWE-401): [#def249]
gdb-16.3/libctf/ctf-open.c:1568:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
gdb-16.3/libctf/ctf-open.c:1442:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1443:10: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1442:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1449:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1465:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1469:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1484:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1492:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1492:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1495:13: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1495:13: acquire_memory: allocated here
gdb-16.3/libctf/ctf-open.c:1495:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
gdb-16.3/libctf/ctf-open.c:1498:3: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1500:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1506:15: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1507:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1510:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1510:6: branch_false: following ‘false’ branch (when ‘foreign_endian == 0’)...
gdb-16.3/libctf/ctf-open.c:1512:23: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1518:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1532:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1551:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1563:6: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-open.c:1564:8: branch_true: ...to here
gdb-16.3/libctf/ctf-open.c:1563:7: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-open.c:1566:8: branch_true: ...to here
gdb-16.3/libctf/ctf-open.c:1563:7: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-open.c:1569:21: branch_true: ...to here
gdb-16.3/libctf/ctf-open.c:1568:7: throw: if ‘ctf_err_warn’ throws an exception...
gdb-16.3/libctf/ctf-open.c:1568:7: danger: ‘fp’ leaks here; was allocated at [(11)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/10)
# 1566|         (hp->cth_flags & CTF_F_NEWFUNCINFO))
# 1567|       {
# 1568|->       ctf_err_warn (NULL, 0, ECTF_CORRUPT,
# 1569|   		    _("Function index section is neither empty nor the "
# 1570|   		      "same length as the function section: %u versus %u "

Error: GCC_ANALYZER_WARNING (CWE-401): [#def250]
gdb-16.3/libctf/ctf-open.c:1573:14: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
gdb-16.3/libctf/ctf-open.c:1442:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1443:10: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1442:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1449:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1465:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1469:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1484:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1492:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1492:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1495:13: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1495:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
gdb-16.3/libctf/ctf-open.c:1498:3: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1500:25: acquire_memory: allocated here
gdb-16.3/libctf/ctf-open.c:1500:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1506:15: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1507:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1510:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1510:6: branch_false: following ‘false’ branch (when ‘foreign_endian == 0’)...
gdb-16.3/libctf/ctf-open.c:1512:23: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1518:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1532:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1551:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1563:6: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-open.c:1564:8: branch_true: ...to here
gdb-16.3/libctf/ctf-open.c:1563:7: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-open.c:1566:8: branch_true: ...to here
gdb-16.3/libctf/ctf-open.c:1563:7: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-open.c:1569:21: branch_true: ...to here
gdb-16.3/libctf/ctf-open.c:1573:14: throw: if ‘ctf_set_open_errno’ throws an exception...
gdb-16.3/libctf/ctf-open.c:1573:14: danger: ‘<unknown>’ leaks here; was allocated at [(13)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/12)
# 1571|   		      "bytes"), hp->cth_objtidxoff - hp->cth_funcoff,
# 1572|   		    hp->cth_varoff - hp->cth_funcidxoff);
# 1573|->       return (ctf_set_open_errno (errp, ECTF_CORRUPT));
# 1574|       }
# 1575|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def251]
gdb-16.3/libctf/ctf-open.c:1573:14: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
gdb-16.3/libctf/ctf-open.c:1442:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1443:10: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1442:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1449:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1465:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1469:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1484:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1492:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1492:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1495:13: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1495:13: acquire_memory: allocated here
gdb-16.3/libctf/ctf-open.c:1495:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
gdb-16.3/libctf/ctf-open.c:1498:3: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1500:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1506:15: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1507:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1510:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1510:6: branch_false: following ‘false’ branch (when ‘foreign_endian == 0’)...
gdb-16.3/libctf/ctf-open.c:1512:23: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1518:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1532:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1551:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1563:6: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-open.c:1564:8: branch_true: ...to here
gdb-16.3/libctf/ctf-open.c:1563:7: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-open.c:1566:8: branch_true: ...to here
gdb-16.3/libctf/ctf-open.c:1563:7: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-open.c:1569:21: branch_true: ...to here
gdb-16.3/libctf/ctf-open.c:1573:14: throw: if ‘ctf_set_open_errno’ throws an exception...
gdb-16.3/libctf/ctf-open.c:1573:14: danger: ‘fp’ leaks here; was allocated at [(11)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/10)
# 1571|   		      "bytes"), hp->cth_objtidxoff - hp->cth_funcoff,
# 1572|   		    hp->cth_varoff - hp->cth_funcidxoff);
# 1573|->       return (ctf_set_open_errno (errp, ECTF_CORRUPT));
# 1574|       }
# 1575|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def252]
gdb-16.3/libctf/ctf-open.c:1607:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
gdb-16.3/libctf/ctf-open.c:1442:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1443:10: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1442:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1449:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1465:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1469:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1484:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1492:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1492:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1495:13: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1495:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
gdb-16.3/libctf/ctf-open.c:1498:3: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1500:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1506:15: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1518:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1532:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1551:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1584:6: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-open.c:1594:27: branch_true: ...to here
gdb-16.3/libctf/ctf-open.c:1594:27: acquire_memory: allocated here
gdb-16.3/libctf/ctf-open.c:1594:10: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1599:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1607:17: throw: if ‘uncompress’ throws an exception...
gdb-16.3/libctf/ctf-open.c:1607:17: danger: ‘<unknown>’ leaks here; was allocated at [(47)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/46)
# 1605|         fp->ctf_buf = fp->ctf_base;
# 1606|   
# 1607|->       if ((rc = uncompress (fp->ctf_base, &dstlen, src, srclen)) != Z_OK)
# 1608|   	{
# 1609|   	  ctf_err_warn (NULL, 0, ECTF_DECOMPRESS, _("zlib inflate err: %s"),

Error: GCC_ANALYZER_WARNING (CWE-401): [#def253]
gdb-16.3/libctf/ctf-open.c:1607:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
gdb-16.3/libctf/ctf-open.c:1442:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1443:10: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1442:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1449:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1465:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1469:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1484:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1492:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1492:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1495:13: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1495:13: acquire_memory: allocated here
gdb-16.3/libctf/ctf-open.c:1495:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
gdb-16.3/libctf/ctf-open.c:1498:3: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1500:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1506:15: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1518:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1532:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1551:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1584:6: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-open.c:1594:27: branch_true: ...to here
gdb-16.3/libctf/ctf-open.c:1594:10: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1599:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1607:17: throw: if ‘uncompress’ throws an exception...
gdb-16.3/libctf/ctf-open.c:1607:17: danger: ‘fp’ leaks here; was allocated at [(11)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/10)
# 1605|         fp->ctf_buf = fp->ctf_base;
# 1606|   
# 1607|->       if ((rc = uncompress (fp->ctf_base, &dstlen, src, srclen)) != Z_OK)
# 1608|   	{
# 1609|   	  ctf_err_warn (NULL, 0, ECTF_DECOMPRESS, _("zlib inflate err: %s"),

Error: GCC_ANALYZER_WARNING (CWE-401): [#def254]
gdb-16.3/libctf/ctf-open.c:1609:11: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
gdb-16.3/libctf/ctf-open.c:1442:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1443:10: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1442:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1449:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1465:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1469:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1484:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1492:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1492:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1495:13: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1495:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
gdb-16.3/libctf/ctf-open.c:1498:3: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1500:25: acquire_memory: allocated here
gdb-16.3/libctf/ctf-open.c:1500:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1506:15: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1518:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1532:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1551:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1584:6: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-open.c:1594:27: branch_true: ...to here
gdb-16.3/libctf/ctf-open.c:1594:10: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1599:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1607:10: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-open.c:1609:11: branch_true: ...to here
gdb-16.3/libctf/ctf-open.c:1609:11: throw: if ‘zError’ throws an exception...
gdb-16.3/libctf/ctf-open.c:1609:11: danger: ‘<unknown>’ leaks here; was allocated at [(13)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/12)
# 1607|         if ((rc = uncompress (fp->ctf_base, &dstlen, src, srclen)) != Z_OK)
# 1608|   	{
# 1609|-> 	  ctf_err_warn (NULL, 0, ECTF_DECOMPRESS, _("zlib inflate err: %s"),
# 1610|   			zError (rc));
# 1611|   	  err = ECTF_DECOMPRESS;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def255]
gdb-16.3/libctf/ctf-open.c:1609:11: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
gdb-16.3/libctf/ctf-open.c:1442:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1443:10: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1442:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1449:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1465:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1469:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1484:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1492:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1492:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1495:13: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1495:13: acquire_memory: allocated here
gdb-16.3/libctf/ctf-open.c:1495:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
gdb-16.3/libctf/ctf-open.c:1498:3: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1500:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1506:15: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1518:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1532:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1551:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1584:6: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-open.c:1594:27: branch_true: ...to here
gdb-16.3/libctf/ctf-open.c:1594:10: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1599:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1607:10: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-open.c:1609:11: branch_true: ...to here
gdb-16.3/libctf/ctf-open.c:1609:11: throw: if ‘zError’ throws an exception...
gdb-16.3/libctf/ctf-open.c:1609:11: danger: ‘fp’ leaks here; was allocated at [(11)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/10)
# 1607|         if ((rc = uncompress (fp->ctf_base, &dstlen, src, srclen)) != Z_OK)
# 1608|   	{
# 1609|-> 	  ctf_err_warn (NULL, 0, ECTF_DECOMPRESS, _("zlib inflate err: %s"),
# 1610|   			zError (rc));
# 1611|   	  err = ECTF_DECOMPRESS;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def256]
gdb-16.3/libctf/ctf-open.c:1617:11: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
gdb-16.3/libctf/ctf-open.c:1442:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1443:10: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1442:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1449:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1465:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1469:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1484:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1492:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1492:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1495:13: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1495:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
gdb-16.3/libctf/ctf-open.c:1498:3: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1500:25: acquire_memory: allocated here
gdb-16.3/libctf/ctf-open.c:1500:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1506:15: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1518:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1532:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1551:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1584:6: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-open.c:1594:27: branch_true: ...to here
gdb-16.3/libctf/ctf-open.c:1594:10: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1599:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1607:10: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1615:30: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1615:10: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-open.c:1618:25: branch_true: ...to here
gdb-16.3/libctf/ctf-open.c:1617:11: throw: if ‘ctf_err_warn’ throws an exception...
gdb-16.3/libctf/ctf-open.c:1617:11: danger: ‘<unknown>’ leaks here; was allocated at [(13)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/12)
# 1615|         if ((size_t) dstlen != fp->ctf_size)
# 1616|   	{
# 1617|-> 	  ctf_err_warn (NULL, 0, ECTF_CORRUPT,
# 1618|   			_("zlib inflate short: got %lu of %lu bytes"),
# 1619|   			(unsigned long) dstlen, (unsigned long) fp->ctf_size);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def257]
gdb-16.3/libctf/ctf-open.c:1617:11: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
gdb-16.3/libctf/ctf-open.c:1442:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1443:10: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1442:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1449:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1465:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1469:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1484:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1492:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1492:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1495:13: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1495:13: acquire_memory: allocated here
gdb-16.3/libctf/ctf-open.c:1495:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
gdb-16.3/libctf/ctf-open.c:1498:3: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1500:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1506:15: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1518:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1532:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1551:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1584:6: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-open.c:1594:27: branch_true: ...to here
gdb-16.3/libctf/ctf-open.c:1594:10: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1599:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1607:10: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1615:30: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1615:10: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-open.c:1618:25: branch_true: ...to here
gdb-16.3/libctf/ctf-open.c:1617:11: throw: if ‘ctf_err_warn’ throws an exception...
gdb-16.3/libctf/ctf-open.c:1617:11: danger: ‘fp’ leaks here; was allocated at [(11)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/10)
# 1615|         if ((size_t) dstlen != fp->ctf_size)
# 1616|   	{
# 1617|-> 	  ctf_err_warn (NULL, 0, ECTF_CORRUPT,
# 1618|   			_("zlib inflate short: got %lu of %lu bytes"),
# 1619|   			(unsigned long) dstlen, (unsigned long) fp->ctf_size);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def258]
gdb-16.3/libctf/ctf-open.c:1628:11: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
gdb-16.3/libctf/ctf-open.c:1442:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1443:10: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1442:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1449:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1465:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1469:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1484:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1492:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1492:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1495:13: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1495:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
gdb-16.3/libctf/ctf-open.c:1498:3: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1500:25: acquire_memory: allocated here
gdb-16.3/libctf/ctf-open.c:1500:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1506:15: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1507:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1510:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1510:6: branch_false: following ‘false’ branch (when ‘foreign_endian == 0’)...
gdb-16.3/libctf/ctf-open.c:1512:23: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1518:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1532:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1551:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1584:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1626:11: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1626:10: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-open.c:1629:25: branch_true: ...to here
gdb-16.3/libctf/ctf-open.c:1628:11: throw: if ‘ctf_err_warn’ throws an exception...
gdb-16.3/libctf/ctf-open.c:1628:11: danger: ‘<unknown>’ leaks here; was allocated at [(13)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/12)
# 1626|         if (_libctf_unlikely_ (ctfsect->cts_size < hdrsz + fp->ctf_size))
# 1627|   	{
# 1628|-> 	  ctf_err_warn (NULL, 0, ECTF_CORRUPT,
# 1629|   			_("%lu byte long CTF dictionary overruns %lu byte long CTF section"),
# 1630|   			(unsigned long) ctfsect->cts_size,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def259]
gdb-16.3/libctf/ctf-open.c:1628:11: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
gdb-16.3/libctf/ctf-open.c:1442:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1443:10: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1442:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1449:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1465:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1469:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1484:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1492:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1492:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1495:13: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1495:13: acquire_memory: allocated here
gdb-16.3/libctf/ctf-open.c:1495:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
gdb-16.3/libctf/ctf-open.c:1498:3: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1500:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1506:15: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1507:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1510:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1510:6: branch_false: following ‘false’ branch (when ‘foreign_endian == 0’)...
gdb-16.3/libctf/ctf-open.c:1512:23: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1518:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1532:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1551:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1584:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1626:11: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1626:10: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-open.c:1629:25: branch_true: ...to here
gdb-16.3/libctf/ctf-open.c:1628:11: throw: if ‘ctf_err_warn’ throws an exception...
gdb-16.3/libctf/ctf-open.c:1628:11: danger: ‘fp’ leaks here; was allocated at [(11)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/10)
# 1626|         if (_libctf_unlikely_ (ctfsect->cts_size < hdrsz + fp->ctf_size))
# 1627|   	{
# 1628|-> 	  ctf_err_warn (NULL, 0, ECTF_CORRUPT,
# 1629|   			_("%lu byte long CTF dictionary overruns %lu byte long CTF section"),
# 1630|   			(unsigned long) ctfsect->cts_size,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def260]
gdb-16.3/libctf/ctf-open.c:1675:7: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
gdb-16.3/libctf/ctf-open.c:1367:13: enter_function: entry to ‘ctf_simple_open’
gdb-16.3/libctf/ctf-open.c:1383:6: branch_true: following ‘true’ branch (when ‘ctfsect’ is non-NULL)...
gdb-16.3/libctf/ctf-open.c:1385:7: branch_true: ...to here
gdb-16.3/libctf/ctf-open.c:1391:6: branch_false: following ‘false’ branch (when ‘symsect’ is NULL)...
gdb-16.3/libctf/ctf-open.c:1400:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1400:6: branch_false: following ‘false’ branch (when ‘strsect’ is NULL)...
gdb-16.3/libctf/ctf-open.c:1408:10: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1408:10: call_function: calling ‘ctf_bufopen’ from ‘ctf_simple_open’
# 1673|       + hp->cth_stroff;
# 1674|     fp->ctf_str[CTF_STRTAB_0].cts_len = hp->cth_strlen;
# 1675|->   if (ctf_str_create_atoms (fp) < 0)
# 1676|       {
# 1677|         err = ENOMEM;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def261]
gdb-16.3/libctf/ctf-open.c:1675:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
gdb-16.3/libctf/ctf-open.c:1442:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1443:10: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1442:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1449:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1465:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1469:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1484:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1492:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1492:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1495:13: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1495:13: acquire_memory: allocated here
gdb-16.3/libctf/ctf-open.c:1495:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
gdb-16.3/libctf/ctf-open.c:1498:3: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1500:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1506:15: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1507:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1510:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1510:6: branch_false: following ‘false’ branch (when ‘foreign_endian == 0’)...
gdb-16.3/libctf/ctf-open.c:1512:23: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1518:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1532:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1551:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1584:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1626:11: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1626:10: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1636:10: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1636:10: branch_false: following ‘false’ branch (when ‘foreign_endian == 0’)...
gdb-16.3/libctf/ctf-open.c:1653:44: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1675:7: throw: if ‘ctf_str_create_atoms’ throws an exception...
gdb-16.3/libctf/ctf-open.c:1675:7: danger: ‘fp’ leaks here; was allocated at [(11)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/10)
# 1673|       + hp->cth_stroff;
# 1674|     fp->ctf_str[CTF_STRTAB_0].cts_len = hp->cth_strlen;
# 1675|->   if (ctf_str_create_atoms (fp) < 0)
# 1676|       {
# 1677|         err = ENOMEM;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def262]
gdb-16.3/libctf/ctf-open.c:1802:3: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
gdb-16.3/libctf/ctf-open.c:1442:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1443:10: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1442:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1449:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1465:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1469:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1484:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1492:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1492:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1495:13: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1495:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
gdb-16.3/libctf/ctf-open.c:1498:3: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1500:25: acquire_memory: allocated here
gdb-16.3/libctf/ctf-open.c:1500:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1506:15: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1507:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1510:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1510:6: branch_false: following ‘false’ branch (when ‘foreign_endian == 0’)...
gdb-16.3/libctf/ctf-open.c:1512:23: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1518:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1532:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1551:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1584:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1626:11: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1626:10: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-open.c:1629:25: branch_true: ...to here
gdb-16.3/libctf/ctf-open.c:1802:3: throw: if ‘ctf_set_open_errno’ throws an exception...
gdb-16.3/libctf/ctf-open.c:1802:3: danger: ‘<unknown>’ leaks here; was allocated at [(13)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/12)
# 1800|   
# 1801|   bad:
# 1802|->   ctf_set_open_errno (errp, err);
# 1803|     ctf_err_warn_to_open (fp);
# 1804|     /* Without this, the refcnt is zero on entry and ctf_dict_close() won't

Error: GCC_ANALYZER_WARNING (CWE-401): [#def263]
gdb-16.3/libctf/ctf-open.c:1802:3: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
gdb-16.3/libctf/ctf-open.c:1442:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1443:10: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1442:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1449:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1465:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1469:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1484:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1492:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1492:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1495:13: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1495:13: acquire_memory: allocated here
gdb-16.3/libctf/ctf-open.c:1495:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
gdb-16.3/libctf/ctf-open.c:1498:3: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1500:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1506:15: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1507:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1510:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1510:6: branch_false: following ‘false’ branch (when ‘foreign_endian == 0’)...
gdb-16.3/libctf/ctf-open.c:1512:23: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1518:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1532:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1551:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1584:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1626:11: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1626:10: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-open.c:1629:25: branch_true: ...to here
gdb-16.3/libctf/ctf-open.c:1802:3: throw: if ‘ctf_set_open_errno’ throws an exception...
gdb-16.3/libctf/ctf-open.c:1802:3: danger: ‘fp’ leaks here; was allocated at [(11)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/10)
# 1800|   
# 1801|   bad:
# 1802|->   ctf_set_open_errno (errp, err);
# 1803|     ctf_err_warn_to_open (fp);
# 1804|     /* Without this, the refcnt is zero on entry and ctf_dict_close() won't

Error: GCC_ANALYZER_WARNING (CWE-401): [#def264]
gdb-16.3/libctf/ctf-open.c:1803:3: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
gdb-16.3/libctf/ctf-open.c:1442:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1443:10: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1442:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1449:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1465:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1469:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1484:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1492:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1492:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1495:13: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1495:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
gdb-16.3/libctf/ctf-open.c:1498:3: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1500:25: acquire_memory: allocated here
gdb-16.3/libctf/ctf-open.c:1500:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1506:15: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1507:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1510:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1510:6: branch_false: following ‘false’ branch (when ‘foreign_endian == 0’)...
gdb-16.3/libctf/ctf-open.c:1512:23: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1518:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1532:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1551:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1584:6: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-open.c:1594:27: branch_true: ...to here
gdb-16.3/libctf/ctf-open.c:1594:10: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-open.c:1597:11: branch_true: ...to here
gdb-16.3/libctf/ctf-open.c:1803:3: throw: if ‘ctf_err_warn_to_open’ throws an exception...
gdb-16.3/libctf/ctf-open.c:1803:3: danger: ‘<unknown>’ leaks here; was allocated at [(13)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/12)
# 1801|   bad:
# 1802|     ctf_set_open_errno (errp, err);
# 1803|->   ctf_err_warn_to_open (fp);
# 1804|     /* Without this, the refcnt is zero on entry and ctf_dict_close() won't
# 1805|        actually do anything on the grounds that this is a recursive call via

Error: GCC_ANALYZER_WARNING (CWE-401): [#def265]
gdb-16.3/libctf/ctf-open.c:1803:3: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
gdb-16.3/libctf/ctf-open.c:1442:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1443:10: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1442:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1449:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1465:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1469:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1484:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1492:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1492:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1495:13: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1495:13: acquire_memory: allocated here
gdb-16.3/libctf/ctf-open.c:1495:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
gdb-16.3/libctf/ctf-open.c:1498:3: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1500:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1506:15: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1507:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1510:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1510:6: branch_false: following ‘false’ branch (when ‘foreign_endian == 0’)...
gdb-16.3/libctf/ctf-open.c:1512:23: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1518:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1518:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1532:31: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1527:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1539:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-open.c:1551:6: branch_false: ...to here
gdb-16.3/libctf/ctf-open.c:1584:6: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-open.c:1594:27: branch_true: ...to here
gdb-16.3/libctf/ctf-open.c:1594:10: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-open.c:1597:11: branch_true: ...to here
gdb-16.3/libctf/ctf-open.c:1803:3: throw: if ‘ctf_err_warn_to_open’ throws an exception...
gdb-16.3/libctf/ctf-open.c:1803:3: danger: ‘fp’ leaks here; was allocated at [(11)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/10)
# 1801|   bad:
# 1802|     ctf_set_open_errno (errp, err);
# 1803|->   ctf_err_warn_to_open (fp);
# 1804|     /* Without this, the refcnt is zero on entry and ctf_dict_close() won't
# 1805|        actually do anything on the grounds that this is a recursive call via

Error: GCC_ANALYZER_WARNING (CWE-401): [#def266]
gdb-16.3/libctf/ctf-string.c:266:11: warning[-Wanalyzer-malloc-leak]: leak of ‘aref’
gdb-16.3/libctf/ctf-string.c:248:10: acquire_memory: allocated here
gdb-16.3/libctf/ctf-string.c:250:6: branch_false: following ‘false’ branch (when ‘aref’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:253:3: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:260:6: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-string.c:264:34: branch_true: ...to here
gdb-16.3/libctf/ctf-string.c:266:11: throw: if ‘ctf_dynhash_insert’ throws an exception...
gdb-16.3/libctf/ctf-string.c:266:11: danger: ‘aref’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  264|         movref->caf_movable_refs = fp->ctf_str_movable_refs;
#  265|   
#  266|->       if (ctf_dynhash_insert (fp->ctf_str_movable_refs, ref, aref) < 0)
#  267|   	{
#  268|   	  free (aref);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def267]
gdb-16.3/libctf/ctf-string.c:274:5: warning[-Wanalyzer-malloc-leak]: leak of ‘aref’
gdb-16.3/libctf/ctf-string.c:248:10: acquire_memory: allocated here
gdb-16.3/libctf/ctf-string.c:250:6: branch_false: following ‘false’ branch (when ‘aref’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:253:3: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:260:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-string.c:274:5: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:274:5: throw: if ‘ctf_list_append’ throws an exception...
gdb-16.3/libctf/ctf-string.c:274:5: danger: ‘aref’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  272|       }
#  273|     else
#  274|->     ctf_list_append (&atom->csa_refs, aref);
#  275|   
#  276|     return aref;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def268]
gdb-16.3/libctf/ctf-string.c:349:7: warning[-Wanalyzer-malloc-leak]: leak of ‘atom’
gdb-16.3/libctf/ctf-string.c:302:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-string.c:331:15: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:331:15: acquire_memory: allocated here
gdb-16.3/libctf/ctf-string.c:331:6: branch_false: following ‘false’ branch (when ‘atom’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:333:3: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:338:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-string.c:339:75: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:338:7: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-string.c:347:5: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:349:7: throw: if ‘ctf_dynhash_insert’ throws an exception...
gdb-16.3/libctf/ctf-string.c:349:7: danger: ‘atom’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
#  347|       atom->csa_str = (char *) str;
#  348|   
#  349|->   if (ctf_dynhash_insert (fp->ctf_str_atoms, atom->csa_str, atom) < 0)
#  350|       goto oom;
#  351|     added = 1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def269]
gdb-16.3/libctf/ctf-string.c:349:7: warning[-Wanalyzer-malloc-leak]: leak of ‘newstr’
gdb-16.3/libctf/ctf-string.c:302:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-string.c:331:15: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:331:6: branch_false: following ‘false’ branch (when ‘atom’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:333:3: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:341:21: acquire_memory: allocated here
gdb-16.3/libctf/ctf-string.c:341:10: branch_false: following ‘false’ branch (when ‘newstr’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:343:7: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:349:7: throw: if ‘ctf_dynhash_insert’ throws an exception...
gdb-16.3/libctf/ctf-string.c:349:7: danger: ‘newstr’ leaks here; was allocated at [(5)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/4)
#  347|       atom->csa_str = (char *) str;
#  348|   
#  349|->   if (ctf_dynhash_insert (fp->ctf_str_atoms, atom->csa_str, atom) < 0)
#  350|       goto oom;
#  351|     added = 1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def270]
gdb-16.3/libctf/ctf-string.c:588:3: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
gdb-16.3/libctf/ctf-string.c:648:1: enter_function: entry to ‘ctf_str_write_strtab’
gdb-16.3/libctf/ctf-string.c:662:6: branch_false: following ‘false’ branch (when ‘strtab’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:671:21: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:700:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-string.c:709:32: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:714:6: branch_false: following ‘false’ branch (when ‘sorttab’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:714:6: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:740:27: acquire_memory: allocated here
gdb-16.3/libctf/ctf-string.c:740:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-string.c:743:16: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:745:6: branch_false: following ‘false’ branch (when ‘new_strtab == 0’)...
gdb-16.3/libctf/ctf-string.c:751:31: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:760:15: branch_false: following ‘false’ branch (when ‘strtab_count <= i’)...
gdb-16.3/libctf/ctf-string.c:766:3: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:790:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-string.c:796:3: call_function: inlined call to ‘ctf_str_purge_refs’ from ‘ctf_str_write_strtab’
#  586|   ctf_str_purge_refs (ctf_dict_t *fp)
#  587|   {
#  588|->   ctf_dynhash_iter (fp->ctf_str_atoms, ctf_str_purge_one_atom_refs, NULL);
#  589|   }
#  590|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def271]
gdb-16.3/libctf/ctf-string.c:588:3: warning[-Wanalyzer-malloc-leak]: leak of ‘strtab’
gdb-16.3/libctf/ctf-string.c:648:1: enter_function: entry to ‘ctf_str_write_strtab’
gdb-16.3/libctf/ctf-string.c:661:12: acquire_memory: allocated here
gdb-16.3/libctf/ctf-string.c:662:6: branch_false: following ‘false’ branch (when ‘strtab’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:671:21: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:700:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-string.c:709:32: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:714:6: branch_false: following ‘false’ branch (when ‘sorttab’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:714:6: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:740:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-string.c:743:16: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:745:6: branch_false: following ‘false’ branch (when ‘new_strtab == 0’)...
gdb-16.3/libctf/ctf-string.c:751:31: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:760:15: branch_false: following ‘false’ branch (when ‘strtab_count <= i’)...
gdb-16.3/libctf/ctf-string.c:766:3: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:790:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-string.c:796:3: call_function: inlined call to ‘ctf_str_purge_refs’ from ‘ctf_str_write_strtab’
#  586|   ctf_str_purge_refs (ctf_dict_t *fp)
#  587|   {
#  588|->   ctf_dynhash_iter (fp->ctf_str_atoms, ctf_str_purge_one_atom_refs, NULL);
#  589|   }
#  590|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def272]
gdb-16.3/libctf/ctf-string.c:683:17: warning[-Wanalyzer-malloc-leak]: leak of ‘strtab’
gdb-16.3/libctf/ctf-string.c:661:12: acquire_memory: allocated here
gdb-16.3/libctf/ctf-string.c:662:6: branch_false: following ‘false’ branch (when ‘strtab’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:671:21: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:683:17: throw: if ‘ctf_dynhash_next’ throws an exception...
gdb-16.3/libctf/ctf-string.c:683:17: danger: ‘strtab’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
#  681|        external strtab, and unreferenced entries.  */
#  682|   
#  683|->   while ((err = ctf_dynhash_next (fp->ctf_prov_strtab, &it, NULL, &v)) == 0)
#  684|       {
#  685|         const char *str = (const char *) v;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def273]
gdb-16.3/libctf/ctf-string.c:688:14: warning[-Wanalyzer-malloc-leak]: leak of ‘strtab’
gdb-16.3/libctf/ctf-string.c:661:12: acquire_memory: allocated here
gdb-16.3/libctf/ctf-string.c:662:6: branch_false: following ‘false’ branch (when ‘strtab’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:671:21: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:683:10: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-string.c:685:19: branch_true: ...to here
gdb-16.3/libctf/ctf-string.c:688:14: throw: if ‘ctf_dynhash_lookup’ throws an exception...
gdb-16.3/libctf/ctf-string.c:688:14: danger: ‘strtab’ leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
#  686|         ctf_str_atom_t *atom;
#  687|   
#  688|->       atom = ctf_dynhash_lookup (fp->ctf_str_atoms, str);
#  689|         if (!ctf_assert (fp, atom))
#  690|   	goto err_strtab;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def274]
gdb-16.3/libctf/ctf-string.c:693:15: warning[-Wanalyzer-malloc-leak]: leak of ‘strtab’
gdb-16.3/libctf/ctf-string.c:661:12: acquire_memory: allocated here
gdb-16.3/libctf/ctf-string.c:662:6: branch_false: following ‘false’ branch (when ‘strtab’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:671:21: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:683:10: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-string.c:685:19: branch_true: ...to here
gdb-16.3/libctf/ctf-string.c:689:10: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-string.c:692:11: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:693:15: throw: if ‘ctf_list_empty_p’ throws an exception...
gdb-16.3/libctf/ctf-string.c:693:15: danger: ‘strtab’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
#  691|   
#  692|         if (atom->csa_str[0] == 0 || atom->csa_external_offset
#  693|-> 	  || (ctf_list_empty_p (&atom->csa_refs)
#  694|   	      && ctf_list_empty_p (&atom->csa_movable_refs)))
#  695|   	continue;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def275]
gdb-16.3/libctf/ctf-string.c:694:18: warning[-Wanalyzer-malloc-leak]: leak of ‘strtab’
gdb-16.3/libctf/ctf-string.c:661:12: acquire_memory: allocated here
gdb-16.3/libctf/ctf-string.c:662:6: branch_false: following ‘false’ branch (when ‘strtab’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:671:21: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:683:10: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-string.c:685:19: branch_true: ...to here
gdb-16.3/libctf/ctf-string.c:689:10: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-string.c:692:11: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:692:11: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-string.c:694:18: branch_true: ...to here
gdb-16.3/libctf/ctf-string.c:694:18: throw: if ‘ctf_list_empty_p’ throws an exception...
gdb-16.3/libctf/ctf-string.c:694:18: danger: ‘strtab’ leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
#  692|         if (atom->csa_str[0] == 0 || atom->csa_external_offset
#  693|   	  || (ctf_list_empty_p (&atom->csa_refs)
#  694|-> 	      && ctf_list_empty_p (&atom->csa_movable_refs)))
#  695|   	continue;
#  696|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def276]
gdb-16.3/libctf/ctf-string.c:702:7: warning[-Wanalyzer-malloc-leak]: leak of ‘strtab’
gdb-16.3/libctf/ctf-string.c:661:12: acquire_memory: allocated here
gdb-16.3/libctf/ctf-string.c:662:6: branch_false: following ‘false’ branch (when ‘strtab’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:671:21: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:700:6: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-string.c:702:7: branch_true: ...to here
gdb-16.3/libctf/ctf-string.c:702:7: throw: if ‘ctf_errmsg’ throws an exception...
gdb-16.3/libctf/ctf-string.c:702:7: danger: ‘strtab’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
#  700|     if (err != ECTF_NEXT_END)
#  701|       {
#  702|->       ctf_dprintf ("ctf_str_write_strtab: error counting strtab entries: %s\n",
#  703|   		   ctf_errmsg (err));
#  704|         goto err_strtab;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def277]
gdb-16.3/libctf/ctf-string.c:707:3: warning[-Wanalyzer-malloc-leak]: leak of ‘strtab’
gdb-16.3/libctf/ctf-string.c:661:12: acquire_memory: allocated here
gdb-16.3/libctf/ctf-string.c:662:6: branch_false: following ‘false’ branch (when ‘strtab’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:671:21: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:700:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-string.c:709:32: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:707:3: throw: if ‘ctf_dprintf’ throws an exception...
gdb-16.3/libctf/ctf-string.c:707:3: danger: ‘strtab’ leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
#  705|       }
#  706|   
#  707|->   ctf_dprintf ("%lu bytes of strings in strtab: %lu pre-existing.\n",
#  708|   	       (unsigned long) strtab->cts_len,
#  709|   	       (unsigned long) fp->ctf_str[CTF_STRTAB_0].cts_len);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def278]
gdb-16.3/libctf/ctf-string.c:721:17: warning[-Wanalyzer-malloc-leak]: leak of ‘sorttab’
gdb-16.3/libctf/ctf-string.c:662:6: branch_false: following ‘false’ branch (when ‘strtab’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:671:21: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:700:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-string.c:709:32: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:713:13: acquire_memory: allocated here
gdb-16.3/libctf/ctf-string.c:714:6: branch_false: following ‘false’ branch (when ‘sorttab’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:714:6: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:721:17: throw: if ‘ctf_dynhash_next’ throws an exception...
gdb-16.3/libctf/ctf-string.c:721:17: danger: ‘sorttab’ leaks here; was allocated at [(5)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/4)
#  719|   
#  720|     i = 0;
#  721|->   while ((err = ctf_dynhash_next (fp->ctf_prov_strtab, &it, NULL, &v)) == 0)
#  722|       {
#  723|         ctf_str_atom_t *atom;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def279]
gdb-16.3/libctf/ctf-string.c:721:17: warning[-Wanalyzer-malloc-leak]: leak of ‘strtab’
gdb-16.3/libctf/ctf-string.c:661:12: acquire_memory: allocated here
gdb-16.3/libctf/ctf-string.c:662:6: branch_false: following ‘false’ branch (when ‘strtab’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:671:21: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:700:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-string.c:709:32: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:714:6: branch_false: following ‘false’ branch (when ‘sorttab’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:714:6: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:721:17: throw: if ‘ctf_dynhash_next’ throws an exception...
gdb-16.3/libctf/ctf-string.c:721:17: danger: ‘strtab’ leaks here; was allocated at [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0)
#  719|   
#  720|     i = 0;
#  721|->   while ((err = ctf_dynhash_next (fp->ctf_prov_strtab, &it, NULL, &v)) == 0)
#  722|       {
#  723|         ctf_str_atom_t *atom;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def280]
gdb-16.3/libctf/ctf-string.c:725:14: warning[-Wanalyzer-malloc-leak]: leak of ‘sorttab’
gdb-16.3/libctf/ctf-string.c:662:6: branch_false: following ‘false’ branch (when ‘strtab’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:671:21: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:700:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-string.c:709:32: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:713:13: acquire_memory: allocated here
gdb-16.3/libctf/ctf-string.c:714:6: branch_false: following ‘false’ branch (when ‘sorttab’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:714:6: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:721:10: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-string.c:725:14: branch_true: ...to here
gdb-16.3/libctf/ctf-string.c:725:14: throw: if ‘ctf_dynhash_lookup’ throws an exception...
gdb-16.3/libctf/ctf-string.c:725:14: danger: ‘sorttab’ leaks here; was allocated at [(5)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/4)
#  723|         ctf_str_atom_t *atom;
#  724|   
#  725|->       atom = ctf_dynhash_lookup (fp->ctf_str_atoms, v);
#  726|         if (!ctf_assert (fp, atom))
#  727|   	goto err_sorttab;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def281]
gdb-16.3/libctf/ctf-string.c:725:14: warning[-Wanalyzer-malloc-leak]: leak of ‘strtab’
gdb-16.3/libctf/ctf-string.c:661:12: acquire_memory: allocated here
gdb-16.3/libctf/ctf-string.c:662:6: branch_false: following ‘false’ branch (when ‘strtab’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:671:21: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:700:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-string.c:709:32: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:714:6: branch_false: following ‘false’ branch (when ‘sorttab’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:714:6: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:721:10: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-string.c:725:14: branch_true: ...to here
gdb-16.3/libctf/ctf-string.c:725:14: throw: if ‘ctf_dynhash_lookup’ throws an exception...
gdb-16.3/libctf/ctf-string.c:725:14: danger: ‘strtab’ leaks here; was allocated at [(1)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/0)
#  723|         ctf_str_atom_t *atom;
#  724|   
#  725|->       atom = ctf_dynhash_lookup (fp->ctf_str_atoms, v);
#  726|         if (!ctf_assert (fp, atom))
#  727|   	goto err_sorttab;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def282]
gdb-16.3/libctf/ctf-string.c:730:15: warning[-Wanalyzer-malloc-leak]: leak of ‘sorttab’
gdb-16.3/libctf/ctf-string.c:662:6: branch_false: following ‘false’ branch (when ‘strtab’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:671:21: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:700:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-string.c:709:32: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:713:13: acquire_memory: allocated here
gdb-16.3/libctf/ctf-string.c:714:6: branch_false: following ‘false’ branch (when ‘sorttab’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:714:6: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:721:10: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-string.c:725:14: branch_true: ...to here
gdb-16.3/libctf/ctf-string.c:726:10: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-string.c:729:11: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:730:15: throw: if ‘ctf_list_empty_p’ throws an exception...
gdb-16.3/libctf/ctf-string.c:730:15: danger: ‘sorttab’ leaks here; was allocated at [(5)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/4)
#  728|   
#  729|         if (atom->csa_str[0] == 0 || atom->csa_external_offset
#  730|-> 	  || (ctf_list_empty_p (&atom->csa_refs)
#  731|   	      && ctf_list_empty_p (&atom->csa_movable_refs)))
#  732|   	continue;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def283]
gdb-16.3/libctf/ctf-string.c:730:15: warning[-Wanalyzer-malloc-leak]: leak of ‘strtab’
gdb-16.3/libctf/ctf-string.c:661:12: acquire_memory: allocated here
gdb-16.3/libctf/ctf-string.c:662:6: branch_false: following ‘false’ branch (when ‘strtab’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:671:21: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:700:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-string.c:709:32: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:714:6: branch_false: following ‘false’ branch (when ‘sorttab’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:714:6: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:721:10: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-string.c:725:14: branch_true: ...to here
gdb-16.3/libctf/ctf-string.c:726:10: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-string.c:729:11: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:730:15: throw: if ‘ctf_list_empty_p’ throws an exception...
gdb-16.3/libctf/ctf-string.c:730:15: danger: ‘strtab’ leaks here; was allocated at [(1)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/0)
#  728|   
#  729|         if (atom->csa_str[0] == 0 || atom->csa_external_offset
#  730|-> 	  || (ctf_list_empty_p (&atom->csa_refs)
#  731|   	      && ctf_list_empty_p (&atom->csa_movable_refs)))
#  732|   	continue;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def284]
gdb-16.3/libctf/ctf-string.c:731:18: warning[-Wanalyzer-malloc-leak]: leak of ‘sorttab’
gdb-16.3/libctf/ctf-string.c:662:6: branch_false: following ‘false’ branch (when ‘strtab’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:671:21: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:700:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-string.c:709:32: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:713:13: acquire_memory: allocated here
gdb-16.3/libctf/ctf-string.c:714:6: branch_false: following ‘false’ branch (when ‘sorttab’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:714:6: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:721:10: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-string.c:725:14: branch_true: ...to here
gdb-16.3/libctf/ctf-string.c:726:10: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-string.c:729:11: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:729:11: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-string.c:731:18: branch_true: ...to here
gdb-16.3/libctf/ctf-string.c:731:18: throw: if ‘ctf_list_empty_p’ throws an exception...
gdb-16.3/libctf/ctf-string.c:731:18: danger: ‘sorttab’ leaks here; was allocated at [(5)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/4)
#  729|         if (atom->csa_str[0] == 0 || atom->csa_external_offset
#  730|   	  || (ctf_list_empty_p (&atom->csa_refs)
#  731|-> 	      && ctf_list_empty_p (&atom->csa_movable_refs)))
#  732|   	continue;
#  733|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def285]
gdb-16.3/libctf/ctf-string.c:731:18: warning[-Wanalyzer-malloc-leak]: leak of ‘strtab’
gdb-16.3/libctf/ctf-string.c:661:12: acquire_memory: allocated here
gdb-16.3/libctf/ctf-string.c:662:6: branch_false: following ‘false’ branch (when ‘strtab’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:671:21: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:700:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-string.c:709:32: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:714:6: branch_false: following ‘false’ branch (when ‘sorttab’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:714:6: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:721:10: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-string.c:725:14: branch_true: ...to here
gdb-16.3/libctf/ctf-string.c:726:10: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-string.c:729:11: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:729:11: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-string.c:731:18: branch_true: ...to here
gdb-16.3/libctf/ctf-string.c:731:18: throw: if ‘ctf_list_empty_p’ throws an exception...
gdb-16.3/libctf/ctf-string.c:731:18: danger: ‘strtab’ leaks here; was allocated at [(1)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/0)
#  729|         if (atom->csa_str[0] == 0 || atom->csa_external_offset
#  730|   	  || (ctf_list_empty_p (&atom->csa_refs)
#  731|-> 	      && ctf_list_empty_p (&atom->csa_movable_refs)))
#  732|   	continue;
#  733|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def286]
gdb-16.3/libctf/ctf-string.c:737:3: warning[-Wanalyzer-malloc-leak]: leak of ‘sorttab’
gdb-16.3/libctf/ctf-string.c:662:6: branch_false: following ‘false’ branch (when ‘strtab’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:671:21: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:700:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-string.c:709:32: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:713:13: acquire_memory: allocated here
gdb-16.3/libctf/ctf-string.c:714:6: branch_false: following ‘false’ branch (when ‘sorttab’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:714:6: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:737:3: throw: if ‘qsort’ throws an exception...
gdb-16.3/libctf/ctf-string.c:737:3: danger: ‘sorttab’ leaks here; was allocated at [(5)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/4)
#  735|       }
#  736|   
#  737|->   qsort (sorttab, strtab_count, sizeof (ctf_str_atom_t *),
#  738|   	 ctf_str_sort_strtab);
#  739|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def287]
gdb-16.3/libctf/ctf-string.c:737:3: warning[-Wanalyzer-malloc-leak]: leak of ‘strtab’
gdb-16.3/libctf/ctf-string.c:661:12: acquire_memory: allocated here
gdb-16.3/libctf/ctf-string.c:662:6: branch_false: following ‘false’ branch (when ‘strtab’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:671:21: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:700:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-string.c:709:32: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:714:6: branch_false: following ‘false’ branch (when ‘sorttab’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:714:6: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:737:3: throw: if ‘qsort’ throws an exception...
gdb-16.3/libctf/ctf-string.c:737:3: danger: ‘strtab’ leaks here; was allocated at [(1)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/0)
#  735|       }
#  736|   
#  737|->   qsort (sorttab, strtab_count, sizeof (ctf_str_atom_t *),
#  738|   	 ctf_str_sort_strtab);
#  739|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def288]
gdb-16.3/libctf/ctf-string.c:772:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
gdb-16.3/libctf/ctf-string.c:662:6: branch_false: following ‘false’ branch (when ‘strtab’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:671:21: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:700:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-string.c:709:32: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:714:6: branch_false: following ‘false’ branch (when ‘sorttab’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:714:6: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:740:27: acquire_memory: allocated here
gdb-16.3/libctf/ctf-string.c:740:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-string.c:743:16: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:745:6: branch_false: following ‘false’ branch (when ‘new_strtab == 0’)...
gdb-16.3/libctf/ctf-string.c:751:31: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:760:15: branch_false: following ‘false’ branch (when ‘strtab_count <= i’)...
gdb-16.3/libctf/ctf-string.c:766:3: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:772:17: throw: if ‘ctf_dynhash_next’ throws an exception...
gdb-16.3/libctf/ctf-string.c:772:17: danger: ‘<unknown>’ leaks here; was allocated at [(7)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/6)
#  770|        the strtab appropriately.  */
#  771|   
#  772|->   while ((err = ctf_dynhash_next (fp->ctf_str_atoms, &it, NULL, &v)) == 0)
#  773|       {
#  774|         ctf_str_atom_t *atom = (ctf_str_atom_t *) v;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def289]
gdb-16.3/libctf/ctf-string.c:772:17: warning[-Wanalyzer-malloc-leak]: leak of ‘strtab’
gdb-16.3/libctf/ctf-string.c:661:12: acquire_memory: allocated here
gdb-16.3/libctf/ctf-string.c:662:6: branch_false: following ‘false’ branch (when ‘strtab’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:671:21: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:700:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-string.c:709:32: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:714:6: branch_false: following ‘false’ branch (when ‘sorttab’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:714:6: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:740:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-string.c:743:16: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:745:6: branch_false: following ‘false’ branch (when ‘new_strtab == 0’)...
gdb-16.3/libctf/ctf-string.c:751:31: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:760:15: branch_false: following ‘false’ branch (when ‘strtab_count <= i’)...
gdb-16.3/libctf/ctf-string.c:766:3: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:772:17: throw: if ‘ctf_dynhash_next’ throws an exception...
gdb-16.3/libctf/ctf-string.c:772:17: danger: ‘strtab’ leaks here; was allocated at [(1)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/0)
#  770|        the strtab appropriately.  */
#  771|   
#  772|->   while ((err = ctf_dynhash_next (fp->ctf_str_atoms, &it, NULL, &v)) == 0)
#  773|       {
#  774|         ctf_str_atom_t *atom = (ctf_str_atom_t *) v;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def290]
gdb-16.3/libctf/ctf-string.c:777:11: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
gdb-16.3/libctf/ctf-string.c:662:6: branch_false: following ‘false’ branch (when ‘strtab’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:671:21: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:700:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-string.c:709:32: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:714:6: branch_false: following ‘false’ branch (when ‘sorttab’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:714:6: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:740:27: acquire_memory: allocated here
gdb-16.3/libctf/ctf-string.c:740:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-string.c:743:16: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:745:6: branch_false: following ‘false’ branch (when ‘new_strtab == 0’)...
gdb-16.3/libctf/ctf-string.c:751:31: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:760:15: branch_false: following ‘false’ branch (when ‘strtab_count <= i’)...
gdb-16.3/libctf/ctf-string.c:766:3: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:772:10: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-string.c:774:23: branch_true: ...to here
gdb-16.3/libctf/ctf-string.c:777:11: throw: if ‘ctf_list_empty_p’ throws an exception...
gdb-16.3/libctf/ctf-string.c:777:11: danger: ‘<unknown>’ leaks here; was allocated at [(7)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/6)
#  775|         uint32_t offset;
#  776|   
#  777|->       if (ctf_list_empty_p (&atom->csa_refs) &&
#  778|   	  ctf_list_empty_p (&atom->csa_movable_refs))
#  779|   	continue;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def291]
gdb-16.3/libctf/ctf-string.c:777:11: warning[-Wanalyzer-malloc-leak]: leak of ‘strtab’
gdb-16.3/libctf/ctf-string.c:661:12: acquire_memory: allocated here
gdb-16.3/libctf/ctf-string.c:662:6: branch_false: following ‘false’ branch (when ‘strtab’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:671:21: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:700:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-string.c:709:32: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:714:6: branch_false: following ‘false’ branch (when ‘sorttab’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:714:6: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:740:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-string.c:743:16: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:745:6: branch_false: following ‘false’ branch (when ‘new_strtab == 0’)...
gdb-16.3/libctf/ctf-string.c:751:31: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:760:15: branch_false: following ‘false’ branch (when ‘strtab_count <= i’)...
gdb-16.3/libctf/ctf-string.c:766:3: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:772:10: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-string.c:774:23: branch_true: ...to here
gdb-16.3/libctf/ctf-string.c:777:11: throw: if ‘ctf_list_empty_p’ throws an exception...
gdb-16.3/libctf/ctf-string.c:777:11: danger: ‘strtab’ leaks here; was allocated at [(1)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/0)
#  775|         uint32_t offset;
#  776|   
#  777|->       if (ctf_list_empty_p (&atom->csa_refs) &&
#  778|   	  ctf_list_empty_p (&atom->csa_movable_refs))
#  779|   	continue;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def292]
gdb-16.3/libctf/ctf-string.c:778:11: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
gdb-16.3/libctf/ctf-string.c:662:6: branch_false: following ‘false’ branch (when ‘strtab’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:671:21: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:700:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-string.c:709:32: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:714:6: branch_false: following ‘false’ branch (when ‘sorttab’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:714:6: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:740:27: acquire_memory: allocated here
gdb-16.3/libctf/ctf-string.c:740:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-string.c:743:16: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:745:6: branch_false: following ‘false’ branch (when ‘new_strtab == 0’)...
gdb-16.3/libctf/ctf-string.c:751:31: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:760:15: branch_false: following ‘false’ branch (when ‘strtab_count <= i’)...
gdb-16.3/libctf/ctf-string.c:766:3: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:772:10: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-string.c:774:23: branch_true: ...to here
gdb-16.3/libctf/ctf-string.c:777:10: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-string.c:778:11: branch_true: ...to here
gdb-16.3/libctf/ctf-string.c:778:11: throw: if ‘ctf_list_empty_p’ throws an exception...
gdb-16.3/libctf/ctf-string.c:778:11: danger: ‘<unknown>’ leaks here; was allocated at [(7)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/6)
#  776|   
#  777|         if (ctf_list_empty_p (&atom->csa_refs) &&
#  778|-> 	  ctf_list_empty_p (&atom->csa_movable_refs))
#  779|   	continue;
#  780|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def293]
gdb-16.3/libctf/ctf-string.c:778:11: warning[-Wanalyzer-malloc-leak]: leak of ‘strtab’
gdb-16.3/libctf/ctf-string.c:661:12: acquire_memory: allocated here
gdb-16.3/libctf/ctf-string.c:662:6: branch_false: following ‘false’ branch (when ‘strtab’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:671:21: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:700:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-string.c:709:32: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:714:6: branch_false: following ‘false’ branch (when ‘sorttab’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:714:6: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:740:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-string.c:743:16: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:745:6: branch_false: following ‘false’ branch (when ‘new_strtab == 0’)...
gdb-16.3/libctf/ctf-string.c:751:31: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:760:15: branch_false: following ‘false’ branch (when ‘strtab_count <= i’)...
gdb-16.3/libctf/ctf-string.c:766:3: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:772:10: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-string.c:774:23: branch_true: ...to here
gdb-16.3/libctf/ctf-string.c:777:10: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-string.c:778:11: branch_true: ...to here
gdb-16.3/libctf/ctf-string.c:778:11: throw: if ‘ctf_list_empty_p’ throws an exception...
gdb-16.3/libctf/ctf-string.c:778:11: danger: ‘strtab’ leaks here; was allocated at [(1)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/0)
#  776|   
#  777|         if (ctf_list_empty_p (&atom->csa_refs) &&
#  778|-> 	  ctf_list_empty_p (&atom->csa_movable_refs))
#  779|   	continue;
#  780|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def294]
gdb-16.3/libctf/ctf-string.c:792:7: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
gdb-16.3/libctf/ctf-string.c:662:6: branch_false: following ‘false’ branch (when ‘strtab’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:671:21: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:700:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-string.c:709:32: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:714:6: branch_false: following ‘false’ branch (when ‘sorttab’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:714:6: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:740:27: acquire_memory: allocated here
gdb-16.3/libctf/ctf-string.c:740:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-string.c:743:16: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:745:6: branch_false: following ‘false’ branch (when ‘new_strtab == 0’)...
gdb-16.3/libctf/ctf-string.c:751:31: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:760:15: branch_false: following ‘false’ branch (when ‘strtab_count <= i’)...
gdb-16.3/libctf/ctf-string.c:766:3: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:790:6: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-string.c:792:7: branch_true: ...to here
gdb-16.3/libctf/ctf-string.c:792:7: throw: if ‘ctf_errmsg’ throws an exception...
gdb-16.3/libctf/ctf-string.c:792:7: danger: ‘<unknown>’ leaks here; was allocated at [(7)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/6)
#  790|     if (err != ECTF_NEXT_END)
#  791|       {
#  792|->       ctf_dprintf ("ctf_str_write_strtab: error iterating over atoms while updating refs: %s\n",
#  793|   		   ctf_errmsg (err));
#  794|         goto err_strtab;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def295]
gdb-16.3/libctf/ctf-string.c:792:7: warning[-Wanalyzer-malloc-leak]: leak of ‘strtab’
gdb-16.3/libctf/ctf-string.c:661:12: acquire_memory: allocated here
gdb-16.3/libctf/ctf-string.c:662:6: branch_false: following ‘false’ branch (when ‘strtab’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:671:21: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:700:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-string.c:709:32: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:714:6: branch_false: following ‘false’ branch (when ‘sorttab’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:714:6: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:740:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-string.c:743:16: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:745:6: branch_false: following ‘false’ branch (when ‘new_strtab == 0’)...
gdb-16.3/libctf/ctf-string.c:751:31: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:760:15: branch_false: following ‘false’ branch (when ‘strtab_count <= i’)...
gdb-16.3/libctf/ctf-string.c:766:3: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:790:6: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-string.c:792:7: branch_true: ...to here
gdb-16.3/libctf/ctf-string.c:792:7: throw: if ‘ctf_errmsg’ throws an exception...
gdb-16.3/libctf/ctf-string.c:792:7: danger: ‘strtab’ leaks here; was allocated at [(1)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/0)
#  790|     if (err != ECTF_NEXT_END)
#  791|       {
#  792|->       ctf_dprintf ("ctf_str_write_strtab: error iterating over atoms while updating refs: %s\n",
#  793|   		   ctf_errmsg (err));
#  794|         goto err_strtab;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def296]
gdb-16.3/libctf/ctf-string.c:800:7: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
gdb-16.3/libctf/ctf-string.c:648:1: enter_function: entry to ‘ctf_str_write_strtab’
gdb-16.3/libctf/ctf-string.c:662:6: branch_false: following ‘false’ branch (when ‘strtab’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:671:21: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:700:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-string.c:709:32: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:714:6: branch_false: following ‘false’ branch (when ‘sorttab’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:714:6: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:740:27: acquire_memory: allocated here
gdb-16.3/libctf/ctf-string.c:740:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-string.c:743:16: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:745:6: branch_false: following ‘false’ branch (when ‘new_strtab == 0’)...
gdb-16.3/libctf/ctf-string.c:751:31: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:760:15: branch_false: following ‘false’ branch (when ‘strtab_count <= i’)...
gdb-16.3/libctf/ctf-string.c:766:3: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:790:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-string.c:796:3: call_function: inlined call to ‘ctf_str_purge_refs’ from ‘ctf_str_write_strtab’
gdb-16.3/libctf/ctf-string.c:798:6: branch_true: following ‘true’ branch (when ‘any_external == 0’)...
gdb-16.3/libctf/ctf-string.c:800:7: branch_true: ...to here
gdb-16.3/libctf/ctf-string.c:800:7: throw: if ‘ctf_dynhash_destroy’ throws an exception...
gdb-16.3/libctf/ctf-string.c:800:7: danger: ‘<unknown>’ leaks here; was allocated at [(8)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/7)
#  798|     if (!any_external)
#  799|       {
#  800|->       ctf_dynhash_destroy (fp->ctf_syn_ext_strtab);
#  801|         fp->ctf_syn_ext_strtab = NULL;
#  802|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def297]
gdb-16.3/libctf/ctf-string.c:800:7: warning[-Wanalyzer-malloc-leak]: leak of ‘strtab’
gdb-16.3/libctf/ctf-string.c:648:1: enter_function: entry to ‘ctf_str_write_strtab’
gdb-16.3/libctf/ctf-string.c:661:12: acquire_memory: allocated here
gdb-16.3/libctf/ctf-string.c:662:6: branch_false: following ‘false’ branch (when ‘strtab’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:671:21: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:700:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-string.c:709:32: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:714:6: branch_false: following ‘false’ branch (when ‘sorttab’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:714:6: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:740:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-string.c:743:16: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:745:6: branch_false: following ‘false’ branch (when ‘new_strtab == 0’)...
gdb-16.3/libctf/ctf-string.c:751:31: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:760:15: branch_false: following ‘false’ branch (when ‘strtab_count <= i’)...
gdb-16.3/libctf/ctf-string.c:766:3: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:790:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-string.c:796:3: call_function: inlined call to ‘ctf_str_purge_refs’ from ‘ctf_str_write_strtab’
gdb-16.3/libctf/ctf-string.c:798:6: branch_true: following ‘true’ branch (when ‘any_external == 0’)...
gdb-16.3/libctf/ctf-string.c:800:7: branch_true: ...to here
gdb-16.3/libctf/ctf-string.c:800:7: throw: if ‘ctf_dynhash_destroy’ throws an exception...
gdb-16.3/libctf/ctf-string.c:800:7: danger: ‘strtab’ leaks here; was allocated at [(2)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/1)
#  798|     if (!any_external)
#  799|       {
#  800|->       ctf_dynhash_destroy (fp->ctf_syn_ext_strtab);
#  801|         fp->ctf_syn_ext_strtab = NULL;
#  802|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def298]
gdb-16.3/libctf/ctf-string.c:827:3: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
gdb-16.3/libctf/ctf-string.c:662:6: branch_false: following ‘false’ branch (when ‘strtab’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:671:21: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:700:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-string.c:709:32: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:714:6: branch_false: following ‘false’ branch (when ‘sorttab’ is non-NULL)...
gdb-16.3/libctf/ctf-string.c:714:6: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:740:27: acquire_memory: allocated here
gdb-16.3/libctf/ctf-string.c:740:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-string.c:743:16: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:745:6: branch_false: following ‘false’ branch (when ‘new_strtab == 0’)...
gdb-16.3/libctf/ctf-string.c:751:31: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:760:15: branch_false: following ‘false’ branch (when ‘strtab_count <= i’)...
gdb-16.3/libctf/ctf-string.c:766:3: branch_false: ...to here
gdb-16.3/libctf/ctf-string.c:790:6: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-string.c:792:7: branch_true: ...to here
gdb-16.3/libctf/ctf-string.c:827:3: danger: ‘<unknown>’ leaks here; was allocated at [(7)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/6)
#  825|     free (sorttab);
#  826|    err_strtab:
#  827|->   free (strtab);
#  828|     return NULL;
#  829|   }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def299]
gdb-16.3/libctf/ctf-subr.c:226:7: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
gdb-16.3/libctf/ctf-subr.c:221:6: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-subr.c:225:7: branch_true: ...to here
gdb-16.3/libctf/ctf-subr.c:225:7: acquire_resource: ‘va_start’ called here
gdb-16.3/libctf/ctf-subr.c:226:7: throw: if ‘fflush’ throws an exception...
gdb-16.3/libctf/ctf-subr.c:226:7: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  224|   
#  225|         va_start (alist, format);
#  226|->       fflush (stdout);
#  227|         (void) fputs ("libctf DEBUG: ", stderr);
#  228|         (void) vfprintf (stderr, format, alist);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def300]
gdb-16.3/libctf/ctf-util.c:281:7: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 80)’
gdb-16.3/libctf/ctf-util.c:273:1: enter_function: entry to ‘ctf_next_copy’
gdb-16.3/libctf/ctf-util.c:277:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-util.c:279:3: branch_false: ...to here
gdb-16.3/libctf/ctf-util.c:281:6: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-util.c:283:22: branch_true: ...to here
gdb-16.3/libctf/ctf-util.c:283:22: call_function: calling ‘ctf_next_copy’ from ‘ctf_next_copy’
#  279|     memcpy (i2, i, sizeof (struct ctf_next));
#  280|   
#  281|->   if (i2->ctn_next)
#  282|       {
#  283|         i2->ctn_next = ctf_next_copy (i2->ctn_next);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def301]
gdb-16.3/libctf/ctf-util.c:297:20: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
gdb-16.3/libctf/ctf-util.c:273:1: enter_function: entry to ‘ctf_next_copy’
gdb-16.3/libctf/ctf-util.c:277:6: branch_false: following ‘false’ branch...
gdb-16.3/libctf/ctf-util.c:279:3: branch_false: ...to here
gdb-16.3/libctf/ctf-util.c:281:6: branch_true: following ‘true’ branch...
gdb-16.3/libctf/ctf-util.c:283:22: branch_true: ...to here
gdb-16.3/libctf/ctf-util.c:283:22: call_function: calling ‘ctf_next_copy’ from ‘ctf_next_copy’
#  295|     if (i2->ctn_iter_fun == (void (*) (void)) ctf_dynhash_next_sorted)
#  296|       {
#  297|->       size_t els = ctf_dynhash_elements ((ctf_dynhash_t *) i->cu.ctn_h);
#  298|         if ((i2->u.ctn_sorted_hkv = calloc (els, sizeof (ctf_next_hkv_t))) == NULL)
#  299|   	goto err_sorted_hkv;

Error: CPPCHECK_WARNING (CWE-457): [#def302]
gdb-16.3/libdecnumber/bid/bid2dpd_dpd2bid.c:305: error[legacyUninitvar]: Uninitialized variable: BH
#  303|       bcoeff.w[0] = x.w[0];
#  304|       d1018 = reciprocals10_128[18];
#  305|->     __mul_128x128_high (BH, bcoeff, d1018);
#  306|       amount = recip_scale[18];
#  307|       BH.w[0] = (BH.w[0] >> amount) | (BH.w[1] << (64 - amount));

Error: GCC_ANALYZER_WARNING (CWE-126): [#def303]
gdb-16.3/libdecnumber/decNumber.c:6376:19: warning[-Wanalyzer-out-of-bounds]: buffer over-read
gdb-16.3/libdecnumber/decNumber.c:7268:13: enter_function: entry to ‘decFinalize’
gdb-16.3/libdecnumber/decNumber.c:7305:6: branch_true: following ‘true’ branch...
gdb-16.3/libdecnumber/decNumber.c:7305:20: call_function: inlined call to ‘decApplyRound’ from ‘decFinalize’
# 6374|       carry+=*a;
# 6375|       a++;
# 6376|->     carry+=((eInt)*b)*m;		/* [special-casing m=1/-1 */
# 6377|       b++;				/* here is not a win] */
# 6378|       /* here carry is new Unit of digits; it could be +ve or -ve */

Error: COMPILER_WARNING: [#def304]
gdb-16.3/libdecnumber/bid/decimal64.c:30: included_from: Included from here.
gdb-16.3/libdecnumber/dpd/decimal64.c: scope_hint: In function ‘decDigitsToDPD’
gdb-16.3/libdecnumber/dpd/decimal64.c:617:8: warning[-Wunused-but-set-variable=]: variable ‘n’ set but not used
#  617 |   Int  n;                     /* output bunch counter */
#      |        ^
#  615|   void decDigitsToDPD(const decNumber *dn, uInt *targ, Int shift) {
#  616|     Int  cut;		      /* work */
#  617|->   Int  n;		      /* output bunch counter */
#  618|     Int  digits=dn->digits;     /* digit countdown */
#  619|     uInt dpd;		      /* densely packed decimal value */

Error: GCC_ANALYZER_WARNING (CWE-457): [#def305]
gdb-16.3/libdecnumber/dpd/decimal64.c:678:11: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*inu’
gdb-16.3/libdecnumber/dpd/decimal64.c:629:6: branch_true: following ‘true’ branch (when ‘shift != 0’)...
gdb-16.3/libdecnumber/dpd/decimal64.c:637:31: branch_true: ...to here
gdb-16.3/libdecnumber/dpd/decimal64.c:676:12: branch_true: following ‘true’ branch (when ‘digits > 0’)...
gdb-16.3/libdecnumber/dpd/decimal64.c:678:11: branch_true: ...to here
gdb-16.3/libdecnumber/dpd/decimal64.c:678:11: danger: use of uninitialized value ‘*inu’ here
#  676|     for(n=0; digits>0; n++) {	   /* each output bunch */
#  677|       #if DECDPUN==3		   /* fast path, 3-at-a-time */
#  678|->       bin=*inu; 		   /* 3 digits ready for convert */
#  679|         digits-=3;		   /* [may go negative] */
#  680|         inu++;			   /* may need another */

Error: GCC_ANALYZER_WARNING (CWE-775): [#def306]
gdb-16.3/libiberty/argv.c:416:11: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename + 1, "r")’
gdb-16.3/libiberty/argv.c:370:10: branch_true: following ‘true’ branch...
gdb-16.3/libiberty/argv.c:394:18: branch_true: ...to here
gdb-16.3/libiberty/argv.c:395:10: branch_false: following ‘false’ branch...
gdb-16.3/libiberty/argv.c:398:10: branch_false: ...to here
gdb-16.3/libiberty/argv.c:398:10: branch_false: following ‘false’ branch (when ‘iteration_limit != 0’)...
gdb-16.3/libiberty/argv.c:404:17: branch_false: ...to here
gdb-16.3/libiberty/argv.c:404:10: branch_false: following ‘false’ branch...
gdb-16.3/libiberty/argv.c:406:11: branch_false: ...to here
gdb-16.3/libiberty/argv.c:406:10: branch_false: following ‘false’ branch...
gdb-16.3/libiberty/argv.c:413:11: branch_false: ...to here
gdb-16.3/libiberty/argv.c:413:11: acquire_resource: opened here
gdb-16.3/libiberty/argv.c:414:10: branch_false: following ‘false’ branch...
gdb-16.3/libiberty/argv.c:416:11: branch_false: ...to here
gdb-16.3/libiberty/argv.c:416:11: throw: if ‘fseek’ throws an exception...
gdb-16.3/libiberty/argv.c:416:11: danger: ‘fopen(filename + 1, "r")’ leaks here; was opened at [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
#  414|         if (!f)
#  415|   	continue;
#  416|->       if (fseek (f, 0L, SEEK_END) == -1)
#  417|   	goto error;
#  418|         pos = ftell (f);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def307]
gdb-16.3/libiberty/argv.c:416:11: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename + 1, "r")’
gdb-16.3/libiberty/argv.c:370:10: branch_true: following ‘true’ branch...
gdb-16.3/libiberty/argv.c:394:18: branch_true: ...to here
gdb-16.3/libiberty/argv.c:395:10: branch_false: following ‘false’ branch...
gdb-16.3/libiberty/argv.c:398:10: branch_false: ...to here
gdb-16.3/libiberty/argv.c:398:10: branch_false: following ‘false’ branch (when ‘iteration_limit != 0’)...
gdb-16.3/libiberty/argv.c:404:17: branch_false: ...to here
gdb-16.3/libiberty/argv.c:404:10: branch_false: following ‘false’ branch...
gdb-16.3/libiberty/argv.c:406:11: branch_false: ...to here
gdb-16.3/libiberty/argv.c:406:10: branch_false: following ‘false’ branch...
gdb-16.3/libiberty/argv.c:413:11: branch_false: ...to here
gdb-16.3/libiberty/argv.c:413:11: acquire_memory: allocated here
gdb-16.3/libiberty/argv.c:414:10: branch_false: following ‘false’ branch...
gdb-16.3/libiberty/argv.c:416:11: branch_false: ...to here
gdb-16.3/libiberty/argv.c:416:11: throw: if ‘fseek’ throws an exception...
gdb-16.3/libiberty/argv.c:416:11: danger: ‘fopen(filename + 1, "r")’ leaks here; was allocated at [(11)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/10)
#  414|         if (!f)
#  415|   	continue;
#  416|->       if (fseek (f, 0L, SEEK_END) == -1)
#  417|   	goto error;
#  418|         pos = ftell (f);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def308]
gdb-16.3/libiberty/argv.c:418:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename + 1, "r")’
gdb-16.3/libiberty/argv.c:370:10: branch_true: following ‘true’ branch...
gdb-16.3/libiberty/argv.c:394:18: branch_true: ...to here
gdb-16.3/libiberty/argv.c:395:10: branch_false: following ‘false’ branch...
gdb-16.3/libiberty/argv.c:398:10: branch_false: ...to here
gdb-16.3/libiberty/argv.c:398:10: branch_false: following ‘false’ branch (when ‘iteration_limit != 0’)...
gdb-16.3/libiberty/argv.c:404:17: branch_false: ...to here
gdb-16.3/libiberty/argv.c:404:10: branch_false: following ‘false’ branch...
gdb-16.3/libiberty/argv.c:406:11: branch_false: ...to here
gdb-16.3/libiberty/argv.c:406:10: branch_false: following ‘false’ branch...
gdb-16.3/libiberty/argv.c:413:11: branch_false: ...to here
gdb-16.3/libiberty/argv.c:413:11: acquire_resource: opened here
gdb-16.3/libiberty/argv.c:414:10: branch_false: following ‘false’ branch...
gdb-16.3/libiberty/argv.c:416:11: branch_false: ...to here
gdb-16.3/libiberty/argv.c:416:10: branch_false: following ‘false’ branch...
gdb-16.3/libiberty/argv.c:418:13: branch_false: ...to here
gdb-16.3/libiberty/argv.c:418:13: throw: if ‘ftell’ throws an exception...
gdb-16.3/libiberty/argv.c:418:13: danger: ‘fopen(filename + 1, "r")’ leaks here; was opened at [(11)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/10)
#  416|         if (fseek (f, 0L, SEEK_END) == -1)
#  417|   	goto error;
#  418|->       pos = ftell (f);
#  419|         if (pos == -1)
#  420|   	goto error;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def309]
gdb-16.3/libiberty/argv.c:418:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename + 1, "r")’
gdb-16.3/libiberty/argv.c:370:10: branch_true: following ‘true’ branch...
gdb-16.3/libiberty/argv.c:394:18: branch_true: ...to here
gdb-16.3/libiberty/argv.c:395:10: branch_false: following ‘false’ branch...
gdb-16.3/libiberty/argv.c:398:10: branch_false: ...to here
gdb-16.3/libiberty/argv.c:398:10: branch_false: following ‘false’ branch (when ‘iteration_limit != 0’)...
gdb-16.3/libiberty/argv.c:404:17: branch_false: ...to here
gdb-16.3/libiberty/argv.c:404:10: branch_false: following ‘false’ branch...
gdb-16.3/libiberty/argv.c:406:11: branch_false: ...to here
gdb-16.3/libiberty/argv.c:406:10: branch_false: following ‘false’ branch...
gdb-16.3/libiberty/argv.c:413:11: branch_false: ...to here
gdb-16.3/libiberty/argv.c:413:11: acquire_memory: allocated here
gdb-16.3/libiberty/argv.c:414:10: branch_false: following ‘false’ branch...
gdb-16.3/libiberty/argv.c:416:11: branch_false: ...to here
gdb-16.3/libiberty/argv.c:416:10: branch_false: following ‘false’ branch...
gdb-16.3/libiberty/argv.c:418:13: branch_false: ...to here
gdb-16.3/libiberty/argv.c:418:13: throw: if ‘ftell’ throws an exception...
gdb-16.3/libiberty/argv.c:418:13: danger: ‘fopen(filename + 1, "r")’ leaks here; was allocated at [(11)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/10)
#  416|         if (fseek (f, 0L, SEEK_END) == -1)
#  417|   	goto error;
#  418|->       pos = ftell (f);
#  419|         if (pos == -1)
#  420|   	goto error;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def310]
gdb-16.3/libiberty/argv.c:421:11: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename + 1, "r")’
gdb-16.3/libiberty/argv.c:370:10: branch_true: following ‘true’ branch...
gdb-16.3/libiberty/argv.c:394:18: branch_true: ...to here
gdb-16.3/libiberty/argv.c:395:10: branch_false: following ‘false’ branch...
gdb-16.3/libiberty/argv.c:398:10: branch_false: ...to here
gdb-16.3/libiberty/argv.c:398:10: branch_false: following ‘false’ branch (when ‘iteration_limit != 0’)...
gdb-16.3/libiberty/argv.c:404:17: branch_false: ...to here
gdb-16.3/libiberty/argv.c:404:10: branch_false: following ‘false’ branch...
gdb-16.3/libiberty/argv.c:406:11: branch_false: ...to here
gdb-16.3/libiberty/argv.c:406:10: branch_false: following ‘false’ branch...
gdb-16.3/libiberty/argv.c:413:11: branch_false: ...to here
gdb-16.3/libiberty/argv.c:413:11: acquire_resource: opened here
gdb-16.3/libiberty/argv.c:414:10: branch_false: following ‘false’ branch...
gdb-16.3/libiberty/argv.c:416:11: branch_false: ...to here
gdb-16.3/libiberty/argv.c:416:10: branch_false: following ‘false’ branch...
gdb-16.3/libiberty/argv.c:418:13: branch_false: ...to here
gdb-16.3/libiberty/argv.c:419:10: branch_false: following ‘false’ branch...
gdb-16.3/libiberty/argv.c:421:11: branch_false: ...to here
gdb-16.3/libiberty/argv.c:421:11: throw: if ‘fseek’ throws an exception...
gdb-16.3/libiberty/argv.c:421:11: danger: ‘fopen(filename + 1, "r")’ leaks here; was opened at [(11)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/10)
#  419|         if (pos == -1)
#  420|   	goto error;
#  421|->       if (fseek (f, 0L, SEEK_SET) == -1)
#  422|   	goto error;
#  423|         buffer = (char *) xmalloc (pos * sizeof (char) + 1);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def311]
gdb-16.3/libiberty/argv.c:421:11: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename + 1, "r")’
gdb-16.3/libiberty/argv.c:370:10: branch_true: following ‘true’ branch...
gdb-16.3/libiberty/argv.c:394:18: branch_true: ...to here
gdb-16.3/libiberty/argv.c:395:10: branch_false: following ‘false’ branch...
gdb-16.3/libiberty/argv.c:398:10: branch_false: ...to here
gdb-16.3/libiberty/argv.c:398:10: branch_false: following ‘false’ branch (when ‘iteration_limit != 0’)...
gdb-16.3/libiberty/argv.c:404:17: branch_false: ...to here
gdb-16.3/libiberty/argv.c:404:10: branch_false: following ‘false’ branch...
gdb-16.3/libiberty/argv.c:406:11: branch_false: ...to here
gdb-16.3/libiberty/argv.c:406:10: branch_false: following ‘false’ branch...
gdb-16.3/libiberty/argv.c:413:11: branch_false: ...to here
gdb-16.3/libiberty/argv.c:413:11: acquire_memory: allocated here
gdb-16.3/libiberty/argv.c:414:10: branch_false: following ‘false’ branch...
gdb-16.3/libiberty/argv.c:416:11: branch_false: ...to here
gdb-16.3/libiberty/argv.c:416:10: branch_false: following ‘false’ branch...
gdb-16.3/libiberty/argv.c:418:13: branch_false: ...to here
gdb-16.3/libiberty/argv.c:419:10: branch_false: following ‘false’ branch...
gdb-16.3/libiberty/argv.c:421:11: branch_false: ...to here
gdb-16.3/libiberty/argv.c:421:11: throw: if ‘fseek’ throws an exception...
gdb-16.3/libiberty/argv.c:421:11: danger: ‘fopen(filename + 1, "r")’ leaks here; was allocated at [(11)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/10)
#  419|         if (pos == -1)
#  420|   	goto error;
#  421|->       if (fseek (f, 0L, SEEK_SET) == -1)
#  422|   	goto error;
#  423|         buffer = (char *) xmalloc (pos * sizeof (char) + 1);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def312]
gdb-16.3/libiberty/argv.c:423:34: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename + 1, "r")’
gdb-16.3/libiberty/argv.c:370:10: branch_true: following ‘true’ branch...
gdb-16.3/libiberty/argv.c:394:18: branch_true: ...to here
gdb-16.3/libiberty/argv.c:395:10: branch_false: following ‘false’ branch...
gdb-16.3/libiberty/argv.c:398:10: branch_false: ...to here
gdb-16.3/libiberty/argv.c:398:10: branch_false: following ‘false’ branch (when ‘iteration_limit != 0’)...
gdb-16.3/libiberty/argv.c:404:17: branch_false: ...to here
gdb-16.3/libiberty/argv.c:404:10: branch_false: following ‘false’ branch...
gdb-16.3/libiberty/argv.c:406:11: branch_false: ...to here
gdb-16.3/libiberty/argv.c:406:10: branch_false: following ‘false’ branch...
gdb-16.3/libiberty/argv.c:413:11: branch_false: ...to here
gdb-16.3/libiberty/argv.c:413:11: acquire_resource: opened here
gdb-16.3/libiberty/argv.c:414:10: branch_false: following ‘false’ branch...
gdb-16.3/libiberty/argv.c:416:11: branch_false: ...to here
gdb-16.3/libiberty/argv.c:416:10: branch_false: following ‘false’ branch...
gdb-16.3/libiberty/argv.c:418:13: branch_false: ...to here
gdb-16.3/libiberty/argv.c:419:10: branch_false: following ‘false’ branch...
gdb-16.3/libiberty/argv.c:421:11: branch_false: ...to here
gdb-16.3/libiberty/argv.c:421:10: branch_false: following ‘false’ branch...
gdb-16.3/libiberty/argv.c:423:34: branch_false: ...to here
gdb-16.3/libiberty/argv.c:423:25: throw: if ‘xmalloc’ throws an exception...
gdb-16.3/libiberty/argv.c:423:34: danger: ‘fopen(filename + 1, "r")’ leaks here; was opened at [(11)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/10)
#  421|         if (fseek (f, 0L, SEEK_SET) == -1)
#  422|   	goto error;
#  423|->       buffer = (char *) xmalloc (pos * sizeof (char) + 1);
#  424|         len = fread (buffer, sizeof (char), pos, f);
#  425|         if (len != (size_t) pos

Error: GCC_ANALYZER_WARNING (CWE-401): [#def313]
gdb-16.3/libiberty/argv.c:423:34: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename + 1, "r")’
gdb-16.3/libiberty/argv.c:370:10: branch_true: following ‘true’ branch...
gdb-16.3/libiberty/argv.c:394:18: branch_true: ...to here
gdb-16.3/libiberty/argv.c:395:10: branch_false: following ‘false’ branch...
gdb-16.3/libiberty/argv.c:398:10: branch_false: ...to here
gdb-16.3/libiberty/argv.c:398:10: branch_false: following ‘false’ branch (when ‘iteration_limit != 0’)...
gdb-16.3/libiberty/argv.c:404:17: branch_false: ...to here
gdb-16.3/libiberty/argv.c:404:10: branch_false: following ‘false’ branch...
gdb-16.3/libiberty/argv.c:406:11: branch_false: ...to here
gdb-16.3/libiberty/argv.c:406:10: branch_false: following ‘false’ branch...
gdb-16.3/libiberty/argv.c:413:11: branch_false: ...to here
gdb-16.3/libiberty/argv.c:413:11: acquire_memory: allocated here
gdb-16.3/libiberty/argv.c:414:10: branch_false: following ‘false’ branch...
gdb-16.3/libiberty/argv.c:416:11: branch_false: ...to here
gdb-16.3/libiberty/argv.c:416:10: branch_false: following ‘false’ branch...
gdb-16.3/libiberty/argv.c:418:13: branch_false: ...to here
gdb-16.3/libiberty/argv.c:419:10: branch_false: following ‘false’ branch...
gdb-16.3/libiberty/argv.c:421:11: branch_false: ...to here
gdb-16.3/libiberty/argv.c:421:10: branch_false: following ‘false’ branch...
gdb-16.3/libiberty/argv.c:423:34: branch_false: ...to here
gdb-16.3/libiberty/argv.c:423:25: throw: if ‘xmalloc’ throws an exception...
gdb-16.3/libiberty/argv.c:423:34: danger: ‘fopen(filename + 1, "r")’ leaks here; was allocated at [(11)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/10)
#  421|         if (fseek (f, 0L, SEEK_SET) == -1)
#  422|   	goto error;
#  423|->       buffer = (char *) xmalloc (pos * sizeof (char) + 1);
#  424|         len = fread (buffer, sizeof (char), pos, f);
#  425|         if (len != (size_t) pos

Error: GCC_ANALYZER_WARNING (CWE-404): [#def314]
gdb-16.3/libiberty/concat.c:147:12: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
gdb-16.3/libiberty/concat.c:146:3: acquire_resource: ‘va_start’ called here
gdb-16.3/libiberty/concat.c:147:12: throw: if ‘xmalloc’ throws an exception...
gdb-16.3/libiberty/concat.c:147:12: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  145|     /* First compute the size of the result and get sufficient memory.  */
#  146|     va_start (args, first);
#  147|->   newstr = XNEWVEC (char, vconcat_length (first, args) + 1);
#  148|     va_end (args);
#  149|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def315]
gdb-16.3/libiberty/concat.c:184:12: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
gdb-16.3/libiberty/concat.c:183:3: acquire_resource: ‘va_start’ called here
gdb-16.3/libiberty/concat.c:184:12: throw: if ‘xmalloc’ throws an exception...
gdb-16.3/libiberty/concat.c:184:12: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  182|     /* First compute the size of the result and get sufficient memory.  */
#  183|     va_start (args, first);
#  184|->   newstr = XNEWVEC (char, vconcat_length (first, args) + 1);
#  185|     va_end (args);
#  186|   

Error: CPPCHECK_WARNING (CWE-562): [#def316]
gdb-16.3/libiberty/cp-demangle.c:5183: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 5181|   
# 5182|   	    adpm[i].next = dpi->modifiers;
# 5183|-> 	    dpi->modifiers = &adpm[i];
# 5184|   	    adpm[i].mod = typed_name;
# 5185|   	    adpm[i].printed = 0;

Error: CPPCHECK_WARNING (CWE-562): [#def317]
gdb-16.3/libiberty/cp-demangle.c:5221: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 5219|   		adpm[i] = adpm[i - 1];
# 5220|   		adpm[i].next = &adpm[i - 1];
# 5221|-> 		dpi->modifiers = &adpm[i];
# 5222|   
# 5223|   		adpm[i - 1].mod = typed_name;

Error: CPPCHECK_WARNING (CWE-562): [#def318]
gdb-16.3/libiberty/cp-demangle.c:5242: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 5240|   	  {
# 5241|   	    dpt.next = dpi->templates;
# 5242|-> 	    dpi->templates = &dpt;
# 5243|   	    dpt.template_decl = typed_name;
# 5244|   

Error: CPPCHECK_WARNING (CWE-562): [#def319]
gdb-16.3/libiberty/cp-demangle.c:5717: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 5715|   
# 5716|   	adpm[0].next = hold_modifiers;
# 5717|-> 	dpi->modifiers = &adpm[0];
# 5718|   	adpm[0].mod = dc;
# 5719|   	adpm[0].printed = 0;

Error: CPPCHECK_WARNING (CWE-562): [#def320]
gdb-16.3/libiberty/cp-demangle.c:6745: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 6743|       {
# 6744|         dpt.next = dpi->templates;
# 6745|->       dpi->templates = &dpt;
# 6746|         dpt.template_decl = dpi->current_template;
# 6747|       }

Error: CPPCHECK_WARNING (CWE-909): [#def321]
gdb-16.3/libiberty/cp-demangle.c:6752: error[uninitStructMember]: Uninitialized struct member: dpt.next
# 6750|   
# 6751|     if (dpi->current_template != NULL)
# 6752|->     dpi->templates = dpt.next;
# 6753|   }
# 6754|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def322]
gdb-16.3/libiberty/cp-demint.c:223:10: warning[-Wanalyzer-malloc-leak]: leak of ‘di.comps’
gdb-16.3/libiberty/cp-demint.c:212:15: acquire_memory: allocated here
gdb-16.3/libiberty/cp-demint.c:215:6: branch_false: following ‘false’ branch...
gdb-16.3/libiberty/cp-demint.c:222:6: branch_true: following ‘true’ branch (when ‘type == 0’)...
gdb-16.3/libiberty/cp-demint.c:223:10: branch_true: ...to here
gdb-16.3/libiberty/cp-demint.c:223:10: throw: if ‘cplus_demangle_mangled_name’ throws an exception...
gdb-16.3/libiberty/cp-demint.c:223:10: danger: ‘di.comps’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  221|   
#  222|     if (! type)
#  223|->     dc = cplus_demangle_mangled_name (&di, 1);
#  224|     else
#  225|       dc = cplus_demangle_type (&di);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def323]
gdb-16.3/libiberty/cp-demint.c:223:10: warning[-Wanalyzer-malloc-leak]: leak of ‘di.subs’
gdb-16.3/libiberty/cp-demint.c:214:14: acquire_memory: allocated here
gdb-16.3/libiberty/cp-demint.c:215:6: branch_false: following ‘false’ branch...
gdb-16.3/libiberty/cp-demint.c:215:7: branch_false: ...to here
gdb-16.3/libiberty/cp-demint.c:215:7: branch_false: following ‘false’ branch...
gdb-16.3/libiberty/cp-demint.c:222:6: branch_false: ...to here
gdb-16.3/libiberty/cp-demint.c:222:6: branch_true: following ‘true’ branch (when ‘type == 0’)...
gdb-16.3/libiberty/cp-demint.c:223:10: branch_true: ...to here
gdb-16.3/libiberty/cp-demint.c:223:10: throw: if ‘cplus_demangle_mangled_name’ throws an exception...
gdb-16.3/libiberty/cp-demint.c:223:10: danger: ‘di.subs’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  221|   
#  222|     if (! type)
#  223|->     dc = cplus_demangle_mangled_name (&di, 1);
#  224|     else
#  225|       dc = cplus_demangle_type (&di);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def324]
gdb-16.3/libiberty/cp-demint.c:225:10: warning[-Wanalyzer-malloc-leak]: leak of ‘di.comps’
gdb-16.3/libiberty/cp-demint.c:204:10: branch_false: following ‘false’ branch...
gdb-16.3/libiberty/cp-demint.c:209:3: branch_false: ...to here
gdb-16.3/libiberty/cp-demint.c:212:15: acquire_memory: allocated here
gdb-16.3/libiberty/cp-demint.c:215:6: branch_false: following ‘false’ branch...
gdb-16.3/libiberty/cp-demint.c:222:6: branch_false: following ‘false’ branch (when ‘type != 0’)...
gdb-16.3/libiberty/cp-demint.c:225:10: branch_false: ...to here
gdb-16.3/libiberty/cp-demint.c:225:10: throw: if ‘cplus_demangle_type’ throws an exception...
gdb-16.3/libiberty/cp-demint.c:225:10: danger: ‘di.comps’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  223|       dc = cplus_demangle_mangled_name (&di, 1);
#  224|     else
#  225|->     dc = cplus_demangle_type (&di);
#  226|   
#  227|     /* If DMGL_PARAMS is set, then if we didn't consume the entire

Error: GCC_ANALYZER_WARNING (CWE-401): [#def325]
gdb-16.3/libiberty/cp-demint.c:225:10: warning[-Wanalyzer-malloc-leak]: leak of ‘di.subs’
gdb-16.3/libiberty/cp-demint.c:204:10: branch_false: following ‘false’ branch...
gdb-16.3/libiberty/cp-demint.c:209:3: branch_false: ...to here
gdb-16.3/libiberty/cp-demint.c:214:14: acquire_memory: allocated here
gdb-16.3/libiberty/cp-demint.c:215:6: branch_false: following ‘false’ branch...
gdb-16.3/libiberty/cp-demint.c:215:7: branch_false: ...to here
gdb-16.3/libiberty/cp-demint.c:215:7: branch_false: following ‘false’ branch...
gdb-16.3/libiberty/cp-demint.c:222:6: branch_false: ...to here
gdb-16.3/libiberty/cp-demint.c:222:6: branch_false: following ‘false’ branch (when ‘type != 0’)...
gdb-16.3/libiberty/cp-demint.c:225:10: branch_false: ...to here
gdb-16.3/libiberty/cp-demint.c:225:10: throw: if ‘cplus_demangle_type’ throws an exception...
gdb-16.3/libiberty/cp-demint.c:225:10: danger: ‘di.subs’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
#  223|       dc = cplus_demangle_mangled_name (&di, 1);
#  224|     else
#  225|->     dc = cplus_demangle_type (&di);
#  226|   
#  227|     /* If DMGL_PARAMS is set, then if we didn't consume the entire

Error: GCC_ANALYZER_WARNING (CWE-465): [#def326]
gdb-16.3/libiberty/dyn-string.c:251:6: warning[-Wanalyzer-deref-before-check]: check of ‘dest’ for NULL after already dereferencing it
gdb-16.3/libiberty/dyn-string.c:244:1: enter_function: entry to ‘dyn_string_insert’
gdb-16.3/libiberty/dyn-string.c:248:6: branch_false: following ‘false’ branch (when ‘src != dest’)...
gdb-16.3/libiberty/dyn-string.c:251:32: branch_false: ...to here
gdb-16.3/libiberty/dyn-string.c:251:7: call_function: calling ‘dyn_string_resize’ from ‘dyn_string_insert’
gdb-16.3/libiberty/dyn-string.c:251:7: return_function: returning to ‘dyn_string_insert’ from ‘dyn_string_resize’
gdb-16.3/libiberty/dyn-string.c:251:6: danger: pointer ‘dest’ is checked for NULL here but it was already dereferenced at [(4)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/3)
#  249|       abort ();
#  250|   
#  251|->   if (dyn_string_resize (dest, dest->length + src->length) == NULL)
#  252|       return 0;
#  253|     /* Make room for the insertion.  Be sure to copy the NUL.  */

Error: GCC_ANALYZER_WARNING (CWE-465): [#def327]
gdb-16.3/libiberty/dyn-string.c:274:6: warning[-Wanalyzer-deref-before-check]: check of ‘dest’ for NULL after already dereferencing it
gdb-16.3/libiberty/dyn-string.c:269:1: enter_function: entry to ‘dyn_string_insert_cstr’
gdb-16.3/libiberty/dyn-string.c:274:7: call_function: calling ‘dyn_string_resize’ from ‘dyn_string_insert_cstr’
gdb-16.3/libiberty/dyn-string.c:274:7: return_function: returning to ‘dyn_string_insert_cstr’ from ‘dyn_string_resize’
gdb-16.3/libiberty/dyn-string.c:274:6: danger: pointer ‘dest’ is checked for NULL here but it was already dereferenced at [(2)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/1)
#  272|     int length = strlen (src);
#  273|   
#  274|->   if (dyn_string_resize (dest, dest->length + length) == NULL)
#  275|       return 0;
#  276|     /* Make room for the insertion.  Be sure to copy the NUL.  */

Error: GCC_ANALYZER_WARNING (CWE-465): [#def328]
gdb-16.3/libiberty/dyn-string.c:295:6: warning[-Wanalyzer-deref-before-check]: check of ‘dest’ for NULL after already dereferencing it
gdb-16.3/libiberty/dyn-string.c:291:1: enter_function: entry to ‘dyn_string_insert_char’
gdb-16.3/libiberty/dyn-string.c:295:7: call_function: calling ‘dyn_string_resize’ from ‘dyn_string_insert_char’
gdb-16.3/libiberty/dyn-string.c:295:7: return_function: returning to ‘dyn_string_insert_char’ from ‘dyn_string_resize’
gdb-16.3/libiberty/dyn-string.c:295:6: danger: pointer ‘dest’ is checked for NULL here but it was already dereferenced at [(2)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/1)
#  293|     int i;
#  294|   
#  295|->   if (dyn_string_resize (dest, dest->length + 1) == NULL)
#  296|       return 0;
#  297|     /* Make room for the insertion.  Be sure to copy the NUL.  */

Error: GCC_ANALYZER_WARNING (CWE-465): [#def329]
gdb-16.3/libiberty/dyn-string.c:314:6: warning[-Wanalyzer-deref-before-check]: check of ‘dest’ for NULL after already dereferencing it
gdb-16.3/libiberty/dyn-string.c:312:1: enter_function: entry to ‘dyn_string_append’
gdb-16.3/libiberty/dyn-string.c:314:7: call_function: calling ‘dyn_string_resize’ from ‘dyn_string_append’
gdb-16.3/libiberty/dyn-string.c:314:7: return_function: returning to ‘dyn_string_append’ from ‘dyn_string_resize’
gdb-16.3/libiberty/dyn-string.c:314:6: danger: pointer ‘dest’ is checked for NULL here but it was already dereferenced at [(2)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/1)
#  312|   dyn_string_append (dyn_string_t dest, dyn_string_t s)
#  313|   {
#  314|->   if (dyn_string_resize (dest, dest->length + s->length) == 0)
#  315|       return 0;
#  316|     strcpy (dest->s + dest->length, s->s);

Error: GCC_ANALYZER_WARNING (CWE-465): [#def330]
gdb-16.3/libiberty/dyn-string.c:332:6: warning[-Wanalyzer-deref-before-check]: check of ‘dest’ for NULL after already dereferencing it
gdb-16.3/libiberty/dyn-string.c:326:1: enter_function: entry to ‘dyn_string_append_cstr’
gdb-16.3/libiberty/dyn-string.c:332:7: call_function: calling ‘dyn_string_resize’ from ‘dyn_string_append_cstr’
gdb-16.3/libiberty/dyn-string.c:332:7: return_function: returning to ‘dyn_string_append_cstr’ from ‘dyn_string_resize’
gdb-16.3/libiberty/dyn-string.c:332:6: danger: pointer ‘dest’ is checked for NULL here but it was already dereferenced at [(2)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/1)
#  330|     /* The new length is the old length plus the size of our string, plus
#  331|        one for the null at the end.  */
#  332|->   if (dyn_string_resize (dest, dest->length + len) == NULL)
#  333|       return 0;
#  334|     strcpy (dest->s + dest->length, s);

Error: GCC_ANALYZER_WARNING (CWE-465): [#def331]
gdb-16.3/libiberty/dyn-string.c:346:6: warning[-Wanalyzer-deref-before-check]: check of ‘dest’ for NULL after already dereferencing it
gdb-16.3/libiberty/dyn-string.c:343:1: enter_function: entry to ‘dyn_string_append_char’
gdb-16.3/libiberty/dyn-string.c:346:7: call_function: calling ‘dyn_string_resize’ from ‘dyn_string_append_char’
gdb-16.3/libiberty/dyn-string.c:346:7: return_function: returning to ‘dyn_string_append_char’ from ‘dyn_string_resize’
gdb-16.3/libiberty/dyn-string.c:346:6: danger: pointer ‘dest’ is checked for NULL here but it was already dereferenced at [(2)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/1)
#  344|   {
#  345|     /* Make room for the extra character.  */
#  346|->   if (dyn_string_resize (dest, dest->length + 1) == NULL)
#  347|       return 0;
#  348|     /* Append the character; it will overwrite the old NUL.  */

Error: CPPCHECK_WARNING (CWE-476): [#def332]
gdb-16.3/libiberty/make-relative-prefix.c:110: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
#  108|     char *result = (char *) malloc (len + 1);
#  109|   
#  110|->   memcpy (result, s, len);
#  111|     result[len] = 0;
#  112|     return result;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def333]
gdb-16.3/libiberty/make-relative-prefix.c:110:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘result’ where non-null expected
gdb-16.3/libiberty/make-relative-prefix.c:118:1: enter_function: entry to ‘split_directories’
gdb-16.3/libiberty/make-relative-prefix.c:150:6: branch_false: following ‘false’ branch (when ‘dirs’ is non-NULL)...
gdb-16.3/libiberty/make-relative-prefix.c:150:6: branch_false: ...to here
gdb-16.3/libiberty/make-relative-prefix.c:188:6: branch_true: following ‘true’ branch...
gdb-16.3/libiberty/make-relative-prefix.c:189:24: branch_true: ...to here
gdb-16.3/libiberty/make-relative-prefix.c:189:24: call_function: calling ‘save_string’ from ‘split_directories’
#  108|     char *result = (char *) malloc (len + 1);
#  109|   
#  110|->   memcpy (result, s, len);
#  111|     result[len] = 0;
#  112|     return result;

Error: CPPCHECK_WARNING (CWE-476): [#def334]
gdb-16.3/libiberty/make-relative-prefix.c:111: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
#  109|   
#  110|     memcpy (result, s, len);
#  111|->   result[len] = 0;
#  112|     return result;
#  113|   }

Error: GCC_ANALYZER_WARNING (CWE-127): [#def335]
gdb-16.3/libiberty/make-relative-prefix.c:192:7: warning[-Wanalyzer-out-of-bounds]: heap-based buffer under-read
gdb-16.3/libiberty/make-relative-prefix.c:150:6: branch_false: following ‘false’ branch (when ‘dirs’ is non-NULL)...
gdb-16.3/libiberty/make-relative-prefix.c:150:6: branch_false: ...to here
gdb-16.3/libiberty/make-relative-prefix.c:188:6: branch_false: following ‘false’ branch...
gdb-16.3/libiberty/make-relative-prefix.c:190:7: branch_false: ...to here
gdb-16.3/libiberty/make-relative-prefix.c:192:7: danger: out-of-bounds read from byte -8 till byte -1 but region starts at byte 0
#  190|     dirs[num_dirs] = NULL;
#  191|   
#  192|->   if (dirs[num_dirs - 1] == NULL)
#  193|       {
#  194|         free_split_directories (dirs);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def336]
gdb-16.3/libiberty/make-relative-prefix.c:215:7: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
gdb-16.3/libiberty/make-relative-prefix.c:428:1: enter_function: entry to ‘make_relative_prefix_ignore_links’
gdb-16.3/libiberty/make-relative-prefix.c:432:10: call_function: calling ‘make_relative_prefix_1’ from ‘make_relative_prefix_ignore_links’
#  213|   	free (dirs[i++]);
#  214|   
#  215|->       free ((char *) dirs);
#  216|       }
#  217|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def337]
gdb-16.3/libiberty/make-relative-prefix.c:274:23: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘nstore’
gdb-16.3/libiberty/make-relative-prefix.c:428:1: enter_function: entry to ‘make_relative_prefix_ignore_links’
gdb-16.3/libiberty/make-relative-prefix.c:432:10: call_function: calling ‘make_relative_prefix_1’ from ‘make_relative_prefix_ignore_links’
#  272|   		  if (endp == startp)
#  273|   		    {
#  274|-> 		      nstore[0] = '.';
#  275|   		      nstore[1] = DIR_SEPARATOR;
#  276|   		      nstore[2] = '\0';

Error: GCC_ANALYZER_WARNING (CWE-476): [#def338]
gdb-16.3/libiberty/obstack.c:210:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘new_chunk’
gdb-16.3/libiberty/obstack.c:209:3: release_memory: ‘new_chunk’ is NULL
gdb-16.3/libiberty/obstack.c:210:3: danger: dereference of NULL ‘new_chunk’
#  208|       (*obstack_alloc_failed_handler)();
#  209|     h->chunk = new_chunk;
#  210|->   new_chunk->prev = old_chunk;
#  211|     new_chunk->limit = h->chunk_limit = (char *) new_chunk + new_size;
#  212|   

Error: CPPCHECK_WARNING (CWE-401): [#def339]
gdb-16.3/libiberty/regex.c:2444: error[memleak]: Memory leak: compile_stack.stack
# 2442|           }
# 2443|   
# 2444|->       if (!COMPILED_BUFFER_VAR) FREE_STACK_RETURN (REG_ESPACE);
# 2445|   #ifdef WCHAR
# 2446|         bufp->buffer = (char*)COMPILED_BUFFER_VAR;

Error: GCC_ANALYZER_WARNING (CWE-787): [#def340]
gdb-16.3/libiberty/simple-object-mach-o.c:1102:11: warning[-Wanalyzer-out-of-bounds]: buffer overflow
gdb-16.3/libiberty/simple-object-mach-o.c:1345:1: enter_function: entry to ‘simple_object_mach_o_write_to_file’
gdb-16.3/libiberty/simple-object-mach-o.c:1351:8: call_function: calling ‘simple_object_mach_o_write_segment’ from ‘simple_object_mach_o_write_to_file’
# 1100|   	   section = section->next, sect++)
# 1101|   	{
# 1102|-> 	  index[sect*4+2] = name_offset;
# 1103|   	  index[sect*4+3] = strlen (section->name) + 1;
# 1104|   	  name_offset += strlen (section->name) + 1;

Error: GCC_ANALYZER_WARNING (CWE-787): [#def341]
gdb-16.3/libiberty/simple-object-mach-o.c:1103:11: warning[-Wanalyzer-out-of-bounds]: buffer overflow
gdb-16.3/libiberty/simple-object-mach-o.c:1345:1: enter_function: entry to ‘simple_object_mach_o_write_to_file’
gdb-16.3/libiberty/simple-object-mach-o.c:1351:8: call_function: calling ‘simple_object_mach_o_write_segment’ from ‘simple_object_mach_o_write_to_file’
# 1101|   	{
# 1102|   	  index[sect*4+2] = name_offset;
# 1103|-> 	  index[sect*4+3] = strlen (section->name) + 1;
# 1104|   	  name_offset += strlen (section->name) + 1;
# 1105|   	}

Error: GCC_ANALYZER_WARNING (CWE-787): [#def342]
gdb-16.3/libiberty/simple-object-mach-o.c:1159:11: warning[-Wanalyzer-out-of-bounds]: buffer overflow
gdb-16.3/libiberty/simple-object-mach-o.c:1345:1: enter_function: entry to ‘simple_object_mach_o_write_to_file’
gdb-16.3/libiberty/simple-object-mach-o.c:1351:8: call_function: calling ‘simple_object_mach_o_write_segment’ from ‘simple_object_mach_o_write_to_file’
# 1157|         if (sobj->segment_name != NULL)
# 1158|   	{
# 1159|-> 	  index[sect*4+0] = (unsigned int) offset;
# 1160|   	  index[sect*4+1] = secsize;
# 1161|   	  /* Stash the section name in our table.  */

Error: GCC_ANALYZER_WARNING (CWE-787): [#def343]
gdb-16.3/libiberty/simple-object-mach-o.c:1160:11: warning[-Wanalyzer-out-of-bounds]: buffer overflow
gdb-16.3/libiberty/simple-object-mach-o.c:1345:1: enter_function: entry to ‘simple_object_mach_o_write_to_file’
gdb-16.3/libiberty/simple-object-mach-o.c:1351:8: call_function: calling ‘simple_object_mach_o_write_segment’ from ‘simple_object_mach_o_write_to_file’
# 1158|   	{
# 1159|   	  index[sect*4+0] = (unsigned int) offset;
# 1160|-> 	  index[sect*4+1] = secsize;
# 1161|   	  /* Stash the section name in our table.  */
# 1162|   	  memcpy (snames + index[sect * 4 + 2], section->name,

Error: GCC_ANALYZER_WARNING (CWE-787): [#def344]
gdb-16.3/libiberty/simple-object-mach-o.c:1162:28: warning[-Wanalyzer-out-of-bounds]: buffer over-read
gdb-16.3/libiberty/simple-object-mach-o.c:1345:1: enter_function: entry to ‘simple_object_mach_o_write_to_file’
gdb-16.3/libiberty/simple-object-mach-o.c:1351:8: call_function: calling ‘simple_object_mach_o_write_segment’ from ‘simple_object_mach_o_write_to_file’
# 1160|   	  index[sect*4+1] = secsize;
# 1161|   	  /* Stash the section name in our table.  */
# 1162|-> 	  memcpy (snames + index[sect * 4 + 2], section->name,
# 1163|   		  index[sect * 4 + 3]);
# 1164|   	}

Error: GCC_ANALYZER_WARNING (CWE-787): [#def345]
gdb-16.3/libiberty/simple-object-mach-o.c:1163:19: warning[-Wanalyzer-out-of-bounds]: buffer over-read
gdb-16.3/libiberty/simple-object-mach-o.c:1345:1: enter_function: entry to ‘simple_object_mach_o_write_to_file’
gdb-16.3/libiberty/simple-object-mach-o.c:1351:8: call_function: calling ‘simple_object_mach_o_write_segment’ from ‘simple_object_mach_o_write_to_file’
# 1161|   	  /* Stash the section name in our table.  */
# 1162|   	  memcpy (snames + index[sect * 4 + 2], section->name,
# 1163|-> 		  index[sect * 4 + 3]);
# 1164|   	}
# 1165|         else

Error: GCC_ANALYZER_WARNING (CWE-787): [#def346]
gdb-16.3/libiberty/simple-object-mach-o.c:1210:27: warning[-Wanalyzer-out-of-bounds]: buffer over-read
gdb-16.3/libiberty/simple-object-mach-o.c:1345:1: enter_function: entry to ‘simple_object_mach_o_write_to_file’
gdb-16.3/libiberty/simple-object-mach-o.c:1351:8: call_function: calling ‘simple_object_mach_o_write_segment’ from ‘simple_object_mach_o_write_to_file’
# 1208|   	 created section.  */
# 1209|   
# 1210|->       secsize = (offset - index[0]);
# 1211|         if (!simple_object_mach_o_write_section_header (sobj, descriptor,
# 1212|   						      sechdr_offset,

Error: GCC_ANALYZER_WARNING (CWE-787): [#def347]
gdb-16.3/libiberty/simple-object-mach-o.c:1226:7: warning[-Wanalyzer-out-of-bounds]: buffer overflow
gdb-16.3/libiberty/simple-object-mach-o.c:1345:1: enter_function: entry to ‘simple_object_mach_o_write_to_file’
gdb-16.3/libiberty/simple-object-mach-o.c:1351:8: call_function: calling ‘simple_object_mach_o_write_segment’ from ‘simple_object_mach_o_write_to_file’
# 1224|         for (i = 1; i < nsects_in; ++i)
# 1225|   	index[4 * i] -= index[0];
# 1226|->       index[0] = 0;
# 1227|   
# 1228|         /* Swap the indices, if required.  */

Error: CPPCHECK_WARNING (CWE-562): [#def348]
gdb-16.3/libiberty/simple-object.c:295: error[returnDanglingLifetime]: Returning pointer to local variable 'newname' that will be invalid when returning.
#  293|     /* Copy over .note.GNU-stack section under the same name if present.  */
#  294|     else if (strcmp (name, ".note.GNU-stack") == 0)
#  295|->     return strcpy (newname, name);
#  296|     /* Copy over .note.gnu.property section under the same name if present.  */
#  297|     else if (strcmp (name, ".note.gnu.property") == 0)

Error: CPPCHECK_WARNING (CWE-562): [#def349]
gdb-16.3/libiberty/simple-object.c:298: error[returnDanglingLifetime]: Returning pointer to local variable 'newname' that will be invalid when returning.
#  296|     /* Copy over .note.gnu.property section under the same name if present.  */
#  297|     else if (strcmp (name, ".note.gnu.property") == 0)
#  298|->     return strcpy (newname, name);
#  299|     /* Copy over .comment section under the same name if present.  Solaris
#  300|        ld uses them to relax its checking of ELF gABI access rules for

Error: CPPCHECK_WARNING (CWE-562): [#def350]
gdb-16.3/libiberty/simple-object.c:303: error[returnDanglingLifetime]: Returning pointer to local variable 'newname' that will be invalid when returning.
#  301|        COMDAT sections in objects produced by GCC.  */
#  302|     else if (strcmp (name, ".comment") == 0)
#  303|->     return strcpy (newname, name);
#  304|     /* Copy over .GCC.command.line section under the same name if present.  */
#  305|     else if (strcmp (name, ".GCC.command.line") == 0)

Error: CPPCHECK_WARNING (CWE-562): [#def351]
gdb-16.3/libiberty/simple-object.c:306: error[returnDanglingLifetime]: Returning pointer to local variable 'newname' that will be invalid when returning.
#  304|     /* Copy over .GCC.command.line section under the same name if present.  */
#  305|     else if (strcmp (name, ".GCC.command.line") == 0)
#  306|->     return strcpy (newname, name);
#  307|     /* Copy over .ctf section under the same name if present.  */
#  308|     else if (strcmp (name, ".ctf") == 0)

Error: CPPCHECK_WARNING (CWE-562): [#def352]
gdb-16.3/libiberty/simple-object.c:309: error[returnDanglingLifetime]: Returning pointer to local variable 'newname' that will be invalid when returning.
#  307|     /* Copy over .ctf section under the same name if present.  */
#  308|     else if (strcmp (name, ".ctf") == 0)
#  309|->     return strcpy (newname, name);
#  310|     /* Copy over .BTF section under the same name if present.  */
#  311|     else if (strcmp (name, ".BTF") == 0)

Error: CPPCHECK_WARNING (CWE-562): [#def353]
gdb-16.3/libiberty/simple-object.c:312: error[returnDanglingLifetime]: Returning pointer to local variable 'newname' that will be invalid when returning.
#  310|     /* Copy over .BTF section under the same name if present.  */
#  311|     else if (strcmp (name, ".BTF") == 0)
#  312|->     return strcpy (newname, name);
#  313|     free (newname);
#  314|     return NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def354]
gdb-16.3/libiberty/strerror.c:756:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error_names’
gdb-16.3/libiberty/strerror.c:744:1: enter_function: entry to ‘strtoerrno’
gdb-16.3/libiberty/strerror.c:748:6: branch_true: following ‘true’ branch (when ‘name’ is non-NULL)...
gdb-16.3/libiberty/strerror.c:750:11: branch_true: ...to here
gdb-16.3/libiberty/strerror.c:750:10: branch_true: following ‘true’ branch...
gdb-16.3/libiberty/strerror.c:752:11: branch_true: ...to here
gdb-16.3/libiberty/strerror.c:752:11: call_function: calling ‘init_error_tables’ from ‘strtoerrno’
gdb-16.3/libiberty/strerror.c:752:11: return_function: returning to ‘strtoerrno’ from ‘init_error_tables’
gdb-16.3/libiberty/strerror.c:754:26: branch_true: following ‘true’ branch...
gdb-16.3/libiberty/strerror.c:756:27: branch_true: ...to here
gdb-16.3/libiberty/strerror.c:756:16: danger: dereference of NULL ‘error_names + (long unsigned int)errnoval * 8’
#  754|         for (errnoval = 0; errnoval < num_error_names; errnoval++)
#  755|   	{
#  756|-> 	  if ((error_names[errnoval] != NULL) &&
#  757|   	      (strcmp (name, error_names[errnoval]) == 0))
#  758|   	    {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def355]
gdb-16.3/libiberty/strsignal.c:524:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘signal_names’
gdb-16.3/libiberty/strsignal.c:512:1: enter_function: entry to ‘strtosigno’
gdb-16.3/libiberty/strsignal.c:516:6: branch_true: following ‘true’ branch (when ‘name’ is non-NULL)...
gdb-16.3/libiberty/strsignal.c:518:11: branch_true: ...to here
gdb-16.3/libiberty/strsignal.c:518:10: branch_true: following ‘true’ branch...
gdb-16.3/libiberty/strsignal.c:520:11: branch_true: ...to here
gdb-16.3/libiberty/strsignal.c:520:11: call_function: calling ‘init_signal_tables’ from ‘strtosigno’
gdb-16.3/libiberty/strsignal.c:520:11: return_function: returning to ‘strtosigno’ from ‘init_signal_tables’
gdb-16.3/libiberty/strsignal.c:522:23: branch_true: following ‘true’ branch...
gdb-16.3/libiberty/strsignal.c:524:28: branch_true: ...to here
gdb-16.3/libiberty/strsignal.c:524:16: danger: dereference of NULL ‘signal_names + (long unsigned int)signo * 8’
#  522|         for (signo = 0; signo < num_signal_names; signo++)
#  523|   	{
#  524|-> 	  if ((signal_names[signo] != NULL) &&
#  525|   	      (strcmp (name, signal_names[signo]) == 0))
#  526|   	    {

Error: CPPCHECK_WARNING (CWE-664): [#def356]
gdb-16.3/libiberty/vprintf-support.c:52: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
#   50|     va_copy (ap, args);
#   51|   #else
#   52|->   memcpy ((void *) &ap, (void *) &args, sizeof (va_list));
#   53|   #endif
#   54|   

Error: CPPCHECK_WARNING (CWE-664): [#def357]
gdb-16.3/libiberty/vprintf-support.c:65: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
#   63|   	    {
#   64|   	      ++p;
#   65|-> 	      total_width += abs (va_arg (ap, int));
#   66|   	    }
#   67|   	  else

Error: CPPCHECK_WARNING (CWE-664): [#def358]
gdb-16.3/libiberty/vprintf-support.c:75: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
#   73|   		{
#   74|   		  ++p;
#   75|-> 		  total_width += abs (va_arg (ap, int));
#   76|   		}
#   77|   	      else

Error: CPPCHECK_WARNING (CWE-664): [#def359]
gdb-16.3/libiberty/vprintf-support.c:129: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
#  127|   	      switch (prec)
#  128|   		{
#  129|-> 		case 0: (void) va_arg (ap, int); break;
#  130|   		case 1: (void) va_arg (ap, long int); break;
#  131|   		case 2: (void) va_arg (ap, long long int); break;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def360]
gdb-16.3/libiberty/xasprintf.c:47:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
gdb-16.3/libiberty/xasprintf.c:46:3: acquire_resource: ‘va_start’ called here
gdb-16.3/libiberty/xasprintf.c:47:9: throw: if ‘xvasprintf’ throws an exception...
gdb-16.3/libiberty/xasprintf.c:47:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   45|     va_list ap;
#   46|     va_start (ap, fmt);
#   47|->   buf = xvasprintf (fmt, ap);
#   48|     va_end (ap);
#   49|     return buf;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def361]
gdb-16.3/libsframe/sframe-dump.c:76:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘flags_str’ where non-null expected
gdb-16.3/libsframe/sframe-dump.c:222:1: enter_function: entry to ‘dump_sframe’
gdb-16.3/libsframe/sframe-dump.c:226:3: call_function: calling ‘dump_sframe_header’ from ‘dump_sframe’
#argument 1 of ‘__builtin_memcpy’ must be non-null
#   74|       {
#   75|         if (flags & SFRAME_F_FDE_SORTED)
#   76|-> 	strcpy (flags_str, flag_names[0]);
#   77|         if (flags & SFRAME_F_FRAME_POINTER)
#   78|   	{

Error: GCC_ANALYZER_WARNING (CWE-688): [#def362]
gdb-16.3/libsframe/sframe-dump.c:81:11: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘flags_str’ where non-null expected
gdb-16.3/libsframe/sframe-dump.c:222:1: enter_function: entry to ‘dump_sframe’
gdb-16.3/libsframe/sframe-dump.c:226:3: call_function: calling ‘dump_sframe_header’ from ‘dump_sframe’
#argument 1 of ‘__builtin_memcpy’ must be non-null
#   79|   	  if (strlen (flags_str) > 0)
#   80|   	    strcpy (flags_str, ",");
#   81|-> 	  strcpy (flags_str, flag_names[1]);
#   82|   	}
#   83|       }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def363]
gdb-16.3/libsframe/sframe-dump.c:85:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘flags_str’ where non-null expected
gdb-16.3/libsframe/sframe-dump.c:222:1: enter_function: entry to ‘dump_sframe’
gdb-16.3/libsframe/sframe-dump.c:226:3: call_function: calling ‘dump_sframe_header’ from ‘dump_sframe’
#argument 1 of ‘__builtin_memcpy’ must be non-null
#   83|       }
#   84|     else
#   85|->     strcpy (flags_str, "NONE");
#   86|   
#   87|     /* CFA fixed FP and RA offsets.  */

Error: CPPCHECK_WARNING (CWE-476): [#def364]
gdb-16.3/libsframe/sframe-dump.c:96: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: flags_str
#   94|     printf ("\n");
#   95|     printf ("    Version: %s\n", ver_str);
#   96|->   printf ("    Flags: %s\n", flags_str);
#   97|     if (cfa_fixed_fp_offset != SFRAME_CFA_FIXED_FP_INVALID)
#   98|       printf ("    CFA fixed FP offset: %d\n", cfa_fixed_fp_offset);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def365]
gdb-16.3/libsframe/sframe-dump.c:101:3: warning[-Wanalyzer-malloc-leak]: leak of ‘flags_str’
gdb-16.3/libsframe/sframe-dump.c:222:1: enter_function: entry to ‘dump_sframe’
gdb-16.3/libsframe/sframe-dump.c:226:3: call_function: calling ‘dump_sframe_header’ from ‘dump_sframe’
#   99|     if (cfa_fixed_ra_offset != SFRAME_CFA_FIXED_RA_INVALID)
#  100|       printf ("    CFA fixed RA offset: %d\n", cfa_fixed_ra_offset);
#  101|->   printf ("    Num FDEs: %d\n", sframe_decoder_get_num_fidx (sfd_ctx));
#  102|     printf ("    Num FREs: %d\n", header->sfh_num_fres);
#  103|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def366]
gdb-16.3/libsframe/sframe.c:110:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘hp’
gdb-16.3/libsframe/sframe.c:1390:1: enter_function: entry to ‘sframe_encoder_get_hdr_size’
gdb-16.3/libsframe/sframe.c:1393:9: call_function: inlined call to ‘sframe_encoder_get_header’ from ‘sframe_encoder_get_hdr_size’
gdb-16.3/libsframe/sframe.c:1394:10: call_function: inlined call to ‘sframe_get_hdr_size’ from ‘sframe_encoder_get_hdr_size’
#  108|   sframe_get_hdr_size (sframe_header *sfh)
#  109|   {
#  110|->   return SFRAME_V1_HDR_SIZE (*sfh);
#  111|   }
#  112|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def367]
gdb-16.3/libsframe/sframe.c:870:12: warning[-Wanalyzer-malloc-leak]: leak of ‘dctx’
gdb-16.3/libsframe/sframe.c:869:6: branch_false: following ‘false’ branch...
gdb-16.3/libsframe/sframe.c:871:11: branch_false: ...to here
gdb-16.3/libsframe/sframe.c:871:11: branch_false: following ‘false’ branch (when ‘sf_size > 27’)...
gdb-16.3/libsframe/sframe.c:877:51: branch_false: ...to here
gdb-16.3/libsframe/sframe.c:882:10: branch_true: following ‘true’ branch...
gdb-16.3/libsframe/sframe.c:889:15: branch_true: ...to here
gdb-16.3/libsframe/sframe.c:889:15: acquire_memory: allocated here
gdb-16.3/libsframe/sframe.c:889:6: branch_false: following ‘false’ branch...
gdb-16.3/libsframe/sframe.c:891:3: branch_false: ...to here
gdb-16.3/libsframe/sframe.c:893:6: branch_true: following ‘true’ branch (when ‘foreign_endian != 0’)...
gdb-16.3/libsframe/sframe.c:896:26: branch_true: ...to here
gdb-16.3/libsframe/sframe.c:870:12: danger: ‘dctx’ leaks here; was allocated at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
#  868|   
#  869|     if ((sf_buf == NULL) || (!sf_size))
#  870|->     return sframe_ret_set_errno (errp, SFRAME_ERR_INVAL);
#  871|     else if (sf_size < sizeof (sframe_header))
#  872|       return sframe_ret_set_errno (errp, SFRAME_ERR_BUF_INVAL);

Error: CPPCHECK_WARNING (CWE-401): [#def368]
gdb-16.3/libsframe/sframe.c:898: error[memleak]: Memory leak: dctx
#  896|         tempbuf = (char *) malloc (sf_size * sizeof (char));
#  897|         if (tempbuf == NULL)
#  898|-> 	return sframe_ret_set_errno (errp, SFRAME_ERR_NOMEM);
#  899|         memcpy (tempbuf, sf_buf, sf_size);
#  900|   

Error: CPPCHECK_WARNING (CWE-401): [#def369]
gdb-16.3/libsframe/sframe.c:908: error[memleak]: Memory leak: dctx
#  906|   	{
#  907|   	  free (tempbuf);
#  908|-> 	  return sframe_ret_set_errno (errp, SFRAME_ERR_BUF_INVAL);
#  909|   	}
#  910|         frame_buf = tempbuf;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def370]
gdb-16.3/libsframe/sframe.c:987:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘hp’
gdb-16.3/libsframe/sframe.c:983:1: enter_function: entry to ‘sframe_decoder_get_abi_arch’
gdb-16.3/libsframe/sframe.c:986:19: call_function: inlined call to ‘sframe_decoder_get_header’ from ‘sframe_decoder_get_abi_arch’
gdb-16.3/libsframe/sframe.c:987:10: branch_false: ...to here
gdb-16.3/libsframe/sframe.c:987:10: danger: dereference of NULL ‘hp’
#  985|     sframe_header *sframe_header;
#  986|     sframe_header = sframe_decoder_get_header (dctx);
#  987|->   return sframe_header->sfh_abi_arch;
#  988|   }
#  989|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def371]
gdb-16.3/libsframe/sframe.c:1006:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘hp’
gdb-16.3/libsframe/sframe.c:1002:1: enter_function: entry to ‘sframe_decoder_get_fixed_fp_offset’
gdb-16.3/libsframe/sframe.c:1005:9: call_function: inlined call to ‘sframe_decoder_get_header’ from ‘sframe_decoder_get_fixed_fp_offset’
gdb-16.3/libsframe/sframe.c:1006:10: branch_false: ...to here
gdb-16.3/libsframe/sframe.c:1006:10: danger: dereference of NULL ‘hp’
# 1004|     sframe_header *dhp;
# 1005|     dhp = sframe_decoder_get_header (ctx);
# 1006|->   return dhp->sfh_cfa_fixed_fp_offset;
# 1007|   }
# 1008|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def372]
gdb-16.3/libsframe/sframe.c:1015:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘hp’
gdb-16.3/libsframe/sframe.c:1011:1: enter_function: entry to ‘sframe_decoder_get_fixed_ra_offset’
gdb-16.3/libsframe/sframe.c:1014:9: call_function: inlined call to ‘sframe_decoder_get_header’ from ‘sframe_decoder_get_fixed_ra_offset’
gdb-16.3/libsframe/sframe.c:1015:10: branch_false: ...to here
gdb-16.3/libsframe/sframe.c:1015:10: danger: dereference of NULL ‘hp’
# 1013|     sframe_header *dhp;
# 1014|     dhp = sframe_decoder_get_header (ctx);
# 1015|->   return dhp->sfh_cfa_fixed_ra_offset;
# 1016|   }
# 1017|   

Error: GCC_ANALYZER_WARNING (CWE-835): [#def373]
gdb-16.3/opcodes/aarch64-dis.c:2770:29: warning[-Wanalyzer-infinite-loop]: infinite loop
# 2768|         value = extract_field (FLD_rcpc3_size, inst->value, 0);
# 2769|         for (int i = 0;
# 2770|-> 	   aarch64_operands[inst->operands[i].type].op_class != AARCH64_OPND_CLASS_ADDRESS;
# 2771|   	   i++)
# 2772|   	{

Error: COMPILER_WARNING (CWE-704): [#def374]
gdb-16.3/opcodes/aarch64-dis.c: scope_hint: In function ‘remove_dot_suffix’
gdb-16.3/opcodes/aarch64-dis.c:4027:7: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 4027 |   ptr = strchr (inst->opcode->name, '.');
#      |       ^
# 4025|     size_t len;
# 4026|   
# 4027|->   ptr = strchr (inst->opcode->name, '.');
# 4028|     assert (ptr && inst->cond);
# 4029|     len = ptr - inst->opcode->name;

Error: COMPILER_WARNING (CWE-704): [#def375]
gdb-16.3/opcodes/aarch64-dis.c:4027:7: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 4025|     size_t len;
# 4026|   
# 4027|->   ptr = strchr (inst->opcode->name, '.');
# 4028|     assert (ptr && inst->cond);
# 4029|     len = ptr - inst->opcode->name;

Error: CPPCHECK_WARNING (CWE-457): [#def376]
gdb-16.3/opcodes/aarch64-opc.c:1384: warning[uninitvar]: Uninitialized variable: &imm_enc.encoding
# 1382|     imm_enc.imm = value;
# 1383|     imm_encoding = (const simd_imm_encoding *)
# 1384|->     bsearch(&imm_enc, simd_immediates, TOTAL_IMM_NB,
# 1385|               sizeof(simd_immediates[0]), simd_imm_encoding_cmp);
# 1386|     if (imm_encoding == NULL)

Error: GCC_ANALYZER_WARNING (CWE-404): [#def377]
gdb-16.3/opcodes/aarch64-opc.c:3772:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
gdb-16.3/opcodes/aarch64-opc.c:3771:3: acquire_resource: ‘va_start’ called here
gdb-16.3/opcodes/aarch64-opc.c:3772:9: throw: if the called function throws an exception...
gdb-16.3/opcodes/aarch64-opc.c:3772:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
# 3770|   
# 3771|     va_start (ap, fmt);
# 3772|->   txt = styler->apply_style (styler, dis_style_register, fmt, ap);
# 3773|     va_end (ap);
# 3774|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def378]
gdb-16.3/opcodes/aarch64-opc.c:3787:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
gdb-16.3/opcodes/aarch64-opc.c:3786:3: acquire_resource: ‘va_start’ called here
gdb-16.3/opcodes/aarch64-opc.c:3787:9: throw: if the called function throws an exception...
gdb-16.3/opcodes/aarch64-opc.c:3787:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
# 3785|   
# 3786|     va_start (ap, fmt);
# 3787|->   txt = styler->apply_style (styler, dis_style_immediate, fmt, ap);
# 3788|     va_end (ap);
# 3789|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def379]
gdb-16.3/opcodes/aarch64-opc.c:3802:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
gdb-16.3/opcodes/aarch64-opc.c:3801:3: acquire_resource: ‘va_start’ called here
gdb-16.3/opcodes/aarch64-opc.c:3802:9: throw: if the called function throws an exception...
gdb-16.3/opcodes/aarch64-opc.c:3802:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
# 3800|   
# 3801|     va_start (ap, fmt);
# 3802|->   txt = styler->apply_style (styler, dis_style_sub_mnemonic, fmt, ap);
# 3803|     va_end (ap);
# 3804|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def380]
gdb-16.3/opcodes/aarch64-opc.c:3817:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
gdb-16.3/opcodes/aarch64-opc.c:3816:3: acquire_resource: ‘va_start’ called here
gdb-16.3/opcodes/aarch64-opc.c:3817:9: throw: if the called function throws an exception...
gdb-16.3/opcodes/aarch64-opc.c:3817:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
# 3815|   
# 3816|     va_start (ap, fmt);
# 3817|->   txt = styler->apply_style (styler, dis_style_address, fmt, ap);
# 3818|     va_end (ap);
# 3819|   

Error: CPPCHECK_WARNING (CWE-476): [#def381]
gdb-16.3/opcodes/aarch64-opc.c:5501: error[ctunullpointer]: Null pointer dereference: inst
# 5499|   		      aarch64_instr_sequence *insn_sequence)
# 5500|   {
# 5501|->   insn_sequence->instr[insn_sequence->num_added_insns++] = *inst;
# 5502|   }
# 5503|   

Error: CPPCHECK_WARNING (CWE-476): [#def382]
gdb-16.3/opcodes/aarch64-opc.c:5501: warning[nullPointer]: Possible null pointer dereference: inst
# 5499|   		      aarch64_instr_sequence *insn_sequence)
# 5500|   {
# 5501|->   insn_sequence->instr[insn_sequence->num_added_insns++] = *inst;
# 5502|   }
# 5503|   

Error: CPPCHECK_WARNING (CWE-562): [#def383]
gdb-16.3/opcodes/i386-dis.c:9522: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 9520|     info->bytes_per_line = 7;
# 9521|   
# 9522|->   info->private_data = &priv;
# 9523|     priv.fetched = 0;
# 9524|     priv.insn_start = pc;

Error: COMPILER_WARNING (CWE-704): [#def384]
gdb-16.3/opcodes/riscv-dis.c: scope_hint: In function ‘parse_riscv_dis_option’
gdb-16.3/opcodes/riscv-dis.c:126:9: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  126 |   equal = strchr (option, '=');
#      |         ^
#  124|       return;
#  125|   
#  126|->   equal = strchr (option, '=');
#  127|     if (equal == NULL)
#  128|       {

Error: COMPILER_WARNING (CWE-704): [#def385]
gdb-16.3/opcodes/riscv-dis.c:126:9: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  124|       return;
#  125|   
#  126|->   equal = strchr (option, '=');
#  127|     if (equal == NULL)
#  128|       {

Error: COMPILER_WARNING (CWE-704): [#def386]
gdb-16.3/opcodes/riscv-dis.c: scope_hint: In function ‘riscv_update_map_state’
gdb-16.3/opcodes/riscv-dis.c:1082:22: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
# 1082 |       char *suffix = strchr (name, '.');
#      |                      ^~~~~~
# 1080|         /* ISA mapping string may be numbered, suffixed with '.n'. Do not
# 1081|   	 consider this as part of the ISA string.  */
# 1082|->       char *suffix = strchr (name, '.');
# 1083|         if (suffix)
# 1084|   	{

Error: COMPILER_WARNING (CWE-704): [#def387]
gdb-16.3/opcodes/riscv-dis.c:1082:22: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
# 1080|         /* ISA mapping string may be numbered, suffixed with '.n'. Do not
# 1081|   	 consider this as part of the ISA string.  */
# 1082|->       char *suffix = strchr (name, '.');
# 1083|         if (suffix)
# 1084|   	{

Error: CPPCHECK_WARNING (CWE-401): [#def388]
gdb-16.3/opcodes/s390-mkopc.c:98: error[memleakOnRealloc]: Common realloc mistake: 'op_array' nulled but not freed upon failure
#   96|       {
#   97|         max_ops = max_ops * 2;
#   98|->       op_array = realloc (op_array, max_ops * sizeof (struct op_struct));
#   99|       }
#  100|   

Error: GCC_ANALYZER_WARNING (CWE-1335): [#def389]
gdb-16.3/opcodes/s390-mkopc.c:117:3: warning[-Wanalyzer-shift-count-overflow]: shift by count (‘64’) >= precision of type (‘64’)
gdb-16.3/opcodes/s390-mkopc.c:367:1: enter_function: entry to ‘main’
gdb-16.3/opcodes/s390-mkopc.c:375:10: branch_true: following ‘true’ branch...
gdb-16.3/opcodes/s390-mkopc.c:390:11: branch_true: ...to here
gdb-16.3/opcodes/s390-mkopc.c:403:10: branch_false: following ‘false’ branch...
gdb-16.3/opcodes/s390-mkopc.c:409:11: branch_false: ...to here
gdb-16.3/opcodes/s390-mkopc.c:517:7: call_function: calling ‘insertExpandedMnemonic’ from ‘main’
#  115|         str ++;
#  116|       }
#  117|->   sort_value <<= 4*(16 - ix);
#  118|     sort_value += (min_cpu << 8) + mode_bits;
#  119|     no_nibbles = ix;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def390]
gdb-16.3/opcodes/s390-mkopc.c:121:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
gdb-16.3/opcodes/s390-mkopc.c:367:1: enter_function: entry to ‘main’
gdb-16.3/opcodes/s390-mkopc.c:375:10: branch_true: following ‘true’ branch...
gdb-16.3/opcodes/s390-mkopc.c:390:11: branch_true: ...to here
gdb-16.3/opcodes/s390-mkopc.c:403:10: branch_false: following ‘false’ branch...
gdb-16.3/opcodes/s390-mkopc.c:409:11: branch_false: ...to here
gdb-16.3/opcodes/s390-mkopc.c:517:7: call_function: calling ‘insertExpandedMnemonic’ from ‘main’
#  119|     no_nibbles = ix;
#  120|     for (ix = 0; ix < no_ops; ix++)
#  121|->     if (sort_value > op_array[ix].sort_value)
#  122|         break;
#  123|     for (k = no_ops; k > ix; k--)

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-154.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-namegdb-16.3-6.fc44
store-results-to/tmp/tmpdnah1rlk/gdb-16.3-6.fc44.tar.xz
time-created2026-01-08 16:36:44
time-finished2026-01-08 16:54:50
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpdnah1rlk/gdb-16.3-6.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpdnah1rlk/gdb-16.3-6.fc44.src.rpm'
tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9