binutils-2.44-3.fc43

List of Findings

Error: CPPCHECK_WARNING (CWE-457): [#def1]
binutils-with-gold-2.44/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: CPPCHECK_WARNING (CWE-119): [#def2]
binutils-with-gold-2.44/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): [#def3]
binutils-with-gold-2.44/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: CPPCHECK_WARNING (CWE-562): [#def4]
binutils-with-gold-2.44/binutils/debug.c:3075: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 3073|     top.t2 = t2;
# 3074|     top.next = info->compare_list;
# 3075|->   info->compare_list = &top;
# 3076|   
# 3077|     switch (t1->kind)

Error: CPPCHECK_WARNING (CWE-119): [#def5]
binutils-with-gold-2.44/binutils/elfedit.c:471: error[bufferAccessOutOfBounds]: Buffer is accessed out of bounds: ehdr32.e_type
#  469|   
#  470|       case ELFCLASS32:
#  471|->       if (fread (ehdr32.e_type, sizeof (ehdr32) - EI_NIDENT,
#  472|   		 1, file) != 1)
#  473|   	return 0;

Error: CPPCHECK_WARNING (CWE-119): [#def6]
binutils-with-gold-2.44/binutils/elfedit.c:504: error[bufferAccessOutOfBounds]: Buffer is accessed out of bounds: ehdr64.e_type
#  502|   	}
#  503|   
#  504|->       if (fread (ehdr64.e_type, sizeof (ehdr64) - EI_NIDENT,
#  505|   		 1, file) != 1)
#  506|   	return 0;

Error: CPPCHECK_WARNING (CWE-476): [#def7]
binutils-with-gold-2.44/binutils/objcopy.c:1124: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: f
# 1122|       fatal (_("cannot open '%s': %s"), filename, strerror (errno));
# 1123|   
# 1124|->   if (fread (buffer, 1, size, f) == 0 || ferror (f))
# 1125|       fatal (_("%s: fread failed"), filename);
# 1126|   

Error: CPPCHECK_WARNING (CWE-476): [#def8]
binutils-with-gold-2.44/binutils/objcopy.c:1823: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: file
# 1821|   
# 1822|     lineno = 1;
# 1823|->   c = getc (file);
# 1824|     len = 0;
# 1825|     outsym_off = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def9]
binutils-with-gold-2.44/binutils/objcopy.c:5270: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: f
# 5268|     alloc = 4096;
# 5269|     pa->contents = (bfd_byte *) xmalloc (alloc);
# 5270|->   while (!feof (f))
# 5271|       {
# 5272|         off_t got;

Error: CPPCHECK_WARNING (CWE-476): [#def10]
binutils-with-gold-2.44/binutils/prdbg.c:426: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: s
#  424|       }
#  425|   
#  426|->   if (strchr (s, '|') != NULL
#  427|         && (strchr (info->stack->type, '{') != NULL
#  428|   	  || strchr (info->stack->type, '(') != NULL))

Error: CPPCHECK_WARNING (CWE-457): [#def11]
binutils-with-gold-2.44/binutils/readelf.c:2577: error[legacyUninitvar]: Uninitialized variable: rels
# 2575|       }
# 2576|   
# 2577|->   free (rels);
# 2578|   
# 2579|     return res;

Error: CPPCHECK_WARNING (CWE-476): [#def12]
binutils-with-gold-2.44/binutils/readelf.c:6383: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: new_request
# 6381|       error (_("Out of memory allocating dump request table.\n"));
# 6382|   
# 6383|->   new_request->name = strdup (section);
# 6384|     if (!new_request->name)
# 6385|       error (_("Out of memory allocating dump request table.\n"));

Error: CPPCHECK_WARNING (CWE-476): [#def13]
binutils-with-gold-2.44/binutils/readelf.c:6383: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: section
# 6381|       error (_("Out of memory allocating dump request table.\n"));
# 6382|   
# 6383|->   new_request->name = strdup (section);
# 6384|     if (!new_request->name)
# 6385|       error (_("Out of memory allocating dump request table.\n"));

Error: CPPCHECK_WARNING (CWE-476): [#def14]
binutils-with-gold-2.44/binutils/readelf.c:6384: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: new_request
# 6382|   
# 6383|     new_request->name = strdup (section);
# 6384|->   if (!new_request->name)
# 6385|       error (_("Out of memory allocating dump request table.\n"));
# 6386|   

Error: CPPCHECK_WARNING (CWE-119): [#def15]
binutils-with-gold-2.44/binutils/readelf.c:23538: error[bufferAccessOutOfBounds]: Buffer is accessed out of bounds: ehdr32.e_type
#23536|         Elf32_External_Ehdr ehdr32;
#23537|   
#23538|->       if (fread (ehdr32.e_type, sizeof (ehdr32) - EI_NIDENT, 1, filedata->handle) != 1)
#23539|   	return false;
#23540|   

Error: CPPCHECK_WARNING (CWE-119): [#def16]
binutils-with-gold-2.44/binutils/readelf.c:23559: error[bufferAccessOutOfBounds]: Buffer is accessed out of bounds: ehdr64.e_type
#23557|         Elf64_External_Ehdr ehdr64;
#23558|   
#23559|->       if (fread (ehdr64.e_type, sizeof (ehdr64) - EI_NIDENT, 1, filedata->handle) != 1)
#23560|   	return false;
#23561|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def17]
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/archive.c:2377:36: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘syms’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/archive.c:2298:1: enter_function: entry to ‘_bfd_compute_and_write_armap’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/archive.c:2314:6: branch_true: following ‘true’ branch (when ‘elength != 0’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/archive.c:2315:5: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/archive.c:2320:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/archive.c:2325:25: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/archive.c:2326:6: branch_false: following ‘false’ branch...
 branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/archive.c:2330:10: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/archive.c:2331:13: call_function: inlined call to ‘bfd_get_filename’ from ‘_bfd_compute_and_write_armap’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/archive.c:2336:8: branch_true: following ‘true’ branch (when ‘current’ is non-NULL)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/archive.c:2339:11: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/archive.c:2339:10: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/archive.c:2340:15: call_function: inlined call to ‘bfd_get_file_flags’ from ‘_bfd_compute_and_write_armap’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/archive.c:2339:11: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/archive.c:2346:15: call_function: inlined call to ‘bfd_get_lto_type’ from ‘_bfd_compute_and_write_armap’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/archive.c:2356:14: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/archive.c:2359:14: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/archive.c:2359:14: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/archive.c:2361:18: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/archive.c:2361:18: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/archive.c:2369:26: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/archive.c:2370:18: branch_false: following ‘false’ branch...
 branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/archive.c:2375:35: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/archive.c:2377:41: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/archive.c:2377:41: release_memory: ‘syms’ is NULL
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/archive.c:2377:36: danger: dereference of NULL ‘syms + (long unsigned int)src_count * 8’
# 2375|   	      for (src_count = 0; src_count < symcount; src_count++)
# 2376|   		{
# 2377|-> 		  flagword flags = (syms[src_count])->flags;
# 2378|   		  asection *sec = syms[src_count]->section;
# 2379|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def18]
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3375:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*pelength’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3462:1: enter_function: entry to ‘coff_apply_checksum’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3469:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3472:8: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../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): [#def19]
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3848:22: warning[-Wanalyzer-deref-before-check]: check of ‘*((struct bfd_symbol **)psymsec)’ for NULL after already dereferencing it
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3498:1: enter_function: entry to ‘coff_write_object_contents’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3603:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3607:8: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3608:8: branch_true: following ‘true’ branch (when ‘current’ is non-NULL)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3623:7: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3767:10: branch_true: following ‘true’ branch (when the strings are equal)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3782:11: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3783:11: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3814:31: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3816:14: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3817:18: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3816:15: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3825:12: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3825:10: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3833:19: call_function: inlined call to ‘bfd_get_symcount’ from ‘coff_write_object_contents’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3834:48: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3836:19: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3836:18: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3836:18: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3834:48: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3836:19: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3841:18: branch_true: following ‘true’ branch (when ‘psymsec’ is NULL)...
 branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3834:48: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3836:19: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3836:18: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3841:18: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3841:18: branch_false: following ‘false’ branch (when ‘psymsec’ is non-NULL)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3845:19: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3845:18: branch_true: following ‘true’ branch (when the strings are equal)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3847:26: call_function: inlined call to ‘bfd_asymbol_bfd’ from ‘coff_write_object_contents’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3847:26: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3848:22: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3848:22: danger: pointer ‘*((struct bfd_symbol **)psymsec)’ is checked for NULL here but it was already dereferenced at [(28)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/27)
# 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-465): [#def20]
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3848:22: warning[-Wanalyzer-deref-before-check]: check of ‘**abfd.outsymbols’ for NULL after already dereferencing it
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3498:1: enter_function: entry to ‘coff_write_object_contents’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3603:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3607:8: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3608:8: branch_true: following ‘true’ branch (when ‘current’ is non-NULL)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3623:7: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3767:10: branch_true: following ‘true’ branch (when the strings are equal)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3782:11: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3783:11: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3814:31: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3816:14: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3817:18: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3816:15: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3825:12: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3825:10: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3833:19: call_function: inlined call to ‘bfd_get_symcount’ from ‘coff_write_object_contents’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3834:48: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3836:19: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3836:18: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3841:18: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3841:18: branch_true: following ‘true’ branch (when ‘psymsec’ is NULL)...
 branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3845:18: branch_true: following ‘true’ branch (when the strings are equal)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3847:26: call_function: inlined call to ‘bfd_asymbol_bfd’ from ‘coff_write_object_contents’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3847:26: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3848:22: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3848:22: danger: pointer ‘**abfd.outsymbols’ is checked for NULL here but it was already dereferenced at [(20)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/19)
# 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-465): [#def21]
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3848:22: warning[-Wanalyzer-deref-before-check]: check of ‘*psym’ for NULL after already dereferencing it
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3498:1: enter_function: entry to ‘coff_write_object_contents’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3603:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3607:8: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3608:8: branch_true: following ‘true’ branch (when ‘current’ is non-NULL)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3623:7: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3767:10: branch_false: following ‘false’ branch (when the strings are non-equal)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3769:17: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3769:15: branch_true: following ‘true’ branch (when the strings are equal)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3782:11: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3783:11: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3814:31: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3816:14: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3817:18: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3816:15: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3825:12: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3825:10: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3833:19: call_function: inlined call to ‘bfd_get_symcount’ from ‘coff_write_object_contents’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3834:48: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3836:19: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3836:18: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3841:18: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3841:18: branch_true: following ‘true’ branch (when ‘psymsec’ is NULL)...
 branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3834:48: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3836:19: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3836:18: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3841:18: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3841:18: branch_false: following ‘false’ branch (when ‘psymsec’ is non-NULL)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3845:19: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3845:18: branch_true: following ‘true’ branch (when the strings are equal)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3847:26: call_function: inlined call to ‘bfd_asymbol_bfd’ from ‘coff_write_object_contents’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3847:26: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3848:22: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3848:22: danger: pointer ‘*psym’ is checked for NULL here but it was already dereferenced at [(28)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/27)
# 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): [#def22]
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3872:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘csym’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3498:1: enter_function: entry to ‘coff_write_object_contents’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3603:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3607:8: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3608:8: branch_true: following ‘true’ branch (when ‘current’ is non-NULL)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3615:11: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3630:10: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3634:17: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3635:14: branch_true: following ‘true’ branch (when ‘len > 8’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3641:18: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3641:18: branch_true: following ‘true’ branch (when ‘string_size <= 9999999’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3655:19: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3681:18: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3695:27: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3767:10: branch_true: following ‘true’ branch (when the strings are equal)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3782:11: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3783:11: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3808:11: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3808:10: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3809:9: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3825:10: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3833:19: call_function: inlined call to ‘bfd_get_symcount’ from ‘coff_write_object_contents’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3865:14: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3872:21: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffcode.h:3872:21: danger: dereference of NULL ‘csym’
# 3870|   		 x_associated field is not currently supported.  */
# 3871|   
# 3872|-> 	      aux = csym->native + 1;
# 3873|   	      BFD_ASSERT (! aux->is_sym);
# 3874|   	      switch (current->flags & SEC_LINK_DUPLICATES)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def23]
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffgen.c:2942:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sym’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffgen.c:3205:1: enter_function: entry to ‘bfd_coff_gc_sections’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffgen.c:3224:32: branch_true: following ‘true’ branch (when ‘sub’ is non-NULL)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffgen.c:3228:11: call_function: inlined call to ‘bfd_get_flavour’ from ‘bfd_coff_gc_sections’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffgen.c:3228:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffgen.c:3231:12: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffgen.c:3231:31: branch_true: following ‘true’ branch (when ‘o’ is non-NULL)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffgen.c:3233:17: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffgen.c:3233:15: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffgen.c:3239:20: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/coffgen.c:3239:20: call_function: calling ‘_bfd_coff_gc_mark’ from ‘bfd_coff_gc_sections’
# 2940|       }
# 2941|   
# 2942|->   return coff_section_from_bfd_index (sec->owner, sym->n_scnum);
# 2943|   }
# 2944|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def24]
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/cofflink.c:3004:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sym’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/cofflink.c:2924:10: branch_true: following ‘true’ branch (when ‘rel < relend’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/cofflink.c:2935:7: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/cofflink.c:2937:10: branch_false: following ‘false’ branch (when ‘symndx != -1’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/cofflink.c:2942:15: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/cofflink.c:2942:15: branch_false: following ‘false’ branch (when ‘symndx >= 0’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/cofflink.c:2943:45: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/cofflink.c:2942:16: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/cofflink.c:2952:15: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/cofflink.c:2960:10: branch_false: following ‘false’ branch (when ‘sym’ is NULL)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/cofflink.c:2963:9: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/cofflink.c:2967:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/cofflink.c:2974:11: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/cofflink.c:2984:10: branch_true: following ‘true’ branch (when ‘h’ is NULL)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/cofflink.c:2986:14: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/cofflink.c:2986:14: branch_false: following ‘false’ branch (when ‘symndx != -1’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/cofflink.c:2993:29: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/cofflink.c:2999:18: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../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): [#def25]
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/cofflink.c:3132:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sym’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/cofflink.c:2910:1: enter_function: entry to ‘_bfd_coff_generic_relocate_section’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/cofflink.c:2924:10: branch_true: following ‘true’ branch (when ‘rel < relend’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/cofflink.c:2935:7: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/cofflink.c:2937:10: branch_true: following ‘true’ branch (when ‘symndx == -1’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/cofflink.c:2963:9: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/cofflink.c:2967:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/cofflink.c:2974:11: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/cofflink.c:2984:10: branch_true: following ‘true’ branch (when ‘h’ is NULL)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/cofflink.c:2986:14: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/cofflink.c:2986:14: branch_true: following ‘true’ branch (when ‘symndx == -1’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/cofflink.c:3071:26: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/cofflink.c:3071:26: call_function: calling ‘discarded_section’ from ‘_bfd_coff_generic_relocate_section’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/cofflink.c:3071:26: return_function: returning to ‘_bfd_coff_generic_relocate_section’ from ‘discarded_section’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/cofflink.c:3071:11: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/cofflink.c:3078:11: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/cofflink.c:3129:16: branch_true: following ‘true’ branch (when ‘val == 0’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/cofflink.c:3131:20: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/cofflink.c:3129:17: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/cofflink.c:3132:20: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../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): [#def26]
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/doc/chew.c:1296:7: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/doc/chew.c:1516:1: enter_function: entry to ‘main’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/doc/chew.c:1522:3: call_function: inlined call to ‘init_string’ from ‘main’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/doc/chew.c:1522:3: call_function: inlined call to ‘init_string’ from ‘main’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/doc/chew.c:1523:3: call_function: inlined call to ‘init_string’ from ‘main’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/doc/chew.c:1523:3: call_function: inlined call to ‘init_string’ from ‘main’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/doc/chew.c:1524:3: call_function: inlined call to ‘init_string’ from ‘main’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/doc/chew.c:1524:3: call_function: inlined call to ‘init_string’ from ‘main’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/doc/chew.c:1528:3: call_function: calling ‘add_intrinsic’ from ‘main’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/doc/chew.c:1528:3: return_function: returning to ‘main’ from ‘add_intrinsic’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/doc/chew.c:1529:3: call_function: calling ‘add_intrinsic’ from ‘main’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/doc/chew.c:1529:3: return_function: returning to ‘main’ from ‘add_intrinsic’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/doc/chew.c:1530:3: call_function: calling ‘add_intrinsic’ from ‘main’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/doc/chew.c:1530:3: return_function: returning to ‘main’ from ‘add_intrinsic’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/doc/chew.c:1531:3: call_function: calling ‘add_intrinsic’ from ‘main’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/doc/chew.c:1531:3: return_function: returning to ‘main’ from ‘add_intrinsic’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../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): [#def27]
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:745:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cie’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:579:1: enter_function: entry to ‘_bfd_elf_parse_eh_frame’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:605:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:606:11: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:605:7: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:607:10: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:605:7: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:613:27: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:613:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:622:3: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:622:3: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:626:3: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:626:3: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:628:15: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:630:3: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:634:3: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:662:3: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:665:6: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:665:6: branch_false: following ‘false’ branch (when ‘num_cies == 0’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:695:3: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:698:10: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:705:18: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:709:7: call_function: inlined call to ‘skip_bytes’ from ‘_bfd_elf_parse_eh_frame’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:713:7: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:714:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:720:10: branch_false: following ‘false’ branch (when ‘hdr_length != 0’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:732:7: call_function: inlined call to ‘skip_bytes’ from ‘_bfd_elf_parse_eh_frame’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:735:10: branch_true: following ‘true’ branch (when ‘hdr_id == 0’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:740:11: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:743:11: release_memory: ‘local_cies’ is NULL
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:745:11: danger: dereference of NULL ‘cie’
#  743|   	  cie = local_cies + cie_count++;
#  744|   
#  745|-> 	  cie->cie_inf = this_inf;
#  746|   	  cie->length = hdr_length;
#  747|   	  start = buf;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def28]
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:1361:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ent’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:1343:6: branch_false: following ‘false’ branch (when ‘hi != 0’)...
 branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:1346:10: branch_false: following ‘false’ branch (when ‘lo >= hi’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:1360:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:1360:6: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:1361:23: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../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): [#def29]
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:1366:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ent’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:1343:6: branch_false: following ‘false’ branch (when ‘hi != 0’)...
 branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:1346:10: branch_false: following ‘false’ branch (when ‘lo >= hi’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:1360:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:1360:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:1362:12: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:1362:11: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../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): [#def30]
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:1374:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ent’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:1343:6: branch_false: following ‘false’ branch (when ‘hi != 0’)...
 branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:1346:10: branch_false: following ‘false’ branch (when ‘lo >= hi’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:1360:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:1360:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:1362:12: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../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): [#def31]
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:2327:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sec’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:2303:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:2304:10: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:2303:7: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:2305:10: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:2303:7: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:2310:10: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:2311:15: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:2327:12: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf-eh-frame.c:2327:12: danger: dereference of NULL ‘sec’
# 2325|   
# 2326|     /* Fix the link_order to match.  */
# 2327|->   for (p = sec->output_section->map_head.link_order; p != NULL; p = p->next)
# 2328|       {
# 2329|         if (p->type != bfd_indirect_link_order)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def32]
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3597:46: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3597:20: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3597:46: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../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): [#def33]
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3707:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3597:20: branch_false: following ‘false’ branch...
 branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3600:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3606:21: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3608:6: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3618:11: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3618:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3626:11: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3631:7: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3644:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3652:24: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3661:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3677:11: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3680:10: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3682:11: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3689:14: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3697:21: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../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): [#def34]
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3739:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3597:20: branch_false: following ‘false’ branch...
 branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3600:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3606:21: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3608:6: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3618:11: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3618:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3626:11: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3631:7: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3644:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3652:24: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3661:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3677:11: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3736:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3738:15: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3738:14: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3739:13: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../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): [#def35]
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3766:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3597:20: branch_false: following ‘false’ branch...
 branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3600:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3606:21: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3608:6: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3618:11: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3618:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3626:11: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3631:7: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3644:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3652:24: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3661:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3677:11: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3736:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3738:15: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3738:14: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3747:27: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../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): [#def36]
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3776:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3597:20: branch_false: following ‘false’ branch...
 branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3600:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3606:21: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3608:6: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3618:11: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3618:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3626:11: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3631:7: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3644:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3652:24: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3661:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3677:11: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3736:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3738:15: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3738:14: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3747:27: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3750:14: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3750:15: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../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): [#def37]
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3805:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3597:20: branch_false: following ‘false’ branch...
 branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3600:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3606:21: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3608:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3798:12: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3798:11: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3805:7: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../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): [#def38]
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3931:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3597:20: branch_false: following ‘false’ branch...
 branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3600:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3606:21: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3798:11: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3839:6: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3861:6: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3862:12: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3861:7: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3861:7: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3861:7: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3861:7: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3867:17: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3874:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3886:10: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3887:14: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3886:11: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3889:15: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3889:14: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3915:20: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3915:19: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3925:19: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3925:18: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3931:19: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../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): [#def39]
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3972:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3597:20: branch_false: following ‘false’ branch...
 branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3600:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3606:21: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3798:11: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3839:6: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3861:6: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3862:12: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3861:7: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3861:7: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3861:7: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3861:7: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3867:17: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3874:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3948:15: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3949:19: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3948:16: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3951:11: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3952:14: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3956:15: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3971:14: branch_true: following ‘true’ branch (when ‘relative_reloc_name’ is non-NULL)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf32-i386.c:3972:18: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../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-476): [#def40]
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:1334:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:2112:1: enter_function: entry to ‘elf_x86_64_scan_relocs’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:2124:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:2127:10: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:2127:10: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:2127:10: call_function: inlined call to ‘elf_hash_table_id’ from ‘elf_x86_64_scan_relocs’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:2127:10: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:2134:3: call_function: inlined call to ‘bfd_get_flavour’ from ‘elf_x86_64_scan_relocs’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:2151:22: branch_true: following ‘true’ branch (when ‘rel < rel_end’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:2163:18: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:2167:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:2170:23: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:2170:23: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:2170:23: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:2170:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:2178:22: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:2178:10: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:2181:18: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:2183:14: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:2187:15: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:2187:14: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:2216:12: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:2250:10: branch_false: following ‘false’ branch (when ‘h’ is NULL)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:2256:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:2273:10: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:2277:13: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:2277:13: call_function: calling ‘elf_x86_64_tls_transition’ from ‘elf_x86_64_scan_relocs’
# 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): [#def41]
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:1784:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:2112:1: enter_function: entry to ‘elf_x86_64_scan_relocs’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:2124:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:2127:10: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:2127:10: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:2127:10: call_function: inlined call to ‘elf_hash_table_id’ from ‘elf_x86_64_scan_relocs’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:2127:10: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:2134:3: call_function: inlined call to ‘bfd_get_flavour’ from ‘elf_x86_64_scan_relocs’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:2151:22: branch_true: following ‘true’ branch (when ‘rel < rel_end’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:2163:18: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:2167:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:2170:23: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:2170:23: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:2170:23: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:2170:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:2178:22: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:2178:10: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:2181:18: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:2183:14: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:2187:15: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:2187:14: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:2216:12: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:2250:10: branch_false: following ‘false’ branch (when ‘h’ is NULL)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:2256:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:2257:11: branch_true: following ‘true’ branch (when ‘h’ is NULL)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:2264:16: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:2264:16: call_function: calling ‘elf_x86_64_convert_load_reloc’ from ‘elf_x86_64_scan_relocs’
# 1782|     no_overflow = link_info->disable_target_specific_optimizations > 1;
# 1783|   
# 1784|->   r_symndx = htab->r_sym (irel->r_info);
# 1785|   
# 1786|     opcode = bfd_get_8 (abfd, contents + roff - 2);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def42]
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4670:46: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4670:20: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4670:46: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4670:46: danger: dereference of NULL ‘htab’
# 4668|   
# 4669|     /* Use the second PLT section only if there is .plt section.  */
# 4670|->   use_plt_second = htab->elf.splt != NULL && htab->plt_second != NULL;
# 4671|   
# 4672|     eh = (struct elf_x86_link_hash_entry *) h;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def43]
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4778:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4670:20: branch_false: following ‘false’ branch...
 branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4673:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4679:21: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4681:6: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4693:11: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4693:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4701:11: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4706:7: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4719:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4727:40: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4734:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4746:11: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4775:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4777:15: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4777:14: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4778:13: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4778:13: danger: dereference of NULL ‘htab’
# 4776|   	{
# 4777|   	  if (htab->plt.has_plt0)
# 4778|-> 	    bfd_put_64 (output_bfd, (plt->output_section->vma
# 4779|   				     + plt->output_offset
# 4780|   				     + h->plt.offset

Error: GCC_ANALYZER_WARNING (CWE-476): [#def44]
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4796:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4670:20: branch_false: following ‘false’ branch...
 branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4673:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4679:21: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4681:6: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4693:11: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4693:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4701:11: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4706:7: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4719:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4727:40: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4734:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4746:11: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4775:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4777:15: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4777:14: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4785:28: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4796:29: danger: dereference of NULL ‘htab’
# 4794|   	      /* If an STT_GNU_IFUNC symbol is locally defined, generate
# 4795|   		 R_X86_64_IRELATIVE instead of R_X86_64_JUMP_SLOT.  */
# 4796|-> 	      rela.r_info = htab->r_info (0, R_X86_64_IRELATIVE);
# 4797|   	      rela.r_addend = (h->root.u.def.value
# 4798|   			       + h->root.u.def.section->output_section->vma

Error: GCC_ANALYZER_WARNING (CWE-476): [#def45]
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4810:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4670:20: branch_false: following ‘false’ branch...
 branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4673:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4679:21: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4681:6: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4693:11: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4693:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4701:11: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4706:7: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4719:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4727:40: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4734:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4746:11: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4775:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4777:15: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4777:14: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4785:28: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4788:14: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4788:15: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4810:29: danger: dereference of NULL ‘htab’
# 4808|   	  else
# 4809|   	    {
# 4810|-> 	      rela.r_info = htab->r_info (h->dynindx, R_X86_64_JUMP_SLOT);
# 4811|   	      if (htab->params->mark_plt)
# 4812|   		rela.r_addend = (resolved_plt->output_section->vma

Error: GCC_ANALYZER_WARNING (CWE-476): [#def46]
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4857:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4670:20: branch_false: following ‘false’ branch...
 branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4673:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4679:21: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4681:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4849:12: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4849:11: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4857:7: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4857:7: danger: dereference of NULL ‘htab’
# 4855|   
# 4856|         /* Set the entry in the GOT procedure linkage table.  */
# 4857|->       plt = htab->plt_got;
# 4858|         got = htab->elf.sgot;
# 4859|         got_offset = h->got.offset;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def47]
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4962:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4670:20: branch_false: following ‘false’ branch...
 branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4673:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4679:21: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4849:11: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4898:6: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4920:6: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4921:12: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4920:7: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4920:7: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4920:7: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4920:7: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4926:17: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4932:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4944:10: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4945:14: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4944:11: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4947:15: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4947:14: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4950:19: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4950:18: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4954:19: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4956:18: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4958:19: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4962:33: danger: dereference of NULL ‘htab’
# 4960|   					  h->root.u.def.section->owner);
# 4961|   
# 4962|-> 		  rela.r_info = htab->r_info (0,
# 4963|   					      R_X86_64_IRELATIVE);
# 4964|   		  rela.r_addend = (h->root.u.def.value

Error: GCC_ANALYZER_WARNING (CWE-476): [#def48]
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4988:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4670:20: branch_false: following ‘false’ branch...
 branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4673:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4679:21: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4849:11: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4898:6: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4920:6: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4921:12: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4920:7: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4920:7: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4920:7: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4920:7: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4926:17: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4932:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4944:10: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4945:14: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4944:11: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4947:15: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4947:14: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4972:20: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4972:19: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4982:19: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4982:18: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4988:19: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4988:19: danger: dereference of NULL ‘htab’
# 4986|   		 contains the real function addres if we need pointer
# 4987|   		 equality.  We load the GOT entry with the PLT entry.  */
# 4988|-> 	      if (htab->plt_second != NULL)
# 4989|   		{
# 4990|   		  plt = htab->plt_second;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def49]
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:5015:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4670:20: branch_false: following ‘false’ branch...
 branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4673:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4679:21: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4849:11: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4898:6: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4920:6: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4921:12: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4920:7: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4920:7: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4920:7: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4920:7: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4926:17: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4932:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:5005:15: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:5006:19: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:5005:16: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:5008:16: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:5011:14: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:5015:29: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:5015:29: danger: dereference of NULL ‘htab’
# 5013|   	  else
# 5014|   	    {
# 5015|-> 	      rela.r_info = htab->r_info (0, R_X86_64_RELATIVE);
# 5016|   	      rela.r_addend = (h->root.u.def.value
# 5017|   			       + h->root.u.def.section->output_section->vma

Error: GCC_ANALYZER_WARNING (CWE-476): [#def50]
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:5028:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4670:20: branch_false: following ‘false’ branch...
 branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4673:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4679:21: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4849:11: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4898:6: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4920:6: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4921:12: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4920:7: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4920:7: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4920:7: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4920:7: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4926:17: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4932:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:5028:25: danger: dereference of NULL ‘htab’
# 5026|   	  bfd_put_64 (output_bfd, (bfd_vma) 0,
# 5027|   		      htab->elf.sgot->contents + h->got.offset);
# 5028|-> 	  rela.r_info = htab->r_info (h->dynindx, R_X86_64_GLOB_DAT);
# 5029|   	  rela.r_addend = 0;
# 5030|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def51]
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:5054:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4670:20: branch_false: following ‘false’ branch...
 branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4673:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4679:21: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4849:11: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:4898:6: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:5043:6: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:5049:7: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:5049:7: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:5054:21: danger: dereference of NULL ‘htab’
# 5052|   		       + h->root.u.def.section->output_section->vma
# 5053|   		       + h->root.u.def.section->output_offset);
# 5054|->       rela.r_info = htab->r_info (h->dynindx, R_X86_64_COPY);
# 5055|         rela.r_addend = 0;
# 5056|         if (h->root.u.def.section == htab->elf.sdynrelro)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def52]
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:5118:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:5113:6: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:5114:10: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:5113:7: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:5118:32: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elf64-x86-64.c:5118:32: danger: dereference of NULL ‘htab’
# 5116|         /* Check relocation against STT_GNU_IFUNC symbol if there are
# 5117|   	 dynamic symbols.  */
# 5118|->       unsigned long r_symndx = htab->r_sym (rela->r_info);
# 5119|         if (r_symndx != STN_UNDEF)
# 5120|   	{

Error: GCC_ANALYZER_WARNING (CWE-476): [#def53]
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elfxx-x86.c:1863:36: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elfxx-x86.c:1863:15: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elfxx-x86.c:1863:36: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elfxx-x86.c:1863:36: danger: dereference of NULL ‘htab’
# 1861|   
# 1862|   	  plt0_entry_size
# 1863|-> 	    = htab->plt.has_plt0 ? htab->sframe_plt->plt0_entry_size : 0;
# 1864|   	  plt_entry_size = htab->sframe_plt->pltn_entry_size;
# 1865|   	  pltn_fres = htab->sframe_plt->pltn_fres;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def54]
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elfxx-x86.c:1864:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elfxx-x86.c:1863:15: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elfxx-x86.c:1864:28: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elfxx-x86.c:1864:28: danger: dereference of NULL ‘htab’
# 1862|   	  plt0_entry_size
# 1863|   	    = htab->plt.has_plt0 ? htab->sframe_plt->plt0_entry_size : 0;
# 1864|-> 	  plt_entry_size = htab->sframe_plt->pltn_entry_size;
# 1865|   	  pltn_fres = htab->sframe_plt->pltn_fres;
# 1866|   	  num_pltn_fres = htab->sframe_plt->pltn_num_fres;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def55]
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elfxx-x86.c:1875:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
# 1873|   	{
# 1874|   	  ectx = &htab->plt_second_cfe_ctx;
# 1875|-> 	  dpltsec = htab->plt_second;
# 1876|   
# 1877|   	  plt0_entry_size = 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def56]
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elfxx-x86.c:1889:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
# 1887|   	{
# 1888|   	  ectx = &htab->plt_got_cfe_ctx;
# 1889|-> 	  dpltsec = htab->plt_got;
# 1890|   
# 1891|   	  plt0_entry_size = 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def57]
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elfxx-x86.c:1998:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
# 1996|       {
# 1997|       case SFRAME_PLT:
# 1998|->       ectx = htab->plt_cfe_ctx;
# 1999|         sec = htab->plt_sframe;
# 2000|         break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def58]
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elfxx-x86.c:2002:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
# 2000|         break;
# 2001|       case SFRAME_PLT_SEC:
# 2002|->       ectx = htab->plt_second_cfe_ctx;
# 2003|         sec = htab->plt_second_sframe;
# 2004|         break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def59]
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elfxx-x86.c:2006:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
# 2004|         break;
# 2005|       case SFRAME_PLT_GOT:
# 2006|->       ectx = htab->plt_got_cfe_ctx;
# 2007|         sec = htab->plt_got_sframe;
# 2008|         break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def60]
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/elfxx-x86.c:3338:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
# 3336|   
# 3337|       case elf_x86_tls_error_indirect_call:
# 3338|->       info->callbacks->einfo
# 3339|   	/* xgettext:c-format */
# 3340|   	(_("%pB(%pA+0x%v): relocation %s against `%s' must be used "

Error: GCC_ANALYZER_WARNING (CWE-476): [#def61]
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:323:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘buf’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:487:1: enter_function: entry to ‘ihex_object_p’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:495:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:497:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:497:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:504:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:504:6: branch_false: following ‘false’ branch...
 branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:510:15: branch_true: following ‘true’ branch (when ‘i != 9’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:512:13: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:512:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:510:22: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:520:6: branch_false: following ‘false’ branch (when ‘type <= 5’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:527:8: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:527:6: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:530:8: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:530:8: call_function: calling ‘ihex_scan’ from ‘ihex_object_p’
#  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): [#def62]
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:333:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘buf’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:487:1: enter_function: entry to ‘ihex_object_p’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:495:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:497:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:497:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:504:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:504:6: branch_false: following ‘false’ branch...
 branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:510:15: branch_true: following ‘true’ branch (when ‘i != 9’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:512:13: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:512:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:510:22: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:520:6: branch_false: following ‘false’ branch (when ‘type <= 5’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:527:8: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:527:6: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:530:8: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:530:8: call_function: calling ‘ihex_scan’ from ‘ihex_object_p’
#  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): [#def63]
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:334:53: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘buf’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:487:1: enter_function: entry to ‘ihex_object_p’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:495:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:497:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:497:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:504:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:504:6: branch_false: following ‘false’ branch...
 branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:510:15: branch_true: following ‘true’ branch (when ‘i != 9’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:512:13: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:512:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:510:22: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:520:6: branch_false: following ‘false’ branch (when ‘type <= 5’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:527:8: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:527:6: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:530:8: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:530:8: call_function: calling ‘ihex_scan’ from ‘ihex_object_p’
#  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): [#def64]
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:597:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘buf’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:542:1: enter_function: entry to ‘ihex_read_section’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:550:6: branch_false: following ‘false’ branch...
 branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:556:15: call_function: calling ‘ihex_get_byte’ from ‘ihex_read_section’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:556:15: return_function: returning to ‘ihex_read_section’ from ‘ihex_get_byte’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:556:10: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:563:11: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:570:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:573:13: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:577:10: branch_false: following ‘false’ branch (when ‘type == 0’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:585:11: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:585:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:593:11: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:593:10: branch_false: following ‘false’ branch...
 branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/ihex.c:597:16: release_memory: ‘buf’ is NULL
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../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-476): [#def65]
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:521:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘buf’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:677:1: enter_function: entry to ‘symbolsrec_object_p’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:683:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:684:10: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:683:7: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:687:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:687:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:693:6: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:696:8: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../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): [#def66]
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:527:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘data’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:677:1: enter_function: entry to ‘symbolsrec_object_p’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:683:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:684:10: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:683:7: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:687:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:687:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:693:6: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:696:8: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../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): [#def67]
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:533:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘data’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:677:1: enter_function: entry to ‘symbolsrec_object_p’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:683:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:684:10: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:683:7: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:687:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:687:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:693:6: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:696:8: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../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): [#def68]
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:589:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘buf’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:677:1: enter_function: entry to ‘symbolsrec_object_p’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:683:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:684:10: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:683:7: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:687:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:687:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:693:6: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:696:8: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../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): [#def69]
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:594:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘data’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:677:1: enter_function: entry to ‘symbolsrec_object_p’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:683:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:684:10: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:683:7: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:687:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:687:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:693:6: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:696:8: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../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): [#def70]
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:599:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘data’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:677:1: enter_function: entry to ‘symbolsrec_object_p’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:683:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:684:10: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:683:7: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:687:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:687:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:693:6: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:696:8: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../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): [#def71]
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:767:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘buf’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:711:1: enter_function: entry to ‘srec_read_section’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:719:6: branch_false: following ‘false’ branch...
 branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:722:15: call_function: calling ‘srec_get_byte’ from ‘srec_read_section’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:722:15: return_function: returning to ‘srec_read_section’ from ‘srec_get_byte’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:722:10: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:729:11: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:734:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:737:11: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:737:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:740:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:744:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:753:11: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:753:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:758:15: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../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): [#def72]
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:772:38: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘data’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:711:1: enter_function: entry to ‘srec_read_section’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:719:6: branch_false: following ‘false’ branch...
 branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:722:15: call_function: calling ‘srec_get_byte’ from ‘srec_read_section’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:722:15: return_function: returning to ‘srec_read_section’ from ‘srec_get_byte’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:722:10: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:729:11: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:734:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:737:11: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:737:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:740:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:744:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:753:11: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:753:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:758:15: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../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): [#def73]
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:777:38: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘data’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:711:1: enter_function: entry to ‘srec_read_section’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:719:6: branch_false: following ‘false’ branch...
 branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:722:15: call_function: calling ‘srec_get_byte’ from ‘srec_read_section’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:722:15: return_function: returning to ‘srec_read_section’ from ‘srec_get_byte’
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:722:10: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:729:11: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:734:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:737:11: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:737:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:740:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:744:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:753:11: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:753:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/srec.c:758:15: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../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): [#def74]
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/stabs.c:401:20: warning[-Wanalyzer-null-argument]: use of NULL ‘symb’ where non-null expected
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/stabs.c:191:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/stabs.c:192:10: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/stabs.c:191:7: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/stabs.c:193:11: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/stabs.c:191:7: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/stabs.c:194:11: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/stabs.c:191:7: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/stabs.c:198:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/stabs.c:198:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/stabs.c:203:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/stabs.c:203:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/stabs.c:208:27: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/stabs.c:208:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/stabs.c:209:30: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/stabs.c:208:7: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/stabs.c:216:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/stabs.c:246:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/stabs.c:250:3: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/stabs.c:256:6: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/stabs.c:257:11: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/stabs.c:256:7: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/stabs.c:267:17: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/stabs.c:272:8: branch_true: following ‘true’ branch (when ‘sym < symend’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/stabs.c:279:11: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/stabs.c:279:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/stabs.c:283:14: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/stabs.c:304:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/stabs.c:313:16: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/stabs.c:321:10: branch_true: following ‘true’ branch (when ‘type == 130’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/stabs.c:338:16: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/stabs.c:389:11: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/stabs.c:394:13: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/stabs.c:395:14: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/stabs.c:398:16: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/stabs.c:398:40: branch_true: following ‘true’ branch (when ‘t’ is non-NULL)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/stabs.c:399:17: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/stabs.c:399:16: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/stabs.c:400:20: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/stabs.c:399:17: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../bfd/stabs.c:401:28: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/bfd/../../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: GCC_ANALYZER_WARNING (CWE-401): [#def75]
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:512:9: warning[-Wanalyzer-malloc-leak]: leak of ‘*arch.file_name’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:642:1: enter_function: entry to ‘get_archive_member_name’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:655:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:669:10: branch_false: following ‘false’ branch...
 branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:684:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:688:10: branch_false: following ‘false’ branch (when ‘j < j’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:696:26: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:696:26: call_function: calling ‘adjust_relative_path’ from ‘get_archive_member_name’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:696:26: return_function: returning to ‘get_archive_member_name’ from ‘adjust_relative_path’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:698:10: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:699:14: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:699:14: call_function: calling ‘setup_nested_archive’ from ‘get_archive_member_name’
#  510|         return 1;
#  511|       }
#  512|->   got = fread (&arch->arhdr, 1, sizeof arch->arhdr, file);
#  513|     if (got != sizeof arch->arhdr)
#  514|       {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def76]
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:613:6: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(member_file_name, "rb")’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:642:1: enter_function: entry to ‘get_archive_member_name’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:655:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:669:10: branch_false: following ‘false’ branch...
 branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:684:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:688:10: branch_false: following ‘false’ branch (when ‘j < j’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:696:26: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:696:26: call_function: calling ‘adjust_relative_path’ from ‘get_archive_member_name’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:696:26: return_function: returning to ‘get_archive_member_name’ from ‘adjust_relative_path’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:698:10: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:699:14: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:699:14: call_function: calling ‘setup_nested_archive’ from ‘get_archive_member_name’
#  611|     if (member_file == NULL)
#  612|       return 1;
#  613|->   if (fstat (fileno (member_file), &statbuf) < 0)
#  614|       return 1;
#  615|     return setup_archive (nested_arch, member_file_name, member_file,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def77]
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:613:6: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(member_file_name, "rb")’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:642:1: enter_function: entry to ‘get_archive_member_name’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:655:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:669:10: branch_false: following ‘false’ branch...
 branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:684:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:688:10: branch_false: following ‘false’ branch (when ‘j < j’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:696:26: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:696:26: call_function: calling ‘adjust_relative_path’ from ‘get_archive_member_name’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:696:26: return_function: returning to ‘get_archive_member_name’ from ‘adjust_relative_path’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:698:10: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:699:14: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:699:14: call_function: calling ‘setup_nested_archive’ from ‘get_archive_member_name’
#  611|     if (member_file == NULL)
#  612|       return 1;
#  613|->   if (fstat (fileno (member_file), &statbuf) < 0)
#  614|       return 1;
#  615|     return setup_archive (nested_arch, member_file_name, member_file,

Error: GCC_ANALYZER_WARNING (CWE-775): [#def78]
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:616:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(member_file_name, "rb")’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:642:1: enter_function: entry to ‘get_archive_member_name’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:655:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:669:10: branch_false: following ‘false’ branch...
 branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:684:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:688:10: branch_false: following ‘false’ branch (when ‘j < j’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:696:26: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:696:26: call_function: calling ‘adjust_relative_path’ from ‘get_archive_member_name’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:696:26: return_function: returning to ‘get_archive_member_name’ from ‘adjust_relative_path’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:698:10: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:699:14: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:699:14: call_function: calling ‘setup_nested_archive’ from ‘get_archive_member_name’
#  614|       return 1;
#  615|     return setup_archive (nested_arch, member_file_name, member_file,
#  616|-> 			statbuf.st_size, 0, 0);
#  617|   }
#  618|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def79]
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:616:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(member_file_name, "rb")’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:642:1: enter_function: entry to ‘get_archive_member_name’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:655:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:669:10: branch_false: following ‘false’ branch...
 branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:684:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:688:10: branch_false: following ‘false’ branch (when ‘j < j’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:696:26: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:696:26: call_function: calling ‘adjust_relative_path’ from ‘get_archive_member_name’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:696:26: return_function: returning to ‘get_archive_member_name’ from ‘adjust_relative_path’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:698:10: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:699:14: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/elfcomm.c:699:14: call_function: calling ‘setup_nested_archive’ from ‘get_archive_member_name’
#  614|       return 1;
#  615|     return setup_archive (nested_arch, member_file_name, member_file,
#  616|-> 			statbuf.st_size, 0, 0);
#  617|   }
#  618|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def80]
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/prdbg.c:414:49: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘s’ where non-null expected
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/prdbg.c:2263:1: enter_function: entry to ‘tg_class_method_variant’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/prdbg.c:2274:3: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/prdbg.c:2275:3: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/prdbg.c:2275:3: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/prdbg.c:2278:6: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/prdbg.c:2289:17: acquire_memory: this call could return NULL
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/prdbg.c:2293:9: call_function: calling ‘substitute_type’ from ‘tg_class_method_variant’
#argument 1 of ‘__builtin_strlen’ must be non-null
#  412|         char *n;
#  413|   
#  414|->       n = xmalloc (strlen (info->stack->type) + strlen (s));
#  415|   
#  416|         memcpy (n, info->stack->type, u - info->stack->type);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def81]
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/prdbg.c:426:7: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘s’ where non-null expected
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/prdbg.c:2263:1: enter_function: entry to ‘tg_class_method_variant’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/prdbg.c:2274:3: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/prdbg.c:2275:3: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/prdbg.c:2275:3: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/prdbg.c:2278:6: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/prdbg.c:2289:17: acquire_memory: this call could return NULL
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/prdbg.c:2293:9: call_function: calling ‘substitute_type’ from ‘tg_class_method_variant’
#argument 1 of ‘__builtin_strchr’ must be non-null
#  424|       }
#  425|   
#  426|->   if (strchr (s, '|') != NULL
#  427|         && (strchr (info->stack->type, '{') != NULL
#  428|   	  || strchr (info->stack->type, '(') != NULL))

Error: GCC_ANALYZER_WARNING (CWE-457): [#def82]
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/strings.c:755:49: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘buffer[2]’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/strings.c:1256:1: enter_function: entry to ‘print_strings’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/strings.c:1259:6: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/strings.c:1261:11: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/strings.c:1265:10: branch_true: following ‘true’ branch (when ‘stream’ is non-NULL)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/strings.c:1266:9: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/strings.c:1266:9: call_function: calling ‘print_unicode_stream’ from ‘print_strings’
#  753|   	  printf ("\\u%02x%02x",
#  754|   		  ((buffer[0] & 0x0f) << 4) | ((buffer[1] & 0x3c) >> 2),
#  755|-> 		  ((buffer[1] & 0x03) << 6) | ((buffer[2] & 0x3f)));
#  756|   	  break;
#  757|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def83]
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/strings.c:762:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘buffer[2]’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/strings.c:1256:1: enter_function: entry to ‘print_strings’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/strings.c:1259:6: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/strings.c:1261:11: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/strings.c:1265:10: branch_true: following ‘true’ branch (when ‘stream’ is non-NULL)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/strings.c:1266:9: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/strings.c:1266:9: call_function: calling ‘print_unicode_stream’ from ‘print_strings’
#  760|   		  ((buffer[0] & 0x07) << 6) | ((buffer[1] & 0x3c) >> 2),
#  761|   		  ((buffer[1] & 0x03) << 6) | ((buffer[2] & 0x3c) >> 2),
#  762|-> 		  ((buffer[2] & 0x03) << 6) | ((buffer[3] & 0x3f)));
#  763|   	  break;
#  764|   	default:

Error: GCC_ANALYZER_WARNING (CWE-457): [#def84]
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/strings.c:762:49: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘buffer[3]’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/strings.c:1256:1: enter_function: entry to ‘print_strings’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/strings.c:1259:6: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/strings.c:1261:11: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/strings.c:1265:10: branch_true: following ‘true’ branch (when ‘stream’ is non-NULL)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/strings.c:1266:9: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/strings.c:1266:9: call_function: calling ‘print_unicode_stream’ from ‘print_strings’
#  760|   		  ((buffer[0] & 0x07) << 6) | ((buffer[1] & 0x3c) >> 2),
#  761|   		  ((buffer[1] & 0x03) << 6) | ((buffer[2] & 0x3c) >> 2),
#  762|-> 		  ((buffer[2] & 0x03) << 6) | ((buffer[3] & 0x3f)));
#  763|   	  break;
#  764|   	default:

Error: GCC_ANALYZER_WARNING (CWE-688): [#def85]
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:925:26: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:864:1: enter_function: entry to ‘stab_modify_type’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:871:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:873:3: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:875:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:892:33: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:924:15: call_function: calling ‘stab_pop_type’ from ‘stab_modify_type’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:924:15: return_function: returning to ‘stab_modify_type’ from ‘stab_pop_type’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:925:26: danger: argument 1 (‘stab_pop_type(info)’) NULL where non-null expected
#argument 1 of ‘__builtin_strlen’ must be non-null
#  923|   
#  924|   	  s = stab_pop_type (info);
#  925|-> 	  buf = xmalloc (strlen (s) + 23);
#  926|   	  sprintf (buf, "%ld=%c%s", tindex, mod, s);
#  927|   	  free (s);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def86]
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:970:26: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:951:1: enter_function: entry to ‘stab_function_type’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:968:15: call_function: calling ‘stab_pop_type’ from ‘stab_function_type’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:968:15: return_function: returning to ‘stab_function_type’ from ‘stab_pop_type’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:970:26: danger: argument 1 (‘stab_pop_type(p)’) NULL where non-null expected
#argument 1 of ‘__builtin_strlen’ must be non-null
#  968|   	  s = stab_pop_type (info);
#  969|   
#  970|-> 	  buf = xmalloc (strlen (s) + 3);
#  971|   	  sprintf (buf, ":t%s", s);
#  972|   	  free (s);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def87]
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:1109:36: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:1097:1: enter_function: entry to ‘stab_offset_type’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:1104:12: call_function: calling ‘stab_pop_type’ from ‘stab_offset_type’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:1104:12: return_function: returning to ‘stab_offset_type’ from ‘stab_pop_type’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:1107:10: call_function: calling ‘stab_pop_type’ from ‘stab_offset_type’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:1107:10: return_function: returning to ‘stab_offset_type’ from ‘stab_pop_type’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:1109:36: danger: argument 1 (‘stab_pop_type(p)’) NULL where non-null expected
#argument 1 of ‘__builtin_strlen’ must be non-null
# 1107|     base = stab_pop_type (info);
# 1108|   
# 1109|->   buf = xmalloc (strlen (target) + strlen (base) + 3);
# 1110|     sprintf (buf, "@%s,%s", base, target);
# 1111|     free (base);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def88]
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:1196:27: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:1120:1: enter_function: entry to ‘stab_method_type’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:1143:12: call_function: calling ‘stab_pop_type’ from ‘stab_method_type’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:1143:12: return_function: returning to ‘stab_method_type’ from ‘stab_pop_type’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:1148:6: branch_true: following ‘true’ branch (when ‘argcount < 0’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:1193:16: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:1194:17: call_function: calling ‘stab_pop_type’ from ‘stab_method_type’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:1194:17: return_function: returning to ‘stab_method_type’ from ‘stab_pop_type’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:1196:27: danger: argument 1 (‘stab_pop_type(p)’) NULL where non-null expected
#argument 1 of ‘__builtin_strlen’ must be non-null
# 1194|     return_type = stab_pop_type (info);
# 1195|   
# 1196|->   len = strlen (domain) + strlen (return_type) + 4 + argcount;
# 1197|     for (i = 0; i < argcount; i++)
# 1198|       len += strlen (args[i]);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def89]
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:1932:33: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:1925:1: enter_function: entry to ‘stab_tag’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:1930:7: call_function: calling ‘stab_pop_type’ from ‘stab_tag’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:1930:7: return_function: returning to ‘stab_tag’ from ‘stab_pop_type’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:1932:33: danger: argument 1 (‘stab_pop_type(p)’) NULL where non-null expected
#argument 1 of ‘__builtin_strlen’ must be non-null
# 1930|     s = stab_pop_type (info);
# 1931|   
# 1932|->   buf = xmalloc (strlen (tag) + strlen (s) + 3);
# 1933|   
# 1934|     sprintf (buf, "%s:T%s", tag, s);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def90]
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:1978:34: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:1971:1: enter_function: entry to ‘stab_typed_constant’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:1976:7: call_function: calling ‘stab_pop_type’ from ‘stab_typed_constant’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:1976:7: return_function: returning to ‘stab_typed_constant’ from ‘stab_pop_type’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:1978:34: danger: argument 1 (‘stab_pop_type(p)’) NULL where non-null expected
#argument 1 of ‘__builtin_strlen’ must be non-null
# 1976|     s = stab_pop_type (info);
# 1977|   
# 1978|->   buf = xmalloc (strlen (name) + strlen (s) + 20);
# 1979|     sprintf (buf, "%s:c=e%s,%ld", name, s, (long) val);
# 1980|     free (s);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def91]
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:2023:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:1988:1: enter_function: entry to ‘stab_variable’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:1996:7: call_function: calling ‘stab_pop_type’ from ‘stab_variable’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:1996:7: return_function: returning to ‘stab_variable’ from ‘stab_pop_type’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:2023:13: danger: dereference of NULL ‘stab_pop_type(p)’
# 2021|   
# 2022|         /* Make sure that this is a type reference or definition.  */
# 2023|->       if (! ISDIGIT (*s))
# 2024|   	{
# 2025|   	  char *n;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def92]
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:2043:34: warning[-Wanalyzer-null-argument]: use of NULL ‘s’ where non-null expected
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:1988:1: enter_function: entry to ‘stab_variable’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:1996:7: call_function: calling ‘stab_pop_type’ from ‘stab_variable’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:1996:7: return_function: returning to ‘stab_variable’ from ‘stab_pop_type’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:2043:34: danger: argument 1 (‘s’) NULL where non-null expected
#argument 1 of ‘__builtin_strlen’ must be non-null
# 2041|       }
# 2042|   
# 2043|->   buf = xmalloc (strlen (name) + strlen (s) + 3);
# 2044|     sprintf (buf, "%s:%s%s", name, kindstr, s);
# 2045|     free (s);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def93]
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:2063:34: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:2053:1: enter_function: entry to ‘stab_start_function’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:2061:13: call_function: calling ‘stab_pop_type’ from ‘stab_start_function’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:2061:13: return_function: returning to ‘stab_start_function’ from ‘stab_pop_type’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:2063:34: danger: argument 1 (‘stab_pop_type(p)’) NULL where non-null expected
#argument 1 of ‘__builtin_strlen’ must be non-null
# 2061|     rettype = stab_pop_type (info);
# 2062|   
# 2063|->   buf = xmalloc (strlen (name) + strlen (rettype) + 3);
# 2064|     sprintf (buf, "%s:%c%s", name,
# 2065|   	   globalp ? 'F' : 'f',

Error: GCC_ANALYZER_WARNING (CWE-688): [#def94]
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:2113:34: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:2078:1: enter_function: entry to ‘stab_function_parameter’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:2085:7: call_function: calling ‘stab_pop_type’ from ‘stab_function_parameter’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:2085:7: return_function: returning to ‘stab_function_parameter’ from ‘stab_pop_type’
 branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:2113:18: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/../../binutils/wrstabs.c:2113:34: danger: argument 1 (‘stab_pop_type(p)’) NULL where non-null expected
#argument 1 of ‘__builtin_strlen’ must be non-null
# 2111|       }
# 2112|   
# 2113|->   buf = xmalloc (strlen (name) + strlen (s) + 3);
# 2114|     sprintf (buf, "%s:%c%s", name, kindc, s);
# 2115|     free (s);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def95]
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/arlex.c:1279:5: warning[-Wanalyzer-malloc-leak]: leak of ‘*b.yy_ch_buf’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/arlex.c:1212:12: enter_function: entry to ‘yy_get_next_buffer’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/arlex.c:1219:5: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/arlex.c:1223:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/arlex.c:1223:5: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/arlex.c:1245:26: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/arlex.c:1250:5: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/arlex.c:1259:4: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/arlex.c:1261:11: branch_true: following ‘true’ branch (when ‘num_to_read <= 0’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/arlex.c:1265:20: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/arlex.c:1281:6: call_function: inlined call to ‘yyrealloc’ from ‘yy_get_next_buffer’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/arlex.c:1288:7: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/arlex.c:1292:19: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/arlex.c:1261:11: branch_true: following ‘true’ branch (when ‘num_to_read <= 0’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/arlex.c:1265:20: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/arlex.c:1270:7: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/arlex.c:1272:20: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/arlex.c:1281:6: call_function: inlined call to ‘yyrealloc’ from ‘yy_get_next_buffer’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/arlex.c:1279:5: danger: ‘*b.yy_ch_buf’ leaks here; was allocated at [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def96]
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/arlex.c:1564:5: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/arlex.c:1550:21: enter_function: entry to ‘yy_create_buffer’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/arlex.c:1554:24: call_function: inlined call to ‘yyalloc’ from ‘yy_create_buffer’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/arlex.c:1555:5: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/arlex.c:1558:2: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/arlex.c:1564:5: danger: ‘malloc(64)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def97]
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/arlex.c:1818:25: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(n)’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/arlex.c:1802:17: enter_function: entry to ‘yy_scan_bytes’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/arlex.c:1811:17: call_function: inlined call to ‘yyalloc’ from ‘yy_scan_bytes’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/arlex.c:1812:5: branch_false: following ‘false’ branch...
 branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/arlex.c:1820:6: call_function: calling ‘yy_scan_buffer’ from ‘yy_scan_bytes’

Error: GCC_ANALYZER_WARNING (CWE-457): [#def98]
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/arparse.c:1125:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/arparse.c:1083:6: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/arparse.c:1089:28: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/arparse.c:1112:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/arparse.c:1114:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/arparse.c:1123:12: branch_false: following ‘false’ branch (when ‘yyptr’ is non-NULL)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/arparse.c:1125:9: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/arparse.c:1125:9: danger: use of uninitialized value ‘yyss’ here

Error: GCC_ANALYZER_WARNING (CWE-457): [#def99]
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/arparse.c:1252:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>.name’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/arparse.c:1083:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/arparse.c:1147:6: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/arparse.c:1147:6: branch_false: following ‘false’ branch (when ‘yystate != 3’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/arparse.c:1150:3: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/arparse.c:1162:6: branch_true: following ‘true’ branch (when ‘yyn == -14’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/arparse.c:1163:5: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/arparse.c:1232:6: branch_false: following ‘false’ branch (when ‘yyn != 0’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/arparse.c:1234:3: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/arparse.c:1252:3: danger: use of uninitialized value ‘*<unknown>.name’ here

Error: GCC_ANALYZER_WARNING (CWE-457): [#def100]
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/sysinfo.c:1054:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/sysinfo.c:1012:6: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/sysinfo.c:1018:28: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/sysinfo.c:1041:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/sysinfo.c:1043:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/sysinfo.c:1052:12: branch_false: following ‘false’ branch (when ‘yyptr’ is non-NULL)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/sysinfo.c:1054:9: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/sysinfo.c:1054:9: danger: use of uninitialized value ‘yyss’ here

Error: GCC_ANALYZER_WARNING (CWE-457): [#def101]
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/sysinfo.c:1181:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/sysinfo.c:1012:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/sysinfo.c:1076:6: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/sysinfo.c:1076:6: branch_false: following ‘false’ branch (when ‘yystate != 3’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/sysinfo.c:1079:3: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/sysinfo.c:1091:6: branch_true: following ‘true’ branch (when ‘yyn == -14’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/sysinfo.c:1092:5: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/sysinfo.c:1161:6: branch_false: following ‘false’ branch (when ‘yyn != 0’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/sysinfo.c:1163:3: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/sysinfo.c:1181:3: danger: use of uninitialized value ‘*<unknown>’ here

Error: GCC_ANALYZER_WARNING (CWE-401): [#def102]
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/syslex.c:1146:5: warning[-Wanalyzer-malloc-leak]: leak of ‘*b.yy_ch_buf’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/syslex.c:1079:12: enter_function: entry to ‘yy_get_next_buffer’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/syslex.c:1086:5: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/syslex.c:1090:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/syslex.c:1090:5: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/syslex.c:1112:26: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/syslex.c:1117:5: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/syslex.c:1126:4: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/syslex.c:1128:11: branch_true: following ‘true’ branch (when ‘num_to_read <= 0’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/syslex.c:1132:20: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/syslex.c:1148:6: call_function: inlined call to ‘yyrealloc’ from ‘yy_get_next_buffer’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/syslex.c:1155:7: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/syslex.c:1159:19: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/syslex.c:1128:11: branch_true: following ‘true’ branch (when ‘num_to_read <= 0’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/syslex.c:1132:20: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/syslex.c:1137:7: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/syslex.c:1139:20: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/syslex.c:1148:6: call_function: inlined call to ‘yyrealloc’ from ‘yy_get_next_buffer’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/syslex.c:1146:5: danger: ‘*b.yy_ch_buf’ leaks here; was allocated at [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def103]
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/syslex.c:1431:5: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/syslex.c:1417:21: enter_function: entry to ‘yy_create_buffer’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/syslex.c:1421:24: call_function: inlined call to ‘yyalloc’ from ‘yy_create_buffer’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/syslex.c:1422:5: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/syslex.c:1425:2: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/syslex.c:1431:5: danger: ‘malloc(64)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def104]
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/syslex.c:1685:25: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(n)’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/syslex.c:1669:17: enter_function: entry to ‘yy_scan_bytes’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/syslex.c:1678:17: call_function: inlined call to ‘yyalloc’ from ‘yy_scan_bytes’
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/syslex.c:1679:5: branch_false: following ‘false’ branch...
 branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/binutils/syslex.c:1687:6: call_function: calling ‘yy_scan_buffer’ from ‘yy_scan_bytes’

Error: GCC_ANALYZER_WARNING (CWE-476): [#def105]
binutils-with-gold-2.44/build-x86_64-redhat-linux/gas/../../gas/config/obj-elf.c:3043:42: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
binutils-with-gold-2.44/build-x86_64-redhat-linux/gas/../../gas/config/obj-elf.c:3015:6: branch_true: following ‘true’ branch...
 branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gas/../../gas/config/obj-elf.c:3019:33: branch_true: following ‘true’ branch (when ‘symp’ is non-NULL)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gas/../../gas/config/obj-elf.c:3021:39: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gas/../../gas/config/obj-elf.c:3024:14: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gas/../../gas/config/obj-elf.c:3026:33: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gas/../../gas/config/obj-elf.c:3038:18: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gas/../../gas/config/obj-elf.c:3043:23: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gas/../../gas/config/obj-elf.c:3043:22: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gas/../../gas/config/obj-elf.c:3043:42: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gas/../../gas/config/obj-elf.c:3043:42: danger: dereference of NULL ‘p’
# 3041|   		     is reserved for definitions of the default version
# 3042|   		     to link against.  */
# 3043|-> 		  if (!sy_obj->rename && p[1] == ELF_VER_CHR)
# 3044|   		    {
# 3045|   		      as_bad (_("invalid attempt to declare external "

Error: GCC_ANALYZER_WARNING (CWE-688): [#def106]
binutils-with-gold-2.44/build-x86_64-redhat-linux/gas/../../gas/listing.c:514:7: warning[-Wanalyzer-null-argument]: use of NULL ‘last_open_file’ where non-null expected
binutils-with-gold-2.44/build-x86_64-redhat-linux/gas/../../gas/listing.c:1416:1: enter_function: entry to ‘listing_print’
binutils-with-gold-2.44/build-x86_64-redhat-linux/gas/../../gas/listing.c:1447:6: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gas/../../gas/listing.c:1448:5: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gas/../../gas/listing.c:1448:5: call_function: calling ‘listing_listing’ from ‘listing_print’
#  512|       }
#  513|   
#  514|->   c = fgetc (last_open_file);
#  515|   
#  516|     while (c != EOF && c != '\n' && c != '\r')

Error: GCC_ANALYZER_WARNING (CWE-688): [#def107]
binutils-with-gold-2.44/build-x86_64-redhat-linux/gas/../../gas/macro.c:108:16: warning[-Wanalyzer-null-argument]: use of NULL ‘from’ where non-null expected
binutils-with-gold-2.44/build-x86_64-redhat-linux/gas/../../gas/macro.c:1332:1: enter_function: entry to ‘expand_irp’
binutils-with-gold-2.44/build-x86_64-redhat-linux/gas/../../gas/macro.c:1342:9: call_function: calling ‘buffer_and_nest’ from ‘expand_irp’
#argument 1 of ‘__builtin_strlen’ must be non-null
#  106|       }
#  107|     else
#  108|->     from_len = strlen (from);
#  109|   
#  110|     /* Record the present source position, such that diagnostics and debug info

Error: GCC_ANALYZER_WARNING (CWE-835): [#def108]
binutils-with-gold-2.44/build-x86_64-redhat-linux/gas/../../gas/read.c:1509:40: warning[-Wanalyzer-infinite-loop]: infinite loop
binutils-with-gold-2.44/build-x86_64-redhat-linux/gas/../../gas/read.c:6328:12: call_function: inlined call to ‘mri_comment_field’ from ‘equals’
# 1507|   #else
# 1508|     for (s = input_line_pointer;
# 1509|->        !is_end_of_line[(unsigned char) *s];
# 1510|          s++)
# 1511|       ;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def109]
binutils-with-gold-2.44/build-x86_64-redhat-linux/gas/../../gas/read.c:1527:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘stop’
binutils-with-gold-2.44/build-x86_64-redhat-linux/gas/../../gas/read.c:4336:1: enter_function: entry to ‘s_reloc’
binutils-with-gold-2.44/build-x86_64-redhat-linux/gas/../../gas/read.c:4356:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gas/../../gas/read.c:4359:3: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gas/../../gas/read.c:4433:10: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gas/../../gas/read.c:4434:9: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gas/../../gas/read.c:4434:9: call_function: calling ‘mri_comment_end’ from ‘s_reloc’
# 1525|   
# 1526|     input_line_pointer = stop;
# 1527|->   *stop = stopc;
# 1528|     while (!is_end_of_line[(unsigned char) *input_line_pointer])
# 1529|       ++input_line_pointer;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def110]
binutils-with-gold-2.44/build-x86_64-redhat-linux/gas/../../gas/read.c:5709:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘b[1]’
binutils-with-gold-2.44/build-x86_64-redhat-linux/gas/../../gas/read.c:5731:1: enter_function: entry to ‘s_base64’
binutils-with-gold-2.44/build-x86_64-redhat-linux/gas/../../gas/read.c:5765:10: branch_false: following ‘false’ branch...
 branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gas/../../gas/read.c:5778:19: branch_true: following ‘true’ branch (when ‘i != 4’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gas/../../gas/read.c:5780:17: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gas/../../gas/read.c:5782:14: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gas/../../gas/read.c:5789:14: branch_false: following ‘false’ branch (when ‘c != 34’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gas/../../gas/read.c:5805:30: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gas/../../gas/read.c:5805:14: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gas/../../gas/read.c:5812:14: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gas/../../gas/read.c:5812:14: branch_false: following ‘false’ branch (when ‘c != 61’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gas/../../gas/read.c:5829:22: call_function: inlined call to ‘is_base64_char’ from ‘s_base64’
binutils-with-gold-2.44/build-x86_64-redhat-linux/gas/../../gas/read.c:5839:11: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gas/../../gas/read.c:5842:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gas/../../gas/read.c:5850:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gas/../../gas/read.c:5850:7: call_function: calling ‘decode_base64_and_append’ from ‘s_base64’
# 5707|     gas_assert (len > 1);
# 5708|   
# 5709|->   FRAG_APPEND_1_CHAR ((b64[b[0]] << 2) | (b64[b[1]] >> 4));
# 5710|   
# 5711|     if (len == 2)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def111]
binutils-with-gold-2.44/build-x86_64-redhat-linux/gold/yyscript.c:2270:11: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
binutils-with-gold-2.44/build-x86_64-redhat-linux/gold/yyscript.c:2232:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gold/yyscript.c:2296:6: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gold/yyscript.c:2296:6: branch_false: following ‘false’ branch (when ‘yystate != 26’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gold/yyscript.c:2299:3: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gold/yyscript.c:2311:6: branch_false: following ‘false’ branch (when ‘yyn != -423’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gold/yyscript.c:2317:6: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gold/yyscript.c:2317:6: branch_true: following ‘true’ branch (when ‘yychar == -2’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gold/yyscript.c:2320:16: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gold/yyscript.c:2329:11: branch_false: following ‘false’ branch (when ‘yychar != 256’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gold/yyscript.c:2341:17: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gold/yyscript.c:2348:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gold/yyscript.c:2351:6: branch_false: following ‘false’ branch (when ‘yyn > 0’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gold/yyscript.c:2361:6: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gold/yyscript.c:2361:6: branch_false: following ‘false’ branch (when ‘yyerrstatus == 0’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gold/yyscript.c:2368:3: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gold/yyscript.c:2232:6: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gold/yyscript.c:2238:34: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gold/yyscript.c:2261:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gold/yyscript.c:2263:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gold/yyscript.c:2270:11: acquire_memory: allocated here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gold/yyscript.c:2272:12: branch_false: following ‘false’ branch (when ‘yyptr’ is non-NULL)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gold/yyscript.c:2274:9: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gold/yyscript.c:2277:12: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gold/yyscript.c:2282:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gold/yyscript.c:2290:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gold/yyscript.c:2296:6: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gold/yyscript.c:2296:6: branch_false: following ‘false’ branch (when ‘yystate != 26’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gold/yyscript.c:2299:3: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gold/yyscript.c:2311:6: branch_false: following ‘false’ branch (when ‘yyn != -423’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gold/yyscript.c:2317:6: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gold/yyscript.c:2317:6: branch_true: following ‘true’ branch (when ‘yychar == -2’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gold/yyscript.c:2320:16: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gold/yyscript.c:2348:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gold/yyscript.c:2351:6: branch_false: following ‘false’ branch (when ‘yyn > 0’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gold/yyscript.c:2361:6: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gold/yyscript.c:2361:6: branch_false: following ‘false’ branch (when ‘yyerrstatus == 0’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gold/yyscript.c:2368:3: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gold/yyscript.c:2232:6: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gold/yyscript.c:2238:34: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gold/yyscript.c:2261:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gold/yyscript.c:2263:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gold/yyscript.c:2270:11: danger: ‘yyptr’ leaks here; was allocated at [(21)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/20)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def112]
binutils-with-gold-2.44/build-x86_64-redhat-linux/gold/yyscript.c:2274:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
binutils-with-gold-2.44/build-x86_64-redhat-linux/gold/yyscript.c:2232:6: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gold/yyscript.c:2238:34: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gold/yyscript.c:2261:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gold/yyscript.c:2263:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gold/yyscript.c:2272:12: branch_false: following ‘false’ branch (when ‘yyptr’ is non-NULL)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gold/yyscript.c:2274:9: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gold/yyscript.c:2274:9: danger: use of uninitialized value ‘yyss’ here

Error: GCC_ANALYZER_WARNING (CWE-457): [#def113]
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprof/../../gprof/basic_blocks.c:439:11: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘&tmpbuf’
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprof/../../gprof/basic_blocks.c:330:6: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprof/../../gprof/basic_blocks.c:331:17: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprof/../../gprof/basic_blocks.c:333:6: branch_false: following ‘false’ branch (when ‘b’ is non-NULL)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprof/../../gprof/basic_blocks.c:347:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprof/../../gprof/basic_blocks.c:382:19: branch_true: following ‘true’ branch (when ‘i != 10’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprof/../../gprof/basic_blocks.c:382:31: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprof/../../gprof/basic_blocks.c:415:10: branch_false: following ‘false’ branch (when ‘ncalls_set != 0’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprof/../../gprof/basic_blocks.c:425:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprof/../../gprof/basic_blocks.c:427:10: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprof/../../gprof/basic_blocks.c:429:11: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprof/../../gprof/basic_blocks.c:437:10: branch_true: following ‘true’ branch (when ‘len >= width’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprof/../../gprof/basic_blocks.c:439:11: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprof/../../gprof/basic_blocks.c:439:11: danger: use of uninitialized value ‘&tmpbuf’ here
#  437|         if (len >= width)
#  438|   	{
#  439|-> 	  strncpy (buf, tmpbuf, width);
#  440|   	  buf[width] = '\0';
#  441|   	}

Error: GCC_ANALYZER_WARNING (CWE-617): [#def114]
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprof/../../gprof/gmon_io.c:351:15: warning[-Wanalyzer-tainted-assertion]: use of attacked-controlled value in condition for assertion
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprof/../../gprof/gmon_io.c:280:6: branch_true: following ‘true’ branch (when the strings are equal)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprof/../../gprof/gmon_io.c:282:7: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprof/../../gprof/gmon_io.c:296:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprof/../../gprof/gmon_io.c:303:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprof/../../gprof/gmon_io.c:306:11: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprof/../../gprof/gmon_io.c:314:27: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprof/../../gprof/gmon_io.c:316:10: branch_false: following ‘false’ branch...
 branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprof/../../gprof/gmon_io.c:325:14: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprof/../../gprof/gmon_io.c:327:11: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprof/../../gprof/gmon_io.c:351:15: danger: treating ‘done’ as an assertion failure handler due to ‘__attribute__((__noreturn__))’
#  349|   		       _("%s: %s: found bad tag %d (file corrupted?)\n"),
#  350|   		       whoami, filename, tag);
#  351|-> 	      done (1);
#  352|   	    }
#  353|   	}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def115]
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprof/../../gprof/gmon_io.c:587:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "w")’
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprof/../../gprof/gmon_io.c:580:9: acquire_resource: opened here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprof/../../gprof/gmon_io.c:581:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprof/../../gprof/gmon_io.c:587:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprof/../../gprof/gmon_io.c:587:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprof/../../gprof/gmon_io.c:612:12: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprof/../../gprof/gmon_io.c:587:7: danger: ‘fopen(filename, "w")’ leaks here; was opened at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  585|       }
#  586|   
#  587|->   if (file_format == FF_AUTO || file_format == FF_MAGIC)
#  588|       {
#  589|         /* Write gmon header.  */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def116]
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprof/../../gprof/gmon_io.c:587:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "w")’
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprof/../../gprof/gmon_io.c:580:9: acquire_memory: allocated here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprof/../../gprof/gmon_io.c:581:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprof/../../gprof/gmon_io.c:587:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprof/../../gprof/gmon_io.c:587:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprof/../../gprof/gmon_io.c:612:12: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprof/../../gprof/gmon_io.c:587:7: danger: ‘fopen(filename, "w")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  585|       }
#  586|   
#  587|->   if (file_format == FF_AUTO || file_format == FF_MAGIC)
#  588|       {
#  589|         /* Write gmon header.  */

Error: GCC_ANALYZER_WARNING (CWE-775): [#def117]
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprof/../../gprof/source.c:119:20: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "r")’
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprof/../../gprof/source.c:118:13: acquire_resource: opened here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprof/../../gprof/source.c:119:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprof/../../gprof/source.c:121:10: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprof/../../gprof/source.c:177:6: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprof/../../gprof/source.c:183:18: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprof/../../gprof/source.c:119:20: danger: ‘fopen(fname, "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  117|   
#  118|         ifp = fopen (fname, FOPEN_RB);
#  119|->       if (fname != sf->name)
#  120|   	free (fname);
#  121|         if (ifp)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def118]
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprof/../../gprof/source.c:119:20: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, "r")’
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprof/../../gprof/source.c:118:13: acquire_memory: allocated here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprof/../../gprof/source.c:119:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprof/../../gprof/source.c:121:10: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprof/../../gprof/source.c:177:6: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprof/../../gprof/source.c:183:18: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprof/../../gprof/source.c:119:20: danger: ‘fopen(fname, "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  117|   
#  118|         ifp = fopen (fname, FOPEN_RB);
#  119|->       if (fname != sf->name)
#  120|   	free (fname);
#  121|         if (ifp)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def119]
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/iotrace.c:2924:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘guard’
/usr/include/stdio.h:816:12: enter_function: entry to ‘fgetpos’
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/iotrace.c:2956:1: call_function: calling ‘gprofng_fgetpos’ from ‘fgetpos’
# 2922|     if (RECHCK_REENTRANCE (guard))
# 2923|       {
# 2924|->       POP_REENTRANCE (guard);
# 2925|         return ret;
# 2926|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def120]
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/iotrace.c:2972:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘guard’
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/iotrace.c:2965:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/iotrace.c:2970:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/iotrace.c:2970:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/iotrace.c:2970:7: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/iotrace.c:2972:7: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/iotrace.c:2972:7: danger: dereference of NULL ‘guard’
# 2970|     if (RECHCK_REENTRANCE (guard))
# 2971|       {
# 2972|->       POP_REENTRANCE (guard);
# 2973|         return ret;
# 2974|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def121]
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/iotrace.c:3022:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘guard’
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/iotrace.c:3015:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/iotrace.c:3020:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/iotrace.c:3020:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/iotrace.c:3020:7: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/iotrace.c:3022:7: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/iotrace.c:3022:7: danger: dereference of NULL ‘guard’
# 3020|     if (RECHCK_REENTRANCE (guard))
# 3021|       {
# 3022|->       POP_REENTRANCE (guard);
# 3023|         return ret;
# 3024|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def122]
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/iotrace.c:3071:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘guard’
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/iotrace.c:3064:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/iotrace.c:3069:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/iotrace.c:3069:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/iotrace.c:3069:7: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/iotrace.c:3071:7: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/iotrace.c:3071:7: danger: dereference of NULL ‘guard’
# 3069|     if (RECHCK_REENTRANCE (guard))
# 3070|       {
# 3071|->       POP_REENTRANCE (guard);
# 3072|         return ret;
# 3073|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def123]
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/iotrace.c:3122:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘guard’
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/iotrace.c:3115:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/iotrace.c:3120:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/iotrace.c:3120:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/iotrace.c:3120:7: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/iotrace.c:3122:7: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/iotrace.c:3122:7: danger: dereference of NULL ‘guard’
# 3120|     if (RECHCK_REENTRANCE (guard))
# 3121|       {
# 3122|->       POP_REENTRANCE (guard);
# 3123|         return ret;
# 3124|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def124]
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/iotrace.c:3157:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘guard’
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/iotrace.c:3150:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/iotrace.c:3155:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/iotrace.c:3155:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/iotrace.c:3155:7: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/iotrace.c:3157:7: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/iotrace.c:3157:7: danger: dereference of NULL ‘guard’
# 3155|     if (RECHCK_REENTRANCE (guard))
# 3156|       {
# 3157|->       POP_REENTRANCE (guard);
# 3158|         return ptr;
# 3159|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def125]
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/iotrace.c:3191:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘guard’
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/iotrace.c:3184:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/iotrace.c:3189:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/iotrace.c:3189:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/iotrace.c:3189:7: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/iotrace.c:3191:7: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/iotrace.c:3191:7: danger: dereference of NULL ‘guard’
# 3189|     if (RECHCK_REENTRANCE (guard))
# 3190|       {
# 3191|->       POP_REENTRANCE (guard);
# 3192|         return ret;
# 3193|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def126]
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/iotrace.c:3226:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘guard’
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/iotrace.c:3219:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/iotrace.c:3224:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/iotrace.c:3224:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/iotrace.c:3224:7: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/iotrace.c:3226:7: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/iotrace.c:3226:7: danger: dereference of NULL ‘guard’
# 3224|     if (RECHCK_REENTRANCE (guard))
# 3225|       {
# 3226|->       POP_REENTRANCE (guard);
# 3227|         return ret;
# 3228|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def127]
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/linetrace.c:1504:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘guard’
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/linetrace.c:1526:1: enter_function: entry to ‘__collector_posix_spawnp_2_2’
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/linetrace.c:1526:1: call_function: calling ‘gprofng_posix_spawnp’ from ‘__collector_posix_spawnp_2_2’
# 1502|     TprintfT (DBG_LT0, "__collector_posix_spawnp(): coll_env=0x%p\n", coll_env);
# 1503|     __collector_env_printall ("__collector_posix_spawnp", coll_env);
# 1504|->   PUSH_REENTRANCE (guard);
# 1505|     int ret = real_posix_spawnp (pidp, path, file_actions, attrp, argv, coll_env);
# 1506|     POP_REENTRANCE (guard);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def128]
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/synctrace.c:727:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘guard’
/usr/include/pthread.h:219:12: enter_function: entry to ‘pthread_join’
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/synctrace.c:757:1: call_function: calling ‘gprofng_pthread_join’ from ‘pthread_join’
#  725|     if (RECHCK_NREENTRANCE (guard))
#  726|       {
#  727|->       POP_REENTRANCE (guard);
#  728|         return ret;
#  729|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def129]
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/synctrace.c:772:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘guard’
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/synctrace.c:764:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/synctrace.c:770:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/synctrace.c:770:7: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/synctrace.c:772:7: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/libcollector/../../../gprofng/libcollector/synctrace.c:772:7: danger: dereference of NULL ‘guard’
#  770|     if (RECHCK_NREENTRANCE (guard))
#  771|       {
#  772|->       POP_REENTRANCE (guard);
#  773|         return ret;
#  774|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def130]
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/src/../../../gprofng/src/../common/hwcfuncs.c:410:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dsp’
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/src/../../../gprofng/src/../common/hwcfuncs.c:246:1: enter_function: entry to ‘process_data_descriptor’
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/src/../../../gprofng/src/../common/hwcfuncs.c:257:9: release_memory: ‘dsp’ is NULL
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/src/../../../gprofng/src/../common/hwcfuncs.c:260:3: call_function: calling ‘clear_hwcdefs’ from ‘process_data_descriptor’
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/src/../../../gprofng/src/../common/hwcfuncs.c:260:3: return_function: returning to ‘process_data_descriptor’ from ‘clear_hwcdefs’
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/src/../../../gprofng/src/../common/hwcfuncs.c:261:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/src/../../../gprofng/src/../common/hwcfuncs.c:267:17: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/src/../../../gprofng/src/../common/hwcfuncs.c:279:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/src/../../../gprofng/src/../common/hwcfuncs.c:284:32: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/src/../../../gprofng/src/../common/hwcfuncs.c:285:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/src/../../../gprofng/src/../common/hwcfuncs.c:290:28: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/src/../../../gprofng/src/../common/hwcfuncs.c:291:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/src/../../../gprofng/src/../common/hwcfuncs.c:296:29: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/src/../../../gprofng/src/../common/hwcfuncs.c:297:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/src/../../../gprofng/src/../common/hwcfuncs.c:305:13: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/src/../../../gprofng/src/../common/hwcfuncs.c:305:7: release_memory: ‘dsp’ is NULL
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/src/../../../gprofng/src/../common/hwcfuncs.c:306:10: branch_true: following ‘true’ branch...
 branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/src/../../../gprofng/src/../common/hwcfuncs.c:410:7: release_memory: ‘dsp’ is NULL
binutils-with-gold-2.44/build-x86_64-redhat-linux/gprofng/src/../../../gprofng/src/../common/hwcfuncs.c:410:7: danger: dereference of NULL ‘dsp’
#  408|       }
#  409|   
#  410|->   if (*dsp)
#  411|       err = HWCFUNCS_ERROR_HWCARGS;
#  412|     if (err != 0)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def131]
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldelfgen.c:60:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘os’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldelfgen.c:259:1: enter_function: entry to ‘ldelf_map_segments’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldelfgen.c:269:10: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldelfgen.c:272:15: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldelfgen.c:272:14: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldelfgen.c:274:32: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldelfgen.c:274:15: call_function: calling ‘link_order_scan’ from ‘ldelf_map_segments’
#   58|   			      lang_output_section_statement_type *os)
#   59|   {
#   60|->   struct os_sections *os_info = os->data;
#   61|     asection *s;
#   62|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def132]
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldexp.c:322:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘h’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldexp.c:1670:1: enter_function: entry to ‘exp_get_abs_int’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldexp.c:1672:6: branch_true: following ‘true’ branch (when ‘tree’ is non-NULL)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldexp.c:1674:7: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldexp.c:1674:7: call_function: calling ‘exp_fold_tree_no_dot’ from ‘exp_get_abs_int’
#  320|     ret = true;
#  321|     if (!h->ldscript_def
#  322|->       && (h->type == bfd_link_hash_defined
#  323|   	  || h->type == bfd_link_hash_defweak
#  324|   	  || h->type == bfd_link_hash_common))

Error: GCC_ANALYZER_WARNING (CWE-476): [#def133]
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldexp.c:1214:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘h’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldexp.c:1670:1: enter_function: entry to ‘exp_get_abs_int’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldexp.c:1672:6: branch_true: following ‘true’ branch (when ‘tree’ is non-NULL)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldexp.c:1674:7: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldexp.c:1674:7: call_function: calling ‘exp_fold_tree_no_dot’ from ‘exp_get_abs_int’
# 1212|                    that it can be seen by other expressions.  */
# 1213|                 if (!expld.result.valid_p
# 1214|->                   && h->type == bfd_link_hash_new)
# 1215|                   {
# 1216|                     expld.result.value = 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def134]
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldexp.c:1241:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘h’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldexp.c:1670:1: enter_function: entry to ‘exp_get_abs_int’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldexp.c:1672:6: branch_true: following ‘true’ branch (when ‘tree’ is non-NULL)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldexp.c:1674:7: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldexp.c:1674:7: call_function: calling ‘exp_fold_tree_no_dot’ from ‘exp_get_abs_int’
# 1239|   		  if (expld.phase == lang_fixed_phase_enum)
# 1240|   		    {
# 1241|-> 		      if (h->type == bfd_link_hash_defined)
# 1242|   			{
# 1243|   			  expld.result.value = h->u.def.value;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def135]
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldexp.c:1249:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘h’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldexp.c:1670:1: enter_function: entry to ‘exp_get_abs_int’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldexp.c:1672:6: branch_true: following ‘true’ branch (when ‘tree’ is non-NULL)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldexp.c:1674:7: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldexp.c:1674:7: call_function: calling ‘exp_fold_tree_no_dot’ from ‘exp_get_abs_int’
# 1247|   		  else
# 1248|   		    {
# 1249|-> 		      h->type = bfd_link_hash_defined;
# 1250|   		      h->u.def.value = expld.result.value;
# 1251|   		      h->u.def.section = expld.result.section;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def136]
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:202:3: warning[-Wanalyzer-null-argument]: use of NULL ‘fopen(config.dependency_file, "w")’ where non-null expected
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:194:9: acquire_memory: allocated here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:195:6: release_memory: assuming ‘fopen(config.dependency_file, "w")’ is NULL
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:195:6: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:197:7: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:202:3: danger: argument 1 (‘fopen(config.dependency_file, "w")’) NULL where non-null expected
#  200|       }
#  201|   
#  202|->   fprintf (out, "%s:", output_filename);
#  203|   
#  204|     for (dep = dependency_files; dep != NULL; dep = dep->next)

Error: GCC_ANALYZER_WARNING (CWE-688): [#def137]
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:635:27: warning[-Wanalyzer-null-argument]: use of NULL ‘fopen(output_filename, "r")’ where non-null expected
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:273:1: enter_function: entry to ‘main’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:309:16: call_function: calling ‘get_sysroot’ from ‘main’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:309:16: return_function: returning to ‘main’ from ‘get_sysroot’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:328:6: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:341:3: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:608:10: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:609:14: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:608:11: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:611:21: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:626:21: acquire_memory: allocated here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:629:18: release_memory: assuming ‘fopen(output_filename, "r")’ is NULL
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:629:18: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:630:17: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:632:18: branch_false: following ‘false’ branch...
 branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:635:27: danger: argument 4 (‘fopen(output_filename, "r")’) NULL where non-null expected
#  633|   		einfo (_("%F%P: unable to open for destination of copy `%s'\n"),
#  634|   		       dst_name);
#  635|-> 	      while ((l = fread (buf, 1, bsize, src)) > 0)
#  636|   		{
#  637|   		  int done = fwrite (buf, 1, l, dst);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def138]
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:637:30: warning[-Wanalyzer-null-argument]: use of NULL ‘fopen(xmalloc((long unsigned int)(len + 5)), "w")’ where non-null expected
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:273:1: enter_function: entry to ‘main’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:309:16: call_function: calling ‘get_sysroot’ from ‘main’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:309:16: return_function: returning to ‘main’ from ‘get_sysroot’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:328:6: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:341:3: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:608:10: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:609:14: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:608:11: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:611:21: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:627:21: acquire_memory: allocated here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:629:18: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:632:18: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:632:18: release_memory: assuming ‘fopen(xmalloc((long unsigned int)(len + 5)), "w")’ is NULL
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:632:18: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:633:24: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:635:22: branch_true: following ‘true’ branch (when ‘l > 0’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:637:30: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:637:30: danger: argument 4 (‘fopen(xmalloc((long unsigned int)(len + 5)), "w")’) NULL where non-null expected
#  635|   	      while ((l = fread (buf, 1, bsize, src)) > 0)
#  636|   		{
#  637|-> 		  int done = fwrite (buf, 1, l, dst);
#  638|   
#  639|   		  if (done != l)

Error: GCC_ANALYZER_WARNING (CWE-688): [#def139]
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:644:19: warning[-Wanalyzer-null-argument]: use of NULL ‘fopen(xmalloc((long unsigned int)(len + 5)), "w")’ where non-null expected
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:273:1: enter_function: entry to ‘main’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:309:16: call_function: calling ‘get_sysroot’ from ‘main’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:309:16: return_function: returning to ‘main’ from ‘get_sysroot’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:328:6: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:341:3: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:608:10: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:609:14: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:608:11: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:611:21: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:627:21: acquire_memory: allocated here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:629:18: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:632:18: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:632:18: release_memory: assuming ‘fopen(xmalloc((long unsigned int)(len + 5)), "w")’ is NULL
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:632:18: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:633:24: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:635:22: branch_false: following ‘false’ branch (when ‘l <= 0’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:643:15: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldmain.c:644:19: danger: argument 1 (‘fopen(xmalloc((long unsigned int)(len + 5)), "w")’) NULL where non-null expected
#  642|   
#  643|   	      fclose (src);
#  644|-> 	      if (fclose (dst) == EOF)
#  645|   		einfo (_("%P: error closing file `%s'\n"), dst_name);
#  646|   	      free (dst_name);

Error: GCC_ANALYZER_WARNING (CWE-787): [#def140]
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldwrite.c:322:17: warning[-Wanalyzer-out-of-bounds]: buffer over-read
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldwrite.c:322:10: branch_true: following ‘true’ branch (when ‘len != 0’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldwrite.c:322:17: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldwrite.c:322:17: danger: read of 1 byte at offset ‘(sizetype)<unknown>’ exceeds ‘*<unknown>’
#  320|     memcpy (tname, name, len + 1);
#  321|     /* Remove a dotted number suffix, from a previous split link. */
#  322|->   while (len && ISDIGIT (tname[len-1]))
#  323|       len--;
#  324|     if (len > 1 && tname[len-1] == '.')

Error: GCC_ANALYZER_WARNING (CWE-787): [#def141]
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldwrite.c:324:18: warning[-Wanalyzer-out-of-bounds]: buffer over-read
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldwrite.c:322:10: branch_true: following ‘true’ branch (when ‘len != 0’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldwrite.c:322:17: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldwrite.c:322:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldwrite.c:324:6: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldwrite.c:324:6: branch_true: following ‘true’ branch (when ‘len > 1’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldwrite.c:324:24: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldwrite.c:324:18: danger: out-of-bounds read on ‘*<unknown>’
#  322|     while (len && ISDIGIT (tname[len-1]))
#  323|       len--;
#  324|->   if (len > 1 && tname[len-1] == '.')
#  325|       /* It was a dotted number. */
#  326|       tname[len-1] = 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def142]
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldwrite.c:498:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldwrite.c:431:8: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldwrite.c:434:11: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldwrite.c:445:55: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldwrite.c:450:15: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldwrite.c:471:14: branch_false: following ‘false’ branch (when ‘l’ is NULL)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldwrite.c:527:15: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldwrite.c:445:55: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldwrite.c:450:15: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldwrite.c:471:14: branch_true: following ‘true’ branch (when ‘l’ is non-NULL)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldwrite.c:472:19: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldwrite.c:471:15: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldwrite.c:482:19: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/ldwrite.c:498:15: danger: dereference of NULL ‘clone_section(abfd,  cursor, *original_sec.name, & count)’
#  496|   
#  497|   	      shift_offset = p->offset;
#  498|-> 	      n->size = cursor->size - shift_offset;
#  499|   	      cursor->size = shift_offset;
#  500|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def143]
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/lexsup.c:1454:39: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘optarg2’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/lexsup.c:696:15: branch_true: following ‘true’ branch (when ‘i != 208’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/lexsup.c:698:11: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/lexsup.c:698:10: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/lexsup.c:700:20: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/lexsup.c:702:14: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/lexsup.c:705:24: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/lexsup.c:707:18: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/lexsup.c:714:11: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/lexsup.c:714:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/lexsup.c:696:33: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/lexsup.c:822:10: branch_false: following ‘false’ branch (when ‘optc != -1’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/lexsup.c:825:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/lexsup.c:1447:16: branch_true: following ‘true’ branch (when ‘optarg2’ is NULL)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/lexsup.c:1448:22: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/lexsup.c:1454:16: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/lexsup.c:1454:39: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/lexsup.c:1454:39: danger: dereference of NULL ‘optarg2’
# 1452|   
# 1453|   	    /* So far so good.  Are all the args present?  */
# 1454|-> 	    if ((*optarg == '\0') || (*optarg2 == '\0'))
# 1455|   	      einfo (_("%F%P: missing argument(s) to option"
# 1456|   		       " \"--section-start\"\n"));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def144]
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/pe-dll.c:612:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘abfd’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/pe-dll.c:3689:1: enter_function: entry to ‘pep_dll_build_sections’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/pe-dll.c:3691:3: call_function: calling ‘pep_dll_id_target’ from ‘pep_dll_build_sections’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/pe-dll.c:3691:3: return_function: returning to ‘pep_dll_build_sections’ from ‘pep_dll_id_target’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/pe-dll.c:3693:3: call_function: calling ‘process_def_file_and_drectve’ from ‘pep_dll_build_sections’
#  610|   
#  611|         if (pe_dll_extra_pe_debug)
#  612|-> 	printf ("considering exporting: %s, abfd=%p, abfd->my_arc=%p\n",
#  613|   		n, abfd, abfd->my_archive);
#  614|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def145]
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/pe-dll.c:896:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/pe-dll.c:3689:1: enter_function: entry to ‘pep_dll_build_sections’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/pe-dll.c:3691:3: call_function: calling ‘pep_dll_id_target’ from ‘pep_dll_build_sections’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/pe-dll.c:3691:3: return_function: returning to ‘pep_dll_build_sections’ from ‘pep_dll_id_target’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/pe-dll.c:3693:3: call_function: calling ‘process_def_file_and_drectve’ from ‘pep_dll_build_sections’
#  894|   	      char *tmp = xstrdup (pe_def_file->exports[i].name + lead_at);
#  895|   
#  896|-> 	      *(strchr (tmp, '@')) = 0;
#  897|   	      if (auto_export (NULL, pe_def_file, tmp))
#  898|   		def_file_add_export (pe_def_file, tmp,

Error: GCC_ANALYZER_WARNING (CWE-787): [#def146]
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/pe-dll.c:1133:5: warning[-Wanalyzer-out-of-bounds]: buffer overflow
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/pe-dll.c:3689:1: enter_function: entry to ‘pep_dll_build_sections’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/pe-dll.c:3691:3: call_function: calling ‘pep_dll_id_target’ from ‘pep_dll_build_sections’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/pe-dll.c:3691:3: return_function: returning to ‘pep_dll_build_sections’ from ‘pep_dll_id_target’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/pe-dll.c:3693:3: call_function: calling ‘process_def_file_and_drectve’ from ‘pep_dll_build_sections’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/pe-dll.c:3693:3: return_function: returning to ‘pep_dll_build_sections’ from ‘process_def_file_and_drectve’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/pe-dll.c:3706:3: call_function: calling ‘generate_edata’ from ‘pep_dll_build_sections’
# 1131|     exported_symbols = xmalloc (export_table_size * sizeof (int));
# 1132|     for (i = 0; i < export_table_size; i++)
# 1133|->     exported_symbols[i] = -1;
# 1134|   
# 1135|     /* Now we need to assign ordinals to those that don't have them.  */

Error: GCC_ANALYZER_WARNING (CWE-476): [#def147]
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/pe-dll.c:3130:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/pe-dll.c:3099:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/pe-dll.c:3106:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/pe-dll.c:3106:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/pe-dll.c:3109:6: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/pe-dll.c:3129:10: branch_true: following ‘true’ branch (when ‘at’ is non-NULL)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/pe-dll.c:3130:10: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/pe-dll.c:3130:9: danger: dereference of NULL ‘strchr(xmalloc(strlen(name) + 3), 64)’
# 3128|   	}
# 3129|         if (at)
# 3130|-> 	*strchr (lname, '@') = 0;
# 3131|         key.key = lname;
# 3132|         kv = bsearch (&key, udef_table, undef_count,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def148]
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/plugin.c:1141:12: warning[-Wanalyzer-jump-through-null]: jump through null pointer
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/plugin.c:1103:1: enter_function: entry to ‘plugin_load_plugins’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/plugin.c:1110:6: branch_false: following ‘false’ branch (when ‘curplug’ is non-NULL)...
 branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/plugin.c:1115:10: branch_true: following ‘true’ branch (when ‘curplug’ is non-NULL)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/plugin.c:1117:11: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/plugin.c:1124:3: call_function: calling ‘set_tv_header’ from ‘plugin_load_plugins’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/plugin.c:1124:3: return_function: returning to ‘plugin_load_plugins’ from ‘set_tv_header’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/plugin.c:1128:10: branch_true: following ‘true’ branch (when ‘curplug’ is non-NULL)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/plugin.c:1133:44: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/plugin.c:1134:10: branch_true: following ‘true’ branch (when ‘onloadfn’ is NULL)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/plugin.c:1135:46: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/plugin.c:1136:10: branch_true: following ‘true’ branch (when ‘onloadfn’ is NULL)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/plugin.c:1137:9: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/plugin.c:1141:12: danger: jump through null pointer here
# 1139|         set_tv_plugin_args (curplug, &my_tv[tv_header_size]);
# 1140|         called_plugin = curplug;
# 1141|->       rv = (*onloadfn) (my_tv);
# 1142|         called_plugin = NULL;
# 1143|         if (rv != LDPS_OK)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def149]
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/plugin.c:1307:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/plugin.c:1220:1: enter_function: entry to ‘plugin_object_p’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/plugin.c:1228:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/plugin.c:1235:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/plugin.c:1253:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/plugin.c:1256:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/plugin.c:1264:3: release_memory: ‘0’ is NULL
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/plugin.c:1277:7: call_function: calling ‘plugin_call_claim_file’ from ‘plugin_object_p’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/plugin.c:1277:7: return_function: returning to ‘plugin_object_p’ from ‘plugin_call_claim_file’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/plugin.c:1282:6: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/plugin.c:1283:11: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/plugin.c:1282:7: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/plugin.c:1293:7: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/plugin.c:1293:7: call_function: calling ‘release_plugin_file_descriptor’ from ‘plugin_object_p’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/plugin.c:1293:7: return_function: returning to ‘plugin_object_p’ from ‘release_plugin_file_descriptor’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/plugin.c:1296:6: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/plugin.c:1301:10: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/plugin.c:1305:7: release_memory: ‘*ibfd.plugin_dummy_bfd’ is NULL
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/plugin.c:1307:7: danger: dereference of NULL ‘plugin_get_ir_dummy_bfd(*ibfd.filename,  ibfd)’
# 1305|         ibfd->plugin_dummy_bfd = abfd;
# 1306|         bfd_make_readable (abfd);
# 1307|->       abfd->no_export = ibfd->no_export;
# 1308|         return plugin_cleanup;
# 1309|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def150]
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/testplug.c:573:10: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/testplug.c:567:6: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/testplug.c:569:22: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/testplug.c:569:22: acquire_memory: allocated here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/testplug.c:571:10: branch_false: following ‘false’ branch (when ‘buffer’ is non-NULL)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/testplug.c:573:17: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/testplug.c:573:10: branch_true: following ‘true’ branch...
 branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/testplug.c:573:10: danger: ‘buffer’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  571|         if (buffer == NULL)
#  572|           return LDPS_ERR;
#  573|->       if (read (file->fd, buffer, bytes_to_read_before_claim) < 0)
#  574|           return LDPS_ERR;
#  575|         free (buffer);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def151]
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../bfd/bfd.h:2327:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘abfd’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/pe-dll.c:3689:1: enter_function: entry to ‘pep_dll_build_sections’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/pe-dll.c:3691:3: call_function: calling ‘pep_dll_id_target’ from ‘pep_dll_build_sections’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/pe-dll.c:3691:3: return_function: returning to ‘pep_dll_build_sections’ from ‘pep_dll_id_target’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/../../ld/pe-dll.c:3693:3: call_function: calling ‘process_def_file_and_drectve’ from ‘pep_dll_build_sections’
# 2325|   bfd_get_filename (const bfd *abfd)
# 2326|   {
# 2327|->   return abfd->filename;
# 2328|   }
# 2329|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def152]
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/deffilep.c:1325:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/deffilep.y:1050:1: enter_function: entry to ‘def_file_add_directive’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/deffilep.y:1059:10: branch_true: following ‘true’ branch (when ‘param < pend’)...
 branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/deffilep.y:1061:14: branch_true: following ‘true’ branch (when ‘param < pend’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/deffilep.y:1062:11: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/deffilep.y:1065:10: branch_false: following ‘false’ branch (when ‘param != pend’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/deffilep.y:1073:12: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/deffilep.y:1080:19: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/deffilep.y:1082:10: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/deffilep.y:1084:7: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/deffilep.y:1085:11: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/deffilep.y:1084:8: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/deffilep.y:1086:17: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/deffilep.y:1084:8: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/deffilep.y:1088:8: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/deffilep.y:1092:12: call_function: calling ‘def_parse’ from ‘def_file_add_directive’

Error: GCC_ANALYZER_WARNING (CWE-476): [#def153]
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ei386pe.c:1086:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ei386pe.c:1065:40: branch_true: following ‘true’ branch (when ‘undef’ is non-NULL)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ei386pe.c:1066:9: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ei386pe.c:1066:8: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ei386pe.c:1068:22: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ei386pe.c:1077:12: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ei386pe.c:1081:27: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ei386pe.c:1085:16: branch_true: following ‘true’ branch (when ‘at’ is non-NULL)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ei386pe.c:1086:17: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ei386pe.c:1086:15: danger: dereference of NULL ‘strchr(xstrdup(name), 64)’
# 1084|   	      *cname = '_';
# 1085|   	    if (at)
# 1086|-> 	      * strchr (cname, '@') = 0;
# 1087|   	    sym = bfd_link_hash_lookup (link_info.hash, cname, false, false, true);
# 1088|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def154]
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldgram.c:2470:11: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldgram.c:2432:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldgram.c:2496:6: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldgram.c:2496:6: branch_false: following ‘false’ branch (when ‘yystate != 20’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldgram.c:2499:3: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldgram.c:2511:6: branch_false: following ‘false’ branch (when ‘yyn != -782’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldgram.c:2517:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldgram.c:2517:6: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldgram.c:2519:7: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldgram.c:2529:11: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldgram.c:2541:17: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldgram.c:2548:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldgram.c:2551:6: branch_false: following ‘false’ branch (when ‘yyn > 0’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldgram.c:2561:6: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldgram.c:2561:6: branch_false: following ‘false’ branch (when ‘yyerrstatus == 0’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldgram.c:2565:3: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldgram.c:2432:6: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldgram.c:2438:34: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldgram.c:2461:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldgram.c:2463:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldgram.c:2470:11: acquire_memory: allocated here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldgram.c:2472:12: branch_false: following ‘false’ branch (when ‘yyptr’ is non-NULL)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldgram.c:2474:9: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldgram.c:2477:12: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldgram.c:2482:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldgram.c:2490:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldgram.c:2496:6: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldgram.c:2496:6: branch_false: following ‘false’ branch (when ‘yystate != 20’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldgram.c:2499:3: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldgram.c:2517:6: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldgram.c:2519:7: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldgram.c:2548:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldgram.c:2551:6: branch_false: following ‘false’ branch (when ‘yyn > 0’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldgram.c:2561:6: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldgram.c:2561:6: branch_false: following ‘false’ branch (when ‘yyerrstatus == 0’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldgram.c:2565:3: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldgram.c:2430:3: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldgram.c:2432:12: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldgram.c:2432:6: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldgram.c:2438:34: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldgram.c:2461:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldgram.c:2463:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldgram.c:2470:11: danger: ‘yyptr’ leaks here; was allocated at [(21)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/20)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def155]
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldgram.c:2474:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldgram.c:2432:6: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldgram.c:2438:34: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldgram.c:2461:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldgram.c:2463:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldgram.c:2472:12: branch_false: following ‘false’ branch (when ‘yyptr’ is non-NULL)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldgram.c:2474:9: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldgram.c:2474:9: danger: use of uninitialized value ‘yyss’ here

Error: GCC_ANALYZER_WARNING (CWE-401): [#def156]
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldlex.c:3126:5: warning[-Wanalyzer-malloc-leak]: leak of ‘*b.yy_ch_buf’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldlex.l:689:1: enter_function: entry to ‘comment’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldlex.l:695:11: call_function: calling ‘input’ from ‘comment’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def157]
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldlex.c:3133:5: warning[-Wanalyzer-malloc-leak]: leak of ‘*b.yy_ch_buf’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldlex.l:689:1: enter_function: entry to ‘comment’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldlex.l:700:8: call_function: calling ‘input’ from ‘comment’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def158]
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldlex.c:3361:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldlex.l:507:1: enter_function: entry to ‘lex_push_file’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldlex.l:516:38: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldlex.l:516:38: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldlex.l:522:3: call_function: calling ‘yy_create_buffer’ from ‘lex_push_file’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldlex.l:522:3: return_function: returning to ‘lex_push_file’ from ‘yy_create_buffer’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldlex.l:522:3: call_function: calling ‘yy_switch_to_buffer’ from ‘lex_push_file’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def159]
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldlex.c:3411:5: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldlex.l:507:1: enter_function: entry to ‘lex_push_file’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldlex.l:516:38: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldlex.l:516:3: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldlex.l:522:3: call_function: calling ‘yy_create_buffer’ from ‘lex_push_file’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def160]
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldlex.c:3491:12: warning[-Wanalyzer-malloc-leak]: leak of ‘yy_create_buffer(file, 16384)’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldlex.l:507:1: enter_function: entry to ‘lex_push_file’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldlex.l:516:38: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldlex.l:516:38: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldlex.l:522:3: call_function: calling ‘yy_create_buffer’ from ‘lex_push_file’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldlex.l:522:3: return_function: returning to ‘lex_push_file’ from ‘yy_create_buffer’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldlex.l:522:3: call_function: calling ‘yy_switch_to_buffer’ from ‘lex_push_file’

Error: GCC_ANALYZER_WARNING (CWE-401): [#def161]
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldlex.c:3665:25: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(n)’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldlex.c:3649:17: enter_function: entry to ‘yy_scan_bytes’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldlex.c:3658:17: call_function: inlined call to ‘yyalloc’ from ‘yy_scan_bytes’
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldlex.c:3659:5: branch_false: following ‘false’ branch...
 branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/ld/ldlex.c:3667:6: call_function: calling ‘yy_scan_buffer’ from ‘yy_scan_bytes’

Error: GCC_ANALYZER_WARNING (CWE-457): [#def162]
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-archive.c:768:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘err’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-archive.c:650:1: enter_function: entry to ‘ctf_dict_open_cached’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../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-122): [#def163]
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-hash.c:186:7: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-hash.c:164:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-hash.c:168:17: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-hash.c:171:6: branch_false: following ‘false’ branch (when ‘dynhash’ is non-NULL)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-hash.c:174:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-hash.c:174:6: branch_true: following ‘true’ branch...
 branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-hash.c:177:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-hash.c:184:6: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-hash.c:184:6: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-hash.c:186:7: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../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): [#def164]
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-hash.c:187:7: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-hash.c:164:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-hash.c:168:17: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-hash.c:171:6: branch_false: following ‘false’ branch (when ‘dynhash’ is non-NULL)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-hash.c:174:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-hash.c:174:6: branch_true: following ‘true’ branch...
 branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-hash.c:177:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-hash.c:184:6: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-hash.c:184:6: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-hash.c:186:7: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../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-131): [#def165]
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-hash.c:233:11: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-hash.c:218:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-hash.c:224:8: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-hash.c:224:6: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-hash.c:228:11: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-hash.c:228:10: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-hash.c:232:21: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-hash.c:233:11: danger: assigned to ‘ctf_helem_t *’ {{aka ‘struct ctf_helem *’}} here; ‘sizeof (ctf_helem_t {{aka struct ctf_helem}})’ is ‘24’
#  231|   	{
#  232|   	  void *p = malloc (offsetof (ctf_helem_t, owner));
#  233|-> 	  *slot = p;
#  234|   	}
#  235|         if (!*slot)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def166]
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-inlines.h:96:3: warning[-Wanalyzer-malloc-leak]: leak of ‘files’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-link.c:1810:6: branch_false: following ‘false’ branch (when ‘names’ is non-NULL)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-link.c:1817:61: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-link.c:1817:6: branch_false: following ‘false’ branch (when ‘files’ is non-NULL)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-link.c:1829:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-link.c:1829:6: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-link.c:1833:13: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-link.c:1837:10: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-link.c:1840:55: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-link.c:1839:14: branch_true: following ‘true’ branch (when ‘dynames’ is NULL)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-link.c:1842:15: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-link.c:1843:15: call_function: inlined call to ‘ctf_set_errno’ from ‘ctf_accumulate_archive_names’
#   94|   ctf_set_errno (ctf_dict_t *fp, int err)
#   95|   {
#   96|->   fp->ctf_errno = err;
#   97|     /* Don't rely on CTF_ERR here as it will not properly sign extend on 64-bit
#   98|        Windows ABI.  */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def167]
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-inlines.h:96:3: warning[-Wanalyzer-malloc-leak]: leak of ‘names’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-link.c:1810:6: branch_false: following ‘false’ branch (when ‘names’ is non-NULL)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-link.c:1817:61: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-link.c:1817:6: branch_true: following ‘true’ branch (when ‘files’ is NULL)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-link.c:1819:7: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-link.c:1820:7: call_function: inlined call to ‘ctf_set_errno’ from ‘ctf_accumulate_archive_names’
#   94|   ctf_set_errno (ctf_dict_t *fp, int err)
#   95|   {
#   96|->   fp->ctf_errno = err;
#   97|     /* Don't rely on CTF_ERR here as it will not properly sign extend on 64-bit
#   98|        Windows ABI.  */

Error: GCC_ANALYZER_WARNING (CWE-131): [#def168]
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-lookup.c:590:17: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-lookup.c:1298:1: enter_function: entry to ‘ctf_func_args’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-lookup.c:1303:15: call_function: calling ‘ctf_lookup_by_symbol’ from ‘ctf_func_args’
#  588|     size_t i;
#  589|   
#  590|->   if ((sorted = malloc (len)) == NULL)
#  591|       {
#  592|         ctf_set_errno (fp, ENOMEM);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def169]
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-open.c:1524:14: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-open.c:1442:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-open.c:1443:10: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-open.c:1442:7: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-open.c:1449:31: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-open.c:1465:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-open.c:1469:6: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-open.c:1484:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-open.c:1492:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-open.c:1492:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-open.c:1495:13: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-open.c:1495:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-open.c:1498:3: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-open.c:1500:25: acquire_memory: allocated here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-open.c:1500:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-open.c:1506:15: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-open.c:1507:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-open.c:1510:6: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-open.c:1510:6: branch_false: following ‘false’ branch (when ‘foreign_endian == 0’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-open.c:1512:23: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-open.c:1524:14: danger: ‘<unknown>’ leaks here; was allocated at [(13)](sarif:/runs/0/results/1/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): [#def170]
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-open.c:1524:14: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-open.c:1442:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-open.c:1443:10: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-open.c:1442:7: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-open.c:1449:31: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-open.c:1465:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-open.c:1469:6: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-open.c:1484:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-open.c:1492:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-open.c:1492:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-open.c:1495:13: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-open.c:1495:13: acquire_memory: allocated here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-open.c:1495:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-open.c:1498:3: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-open.c:1500:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-open.c:1506:15: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-open.c:1507:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-open.c:1510:6: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-open.c:1510:6: branch_false: following ‘false’ branch (when ‘foreign_endian == 0’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-open.c:1512:23: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-open.c:1524:14: danger: ‘fp’ leaks here; was allocated at [(11)](sarif:/runs/0/results/0/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): [#def171]
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-string.c:827:3: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-string.c:662:6: branch_false: following ‘false’ branch (when ‘strtab’ is non-NULL)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-string.c:671:21: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-string.c:700:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-string.c:709:32: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-string.c:714:6: branch_false: following ‘false’ branch (when ‘sorttab’ is non-NULL)...
 branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-string.c:740:27: acquire_memory: allocated here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-string.c:740:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-string.c:743:16: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-string.c:745:6: branch_false: following ‘false’ branch (when ‘new_strtab == 0’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-string.c:751:31: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-string.c:760:15: branch_false: following ‘false’ branch (when ‘strtab_count <= i’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-string.c:766:3: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-string.c:790:6: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-string.c:792:7: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libctf/../../libctf/ctf-string.c:827:3: danger: ‘<unknown>’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
#  825|     free (sorttab);
#  826|    err_strtab:
#  827|->   free (strtab);
#  828|     return NULL;
#  829|   }

Error: GCC_ANALYZER_WARNING (CWE-465): [#def172]
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/dyn-string.c:251:6: warning[-Wanalyzer-deref-before-check]: check of ‘dest’ for NULL after already dereferencing it
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/dyn-string.c:244:1: enter_function: entry to ‘dyn_string_insert’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/dyn-string.c:248:6: branch_false: following ‘false’ branch (when ‘src != dest’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/dyn-string.c:251:32: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/dyn-string.c:251:7: call_function: calling ‘dyn_string_resize’ from ‘dyn_string_insert’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/dyn-string.c:251:7: return_function: returning to ‘dyn_string_insert’ from ‘dyn_string_resize’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../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): [#def173]
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/dyn-string.c:274:6: warning[-Wanalyzer-deref-before-check]: check of ‘dest’ for NULL after already dereferencing it
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/dyn-string.c:269:1: enter_function: entry to ‘dyn_string_insert_cstr’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/dyn-string.c:274:7: call_function: calling ‘dyn_string_resize’ from ‘dyn_string_insert_cstr’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/dyn-string.c:274:7: return_function: returning to ‘dyn_string_insert_cstr’ from ‘dyn_string_resize’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../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): [#def174]
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/dyn-string.c:295:6: warning[-Wanalyzer-deref-before-check]: check of ‘dest’ for NULL after already dereferencing it
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/dyn-string.c:291:1: enter_function: entry to ‘dyn_string_insert_char’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/dyn-string.c:295:7: call_function: calling ‘dyn_string_resize’ from ‘dyn_string_insert_char’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/dyn-string.c:295:7: return_function: returning to ‘dyn_string_insert_char’ from ‘dyn_string_resize’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../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): [#def175]
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/dyn-string.c:314:6: warning[-Wanalyzer-deref-before-check]: check of ‘dest’ for NULL after already dereferencing it
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/dyn-string.c:312:1: enter_function: entry to ‘dyn_string_append’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/dyn-string.c:314:7: call_function: calling ‘dyn_string_resize’ from ‘dyn_string_append’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/dyn-string.c:314:7: return_function: returning to ‘dyn_string_append’ from ‘dyn_string_resize’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../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): [#def176]
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/dyn-string.c:332:6: warning[-Wanalyzer-deref-before-check]: check of ‘dest’ for NULL after already dereferencing it
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/dyn-string.c:326:1: enter_function: entry to ‘dyn_string_append_cstr’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/dyn-string.c:332:7: call_function: calling ‘dyn_string_resize’ from ‘dyn_string_append_cstr’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/dyn-string.c:332:7: return_function: returning to ‘dyn_string_append_cstr’ from ‘dyn_string_resize’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../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): [#def177]
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/dyn-string.c:346:6: warning[-Wanalyzer-deref-before-check]: check of ‘dest’ for NULL after already dereferencing it
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/dyn-string.c:343:1: enter_function: entry to ‘dyn_string_append_char’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/dyn-string.c:346:7: call_function: calling ‘dyn_string_resize’ from ‘dyn_string_append_char’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/dyn-string.c:346:7: return_function: returning to ‘dyn_string_append_char’ from ‘dyn_string_resize’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../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: GCC_ANALYZER_WARNING (CWE-127): [#def178]
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/make-relative-prefix.c:192:7: warning[-Wanalyzer-out-of-bounds]: heap-based buffer under-read
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/make-relative-prefix.c:428:1: enter_function: entry to ‘make_relative_prefix_ignore_links’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/make-relative-prefix.c:432:10: call_function: calling ‘make_relative_prefix_1’ from ‘make_relative_prefix_ignore_links’
#  190|     dirs[num_dirs] = NULL;
#  191|   
#  192|->   if (dirs[num_dirs - 1] == NULL)
#  193|       {
#  194|         free_split_directories (dirs);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def179]
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/make-relative-prefix.c:274:23: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘nstore’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/make-relative-prefix.c:428:1: enter_function: entry to ‘make_relative_prefix_ignore_links’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../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-688): [#def180]
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/make-relative-prefix.c:289:19: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘nstore’ where non-null expected
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/make-relative-prefix.c:428:1: enter_function: entry to ‘make_relative_prefix_ignore_links’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/make-relative-prefix.c:432:10: call_function: calling ‘make_relative_prefix_1’ from ‘make_relative_prefix_ignore_links’
#argument 1 of ‘__builtin_strcat’ must be non-null
#  287|   			nstore[endp - startp] = 0;
#  288|   		    }
#  289|-> 		  strcat (nstore, progname);
#  290|   		  if (! access (nstore, X_OK)
#  291|   #ifdef HAVE_HOST_EXECUTABLE_SUFFIX

Error: GCC_ANALYZER_WARNING (CWE-476): [#def181]
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/obstack.c:210:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘new_chunk’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/obstack.c:209:3: release_memory: ‘new_chunk’ is NULL
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../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: GCC_ANALYZER_WARNING (CWE-476): [#def182]
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/simple-object-mach-o.c:1159:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘index’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/simple-object-mach-o.c:1079:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/simple-object-mach-o.c:1110:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/simple-object-mach-o.c:1121:8: branch_true: following ‘true’ branch (when ‘section’ is non-NULL)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/simple-object-mach-o.c:1128:21: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/simple-object-mach-o.c:1157:10: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/simple-object-mach-o.c:1159:17: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/simple-object-mach-o.c:1159:16: release_memory: ‘index’ is NULL
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/simple-object-mach-o.c:1159:11: danger: dereference of NULL ‘index + (long unsigned int)(sect * 4) * 4’
# 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-476): [#def183]
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/simple-object-mach-o.c:1210:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘index’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/simple-object-mach-o.c:1079:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/simple-object-mach-o.c:1110:7: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/simple-object-mach-o.c:1201:6: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/simple-object-mach-o.c:1210:27: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/simple-object-mach-o.c:1210:27: danger: dereference of NULL ‘index’
# 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-476): [#def184]
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/strerror.c:756:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error_names’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/strerror.c:744:1: enter_function: entry to ‘strtoerrno’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/strerror.c:748:6: branch_true: following ‘true’ branch (when ‘name’ is non-NULL)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/strerror.c:750:11: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/strerror.c:750:10: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/strerror.c:752:11: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/strerror.c:752:11: call_function: calling ‘init_error_tables’ from ‘strtoerrno’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/strerror.c:752:11: return_function: returning to ‘strtoerrno’ from ‘init_error_tables’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/strerror.c:754:26: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/strerror.c:756:27: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../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): [#def185]
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/strsignal.c:524:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘signal_names’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/strsignal.c:512:1: enter_function: entry to ‘strtosigno’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/strsignal.c:516:6: branch_true: following ‘true’ branch (when ‘name’ is non-NULL)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/strsignal.c:518:11: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/strsignal.c:518:10: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/strsignal.c:520:11: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/strsignal.c:520:11: call_function: calling ‘init_signal_tables’ from ‘strtosigno’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/strsignal.c:520:11: return_function: returning to ‘strtosigno’ from ‘init_signal_tables’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/strsignal.c:522:23: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../libiberty/strsignal.c:524:28: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libiberty/../../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: GCC_ANALYZER_WARNING (CWE-688): [#def186]
binutils-with-gold-2.44/build-x86_64-redhat-linux/libsframe/../../libsframe/sframe-dump.c:76:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘flags_str’ where non-null expected
binutils-with-gold-2.44/build-x86_64-redhat-linux/libsframe/../../libsframe/sframe-dump.c:222:1: enter_function: entry to ‘dump_sframe’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libsframe/../../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): [#def187]
binutils-with-gold-2.44/build-x86_64-redhat-linux/libsframe/../../libsframe/sframe-dump.c:81:11: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘flags_str’ where non-null expected
binutils-with-gold-2.44/build-x86_64-redhat-linux/libsframe/../../libsframe/sframe-dump.c:222:1: enter_function: entry to ‘dump_sframe’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libsframe/../../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): [#def188]
binutils-with-gold-2.44/build-x86_64-redhat-linux/libsframe/../../libsframe/sframe-dump.c:85:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘flags_str’ where non-null expected
binutils-with-gold-2.44/build-x86_64-redhat-linux/libsframe/../../libsframe/sframe-dump.c:222:1: enter_function: entry to ‘dump_sframe’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libsframe/../../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: GCC_ANALYZER_WARNING (CWE-476): [#def189]
binutils-with-gold-2.44/build-x86_64-redhat-linux/libsframe/../../libsframe/sframe.c:110:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘hp’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libsframe/../../libsframe/sframe.c:1390:1: enter_function: entry to ‘sframe_encoder_get_hdr_size’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libsframe/../../libsframe/sframe.c:1393:9: call_function: inlined call to ‘sframe_encoder_get_header’ from ‘sframe_encoder_get_hdr_size’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libsframe/../../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): [#def190]
binutils-with-gold-2.44/build-x86_64-redhat-linux/libsframe/../../libsframe/sframe.c:870:12: warning[-Wanalyzer-malloc-leak]: leak of ‘dctx’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libsframe/../../libsframe/sframe.c:869:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/libsframe/../../libsframe/sframe.c:871:11: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libsframe/../../libsframe/sframe.c:871:11: branch_false: following ‘false’ branch (when ‘sf_size > 27’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/libsframe/../../libsframe/sframe.c:877:51: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libsframe/../../libsframe/sframe.c:882:10: branch_true: following ‘true’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/libsframe/../../libsframe/sframe.c:889:15: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libsframe/../../libsframe/sframe.c:889:15: acquire_memory: allocated here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libsframe/../../libsframe/sframe.c:889:6: branch_false: following ‘false’ branch...
binutils-with-gold-2.44/build-x86_64-redhat-linux/libsframe/../../libsframe/sframe.c:891:3: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libsframe/../../libsframe/sframe.c:893:6: branch_true: following ‘true’ branch (when ‘foreign_endian != 0’)...
binutils-with-gold-2.44/build-x86_64-redhat-linux/libsframe/../../libsframe/sframe.c:896:26: branch_true: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libsframe/../../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: GCC_ANALYZER_WARNING (CWE-476): [#def191]
binutils-with-gold-2.44/build-x86_64-redhat-linux/libsframe/../../libsframe/sframe.c:987:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘hp’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libsframe/../../libsframe/sframe.c:983:1: enter_function: entry to ‘sframe_decoder_get_abi_arch’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libsframe/../../libsframe/sframe.c:986:19: call_function: inlined call to ‘sframe_decoder_get_header’ from ‘sframe_decoder_get_abi_arch’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libsframe/../../libsframe/sframe.c:987:10: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libsframe/../../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): [#def192]
binutils-with-gold-2.44/build-x86_64-redhat-linux/libsframe/../../libsframe/sframe.c:1006:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘hp’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libsframe/../../libsframe/sframe.c:1002:1: enter_function: entry to ‘sframe_decoder_get_fixed_fp_offset’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libsframe/../../libsframe/sframe.c:1005:9: call_function: inlined call to ‘sframe_decoder_get_header’ from ‘sframe_decoder_get_fixed_fp_offset’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libsframe/../../libsframe/sframe.c:1006:10: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libsframe/../../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): [#def193]
binutils-with-gold-2.44/build-x86_64-redhat-linux/libsframe/../../libsframe/sframe.c:1015:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘hp’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libsframe/../../libsframe/sframe.c:1011:1: enter_function: entry to ‘sframe_decoder_get_fixed_ra_offset’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libsframe/../../libsframe/sframe.c:1014:9: call_function: inlined call to ‘sframe_decoder_get_header’ from ‘sframe_decoder_get_fixed_ra_offset’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libsframe/../../libsframe/sframe.c:1015:10: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libsframe/../../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-476): [#def194]
binutils-with-gold-2.44/build-x86_64-redhat-linux/libsframe/../../libsframe/sframe.c:1649:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘encoder’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libsframe/../../libsframe/sframe.c:1643:1: enter_function: entry to ‘sframe_sort_funcdesc’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libsframe/../../libsframe/sframe.c:1647:9: call_function: inlined call to ‘sframe_encoder_get_header’ from ‘sframe_sort_funcdesc’
binutils-with-gold-2.44/build-x86_64-redhat-linux/libsframe/../../libsframe/sframe.c:1649:15: branch_false: ...to here
binutils-with-gold-2.44/build-x86_64-redhat-linux/libsframe/../../libsframe/sframe.c:1649:15: danger: dereference of NULL ‘encoder’
# 1647|     ehp = sframe_encoder_get_header (encoder);
# 1648|     /* Sort and write out the FDE table.  */
# 1649|->   sf_fde_tbl *fd_info = encoder->sfe_funcdesc;
# 1650|     if (fd_info)
# 1651|       {

Error: CPPCHECK_WARNING (CWE-457): [#def195]
binutils-with-gold-2.44/gas/dwarf2dbg.c:1097: error[uninitvar]: Uninitialized variable: *lss->pmove_tail
# 1095|   
# 1096|     now = frag_now_fix ();
# 1097|->   while ((e = *lss->pmove_tail))
# 1098|       {
# 1099|         if (S_GET_VALUE (e->label) == now)

Error: CPPCHECK_WARNING (CWE-682): [#def196]
binutils-with-gold-2.44/gas/read.c:5273: error[nullPointerArithmetic]: Pointer addition with NULL pointer.
# 5271|   	  if (orig)
# 5272|   	    *p = byte;
# 5273|-> 	  p++;
# 5274|   	}
# 5275|         while ((byte & 0x80) != 0 && loaded >= 7);

Error: CPPCHECK_WARNING (CWE-682): [#def197]
binutils-with-gold-2.44/gas/read.c:5325: error[nullPointerArithmetic]: Pointer addition with NULL pointer.
# 5323|         if (orig)
# 5324|   	*p = byte;
# 5325|->       p++;
# 5326|       }
# 5327|     while (byte & 0x80);

Error: CPPCHECK_WARNING (CWE-476): [#def198]
binutils-with-gold-2.44/gprof/corefile.c:497: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: f
#  495|     unsigned int num = 0;
#  496|   
#  497|->   while (!feof (f) && fgets (buf, BUFSIZE - 1, f))
#  498|       {
#  499|         if (sscanf (buf, "%" STR_BUFSIZE "s %c %" STR_BUFSIZE "s", address, &type, name) == 3)

Error: CPPCHECK_WARNING (CWE-476): [#def199]
binutils-with-gold-2.44/gprof/corefile.c:548: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: f
#  546|     symtab.limit = symtab.base;
#  547|   
#  548|->   if (fseek (f, 0, SEEK_SET) != 0)
#  549|       {
#  550|         perror (sym_table_file);

Error: CPPCHECK_WARNING (CWE-476): [#def200]
binutils-with-gold-2.44/gprof/gmon_io.c:296: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: ifp
#  294|       }
#  295|   
#  296|->   if (fread (&ghdr, sizeof (struct gmon_hdr), 1, ifp) != 1)
#  297|       {
#  298|         fprintf (stderr, _("%s: file too short to be a gmon file\n"),

Error: CPPCHECK_WARNING (CWE-823): [#def201]
binutils-with-gold-2.44/gprof/hist.c:649: error[arrayIndexOutOfBounds]: Array 'SItab[11]' accessed at index 11, which is out of bounds.
#  647|        may also want to support other (pseudo-)dimensions (such as
#  648|        I-cache misses etc.).  */
#  649|->   print_header (SItab[log_scale].prefix);
#  650|   
#  651|     for (sym_index = 0; sym_index < symtab.len; ++sym_index)

Error: CPPCHECK_WARNING (CWE-457): [#def202]
binutils-with-gold-2.44/gprofng/common/hwctable.c:2826: warning[uninitvar]: Uninitialized variable: buf
# 2824|     setup_cpcx ();
# 2825|     if (!buf || !buflen)
# 2826|->     return buf;
# 2827|     buf[0] = 0;
# 2828|     if (cpcx_cciname)

Error: COMPILER_WARNING (CWE-252): [#def203]
binutils-with-gold-2.44/gprofng/libcollector/linetrace.c: scope_hint: In function ‘linetrace_ext_fork_epilogue’
binutils-with-gold-2.44/gprofng/libcollector/linetrace.c:931:11: warning[-Wunused-result]: ignoring return value of ‘strerror_r’ declared with attribute ‘warn_unused_result’
#  931 |           strerror_r (errno, errmsg, sizeof (errmsg));
#      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  929|   	  /* delete stillborn experiment? */
#  930|   	  char errmsg[256];
#  931|-> 	  strerror_r (errno, errmsg, sizeof (errmsg));
#  932|   	  CALL_UTIL (snprintf)(msg, sizeof (msg), "err %s", errmsg);
#  933|   	}

Error: COMPILER_WARNING (CWE-252): [#def204]
binutils-with-gold-2.44/gprofng/libcollector/linetrace.c: scope_hint: In function ‘linetrace_ext_exec_epilogue’
binutils-with-gold-2.44/gprofng/libcollector/linetrace.c:1048:7: warning[-Wunused-result]: ignoring return value of ‘strerror_r’ declared with attribute ‘warn_unused_result’
# 1048 |       strerror_r (errno, errmsg, sizeof (errmsg));
#      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1046|       {
# 1047|         char errmsg[256];
# 1048|->       strerror_r (errno, errmsg, sizeof (errmsg));
# 1049|         CALL_UTIL (snprintf)(msg, sizeof (msg), "err %s", errmsg);
# 1050|       }

Error: COMPILER_WARNING (CWE-252): [#def205]
binutils-with-gold-2.44/gprofng/src/DbeSession.cc: scope_hint: In destructor ‘DbeSession::~DbeSession()’
binutils-with-gold-2.44/gprofng/src/DbeSession.cc:457:14: warning[-Wunused-result]: ignoring return value of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’
#  457 |       system (cmd);
#      |       ~~~~~~~^~~~~
#  455|         sb->append (defExpName);
#  456|         char *cmd = sb->toString ();
#  457|->       system (cmd);
#  458|         free (cmd);
#  459|         delete sb;

Error: COMPILER_WARNING (CWE-252): [#def206]
binutils-with-gold-2.44/gprofng/src/DbeSession.cc: scope_hint: In member function ‘void DbeSession::unlink_tmp_files()’
binutils-with-gold-2.44/gprofng/src/DbeSession.cc:481:14: warning[-Wunused-result]: ignoring return value of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’
#  481 |       system (cmd);
#      |       ~~~~~~~^~~~~
#  479|       {
#  480|         char *cmd = dbe_sprintf (NTXT ("/bin/rm -rf %s"), tmp_dir_name);
#  481|->       system (cmd);
#  482|         free (cmd);
#  483|         free (tmp_dir_name);

Error: COMPILER_WARNING (CWE-252): [#def207]
binutils-with-gold-2.44/gprofng/src/Experiment.cc: scope_hint: In member function ‘char* Experiment::ExperimentFile::fgets()’
binutils-with-gold-2.44/gprofng/src/Experiment.cc:270:15: warning[-Wunused-result]: ignoring return value of ‘char* fgets(char*, int, FILE*)’ declared with attribute ‘warn_unused_result’
#  270 |       ::fgets (buffer + bufsz - 1, newsz - bufsz + 1, fh);
#      |       ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  268|         buffer[newsz - 1] = (char) 1; // sentinel
#  269|         // we don't care about fgets result here
#  270|->       ::fgets (buffer + bufsz - 1, newsz - bufsz + 1, fh);
#  271|         bufsz = newsz;
#  272|       }

Error: COMPILER_WARNING (CWE-252): [#def208]
binutils-with-gold-2.44/gprofng/src/StringBuilder.cc: scope_hint: In member function ‘void StringBuilder::write(int)’
binutils-with-gold-2.44/gprofng/src/StringBuilder.cc:456:13: warning[-Wunused-result]: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’
#  456 |     ::write (fd, value, count);
#      |     ~~~~~~~~^~~~~~~~~~~~~~~~~~
#  454|   {
#  455|     if (count > 0)
#  456|->     ::write (fd, value, count);
#  457|   }
#  458|   

Error: COMPILER_WARNING (CWE-252): [#def209]
binutils-with-gold-2.44/gprofng/src/dbe_collctrl.cc:28: included_from: Included from here.
binutils-with-gold-2.44/gprofng/src/collctrl.cc: scope_hint: In member function ‘char* Coll_Ctrl::set_expt(const char*, char**, bool)’
binutils-with-gold-2.44/gprofng/src/collctrl.cc:1963:14: warning[-Wunused-result]: ignoring return value of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’
# 1963 |       system (cmd);
#      |       ~~~~~~~^~~~~
# 1961|         struct stat statbuf;
# 1962|         char *cmd = dbe_sprintf ("/bin/rm -rf %s >/dev/null 2>&1", nm);
# 1963|->       system (cmd);
# 1964|         free (cmd);
# 1965|         if (stat (nm, &statbuf) == 0)

Error: COMPILER_WARNING (CWE-252): [#def210]
binutils-with-gold-2.44/gprofng/src/count.cc: scope_hint: In member function ‘void collect::get_count_data()’
binutils-with-gold-2.44/gprofng/src/count.cc:215:13: warning[-Wunused-result]: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’
#  215 |       write (2, sb.toString (), sb.length ());
#      |       ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  213|   	}
#  214|         sb.append (NTXT ("\n\n"));
#  215|->       write (2, sb.toString (), sb.length ());
#  216|       }
#  217|   

Error: COMPILER_WARNING (CWE-252): [#def211]
binutils-with-gold-2.44/gprofng/src/gp-archive.cc: scope_hint: In member function ‘int er_archive::clean_old_archive(char*, ArchiveExp*)’
binutils-with-gold-2.44/gprofng/src/gp-archive.cc:248:14: warning[-Wunused-result]: ignoring return value of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’
#  248 |       system (cmd);
#      |       ~~~~~~~^~~~~
#  246|       {
#  247|         char *cmd = dbe_sprintf ("/bin/rm -rf %s", arch);
#  248|->       system (cmd);
#  249|         free (cmd);
#  250|         if (dbe_stat (arch, NULL) != 0)

Error: COMPILER_WARNING (CWE-252): [#def212]
binutils-with-gold-2.44/gprofng/src/gp-collect-app.cc: scope_hint: In member function ‘void collect::writeStr(int, const char*)’
binutils-with-gold-2.44/gprofng/src/gp-collect-app.cc:1507:11: warning[-Wunused-result]: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’
# 1507 |     write (f, buf, strlen (buf));
#      |     ~~~~~~^~~~~~~~~~~~~~~~~~~~~~
# 1505|   {
# 1506|     if (buf != NULL)
# 1507|->     write (f, buf, strlen (buf));
# 1508|   }

Error: COMPILER_WARNING (CWE-252): [#def213]
binutils-with-gold-2.44/gprofng/src/ipc.cc: scope_hint: In function ‘void fatalErrorHadler(int, siginfo_t*, void*)’
binutils-with-gold-2.44/gprofng/src/ipc.cc:135:10: warning[-Wunused-result]: ignoring return value of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’
#  135 |   system (buf);
#      |   ~~~~~~~^~~~~
#  133|     snprintf (buf, sizeof (buf), "/usr/bin/pstack %lld > %s.pstack",
#  134|   	    (long long) pid, fname);
#  135|->   system (buf);
#  136|     int fd = creat (fname, 0600);
#  137|     if (fd >= 0)

Error: COMPILER_WARNING (CWE-252): [#def214]
binutils-with-gold-2.44/gprofng/src/ipc.cc: scope_hint: In function ‘void ipc_mainLoop(int, char**)’
binutils-with-gold-2.44/gprofng/src/ipc.cc:2642:15: warning[-Wunused-result]: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’ declared with attribute ‘warn_unused_result’
# 2642 |       freopen (ipc_log_name, "w", stderr);
#      |       ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
# 2640|         if (ipc_log_name == NULL)
# 2641|   	ipc_log_name = "ipc_log";
# 2642|->       freopen (ipc_log_name, "w", stderr);
# 2643|         if (ipc_trace_level >= TRACE_LVL_2)
# 2644|   	{

Error: COMPILER_WARNING (CWE-252): [#def215]
binutils-with-gold-2.44/gprofng/src/ipc.cc:2659:13: warning[-Wunused-result]: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’ declared with attribute ‘warn_unused_result’
# 2659 |     freopen ("/dev/null", "w", stderr);
#      |     ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
# 2657|     else
# 2658|       // Reopen stderr as /dev/null
# 2659|->     freopen ("/dev/null", "w", stderr);
# 2660|   
# 2661|     struct sigaction act;

Error: COMPILER_WARNING (CWE-252): [#def216]
binutils-with-gold-2.44/gprofng/src/ipcio.cc: scope_hint: In member function ‘void IPCresponse::print()’
binutils-with-gold-2.44/gprofng/src/ipcio.cc:890:9: warning[-Wunused-result]: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’
#  890 |   write (1, buf, 22);
#      |   ~~~~~~^~~~~~~~~~~~
#  888|   		      "IPCresponse: ID=%08x type=%02x status=%02x sz:%6d\n",
#  889|   		      requestID, responseType, responseStatus, sz);
#  890|->   write (1, buf, 22);
#  891|     sb->write (1);
#  892|     pthread_mutex_unlock (&responce_lock);

Error: CPPCHECK_WARNING (CWE-476): [#def217]
binutils-with-gold-2.44/ld/ldlang.c:287: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dirname
#  285|       return strdup (".");
#  286|     dirname = strdup (name);
#  287|->   dirname[base - name] = '\0';
#  288|     return dirname;
#  289|   }

Error: CPPCHECK_WARNING (CWE-476): [#def218]
binutils-with-gold-2.44/ld/ldlang.c:1513: warning[nullPointer]: Possible null pointer dereference: region
# 1511|     n = stat_alloc (sizeof (lang_memory_region_name));
# 1512|     n->name = xstrdup (alias);
# 1513|->   n->next = region->name_list.next;
# 1514|     region->name_list.next = n;
# 1515|   }

Error: CPPCHECK_WARNING (CWE-476): [#def219]
binutils-with-gold-2.44/ld/ldlang.c:1514: warning[nullPointer]: Possible null pointer dereference: region
# 1512|     n->name = xstrdup (alias);
# 1513|     n->next = region->name_list.next;
# 1514|->   region->name_list.next = n;
# 1515|   }
# 1516|   

Error: CPPCHECK_WARNING (CWE-664): [#def220]
binutils-with-gold-2.44/ld/ldmisc.c:660: error[va_start_subsequentCalls]: va_start() or va_copy() called subsequently on 'arg' without va_end() in between.
#  658|         /* If vsnprintf fails or truncates, output the warning directly.  */
#  659|         fflush (stdout);
#  660|->       va_start (arg, fmt);
#  661|         vfinfo (stderr, fmt, arg, true);
#  662|         fflush (stderr);

Error: CPPCHECK_WARNING (CWE-457): [#def221]
binutils-with-gold-2.44/ld/pe-dll.c:602: warning[uninitvar]: Uninitialized variables: &key.internal_name, &key.ordinal, &key.hint, &key.flag_private, &key.flag_constant, &key.flag_noname, &key.flag_data, &key.flag_forward
#  600|     /* Return false if n is in the d->exports table.  */
#  601|     if (d->num_exports != 0
#  602|->       && bsearch (&key, d->exports, d->num_exports,
#  603|   		  sizeof (pe_def_file->exports[0]), pe_export_sort))
#  604|       return 0;

Error: CPPCHECK_WARNING (CWE-476): [#def222]
binutils-with-gold-2.44/ld/pe-dll.c:2007: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: out
# 2005|       fprintf (out, _("; no contents available\n"));
# 2006|   
# 2007|->   if (fclose (out) == EOF)
# 2008|       /* xgettext:c-format */
# 2009|       einfo (_("%P: error closing file `%s'\n"), pe_out_def_filename);

Error: CPPCHECK_WARNING (CWE-457): [#def223]
binutils-with-gold-2.44/ld/pe-dll.c:3096: warning[uninitvar]: Uninitialized variable: &key.oname
# 3094|   
# 3095|     key.key = lname;
# 3096|->   kv = bsearch (&key, udef_table, undef_count, sizeof (struct key_value),
# 3097|   		undef_sort_cmp);
# 3098|   

Error: COMPILER_WARNING: [#def224]
binutils-with-gold-2.44/ld/testplug2.c:77:25: warning[-Wunused-const-variable=]: ‘tag_names’ defined but not used
#   77 | static const tag_name_t tag_names[] =
#      |                         ^~~~~~~~~
#   75|   
#   76|   /* Array of all known tags and their names.  */
#   77|-> static const tag_name_t tag_names[] =
#   78|   {
#   79|     ADDENTRY(LDPT_NULL),

Error: COMPILER_WARNING: [#def225]
binutils-with-gold-2.44/ld/testplug3.c:77:25: warning[-Wunused-const-variable=]: ‘tag_names’ defined but not used
#   77 | static const tag_name_t tag_names[] =
#      |                         ^~~~~~~~~
#   75|   
#   76|   /* Array of all known tags and their names.  */
#   77|-> static const tag_name_t tag_names[] =
#   78|   {
#   79|     ADDENTRY(LDPT_NULL),

Error: COMPILER_WARNING: [#def226]
binutils-with-gold-2.44/ld/testplug4.c:77:25: warning[-Wunused-const-variable=]: ‘tag_names’ defined but not used
#   77 | static const tag_name_t tag_names[] =
#      |                         ^~~~~~~~~
#   75|   
#   76|   /* Array of all known tags and their names.  */
#   77|-> static const tag_name_t tag_names[] =
#   78|   {
#   79|     ADDENTRY(LDPT_NULL),

Error: CPPCHECK_WARNING (CWE-190): [#def227]
binutils-with-gold-2.44/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): [#def228]
binutils-with-gold-2.44/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: CPPCHECK_WARNING (CWE-457): [#def229]
binutils-with-gold-2.44/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: CPPCHECK_WARNING (CWE-457): [#def230]
binutils-with-gold-2.44/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: CPPCHECK_WARNING (CWE-457): [#def231]
binutils-with-gold-2.44/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: CPPCHECK_WARNING (CWE-401): [#def232]
binutils-with-gold-2.44/libctf/ctf-open.c:1524: error[memleak]: Memory leak: fp
# 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: CPPCHECK_WARNING (CWE-401): [#def233]
binutils-with-gold-2.44/libctf/ctf-open.c:1536: error[memleak]: Memory leak: fp
# 1534|       {
# 1535|         ctf_err_warn (NULL, 0, ECTF_CORRUPT, _("overlapping CTF sections"));
# 1536|->       return (ctf_set_open_errno (errp, ECTF_CORRUPT));
# 1537|       }
# 1538|   

Error: CPPCHECK_WARNING (CWE-401): [#def234]
binutils-with-gold-2.44/libctf/ctf-open.c:1546: error[memleak]: Memory leak: fp
# 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: CPPCHECK_WARNING (CWE-401): [#def235]
binutils-with-gold-2.44/libctf/ctf-open.c:1560: error[memleak]: Memory leak: fp
# 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: CPPCHECK_WARNING (CWE-401): [#def236]
binutils-with-gold-2.44/libctf/ctf-open.c:1573: error[memleak]: Memory leak: fp
# 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: COMPILER_WARNING: [#def237]
binutils-with-gold-2.44/libiberty/cp-demangle.c: scope_hint: In function ‘cplus_demangle_print_callback.constprop’
binutils-with-gold-2.44/libiberty/cp-demangle.c:4642:1: warning[-Wstack-usage=]: stack usage might be unbounded
# 4642 | cplus_demangle_print_callback (int options,
#      | ^
# 4640|   CP_STATIC_IF_GLIBCPP_V3
# 4641|   int
# 4642|-> cplus_demangle_print_callback (int options,
# 4643|                                  struct demangle_component *dc,
# 4644|                                  demangle_callbackref callback, void *opaque)

Error: CPPCHECK_WARNING (CWE-562): [#def238]
binutils-with-gold-2.44/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): [#def239]
binutils-with-gold-2.44/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): [#def240]
binutils-with-gold-2.44/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): [#def241]
binutils-with-gold-2.44/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): [#def242]
binutils-with-gold-2.44/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): [#def243]
binutils-with-gold-2.44/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: COMPILER_WARNING: [#def244]
binutils-with-gold-2.44/libiberty/cp-demangle.c: scope_hint: In function 'd_demangle_callback.constprop'
binutils-with-gold-2.44/libiberty/cp-demangle.c:6794:1: warning[-Wstack-usage=]: stack usage might be unbounded
# 6794 | d_demangle_callback (const char *mangled, int options,
#      | ^
# 6792|   
# 6793|   static int
# 6794|-> d_demangle_callback (const char *mangled, int options,
# 6795|                        demangle_callbackref callback, void *opaque)
# 6796|   {

Error: COMPILER_WARNING: [#def245]
binutils-with-gold-2.44/libiberty/cp-demangle.c: scope_hint: In function ‘d_demangle’
binutils-with-gold-2.44/libiberty/cp-demangle.c:6911:1: warning[-Wstack-usage=]: stack usage might be unbounded
# 6911 | d_demangle (const char *mangled, int options, size_t *palc)
#      | ^
# 6909|   
# 6910|   static char *
# 6911|-> d_demangle (const char *mangled, int options, size_t *palc)
# 6912|   {
# 6913|     struct d_growable_string dgs;

Error: COMPILER_WARNING: [#def246]
binutils-with-gold-2.44/libiberty/cp-demangle.c: scope_hint: In function ‘is_ctor_or_dtor’
binutils-with-gold-2.44/libiberty/cp-demangle.c:7117:1: warning[-Wstack-usage=]: stack usage might be unbounded
# 7117 | is_ctor_or_dtor (const char *mangled,
#      | ^
# 7115|   
# 7116|   static int
# 7117|-> is_ctor_or_dtor (const char *mangled,
# 7118|                    enum gnu_v3_ctor_kinds *ctor_kind,
# 7119|                    enum gnu_v3_dtor_kinds *dtor_kind)

Error: CPPCHECK_WARNING (CWE-823): [#def247]
binutils-with-gold-2.44/libiberty/hashtab.c:187: error[arrayIndexOutOfBounds]: Array 'prime_tab[30]' accessed at index 30, which is out of bounds.
#  185|   
#  186|     /* If we've run out of primes, abort.  */
#  187|->   if (n > prime_tab[low].prime)
#  188|       {
#  189|         fprintf (stderr, "Cannot find prime bigger than %lu\n", n);

Error: CPPCHECK_WARNING (CWE-476): [#def248]
binutils-with-gold-2.44/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: CPPCHECK_WARNING (CWE-476): [#def249]
binutils-with-gold-2.44/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: CPPCHECK_WARNING (CWE-401): [#def250]
binutils-with-gold-2.44/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: CPPCHECK_WARNING (CWE-562): [#def251]
binutils-with-gold-2.44/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): [#def252]
binutils-with-gold-2.44/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): [#def253]
binutils-with-gold-2.44/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): [#def254]
binutils-with-gold-2.44/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): [#def255]
binutils-with-gold-2.44/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): [#def256]
binutils-with-gold-2.44/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: CPPCHECK_WARNING (CWE-664): [#def257]
binutils-with-gold-2.44/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): [#def258]
binutils-with-gold-2.44/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): [#def259]
binutils-with-gold-2.44/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): [#def260]
binutils-with-gold-2.44/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: CPPCHECK_WARNING (CWE-476): [#def261]
binutils-with-gold-2.44/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: CPPCHECK_WARNING (CWE-401): [#def262]
binutils-with-gold-2.44/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): [#def263]
binutils-with-gold-2.44/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: CPPCHECK_WARNING (CWE-562): [#def264]
binutils-with-gold-2.44/opcodes/i386-dis.c:9818: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 9816|     info->bytes_per_line = 7;
# 9817|   
# 9818|->   info->private_data = &priv;
# 9819|     priv.fetched = 0;
# 9820|     priv.insn_start = pc;

Scan Properties

analyzer-version-clippy1.86.0
analyzer-version-cppcheck2.17.1
analyzer-version-gcc15.0.1
analyzer-version-gcc-analyzer15.0.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-138.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namebinutils-2.44-3.fc43
store-results-to/tmp/tmpz027qrpt/binutils-2.44-3.fc43.tar.xz
time-created2025-04-25 12:26:39
time-finished2025-04-25 12:39:21
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpz027qrpt/binutils-2.44-3.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpz027qrpt/binutils-2.44-3.fc43.src.rpm'
tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9