Error: SHELLCHECK_WARNING (CWE-569): [#def1] /usr/bin/gdb-add-index:150:13: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled. # 148| # 149| # Ensure intermediate index file is removed when we exit. # 150|-> trap "rm -f $tmp_files" 0 # 151| # 152| $GDB --batch -nx -iex 'set auto-load no' \ Error: CPPCHECK_WARNING (CWE-457): [#def2] gdb-16.2/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-457): [#def3] gdb-16.2/bfd/elf-nacl.c:192: error[uninitvar]: Uninitialized variable: *m # 190| # 191| m = first_load; # 192|-> while ((seg = *m) != NULL) # 193| { # 194| if (seg->p_type == PT_LOAD) Error: CPPCHECK_WARNING (CWE-457): [#def4] gdb-16.2/bfd/elf32-arm.c:5651: error[uninitvar]: Uninitialized variables: &key.destination, &key.hash, &key.sym_name, &key.r_type, &key.branch_type, &key.non_a8_stub # 5649| key.from = base_vma + i; # 5650| found = (struct a8_erratum_reloc *) # 5651|-> bsearch (&key, a8_relocs, num_a8_relocs, # 5652| sizeof (struct a8_erratum_reloc), # 5653| &a8_reloc_compare); Error: CPPCHECK_WARNING (CWE-457): [#def5] gdb-16.2/bfd/elf32-arm.c:17636: error[uninitvar]: Uninitialized variable: &rel #17634| Elf_Internal_Rela rel; #17635| #17636|-> SWAP_RELOC_IN (htab) (output_bfd, p, &rel); #17637| rel.r_info = ELF32_R_INFO (htab->root.hgot->indx, R_ARM_ABS32); #17638| SWAP_RELOC_OUT (htab) (output_bfd, &rel, p); Error: CPPCHECK_WARNING (CWE-457): [#def6] gdb-16.2/bfd/elf64-ppc.c:7340: error[uninitvar]: Uninitialized variable: *pp # 7338| # 7339| is_ifunc = ELF_ST_TYPE (sym->st_info) == STT_GNU_IFUNC; # 7340|-> while ((p = *pp) != NULL) # 7341| { # 7342| if (p->sec == sec && p->ifunc == is_ifunc) Error: CPPCHECK_WARNING (CWE-119): [#def7] gdb-16.2/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): [#def8] gdb-16.2/bfd/peXXigen.c:2668: warning[uninitvar]: Uninitialized variable: signature # 2666| fprintf (file, _("(format %c%c%c%c signature %s age %ld pdb %s)\n"), # 2667| buffer[0], buffer[1], buffer[2], buffer[3], # 2668|-> signature, cvinfo->Age, pdb[0] ? pdb : "(none)"); # 2669| # 2670| free (pdb); Error: GCC_ANALYZER_WARNING (CWE-476): [#def9] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/archive.c:2382:36: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘syms’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/archive.c:2303:1: enter_function: entry to ‘_bfd_compute_and_write_armap’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/archive.c:2319:6: branch_true: following ‘true’ branch (when ‘elength != 0’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/archive.c:2320:5: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/archive.c:2325:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/archive.c:2330:25: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/archive.c:2331:6: branch_false: following ‘false’ branch... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/archive.c:2335:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/archive.c:2336:13: call_function: inlined call to ‘bfd_get_filename’ from ‘_bfd_compute_and_write_armap’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/archive.c:2341:8: branch_true: following ‘true’ branch (when ‘current’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/archive.c:2344:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/archive.c:2344:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/archive.c:2345:15: call_function: inlined call to ‘bfd_get_file_flags’ from ‘_bfd_compute_and_write_armap’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/archive.c:2344:11: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/archive.c:2351:15: call_function: inlined call to ‘bfd_get_lto_type’ from ‘_bfd_compute_and_write_armap’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/archive.c:2361:14: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/archive.c:2364:14: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/archive.c:2364:14: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/archive.c:2366:18: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/archive.c:2366:18: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/archive.c:2374:26: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/archive.c:2375:18: branch_false: following ‘false’ branch... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/archive.c:2380:35: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/archive.c:2382:41: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/archive.c:2382:41: release_memory: ‘syms’ is NULL gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/archive.c:2382:36: danger: dereference of NULL ‘syms + (long unsigned int)src_count * 8’ # 2380| for (src_count = 0; src_count < symcount; src_count++) # 2381| { # 2382|-> flagword flags = (syms[src_count])->flags; # 2383| asection *sec = syms[src_count]->section; # 2384| Error: GCC_ANALYZER_WARNING (CWE-674): [#def10] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/bfd.c:889:25: warning[-Wanalyzer-infinite-recursion]: infinite recursion gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/bfd.c:882:1: enter_function: entry to ‘bfd_errmsg’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/bfd.c:889:25: call_function: calling ‘bfd_errmsg’ from ‘bfd_errmsg’ # 887| if (error_tag == bfd_error_on_input) # 888| { # 889|-> const char *msg = bfd_errmsg (input_error); # 890| char *ret = bfd_asprintf (_(bfd_errmsgs[error_tag]), # 891| bfd_get_filename (input_bfd), msg); Error: GCC_ANALYZER_WARNING (CWE-457): [#def11] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3375:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*pelength’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3462:1: enter_function: entry to ‘coff_apply_checksum’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3469:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3472:8: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def12] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3848:22: warning[-Wanalyzer-deref-before-check]: check of ‘*((struct bfd_symbol **)psymsec)’ for NULL after already dereferencing it gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3498:1: enter_function: entry to ‘coff_write_object_contents’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3603:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3607:8: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3608:8: branch_true: following ‘true’ branch (when ‘current’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3623:7: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3767:10: branch_true: following ‘true’ branch (when the strings are equal)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3782:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3783:11: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3814:31: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3816:14: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3817:18: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3816:15: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3825:12: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3825:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3833:19: call_function: inlined call to ‘bfd_get_symcount’ from ‘coff_write_object_contents’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3834:48: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3836:19: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3836:18: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3836:18: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3834:48: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3836:19: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3841:18: branch_true: following ‘true’ branch (when ‘psymsec’ is NULL)... branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3834:48: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3836:19: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3836:18: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3841:18: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3841:18: branch_false: following ‘false’ branch (when ‘psymsec’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3845:19: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3845:18: branch_true: following ‘true’ branch (when the strings are equal)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3847:26: call_function: inlined call to ‘bfd_asymbol_bfd’ from ‘coff_write_object_contents’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3847:26: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3848:22: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def13] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3848:22: warning[-Wanalyzer-deref-before-check]: check of ‘**abfd.outsymbols’ for NULL after already dereferencing it gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3498:1: enter_function: entry to ‘coff_write_object_contents’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3603:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3607:8: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3608:8: branch_true: following ‘true’ branch (when ‘current’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3623:7: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3767:10: branch_true: following ‘true’ branch (when the strings are equal)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3782:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3783:11: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3814:31: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3816:14: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3817:18: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3816:15: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3825:12: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3825:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3833:19: call_function: inlined call to ‘bfd_get_symcount’ from ‘coff_write_object_contents’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3834:48: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3836:19: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3836:18: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3841:18: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3841:18: branch_true: following ‘true’ branch (when ‘psymsec’ is NULL)... branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3845:18: branch_true: following ‘true’ branch (when the strings are equal)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3847:26: call_function: inlined call to ‘bfd_asymbol_bfd’ from ‘coff_write_object_contents’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3847:26: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3848:22: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def14] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3848:22: warning[-Wanalyzer-deref-before-check]: check of ‘*psym’ for NULL after already dereferencing it gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3498:1: enter_function: entry to ‘coff_write_object_contents’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3603:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3607:8: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3608:8: branch_true: following ‘true’ branch (when ‘current’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3623:7: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3767:10: branch_false: following ‘false’ branch (when the strings are non-equal)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3769:17: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3769:15: branch_true: following ‘true’ branch (when the strings are equal)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3782:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3783:11: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3814:31: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3816:14: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3817:18: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3816:15: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3825:12: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3825:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3833:19: call_function: inlined call to ‘bfd_get_symcount’ from ‘coff_write_object_contents’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3834:48: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3836:19: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3836:18: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3841:18: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3841:18: branch_true: following ‘true’ branch (when ‘psymsec’ is NULL)... branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3834:48: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3836:19: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3836:18: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3841:18: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3841:18: branch_false: following ‘false’ branch (when ‘psymsec’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3845:19: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3845:18: branch_true: following ‘true’ branch (when the strings are equal)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3847:26: call_function: inlined call to ‘bfd_asymbol_bfd’ from ‘coff_write_object_contents’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3847:26: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3848:22: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def15] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3872:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘csym’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3498:1: enter_function: entry to ‘coff_write_object_contents’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3603:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3607:8: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3608:8: branch_true: following ‘true’ branch (when ‘current’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3615:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3630:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3634:17: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3635:14: branch_true: following ‘true’ branch (when ‘len > 8’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3641:18: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3641:18: branch_true: following ‘true’ branch (when ‘string_size <= 9999999’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3655:19: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3681:18: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3695:27: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3767:10: branch_true: following ‘true’ branch (when the strings are equal)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3782:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3783:11: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3808:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3808:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3809:9: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3825:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3833:19: call_function: inlined call to ‘bfd_get_symcount’ from ‘coff_write_object_contents’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3865:14: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffcode.h:3872:21: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def16] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffgen.c:2942:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sym’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffgen.c:3205:1: enter_function: entry to ‘bfd_coff_gc_sections’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffgen.c:3224:32: branch_true: following ‘true’ branch (when ‘sub’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffgen.c:3228:11: call_function: inlined call to ‘bfd_get_flavour’ from ‘bfd_coff_gc_sections’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffgen.c:3228:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffgen.c:3231:12: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffgen.c:3231:31: branch_true: following ‘true’ branch (when ‘o’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffgen.c:3233:17: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffgen.c:3233:15: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/coffgen.c:3239:20: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def17] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/cofflink.c:3004:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sym’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/cofflink.c:2924:10: branch_true: following ‘true’ branch (when ‘rel < relend’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/cofflink.c:2935:7: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/cofflink.c:2937:10: branch_false: following ‘false’ branch (when ‘symndx != -1’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/cofflink.c:2942:15: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/cofflink.c:2942:15: branch_false: following ‘false’ branch (when ‘symndx >= 0’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/cofflink.c:2943:45: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/cofflink.c:2942:16: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/cofflink.c:2952:15: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/cofflink.c:2960:10: branch_false: following ‘false’ branch (when ‘sym’ is NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/cofflink.c:2963:9: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/cofflink.c:2967:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/cofflink.c:2974:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/cofflink.c:2984:10: branch_true: following ‘true’ branch (when ‘h’ is NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/cofflink.c:2986:14: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/cofflink.c:2986:14: branch_false: following ‘false’ branch (when ‘symndx != -1’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/cofflink.c:2993:29: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/cofflink.c:2999:18: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def18] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/cofflink.c:3132:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sym’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/cofflink.c:2910:1: enter_function: entry to ‘_bfd_coff_generic_relocate_section’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/cofflink.c:2924:10: branch_true: following ‘true’ branch (when ‘rel < relend’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/cofflink.c:2935:7: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/cofflink.c:2937:10: branch_true: following ‘true’ branch (when ‘symndx == -1’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/cofflink.c:2963:9: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/cofflink.c:2967:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/cofflink.c:2974:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/cofflink.c:2984:10: branch_true: following ‘true’ branch (when ‘h’ is NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/cofflink.c:2986:14: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/cofflink.c:2986:14: branch_true: following ‘true’ branch (when ‘symndx == -1’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/cofflink.c:3071:26: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/cofflink.c:3071:26: call_function: calling ‘discarded_section’ from ‘_bfd_coff_generic_relocate_section’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/cofflink.c:3071:26: return_function: returning to ‘_bfd_coff_generic_relocate_section’ from ‘discarded_section’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/cofflink.c:3071:11: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/cofflink.c:3078:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/cofflink.c:3129:16: branch_true: following ‘true’ branch (when ‘val == 0’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/cofflink.c:3131:20: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/cofflink.c:3129:17: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/cofflink.c:3132:20: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def19] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/doc/chew.c:1296:7: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/doc/chew.c:1516:1: enter_function: entry to ‘main’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/doc/chew.c:1522:3: call_function: inlined call to ‘init_string’ from ‘main’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/doc/chew.c:1522:3: call_function: inlined call to ‘init_string’ from ‘main’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/doc/chew.c:1523:3: call_function: inlined call to ‘init_string’ from ‘main’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/doc/chew.c:1523:3: call_function: inlined call to ‘init_string’ from ‘main’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/doc/chew.c:1524:3: call_function: inlined call to ‘init_string’ from ‘main’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/doc/chew.c:1524:3: call_function: inlined call to ‘init_string’ from ‘main’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/doc/chew.c:1528:3: call_function: calling ‘add_intrinsic’ from ‘main’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/doc/chew.c:1528:3: return_function: returning to ‘main’ from ‘add_intrinsic’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/doc/chew.c:1529:3: call_function: calling ‘add_intrinsic’ from ‘main’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/doc/chew.c:1529:3: return_function: returning to ‘main’ from ‘add_intrinsic’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/doc/chew.c:1530:3: call_function: calling ‘add_intrinsic’ from ‘main’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/doc/chew.c:1530:3: return_function: returning to ‘main’ from ‘add_intrinsic’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/doc/chew.c:1531:3: call_function: calling ‘add_intrinsic’ from ‘main’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/doc/chew.c:1531:3: return_function: returning to ‘main’ from ‘add_intrinsic’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def20] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:744:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cie’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:578:1: enter_function: entry to ‘_bfd_elf_parse_eh_frame’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:604:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:605:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:604:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:606:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:604:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:612:27: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:612:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:621:3: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:621:3: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:625:3: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:625:3: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:627:15: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:629:3: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:633:3: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:661:3: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:664:6: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:664:6: branch_false: following ‘false’ branch (when ‘num_cies == 0’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:694:3: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:697:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:704:18: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:708:7: call_function: inlined call to ‘skip_bytes’ from ‘_bfd_elf_parse_eh_frame’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:712:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:713:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:719:10: branch_false: following ‘false’ branch (when ‘hdr_length != 0’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:731:7: call_function: inlined call to ‘skip_bytes’ from ‘_bfd_elf_parse_eh_frame’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:734:10: branch_true: following ‘true’ branch (when ‘hdr_id == 0’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:739:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:742:11: release_memory: ‘local_cies’ is NULL gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:744:11: danger: dereference of NULL ‘cie’ # 742| cie = local_cies + cie_count++; # 743| # 744|-> cie->cie_inf = this_inf; # 745| cie->length = hdr_length; # 746| start = buf; Error: GCC_ANALYZER_WARNING (CWE-476): [#def21] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:1361:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ent’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:1343:6: branch_false: following ‘false’ branch (when ‘hi != 0’)... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:1346:10: branch_false: following ‘false’ branch (when ‘lo >= hi’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:1360:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:1360:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:1361:23: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def22] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:1366:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ent’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:1343:6: branch_false: following ‘false’ branch (when ‘hi != 0’)... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:1346:10: branch_false: following ‘false’ branch (when ‘lo >= hi’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:1360:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:1360:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:1362:12: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:1362:11: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def23] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:1374:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ent’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:1343:6: branch_false: following ‘false’ branch (when ‘hi != 0’)... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:1346:10: branch_false: following ‘false’ branch (when ‘lo >= hi’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:1360:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:1360:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:1362:12: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def24] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:2323:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sec’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:2299:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:2300:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:2299:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:2301:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:2299:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:2306:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:2307:15: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:2323:12: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf-eh-frame.c:2323:12: danger: dereference of NULL ‘sec’ # 2321| # 2322| /* Fix the link_order to match. */ # 2323|-> for (p = sec->output_section->map_head.link_order; p != NULL; p = p->next) # 2324| { # 2325| if (p->type != bfd_indirect_link_order) Error: GCC_ANALYZER_WARNING (CWE-476): [#def25] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3597:46: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3597:20: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3597:46: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def26] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3707:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3597:20: branch_false: following ‘false’ branch... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3600:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3606:21: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3608:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3618:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3618:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3626:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3631:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3644:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3652:24: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3661:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3677:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3680:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3682:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3689:14: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3697:21: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def27] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3739:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3597:20: branch_false: following ‘false’ branch... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3600:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3606:21: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3608:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3618:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3618:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3626:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3631:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3644:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3652:24: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3661:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3677:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3736:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3738:15: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3738:14: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3739:13: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def28] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3766:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3597:20: branch_false: following ‘false’ branch... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3600:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3606:21: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3608:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3618:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3618:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3626:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3631:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3644:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3652:24: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3661:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3677:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3736:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3738:15: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3738:14: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3747:27: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def29] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3776:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3597:20: branch_false: following ‘false’ branch... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3600:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3606:21: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3608:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3618:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3618:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3626:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3631:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3644:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3652:24: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3661:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3677:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3736:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3738:15: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3738:14: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3747:27: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3750:14: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3750:15: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def30] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3805:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3597:20: branch_false: following ‘false’ branch... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3600:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3606:21: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3608:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3798:12: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3798:11: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3805:7: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def31] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3931:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3597:20: branch_false: following ‘false’ branch... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3600:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3606:21: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3798:11: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3839:6: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3861:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3862:12: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3861:7: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3861:7: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3861:7: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3861:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3867:17: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3874:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3886:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3887:14: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3886:11: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3889:15: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3889:14: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3915:20: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3915:19: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3925:19: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3925:18: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3931:19: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def32] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3972:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3597:20: branch_false: following ‘false’ branch... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3600:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3606:21: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3798:11: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3839:6: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3861:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3862:12: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3861:7: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3861:7: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3861:7: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3861:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3867:17: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3874:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3948:15: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3949:19: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3948:16: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3951:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3952:14: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3956:15: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3971:14: branch_true: following ‘true’ branch (when ‘relative_reloc_name’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-i386.c:3972:18: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def33] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:2386:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ # 2384| | SEC_IN_MEMORY | SEC_LINKER_CREATED); # 2385| s = bfd_make_section_anyway_with_flags (abfd, ".glink", flags); # 2386|-> htab->glink = s; # 2387| p2align = htab->params->ppc476_workaround ? 6 : 4; # 2388| if (p2align < htab->params->plt_stub_align) Error: GCC_ANALYZER_WARNING (CWE-476): [#def34] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:2471:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:2468:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:2471:7: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:2471:7: danger: dereference of NULL ‘htab’ # 2469| return false; # 2470| # 2471|-> if (htab->glink == NULL # 2472| && !ppc_elf_create_glink (abfd, info)) # 2473| return false; Error: GCC_ANALYZER_WARNING (CWE-476): [#def35] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:2630:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:2620:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:2621:10: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:2620:7: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:2622:10: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:2620:7: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:2620:7: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:2629:14: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:2630:11: danger: dereference of NULL ‘htab’ # 2628| # 2629| htab = ppc_elf_hash_table (info); # 2630|-> if (htab->sbss == NULL) # 2631| { # 2632| flagword flags = SEC_IS_COMMON | SEC_SMALL_DATA | SEC_LINKER_CREATED; Error: GCC_ANALYZER_WARNING (CWE-476): [#def36] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:2906:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:2878:1: enter_function: entry to ‘ppc_elf_check_relocs’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:2891:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:2899:3: call_function: inlined call to ‘bfd_get_flavour’ from ‘ppc_elf_check_relocs’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:2906:7: danger: dereference of NULL ‘htab’ # 2904| # 2905| htab = ppc_elf_hash_table (info); # 2906|-> if (htab->glink == NULL) # 2907| { # 2908| if (htab->elf.dynobj == NULL) Error: GCC_ANALYZER_WARNING (CWE-476): [#def37] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:2976:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘isym’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:2878:1: enter_function: entry to ‘ppc_elf_check_relocs’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:2891:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:2899:3: call_function: inlined call to ‘bfd_get_flavour’ from ‘ppc_elf_check_relocs’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:2905:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:2905:10: call_function: inlined call to ‘elf_hash_table_id’ from ‘ppc_elf_check_relocs’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:2905:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:2906:7: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:2921:22: branch_true: following ‘true’ branch (when ‘rel < rel_end’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:2932:18: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:3443:18: branch_true: following ‘true’ branch (when ‘sreloc’ is NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:3445:23: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:3451:22: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:3457:18: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:3457:18: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:3463:19: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:2921:22: branch_true: following ‘true’ branch (when ‘rel < rel_end’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:2932:18: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:2933:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:2942:26: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:2966:10: branch_false: following ‘false’ branch (when ‘h’ is NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:2974:16: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:2974:15: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:2976:15: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:2976:15: danger: dereference of NULL ‘isym’ # 2974| else if (htab->elf.target_os != is_vxworks) # 2975| { # 2976|-> if (ELF_ST_TYPE (isym->st_info) == STT_GNU_IFUNC) # 2977| { # 2978| /* Set PLT_IFUNC flag for this sym, no GOT entry yet. */ Error: GCC_ANALYZER_WARNING (CWE-476): [#def38] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:3353:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘isym’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:2878:1: enter_function: entry to ‘ppc_elf_check_relocs’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:2891:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:2899:3: call_function: inlined call to ‘bfd_get_flavour’ from ‘ppc_elf_check_relocs’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:2905:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:2905:10: call_function: inlined call to ‘elf_hash_table_id’ from ‘ppc_elf_check_relocs’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:2905:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:2906:7: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:2921:22: branch_true: following ‘true’ branch (when ‘rel < rel_end’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:2932:18: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:3443:18: branch_true: following ‘true’ branch (when ‘sreloc’ is NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:3445:23: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:3451:22: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:3457:18: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:3457:18: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:3463:19: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:2921:22: branch_true: following ‘true’ branch (when ‘rel < rel_end’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:2932:18: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:2933:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:2942:26: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:2966:10: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:2968:15: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:2968:14: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:2970:15: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:3339:14: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:3341:19: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:3339:15: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:3342:18: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:3339:15: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:3343:18: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:3339:15: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:3353:19: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:3353:19: danger: dereference of NULL ‘isym’ # 3351| asection *s; # 3352| # 3353|-> s = bfd_section_from_elf_index (abfd, isym->st_shndx); # 3354| if (s == got2) # 3355| { Error: GCC_ANALYZER_WARNING (CWE-476): [#def39] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:3969:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ # 3967| htab = ppc_elf_hash_table (info); # 3968| # 3969|-> if (htab->plt_type == PLT_UNSET) # 3970| { # 3971| struct elf_link_hash_entry *h; Error: GCC_ANALYZER_WARNING (CWE-476): [#def40] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4273:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘local_syms’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4171:1: enter_function: entry to ‘ppc_elf_inline_plt’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4178:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4178:10: call_function: inlined call to ‘elf_hash_table_id’ from ‘ppc_elf_inline_plt’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4178:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4188:14: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4188:42: branch_true: following ‘true’ branch (when ‘sec’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4189:10: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4200:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4219:8: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4219:33: branch_true: following ‘true’ branch (when ‘ibfd’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4224:12: call_function: inlined call to ‘bfd_get_flavour’ from ‘ppc_elf_inline_plt’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4224:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4227:7: release_memory: ‘local_syms’ is NULL gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4230:34: branch_true: following ‘true’ branch (when ‘sec’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4231:13: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4231:12: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4232:37: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4231:13: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4238:51: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4239:16: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4242:33: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4243:34: branch_true: following ‘true’ branch (when ‘rel < relend’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4252:26: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4253:20: branch_false: following ‘false’ branch (when ‘r_type == 120’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4256:17: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4257:22: call_function: calling ‘get_sym_h’ from ‘ppc_elf_inline_plt’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4257:22: return_function: returning to ‘ppc_elf_inline_plt’ from ‘get_sym_h’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4257:20: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4267:21: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4267:20: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4270:24: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4273:31: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4273:31: release_memory: ‘local_syms’ is NULL gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4273:23: danger: dereference of NULL ‘sym’ # 4271| to = h->root.u.def.value; # 4272| else # 4273|-> to = sym->st_value; # 4274| to += (rel->r_addend # 4275| + sym_sec->output_offset Error: GCC_ANALYZER_WARNING (CWE-476): [#def41] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4281:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘tls_maskp’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4171:1: enter_function: entry to ‘ppc_elf_inline_plt’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4178:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4178:10: call_function: inlined call to ‘elf_hash_table_id’ from ‘ppc_elf_inline_plt’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4178:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4188:14: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4188:42: branch_true: following ‘true’ branch (when ‘sec’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4189:10: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4200:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4219:8: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4219:33: branch_true: following ‘true’ branch (when ‘ibfd’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4224:12: call_function: inlined call to ‘bfd_get_flavour’ from ‘ppc_elf_inline_plt’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4224:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4230:34: branch_true: following ‘true’ branch (when ‘sec’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4231:13: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4231:12: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4232:37: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4231:13: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4238:51: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4239:16: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4242:33: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4243:34: branch_true: following ‘true’ branch (when ‘rel < relend’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4252:26: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4253:20: branch_false: following ‘false’ branch (when ‘r_type == 120’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4256:17: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4257:22: call_function: calling ‘get_sym_h’ from ‘ppc_elf_inline_plt’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4257:22: return_function: returning to ‘ppc_elf_inline_plt’ from ‘get_sym_h’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4257:20: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4267:21: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4267:20: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4270:24: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4273:31: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4280:24: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4281:23: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4281:23: release_memory: ‘tls_maskp’ is NULL gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4281:23: danger: dereference of NULL ‘tls_maskp’ # 4279| + sec->output_section->vma); # 4280| if (to - from + limit < 2 * limit) # 4281|-> *tls_maskp &= ~PLT_KEEP; # 4282| } # 4283| } Error: GCC_ANALYZER_WARNING (CWE-476): [#def42] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4310:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ # 4308| # 4309| htab = ppc_elf_hash_table (info); # 4310|-> htab->tls_get_addr = elf_link_hash_lookup (&htab->elf, "__tls_get_addr", # 4311| false, false, true); # 4312| if (htab->plt_type != PLT_NEW) Error: GCC_ANALYZER_WARNING (CWE-476): [#def43] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4860:41: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4774:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4776:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4774:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4847:5: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4852:6: branch_true: following ‘true’ branch... branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4855:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4856:31: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4858:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4859:41: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4858:11: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4860:41: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4860:41: danger: dereference of NULL ‘htab’ # 4858| if (def->root.u.def.section == htab->elf.sdynbss # 4859| || def->root.u.def.section == htab->elf.sdynrelro # 4860|-> || def->root.u.def.section == htab->dynsbss) # 4861| h->dyn_relocs = NULL; # 4862| return true; Error: GCC_ANALYZER_WARNING (CWE-476): [#def44] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4895:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4774:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4776:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4774:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4847:5: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4852:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4872:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4872:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4880:6: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4880:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4890:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4890:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4893:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4892:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4894:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4892:11: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4895:14: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4895:14: danger: dereference of NULL ‘htab’ # 4893| && ppc_elf_hash_entry (h)->has_addr16_ha # 4894| && ppc_elf_hash_entry (h)->has_addr16_lo # 4895|-> && htab->params->pic_fixup == 0 # 4896| && info->disable_target_specific_optimizations <= 1) # 4897| htab->params->pic_fixup = 1; Error: GCC_ANALYZER_WARNING (CWE-476): [#def45] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4931:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4774:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4776:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4774:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4847:5: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4852:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4872:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4872:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4880:6: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4880:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4890:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4890:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4902:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4902:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4912:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4930:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4931:5: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4931:5: danger: dereference of NULL ‘htab’ # 4929| must instead allocate it in .sbss. */ # 4930| if (ppc_elf_hash_entry (h)->has_sda_refs) # 4931|-> s = htab->dynsbss; # 4932| else if ((h->root.u.def.section->flags & SEC_READONLY) != 0) # 4933| s = htab->elf.sdynrelro; Error: GCC_ANALYZER_WARNING (CWE-476): [#def46] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4946:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4774:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4776:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4774:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4847:5: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4852:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4872:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4872:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4880:6: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4880:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4890:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4890:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4902:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4902:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4912:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4930:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4932:13: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4936:3: branch_false: following ‘false’ branch (when ‘s’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4938:8: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4938:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4945:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4946:9: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4946:9: danger: dereference of NULL ‘htab’ # 4944| and into the runtime process image. */ # 4945| if (ppc_elf_hash_entry (h)->has_sda_refs) # 4946|-> srel = htab->relsbss; # 4947| else if ((h->root.u.def.section->flags & SEC_READONLY) != 0) # 4948| srel = htab->elf.sreldynrelro; Error: GCC_ANALYZER_WARNING (CWE-476): [#def47] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5002:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4989:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4991:37: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4997:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4999:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:4999:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5001:7: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5002:32: danger: dereference of NULL ‘htab’ # 5000| { # 5001| sh->root.type = bfd_link_hash_defined; # 5002|-> sh->root.u.def.section = htab->glink; # 5003| sh->root.u.def.value = ent->glink_offset; # 5004| sh->ref_regular = 1; Error: GCC_ANALYZER_WARNING (CWE-476): [#def48] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5023:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5107:1: enter_function: entry to ‘allocate_dynrelocs’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5114:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5117:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5119:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5128:12: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5128:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5131:47: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5146:10: branch_false: following ‘false’ branch (when ‘need != 0’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5150:32: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5150:32: call_function: calling ‘allocate_got’ from ‘allocate_dynrelocs’ # 5021| unsigned int max_before_header; # 5022| # 5023|-> if (htab->plt_type == PLT_VXWORKS) # 5024| { # 5025| where = htab->elf.sgot->size; Error: GCC_ANALYZER_WARNING (CWE-476): [#def49] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5125:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5114:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5117:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5119:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5121:14: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5119:7: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5122:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5120:11: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5123:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5120:11: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5124:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5120:11: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5125:14: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5125:14: danger: dereference of NULL ‘htab’ # 5123| && eh->has_addr16_ha # 5124| && eh->has_addr16_lo # 5125|-> && htab->params->pic_fixup > 0)) # 5126| { # 5127| /* Make sure this symbol is output as a dynamic symbol. */ Error: GCC_ANALYZER_WARNING (CWE-476): [#def50] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5255:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5114:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5117:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5189:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5197:12: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5197:11: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5245:12: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5245:11: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5251:15: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5245:11: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5253:16: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5252:16: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5254:16: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5252:16: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5255:19: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5255:19: danger: dereference of NULL ‘htab’ # 5253| && eh->has_addr16_ha # 5254| && eh->has_addr16_lo # 5255|-> && htab->params->pic_fixup > 0)) # 5256| { # 5257| /* Make sure this symbol is output as a dynamic symbol. */ Error: GCC_ANALYZER_WARNING (CWE-476): [#def51] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5314:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5107:1: enter_function: entry to ‘allocate_dynrelocs’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5114:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5117:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5298:32: branch_true: following ‘true’ branch (when ‘ent’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5299:13: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5299:12: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5304:18: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5304:16: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5307:20: call_function: inlined call to ‘use_local_plt’ from ‘allocate_dynrelocs’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5311:21: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5311:20: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5314:19: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5314:19: danger: dereference of NULL ‘htab’ # 5312| s = htab->elf.iplt; # 5313| else # 5314|-> s = htab->pltlocal; # 5315| } # 5316| Error: GCC_ANALYZER_WARNING (CWE-476): [#def52] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5317:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5107:1: enter_function: entry to ‘allocate_dynrelocs’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5114:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5117:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5298:32: branch_true: following ‘true’ branch (when ‘ent’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5299:13: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5299:12: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5304:18: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5304:16: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5307:20: call_function: inlined call to ‘use_local_plt’ from ‘allocate_dynrelocs’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5311:20: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5312:19: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5317:17: danger: dereference of NULL ‘htab’ # 5315| } # 5316| # 5317|-> if (htab->plt_type == PLT_NEW || !dyn) # 5318| { # 5319| if (!doneone) Error: GCC_ANALYZER_WARNING (CWE-476): [#def53] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5508:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5493:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5496:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:5508:7: danger: dereference of NULL ‘htab’ # 5506| } # 5507| # 5508|-> if (htab->plt_type == PLT_OLD) # 5509| htab->got_header_size = 16; # 5510| else if (htab->plt_type == PLT_NEW) Error: GCC_ANALYZER_WARNING (CWE-476): [#def54] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:6291:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘h’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:6068:1: enter_function: entry to ‘ppc_elf_relax_section’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:6100:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:6101:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:6100:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:6102:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:6100:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:6103:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:6100:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:6104:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:6100:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:6113:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:6113:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:6113:10: call_function: inlined call to ‘elf_hash_table_id’ from ‘ppc_elf_relax_section’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:6113:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:6117:16: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:6126:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:6127:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:6126:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:6140:27: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:6153:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:6156:56: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:6157:14: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:6161:14: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:6164:36: branch_true: following ‘true’ branch (when ‘irel < irelend’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:6166:34: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:6204:16: call_function: calling ‘get_sym_h’ from ‘ppc_elf_relax_section’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:6204:16: return_function: returning to ‘ppc_elf_relax_section’ from ‘get_sym_h’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:6204:14: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:6208:15: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:6208:14: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:6222:19: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:6223:25: release_memory: ‘h’ is NULL gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:6291:27: release_memory: ‘h’ is NULL gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:6291:15: danger: dereference of NULL ‘h’ # 6289| } # 6290| # 6291|-> sym_type = h->type; # 6292| } # 6293| Error: GCC_ANALYZER_WARNING (CWE-476): [#def55] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:6728:8: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:6724:3: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:6724:3: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:6728:8: danger: dereference of NULL ‘<unknown>’ # 6726| /* Offset will always be a multiple of four, so use the bottom bit # 6727| as a "written" flag. */ # 6728|-> if ((linker_section_ptr->offset & 1) == 0) # 6729| { # 6730| bfd_put_32 (lsect->section->owner, Error: GCC_ANALYZER_WARNING (CWE-476): [#def56] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:6762:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:6762:28: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:6762:28: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:6762:28: danger: dereference of NULL ‘htab’ # 6760| bfd *output_bfd = info->output_bfd; # 6761| bfd_vma plt; # 6762|-> unsigned char *end = p + GLINK_ENTRY_SIZE (htab, h); # 6763| # 6764| if (h != NULL Error: GCC_ANALYZER_WARNING (CWE-476): [#def57] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9183:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:7022:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:7043:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:7046:21: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9183:7: danger: dereference of NULL ‘htab’ # 9181| } # 9182| # 9183|-> if (htab->params->ppc476_workaround # 9184| && input_section->sec_info_type == SEC_INFO_TYPE_TARGET # 9185| && (!bfd_link_relocatable (info) Error: GCC_ANALYZER_WARNING (CWE-476): [#def58] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9492:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9471:1: enter_function: entry to ‘write_global_sym_plt’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9479:28: branch_true: following ‘true’ branch (when ‘ent’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9480:9: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9480:8: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9482:21: call_function: inlined call to ‘use_local_plt’ from ‘write_global_sym_plt’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9484:12: branch_false: following ‘false’ branch (when ‘doneone == 0’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9489:23: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9492:17: danger: dereference of NULL ‘htab’ # 9490| asection *relplt = htab->elf.srelplt; # 9491| # 9492|-> if (htab->plt_type == PLT_NEW || !dyn) # 9493| reloc_index = ent->plt.offset / 4; # 9494| else Error: GCC_ANALYZER_WARNING (CWE-476): [#def59] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9784:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘local_syms’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9732:1: enter_function: entry to ‘ppc_finish_symbols’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9734:42: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9734:42: call_function: inlined call to ‘elf_hash_table_id’ from ‘ppc_finish_symbols’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9734:42: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9740:3: call_function: inlined call to ‘elf_link_hash_traverse’ from ‘ppc_finish_symbols’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9742:33: branch_true: following ‘true’ branch (when ‘ibfd’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9748:25: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9748:25: release_memory: ‘local_syms’ is NULL gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9751:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9755:10: branch_false: following ‘false’ branch (when ‘local_got’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9759:21: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9763:30: branch_true: following ‘true’ branch (when ‘lplt < end_local_plt’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9764:14: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9764:27: branch_true: following ‘true’ branch (when ‘ent’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9766:17: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9764:27: branch_true: following ‘true’ branch (when ‘ent’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9766:17: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9776:22: call_function: calling ‘get_sym_h’ from ‘ppc_finish_symbols’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9776:22: return_function: returning to ‘ppc_finish_symbols’ from ‘get_sym_h’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9776:20: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9784:26: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9784:26: release_memory: ‘local_syms’ is NULL gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9784:17: danger: dereference of NULL ‘sym’ # 9782| } # 9783| # 9784|-> val = sym->st_value; # 9785| if (sym_sec != NULL && sym_sec->output_section != NULL) # 9786| val += sym_sec->output_offset + sym_sec->output_section->vma; Error: GCC_ANALYZER_WARNING (CWE-476): [#def60] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9784:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sym’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9732:1: enter_function: entry to ‘ppc_finish_symbols’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9734:42: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9734:42: call_function: inlined call to ‘elf_hash_table_id’ from ‘ppc_finish_symbols’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9734:42: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9740:3: call_function: inlined call to ‘elf_link_hash_traverse’ from ‘ppc_finish_symbols’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9742:33: branch_true: following ‘true’ branch (when ‘ibfd’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9748:25: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9748:25: release_memory: ‘local_syms’ is NULL gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9751:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9755:10: branch_false: following ‘false’ branch (when ‘local_got’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9759:21: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9763:30: branch_true: following ‘true’ branch (when ‘lplt < end_local_plt’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9764:14: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9764:27: branch_true: following ‘true’ branch (when ‘ent’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9766:17: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9776:22: call_function: calling ‘get_sym_h’ from ‘ppc_finish_symbols’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9776:22: return_function: returning to ‘ppc_finish_symbols’ from ‘get_sym_h’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9776:20: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9784:26: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9764:27: branch_true: following ‘true’ branch (when ‘ent’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9766:17: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9776:22: call_function: calling ‘get_sym_h’ from ‘ppc_finish_symbols’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9776:22: return_function: returning to ‘ppc_finish_symbols’ from ‘get_sym_h’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9776:20: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9784:26: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9784:26: release_memory: ‘sym’ is NULL gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9784:17: danger: dereference of NULL ‘sym’ # 9782| } # 9783| # 9784|-> val = sym->st_value; # 9785| if (sym_sec != NULL && sym_sec->output_section != NULL) # 9786| val += sym_sec->output_offset + sym_sec->output_section->vma; Error: GCC_ANALYZER_WARNING (CWE-476): [#def61] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9888:39: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9852:7: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9854:30: branch_true: following ‘true’ branch (when ‘ent’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9855:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9855:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9857:14: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9857:14: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9888:39: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9888:39: danger: dereference of NULL ‘htab’ # 9886| sym->st_shndx # 9887| = (_bfd_elf_section_from_bfd_section # 9888|-> (info->output_bfd, htab->glink->output_section)); # 9889| sym->st_value = (ent->glink_offset # 9890| + htab->glink->output_offset Error: GCC_ANALYZER_WARNING (CWE-476): [#def62] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9910:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9896:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9907:7: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9909:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9910:9: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:9910:9: danger: dereference of NULL ‘htab’ # 9908| # 9909| if (ppc_elf_hash_entry (h)->has_sda_refs) # 9910|-> s = htab->relsbss; # 9911| else if (h->root.u.def.section == htab->elf.sdynrelro) # 9912| s = htab->elf.sreldynrelro; Error: GCC_ANALYZER_WARNING (CWE-476): [#def63] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:10046:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:10037:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:10038:10: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:10037:7: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:10040:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:10046:15: danger: dereference of NULL ‘htab’ #10044| #10045| p += htab->elf.hgot->root.u.def.value; #10046|-> if (htab->plt_type == PLT_OLD) #10047| { #10048| /* Add a blrl instruction at _GLOBAL_OFFSET_TABLE_-4 Error: GCC_ANALYZER_WARNING (CWE-476): [#def64] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:10116:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:10079:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:10080:10: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:10079:7: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:10081:10: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:10079:7: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:10082:10: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:10079:7: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:10086:35: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:10111:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:10116:17: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:10116:17: danger: dereference of NULL ‘htab’ #10114| bfd_byte *loc; #10115| #10116|-> loc = htab->srelplt2->contents; #10117| #10118| /* Output the @ha relocation for the first instruction. */ Error: GCC_ANALYZER_WARNING (CWE-476): [#def65] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-ppc.c:10161:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ #10159| } #10160| #10161|-> if (htab->glink != NULL #10162| && htab->glink->contents != NULL #10163| && htab->elf.dynamic_sections_created) Error: GCC_ANALYZER_WARNING (CWE-476): [#def66] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-s390.c:1913:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-s390.c:1788:6: branch_false: following ‘false’ branch (when ‘dynobj’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-s390.c:1791:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-s390.c:1901:30: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-s390.c:1903:12: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-s390.c:1903:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-s390.c:1906:16: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-s390.c:1906:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-s390.c:1907:19: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-s390.c:1906:11: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-s390.c:1908:19: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-s390.c:1906:11: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-s390.c:1909:19: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-s390.c:1906:11: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-s390.c:1910:19: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-s390.c:1906:11: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-s390.c:1911:19: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-s390.c:1906:11: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-s390.c:1912:19: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-s390.c:1906:11: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-s390.c:1913:19: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-s390.c:1913:19: danger: dereference of NULL ‘htab’ # 1911| || s == htab->elf.iplt # 1912| || s == htab->elf.igotplt # 1913|-> || s == htab->irelifunc) # 1914| { # 1915| /* Strip this section if we don't need it; see the Error: GCC_ANALYZER_WARNING (CWE-476): [#def67] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-s390.c:3115:55: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sym’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-s390.c:2016:1: enter_function: entry to ‘elf_s390_relocate_section’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-s390.c:2032:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-s390.c:2038:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-s390.c:2038:10: call_function: inlined call to ‘elf_hash_table_id’ from ‘elf_s390_relocate_section’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-s390.c:2038:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-s390.c:2040:3: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-s390.c:2045:10: branch_true: following ‘true’ branch (when ‘rel < relend’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-s390.c:2058:17: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-s390.c:2062:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-s390.c:2062:10: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-s390.c:2045:10: branch_true: following ‘true’ branch (when ‘rel < relend’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-s390.c:2058:17: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-s390.c:2045:10: branch_true: following ‘true’ branch (when ‘rel < relend’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-s390.c:2058:17: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-s390.c:2045:10: branch_true: following ‘true’ branch (when ‘rel < relend’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-s390.c:2058:17: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-s390.c:2065:10: branch_false: following ‘false’ branch (when ‘r_type <= 251’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-s390.c:2071:31: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-s390.c:2138:11: branch_false: following ‘false’ branch (when ‘sym_hashes’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-s390.c:2138:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-s390.c:2207:14: branch_false: following ‘false’ branch (when ‘base_got’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-s390.c:2210:14: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-s390.c:3089:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-s390.c:3101:13: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-s390.c:3105:10: branch_true: following ‘true’ branch (when ‘r != 2’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-s390.c:3109:14: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-s390.c:3109:14: branch_false: following ‘false’ branch (when ‘h’ is NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-s390.c:3115:55: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf32-s390.c:3115:55: danger: dereference of NULL ‘sym’ # 3113| name = bfd_elf_string_from_elf_section (input_bfd, # 3114| symtab_hdr->sh_link, # 3115|-> sym->st_name); # 3116| if (name == NULL) # 3117| return false; Error: GCC_ANALYZER_WARNING (CWE-476): [#def68] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-s390.c:3190:55: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sym’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-s390.c:1985:1: enter_function: entry to ‘elf_s390_relocate_section’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-s390.c:2001:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-s390.c:2007:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-s390.c:2007:10: call_function: inlined call to ‘elf_hash_table_id’ from ‘elf_s390_relocate_section’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-s390.c:2007:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-s390.c:2012:3: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-s390.c:2017:10: branch_true: following ‘true’ branch (when ‘rel < relend’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-s390.c:2032:16: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-s390.c:2033:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-s390.c:2033:10: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-s390.c:2017:10: branch_true: following ‘true’ branch (when ‘rel < relend’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-s390.c:2032:16: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-s390.c:2017:10: branch_true: following ‘true’ branch (when ‘rel < relend’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-s390.c:2032:16: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-s390.c:2017:10: branch_true: following ‘true’ branch (when ‘rel < relend’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-s390.c:2032:16: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-s390.c:2036:10: branch_false: following ‘false’ branch (when ‘r_type <= 251’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-s390.c:2042:31: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-s390.c:2113:11: branch_false: following ‘false’ branch (when ‘sym_hashes’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-s390.c:2113:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-s390.c:2182:14: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-s390.c:2185:14: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-s390.c:3148:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-s390.c:3149:44: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-s390.c:3148:11: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-s390.c:3164:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-s390.c:3164:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-s390.c:3176:13: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-s390.c:3180:10: branch_true: following ‘true’ branch (when ‘r != 2’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-s390.c:3184:14: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-s390.c:3184:14: branch_false: following ‘false’ branch (when ‘h’ is NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-s390.c:3190:55: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-s390.c:3190:55: danger: dereference of NULL ‘sym’ # 3188| name = bfd_elf_string_from_elf_section (input_bfd, # 3189| symtab_hdr->sh_link, # 3190|-> sym->st_name); # 3191| if (name == NULL) # 3192| return false; Error: GCC_ANALYZER_WARNING (CWE-476): [#def69] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:1334:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:2112:1: enter_function: entry to ‘elf_x86_64_scan_relocs’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:2124:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:2127:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:2127:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:2127:10: call_function: inlined call to ‘elf_hash_table_id’ from ‘elf_x86_64_scan_relocs’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:2127:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:2134:3: call_function: inlined call to ‘bfd_get_flavour’ from ‘elf_x86_64_scan_relocs’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:2151:22: branch_true: following ‘true’ branch (when ‘rel < rel_end’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:2163:18: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:2167:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:2170:23: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:2170:23: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:2170:23: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:2170:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:2178:22: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:2178:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:2181:18: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:2183:14: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:2187:15: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:2187:14: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:2216:12: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:2250:10: branch_false: following ‘false’ branch (when ‘h’ is NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:2256:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:2273:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:2277:13: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def70] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:1784:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:2112:1: enter_function: entry to ‘elf_x86_64_scan_relocs’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:2124:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:2127:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:2127:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:2127:10: call_function: inlined call to ‘elf_hash_table_id’ from ‘elf_x86_64_scan_relocs’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:2127:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:2134:3: call_function: inlined call to ‘bfd_get_flavour’ from ‘elf_x86_64_scan_relocs’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:2151:22: branch_true: following ‘true’ branch (when ‘rel < rel_end’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:2163:18: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:2167:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:2170:23: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:2170:23: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:2170:23: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:2170:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:2178:22: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:2178:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:2181:18: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:2183:14: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:2187:15: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:2187:14: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:2216:12: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:2250:10: branch_false: following ‘false’ branch (when ‘h’ is NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:2256:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:2257:11: branch_true: following ‘true’ branch (when ‘h’ is NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:2264:16: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def71] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4664:46: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4664:20: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4664:46: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4664:46: danger: dereference of NULL ‘htab’ # 4662| # 4663| /* Use the second PLT section only if there is .plt section. */ # 4664|-> use_plt_second = htab->elf.splt != NULL && htab->plt_second != NULL; # 4665| # 4666| eh = (struct elf_x86_link_hash_entry *) h; Error: GCC_ANALYZER_WARNING (CWE-476): [#def72] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4772:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4664:20: branch_false: following ‘false’ branch... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4667:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4673:21: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4675:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4687:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4687:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4695:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4700:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4713:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4721:40: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4728:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4740:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4769:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4771:15: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4771:14: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4772:13: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4772:13: danger: dereference of NULL ‘htab’ # 4770| { # 4771| if (htab->plt.has_plt0) # 4772|-> bfd_put_64 (output_bfd, (plt->output_section->vma # 4773| + plt->output_offset # 4774| + h->plt.offset Error: GCC_ANALYZER_WARNING (CWE-476): [#def73] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4790:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4664:20: branch_false: following ‘false’ branch... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4667:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4673:21: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4675:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4687:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4687:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4695:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4700:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4713:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4721:40: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4728:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4740:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4769:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4771:15: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4771:14: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4779:28: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4790:29: danger: dereference of NULL ‘htab’ # 4788| /* If an STT_GNU_IFUNC symbol is locally defined, generate # 4789| R_X86_64_IRELATIVE instead of R_X86_64_JUMP_SLOT. */ # 4790|-> rela.r_info = htab->r_info (0, R_X86_64_IRELATIVE); # 4791| rela.r_addend = (h->root.u.def.value # 4792| + h->root.u.def.section->output_section->vma Error: GCC_ANALYZER_WARNING (CWE-476): [#def74] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4804:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4664:20: branch_false: following ‘false’ branch... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4667:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4673:21: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4675:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4687:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4687:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4695:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4700:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4713:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4721:40: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4728:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4740:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4769:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4771:15: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4771:14: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4779:28: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4782:14: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4782:15: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4804:29: danger: dereference of NULL ‘htab’ # 4802| else # 4803| { # 4804|-> rela.r_info = htab->r_info (h->dynindx, R_X86_64_JUMP_SLOT); # 4805| if (htab->params->mark_plt) # 4806| rela.r_addend = (resolved_plt->output_section->vma Error: GCC_ANALYZER_WARNING (CWE-476): [#def75] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4851:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4664:20: branch_false: following ‘false’ branch... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4667:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4673:21: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4675:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4843:12: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4843:11: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4851:7: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4851:7: danger: dereference of NULL ‘htab’ # 4849| # 4850| /* Set the entry in the GOT procedure linkage table. */ # 4851|-> plt = htab->plt_got; # 4852| got = htab->elf.sgot; # 4853| got_offset = h->got.offset; Error: GCC_ANALYZER_WARNING (CWE-476): [#def76] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4956:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4664:20: branch_false: following ‘false’ branch... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4667:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4673:21: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4843:11: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4892:6: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4914:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4915:12: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4914:7: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4914:7: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4914:7: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4914:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4920:17: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4926:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4938:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4939:14: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4938:11: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4941:15: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4941:14: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4944:19: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4944:18: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4948:19: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4950:18: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4952:19: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4956:33: danger: dereference of NULL ‘htab’ # 4954| h->root.u.def.section->owner); # 4955| # 4956|-> rela.r_info = htab->r_info (0, # 4957| R_X86_64_IRELATIVE); # 4958| rela.r_addend = (h->root.u.def.value Error: GCC_ANALYZER_WARNING (CWE-476): [#def77] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4982:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4664:20: branch_false: following ‘false’ branch... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4667:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4673:21: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4843:11: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4892:6: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4914:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4915:12: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4914:7: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4914:7: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4914:7: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4914:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4920:17: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4926:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4938:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4939:14: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4938:11: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4941:15: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4941:14: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4966:20: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4966:19: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4976:19: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4976:18: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4982:19: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4982:19: danger: dereference of NULL ‘htab’ # 4980| contains the real function addres if we need pointer # 4981| equality. We load the GOT entry with the PLT entry. */ # 4982|-> if (htab->plt_second != NULL) # 4983| { # 4984| plt = htab->plt_second; Error: GCC_ANALYZER_WARNING (CWE-476): [#def78] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:5009:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4664:20: branch_false: following ‘false’ branch... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4667:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4673:21: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4843:11: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4892:6: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4914:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4915:12: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4914:7: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4914:7: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4914:7: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4914:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4920:17: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4926:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4999:15: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:5000:19: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4999:16: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:5002:16: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:5005:14: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:5009:29: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:5009:29: danger: dereference of NULL ‘htab’ # 5007| else # 5008| { # 5009|-> rela.r_info = htab->r_info (0, R_X86_64_RELATIVE); # 5010| rela.r_addend = (h->root.u.def.value # 5011| + h->root.u.def.section->output_section->vma Error: GCC_ANALYZER_WARNING (CWE-476): [#def79] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:5022:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4664:20: branch_false: following ‘false’ branch... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4667:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4673:21: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4843:11: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4892:6: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4914:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4915:12: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4914:7: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4914:7: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4914:7: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4914:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4920:17: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4926:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:5022:25: danger: dereference of NULL ‘htab’ # 5020| bfd_put_64 (output_bfd, (bfd_vma) 0, # 5021| htab->elf.sgot->contents + h->got.offset); # 5022|-> rela.r_info = htab->r_info (h->dynindx, R_X86_64_GLOB_DAT); # 5023| rela.r_addend = 0; # 5024| } Error: GCC_ANALYZER_WARNING (CWE-476): [#def80] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:5048:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4664:20: branch_false: following ‘false’ branch... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4667:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4673:21: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4843:11: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:4892:6: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:5037:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:5043:7: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:5043:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:5048:21: danger: dereference of NULL ‘htab’ # 5046| + h->root.u.def.section->output_section->vma # 5047| + h->root.u.def.section->output_offset); # 5048|-> rela.r_info = htab->r_info (h->dynindx, R_X86_64_COPY); # 5049| rela.r_addend = 0; # 5050| if (h->root.u.def.section == htab->elf.sdynrelro) Error: GCC_ANALYZER_WARNING (CWE-476): [#def81] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:5112:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:5107:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:5108:10: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:5107:7: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:5112:32: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elf64-x86-64.c:5112:32: danger: dereference of NULL ‘htab’ # 5110| /* Check relocation against STT_GNU_IFUNC symbol if there are # 5111| dynamic symbols. */ # 5112|-> unsigned long r_symndx = htab->r_sym (rela->r_info); # 5113| if (r_symndx != STN_UNDEF) # 5114| { Error: GCC_ANALYZER_WARNING (CWE-476): [#def82] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-aarch64.c:9976:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sym’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-aarch64.c:10104:1: enter_function: entry to ‘elf64_aarch64_finish_local_dynamic_symbol’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-aarch64.c:10111:10: call_function: calling ‘elf64_aarch64_finish_dynamic_symbol’ from ‘elf64_aarch64_finish_local_dynamic_symbol’ # 9974| /* Mark the symbol as undefined, rather than as defined in # 9975| the .plt section. */ # 9976|-> sym->st_shndx = SHN_UNDEF; # 9977| /* If the symbol is weak we need to clear the value. # 9978| Otherwise, the PLT entry would provide a definition for Error: GCC_ANALYZER_WARNING (CWE-476): [#def83] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:450:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2223:1: enter_function: entry to ‘riscv_elf_relocate_section’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2244:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2247:21: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2248:22: branch_true: following ‘true’ branch (when ‘rel < relend’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2259:20: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2265:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2269:18: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2274:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2276:28: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2281:14: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2282:18: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2281:15: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2284:19: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2284:19: call_function: calling ‘riscv_elf_get_local_sym_hash’ from ‘riscv_elf_relocate_section’ # 448| eh.elf.indx = sec->id; # 449| eh.elf.dynstr_index = ELFNN_R_SYM (rel->r_info); # 450|-> slot = htab_find_slot_with_hash (htab->loc_hash_table, &eh, h, # 451| create ? INSERT : NO_INSERT); # 452| Error: GCC_ANALYZER_WARNING (CWE-476): [#def84] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2440:44: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2244:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2247:21: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2248:22: branch_true: following ‘true’ branch (when ‘rel < relend’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2259:20: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2265:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2269:18: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2274:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2297:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2297:11: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2313:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2317:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2317:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2322:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2322:10: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2323:14: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2322:11: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2324:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2322:11: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2328:16: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2328:14: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2343:20: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2365:18: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2383:22: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2383:21: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2390:39: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2394:24: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2398:40: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2426:24: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2429:30: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2429:29: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2439:33: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2440:44: danger: dereference of NULL ‘htab’ # 2438| const struct elf_backend_data *bed = # 2439| get_elf_backend_data (output_bfd); # 2440|-> bfd_vma iplt_idx = htab->last_iplt_index--; # 2441| bfd_byte *loc = htab->elf.irelplt->contents # 2442| + iplt_idx * sizeof (ElfNN_External_Rela); Error: GCC_ANALYZER_WARNING (CWE-476): [#def85] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2558:52: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sym’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2223:1: enter_function: entry to ‘riscv_elf_relocate_section’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2236:44: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2236:44: call_function: inlined call to ‘elf_hash_table_id’ from ‘riscv_elf_relocate_section’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2236:44: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2237:36: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2244:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2247:21: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2248:22: branch_true: following ‘true’ branch (when ‘rel < relend’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2259:20: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2265:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2269:18: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2274:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2297:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2297:11: branch_false: following ‘false’ branch (when ‘sym_hashes’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2297:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2297:11: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2297:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2317:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2322:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2322:10: branch_false: following ‘false’ branch (when ‘h’ is NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2558:52: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:2558:52: danger: dereference of NULL ‘sym’ # 2556| { # 2557| name = (bfd_elf_string_from_elf_section # 2558|-> (input_bfd, symtab_hdr->sh_link, sym->st_name)); # 2559| if (name == NULL || *name == '\0') # 2560| name = bfd_section_name (sec); Error: GCC_ANALYZER_WARNING (CWE-476): [#def86] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:3344:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sym’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:3512:1: enter_function: entry to ‘riscv_elf_finish_local_dynamic_symbol’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:3517:10: call_function: calling ‘riscv_elf_finish_dynamic_symbol’ from ‘riscv_elf_finish_local_dynamic_symbol’ # 3342| /* Mark the symbol as undefined, rather than as defined in # 3343| the .plt section. Leave the value alone. */ # 3344|-> sym->st_shndx = SHN_UNDEF; # 3345| /* If the symbol is weak, we do need to clear the value. # 3346| Otherwise, the PLT entry would provide a definition for Error: GCC_ANALYZER_WARNING (CWE-476): [#def87] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:3503:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sym’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:3512:1: enter_function: entry to ‘riscv_elf_finish_local_dynamic_symbol’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:3517:10: call_function: calling ‘riscv_elf_finish_dynamic_symbol’ from ‘riscv_elf_finish_local_dynamic_symbol’ # 3501| if (h == htab->elf.hdynamic # 3502| || (h == htab->elf.hgot || h == htab->elf.hplt)) # 3503|-> sym->st_shndx = SHN_ABS; # 3504| # 3505| return true; Error: GCC_ANALYZER_WARNING (CWE-476): [#def88] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:3644:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ # 3642| # 3643| /* Fill PLT and GOT entries for local STT_GNU_IFUNC symbols. */ # 3644|-> htab_traverse (htab->loc_hash_table, # 3645| riscv_elf_finish_local_dynamic_symbol, # 3646| info); Error: GCC_ANALYZER_WARNING (CWE-476): [#def89] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:4753:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ # 4751| bfd_byte *contents = elf_section_data (sec)->this_hdr.contents; # 4752| /* Can relax to x0 even when gp relaxation is disabled. */ # 4753|-> bfd_vma gp = htab->params->relax_gp # 4754| ? riscv_global_pointer_value (link_info) # 4755| : 0; Error: GCC_ANALYZER_WARNING (CWE-476): [#def90] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:4979:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ # 4977| struct riscv_elf_link_hash_table *htab = riscv_elf_hash_table (link_info); # 4978| /* Can relax to x0 even when gp relaxation is disabled. */ # 4979|-> bfd_vma gp = htab->params->relax_gp # 4980| ? riscv_global_pointer_value (link_info) # 4981| : 0; Error: GCC_ANALYZER_WARNING (CWE-476): [#def91] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:5125:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ # 5123| { # 5124| struct riscv_elf_link_hash_table *htab = riscv_elf_hash_table (info); # 5125|-> htab->data_segment_phase = data_segment_phase; # 5126| } # 5127| Error: GCC_ANALYZER_WARNING (CWE-476): [#def92] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:5160:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:5151:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:5152:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:5151:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:5153:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:5151:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:5154:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:5151:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:5155:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:5151:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:5156:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfnn-riscv.c:5160:11: danger: dereference of NULL ‘htab’ # 5158| /* The exp_seg_relro_adjust is enum phase_enum (0x4), # 5159| and defined in ld/ldexp.h. */ # 5160|-> || *(htab->data_segment_phase) == 4) # 5161| return true; # 5162| Error: GCC_ANALYZER_WARNING (CWE-476): [#def93] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfxx-x86.c:1857:36: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfxx-x86.c:1857:15: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfxx-x86.c:1857:36: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfxx-x86.c:1857:36: danger: dereference of NULL ‘htab’ # 1855| # 1856| plt0_entry_size # 1857|-> = htab->plt.has_plt0 ? htab->sframe_plt->plt0_entry_size : 0; # 1858| plt_entry_size = htab->sframe_plt->pltn_entry_size; # 1859| pltn_fres = htab->sframe_plt->pltn_fres; Error: GCC_ANALYZER_WARNING (CWE-476): [#def94] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfxx-x86.c:1858:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfxx-x86.c:1857:15: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfxx-x86.c:1858:28: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfxx-x86.c:1858:28: danger: dereference of NULL ‘htab’ # 1856| plt0_entry_size # 1857| = htab->plt.has_plt0 ? htab->sframe_plt->plt0_entry_size : 0; # 1858|-> plt_entry_size = htab->sframe_plt->pltn_entry_size; # 1859| pltn_fres = htab->sframe_plt->pltn_fres; # 1860| num_pltn_fres = htab->sframe_plt->pltn_num_fres; Error: GCC_ANALYZER_WARNING (CWE-476): [#def95] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfxx-x86.c:1869:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ # 1867| { # 1868| ectx = &htab->plt_second_cfe_ctx; # 1869|-> dpltsec = htab->plt_second; # 1870| # 1871| plt0_entry_size = 0; Error: GCC_ANALYZER_WARNING (CWE-476): [#def96] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfxx-x86.c:1883:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ # 1881| { # 1882| ectx = &htab->plt_got_cfe_ctx; # 1883|-> dpltsec = htab->plt_got; # 1884| # 1885| plt0_entry_size = 0; Error: GCC_ANALYZER_WARNING (CWE-476): [#def97] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfxx-x86.c:1992:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ # 1990| { # 1991| case SFRAME_PLT: # 1992|-> ectx = htab->plt_cfe_ctx; # 1993| sec = htab->plt_sframe; # 1994| break; Error: GCC_ANALYZER_WARNING (CWE-476): [#def98] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfxx-x86.c:1996:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ # 1994| break; # 1995| case SFRAME_PLT_SEC: # 1996|-> ectx = htab->plt_second_cfe_ctx; # 1997| sec = htab->plt_second_sframe; # 1998| break; Error: GCC_ANALYZER_WARNING (CWE-476): [#def99] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfxx-x86.c:2000:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ # 1998| break; # 1999| case SFRAME_PLT_GOT: # 2000|-> ectx = htab->plt_got_cfe_ctx; # 2001| sec = htab->plt_got_sframe; # 2002| break; Error: GCC_ANALYZER_WARNING (CWE-476): [#def100] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/elfxx-x86.c:3332:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ # 3330| # 3331| case elf_x86_tls_error_indirect_call: # 3332|-> info->callbacks->einfo # 3333| /* xgettext:c-format */ # 3334| (_("%pB(%pA+0x%v): relocation %s against `%s' must be used " Error: GCC_ANALYZER_WARNING (CWE-476): [#def101] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:323:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘buf’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:487:1: enter_function: entry to ‘ihex_object_p’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:495:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:497:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:497:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:504:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:504:6: branch_false: following ‘false’ branch... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:510:15: branch_true: following ‘true’ branch (when ‘i != 9’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:512:13: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:512:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:510:22: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:520:6: branch_false: following ‘false’ branch (when ‘type <= 5’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:527:8: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:527:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:530:8: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def102] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:333:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘buf’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:487:1: enter_function: entry to ‘ihex_object_p’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:495:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:497:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:497:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:504:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:504:6: branch_false: following ‘false’ branch... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:510:15: branch_true: following ‘true’ branch (when ‘i != 9’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:512:13: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:512:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:510:22: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:520:6: branch_false: following ‘false’ branch (when ‘type <= 5’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:527:8: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:527:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:530:8: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def103] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:334:53: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘buf’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:487:1: enter_function: entry to ‘ihex_object_p’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:495:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:497:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:497:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:504:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:504:6: branch_false: following ‘false’ branch... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:510:15: branch_true: following ‘true’ branch (when ‘i != 9’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:512:13: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:512:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:510:22: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:520:6: branch_false: following ‘false’ branch (when ‘type <= 5’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:527:8: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:527:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:530:8: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def104] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:597:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘buf’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:542:1: enter_function: entry to ‘ihex_read_section’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:550:6: branch_false: following ‘false’ branch... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:556:15: call_function: calling ‘ihex_get_byte’ from ‘ihex_read_section’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:556:15: return_function: returning to ‘ihex_read_section’ from ‘ihex_get_byte’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:556:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:563:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:570:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:573:13: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:577:10: branch_false: following ‘false’ branch (when ‘type == 0’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:585:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:585:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:593:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:593:10: branch_false: following ‘false’ branch... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/ihex.c:597:16: release_memory: ‘buf’ is NULL gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def105] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:521:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘buf’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:677:1: enter_function: entry to ‘symbolsrec_object_p’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:683:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:684:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:683:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:687:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:687:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:693:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:696:8: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def106] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:527:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘data’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:677:1: enter_function: entry to ‘symbolsrec_object_p’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:683:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:684:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:683:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:687:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:687:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:693:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:696:8: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def107] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:533:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘data’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:677:1: enter_function: entry to ‘symbolsrec_object_p’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:683:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:684:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:683:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:687:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:687:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:693:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:696:8: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def108] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:589:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘buf’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:677:1: enter_function: entry to ‘symbolsrec_object_p’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:683:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:684:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:683:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:687:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:687:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:693:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:696:8: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def109] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:594:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘data’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:677:1: enter_function: entry to ‘symbolsrec_object_p’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:683:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:684:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:683:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:687:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:687:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:693:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:696:8: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def110] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:599:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘data’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:677:1: enter_function: entry to ‘symbolsrec_object_p’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:683:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:684:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:683:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:687:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:687:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:693:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:696:8: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def111] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:767:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘buf’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:711:1: enter_function: entry to ‘srec_read_section’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:719:6: branch_false: following ‘false’ branch... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:722:15: call_function: calling ‘srec_get_byte’ from ‘srec_read_section’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:722:15: return_function: returning to ‘srec_read_section’ from ‘srec_get_byte’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:722:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:729:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:734:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:737:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:737:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:740:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:744:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:753:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:753:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:758:15: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def112] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:772:38: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘data’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:711:1: enter_function: entry to ‘srec_read_section’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:719:6: branch_false: following ‘false’ branch... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:722:15: call_function: calling ‘srec_get_byte’ from ‘srec_read_section’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:722:15: return_function: returning to ‘srec_read_section’ from ‘srec_get_byte’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:722:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:729:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:734:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:737:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:737:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:740:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:744:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:753:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:753:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:758:15: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def113] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:777:38: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘data’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:711:1: enter_function: entry to ‘srec_read_section’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:719:6: branch_false: following ‘false’ branch... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:722:15: call_function: calling ‘srec_get_byte’ from ‘srec_read_section’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:722:15: return_function: returning to ‘srec_read_section’ from ‘srec_get_byte’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:722:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:729:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:734:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:737:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:737:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:740:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:744:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:753:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:753:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/srec.c:758:15: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def114] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/stabs.c:401:20: warning[-Wanalyzer-null-argument]: use of NULL ‘symb’ where non-null expected gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/stabs.c:191:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/stabs.c:192:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/stabs.c:191:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/stabs.c:193:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/stabs.c:191:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/stabs.c:194:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/stabs.c:191:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/stabs.c:198:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/stabs.c:198:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/stabs.c:203:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/stabs.c:203:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/stabs.c:208:27: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/stabs.c:208:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/stabs.c:209:30: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/stabs.c:208:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/stabs.c:216:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/stabs.c:246:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/stabs.c:250:3: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/stabs.c:256:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/stabs.c:257:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/stabs.c:256:7: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/stabs.c:267:17: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/stabs.c:272:8: branch_true: following ‘true’ branch (when ‘sym < symend’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/stabs.c:279:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/stabs.c:279:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/stabs.c:283:14: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/stabs.c:304:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/stabs.c:313:16: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/stabs.c:321:10: branch_true: following ‘true’ branch (when ‘type == 130’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/stabs.c:338:16: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/stabs.c:389:11: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/stabs.c:394:13: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/stabs.c:395:14: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/stabs.c:398:16: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/stabs.c:398:40: branch_true: following ‘true’ branch (when ‘t’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/stabs.c:399:17: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/stabs.c:399:16: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/stabs.c:400:20: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/stabs.c:399:17: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/bfd/../../bfd/stabs.c:401:28: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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-457): [#def115] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-archive.c:768:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘err’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-archive.c:650:1: enter_function: entry to ‘ctf_dict_open_cached’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def116] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-hash.c:186:7: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-hash.c:164:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-hash.c:168:17: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-hash.c:171:6: branch_false: following ‘false’ branch (when ‘dynhash’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-hash.c:174:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-hash.c:174:6: branch_true: following ‘true’ branch... branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-hash.c:177:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-hash.c:184:6: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-hash.c:184:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-hash.c:186:7: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def117] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-hash.c:187:7: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-hash.c:164:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-hash.c:168:17: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-hash.c:171:6: branch_false: following ‘false’ branch (when ‘dynhash’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-hash.c:174:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-hash.c:174:6: branch_true: following ‘true’ branch... branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-hash.c:177:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-hash.c:184:6: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-hash.c:184:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-hash.c:186:7: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def118] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-hash.c:233:11: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-hash.c:218:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-hash.c:224:8: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-hash.c:224:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-hash.c:228:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-hash.c:228:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-hash.c:232:21: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def119] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-inlines.h:96:3: warning[-Wanalyzer-malloc-leak]: leak of ‘files’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-link.c:1810:6: branch_false: following ‘false’ branch (when ‘names’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-link.c:1817:61: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-link.c:1817:6: branch_false: following ‘false’ branch (when ‘files’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-link.c:1829:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-link.c:1829:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-link.c:1833:13: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-link.c:1837:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-link.c:1840:55: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-link.c:1839:14: branch_true: following ‘true’ branch (when ‘dynames’ is NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-link.c:1842:15: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def120] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-inlines.h:96:3: warning[-Wanalyzer-malloc-leak]: leak of ‘names’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-link.c:1810:6: branch_false: following ‘false’ branch (when ‘names’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-link.c:1817:61: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-link.c:1817:6: branch_true: following ‘true’ branch (when ‘files’ is NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-link.c:1819:7: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def121] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-lookup.c:590:17: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-lookup.c:1298:1: enter_function: entry to ‘ctf_func_args’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-lookup.c:1303:15: call_function: inlined call to ‘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): [#def122] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-open.c:1524:14: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-open.c:1442:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-open.c:1443:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-open.c:1442:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-open.c:1449:31: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-open.c:1465:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-open.c:1469:6: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-open.c:1484:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-open.c:1492:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-open.c:1492:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-open.c:1495:13: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-open.c:1495:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-open.c:1498:3: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-open.c:1500:25: acquire_memory: allocated here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-open.c:1500:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-open.c:1506:15: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-open.c:1507:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-open.c:1510:6: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-open.c:1510:6: branch_false: following ‘false’ branch (when ‘foreign_endian == 0’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-open.c:1512:23: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def123] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-open.c:1524:14: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-open.c:1442:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-open.c:1443:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-open.c:1442:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-open.c:1449:31: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-open.c:1465:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-open.c:1469:6: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-open.c:1484:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-open.c:1492:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-open.c:1492:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-open.c:1495:13: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-open.c:1495:13: acquire_memory: allocated here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-open.c:1495:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-open.c:1498:3: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-open.c:1500:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-open.c:1506:15: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-open.c:1507:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-open.c:1510:6: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-open.c:1510:6: branch_false: following ‘false’ branch (when ‘foreign_endian == 0’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-open.c:1512:23: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def124] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-string.c:827:3: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-string.c:662:6: branch_false: following ‘false’ branch (when ‘strtab’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-string.c:671:21: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-string.c:700:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-string.c:709:32: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-string.c:714:6: branch_false: following ‘false’ branch (when ‘sorttab’ is non-NULL)... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-string.c:740:27: acquire_memory: allocated here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-string.c:740:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-string.c:743:16: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-string.c:745:6: branch_false: following ‘false’ branch (when ‘new_strtab == 0’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-string.c:751:31: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-string.c:760:15: branch_false: following ‘false’ branch (when ‘strtab_count <= i’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-string.c:766:3: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-string.c:790:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libctf/../../libctf/ctf-string.c:792:7: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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-457): [#def125] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libdecnumber/../../libdecnumber/decNumber.c:6276:37: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*u’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libdecnumber/../../libdecnumber/decNumber.c:6163:12: enter_function: entry to ‘decCompare’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libdecnumber/../../libdecnumber/decNumber.c:6174:8: branch_false: following ‘false’ branch (when ‘result != 0’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libdecnumber/../../libdecnumber/decNumber.c:6188:8: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libdecnumber/../../libdecnumber/decNumber.c:6188:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libdecnumber/../../libdecnumber/decNumber.c:6196:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libdecnumber/../../libdecnumber/decNumber.c:6203:11: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libdecnumber/../../libdecnumber/decNumber.c:6204:36: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libdecnumber/../../libdecnumber/decNumber.c:6203:11: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libdecnumber/../../libdecnumber/decNumber.c:6203:36: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libdecnumber/../../libdecnumber/decNumber.c:6203:11: call_function: calling ‘decUnitCompare’ from ‘decCompare’ # 6274| else { /* non-negative result */ # 6275| /* check units of the result before freeing any storage */ # 6276|-> for (u=acc; u<acc+accunits-1 && *u==0;) u++; # 6277| result=(*u==0 ? 0 : +1); # 6278| } Error: GCC_ANALYZER_WARNING (CWE-457): [#def126] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libdecnumber/../../libdecnumber/decNumber.c:6277:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*u’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libdecnumber/../../libdecnumber/decNumber.c:6163:12: enter_function: entry to ‘decCompare’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libdecnumber/../../libdecnumber/decNumber.c:6174:8: branch_false: following ‘false’ branch (when ‘result != 0’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libdecnumber/../../libdecnumber/decNumber.c:6188:8: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libdecnumber/../../libdecnumber/decNumber.c:6188:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libdecnumber/../../libdecnumber/decNumber.c:6196:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libdecnumber/../../libdecnumber/decNumber.c:6203:11: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libdecnumber/../../libdecnumber/decNumber.c:6204:36: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libdecnumber/../../libdecnumber/decNumber.c:6203:11: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libdecnumber/../../libdecnumber/decNumber.c:6203:36: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libdecnumber/../../libdecnumber/decNumber.c:6203:11: call_function: calling ‘decUnitCompare’ from ‘decCompare’ # 6275| /* check units of the result before freeing any storage */ # 6276| for (u=acc; u<acc+accunits-1 && *u==0;) u++; # 6277|-> result=(*u==0 ? 0 : +1); # 6278| } # 6279| /* clean up and return the result */ Error: GCC_ANALYZER_WARNING (CWE-126): [#def127] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libdecnumber/../../libdecnumber/decNumber.c:6376:19: warning[-Wanalyzer-out-of-bounds]: buffer over-read gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libdecnumber/../../libdecnumber/decNumber.c:7422:13: enter_function: entry to ‘decSetSubnormal’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libdecnumber/../../libdecnumber/decNumber.c:7458:6: branch_false: following ‘false’ branch (when ‘adjust > 0’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libdecnumber/../../libdecnumber/decNumber.c:7468:3: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libdecnumber/../../libdecnumber/decNumber.c:7472:3: call_function: calling ‘decSetCoeff’ from ‘decSetSubnormal’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libdecnumber/../../libdecnumber/decNumber.c:7472:3: return_function: returning to ‘decSetSubnormal’ from ‘decSetCoeff’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libdecnumber/../../libdecnumber/decNumber.c:7473:3: call_function: inlined call to ‘decApplyRound’ from ‘decSetSubnormal’ branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libdecnumber/../../libdecnumber/decNumber.c:7473:3: call_function: inlined call to ‘decApplyRound’ from ‘decSetSubnormal’ # 6374| carry+=*a; # 6375| a++; # 6376|-> carry+=((eInt)*b)*m; /* [special-casing m=1/-1 */ # 6377| b++; /* here is not a win] */ # 6378| /* here carry is new Unit of digits; it could be +ve or -ve */ Error: GCC_ANALYZER_WARNING (CWE-465): [#def128] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/dyn-string.c:251:6: warning[-Wanalyzer-deref-before-check]: check of ‘dest’ for NULL after already dereferencing it gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/dyn-string.c:244:1: enter_function: entry to ‘dyn_string_insert’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/dyn-string.c:248:6: branch_false: following ‘false’ branch (when ‘src != dest’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/dyn-string.c:251:32: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/dyn-string.c:251:7: call_function: calling ‘dyn_string_resize’ from ‘dyn_string_insert’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/dyn-string.c:251:7: return_function: returning to ‘dyn_string_insert’ from ‘dyn_string_resize’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def129] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/dyn-string.c:274:6: warning[-Wanalyzer-deref-before-check]: check of ‘dest’ for NULL after already dereferencing it gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/dyn-string.c:269:1: enter_function: entry to ‘dyn_string_insert_cstr’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/dyn-string.c:274:7: call_function: calling ‘dyn_string_resize’ from ‘dyn_string_insert_cstr’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/dyn-string.c:274:7: return_function: returning to ‘dyn_string_insert_cstr’ from ‘dyn_string_resize’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def130] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/dyn-string.c:295:6: warning[-Wanalyzer-deref-before-check]: check of ‘dest’ for NULL after already dereferencing it gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/dyn-string.c:291:1: enter_function: entry to ‘dyn_string_insert_char’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/dyn-string.c:295:7: call_function: calling ‘dyn_string_resize’ from ‘dyn_string_insert_char’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/dyn-string.c:295:7: return_function: returning to ‘dyn_string_insert_char’ from ‘dyn_string_resize’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def131] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/dyn-string.c:314:6: warning[-Wanalyzer-deref-before-check]: check of ‘dest’ for NULL after already dereferencing it gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/dyn-string.c:312:1: enter_function: entry to ‘dyn_string_append’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/dyn-string.c:314:7: call_function: calling ‘dyn_string_resize’ from ‘dyn_string_append’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/dyn-string.c:314:7: return_function: returning to ‘dyn_string_append’ from ‘dyn_string_resize’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def132] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/dyn-string.c:332:6: warning[-Wanalyzer-deref-before-check]: check of ‘dest’ for NULL after already dereferencing it gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/dyn-string.c:326:1: enter_function: entry to ‘dyn_string_append_cstr’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/dyn-string.c:332:7: call_function: calling ‘dyn_string_resize’ from ‘dyn_string_append_cstr’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/dyn-string.c:332:7: return_function: returning to ‘dyn_string_append_cstr’ from ‘dyn_string_resize’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def133] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/dyn-string.c:346:6: warning[-Wanalyzer-deref-before-check]: check of ‘dest’ for NULL after already dereferencing it gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/dyn-string.c:343:1: enter_function: entry to ‘dyn_string_append_char’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/dyn-string.c:346:7: call_function: calling ‘dyn_string_resize’ from ‘dyn_string_append_char’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/dyn-string.c:346:7: return_function: returning to ‘dyn_string_append_char’ from ‘dyn_string_resize’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def134] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/make-relative-prefix.c:192:7: warning[-Wanalyzer-out-of-bounds]: heap-based buffer under-read gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/make-relative-prefix.c:428:1: enter_function: entry to ‘make_relative_prefix_ignore_links’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def135] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/make-relative-prefix.c:274:23: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘nstore’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/make-relative-prefix.c:428:1: enter_function: entry to ‘make_relative_prefix_ignore_links’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def136] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/make-relative-prefix.c:289:19: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘nstore’ where non-null expected gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/make-relative-prefix.c:428:1: enter_function: entry to ‘make_relative_prefix_ignore_links’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def137] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/obstack.c:210:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘new_chunk’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/obstack.c:209:3: release_memory: ‘new_chunk’ is NULL gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def138] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/simple-object-mach-o.c:1159:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘index’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/simple-object-mach-o.c:1079:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/simple-object-mach-o.c:1110:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/simple-object-mach-o.c:1121:8: branch_true: following ‘true’ branch (when ‘section’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/simple-object-mach-o.c:1128:21: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/simple-object-mach-o.c:1157:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/simple-object-mach-o.c:1159:17: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/simple-object-mach-o.c:1159:16: release_memory: ‘index’ is NULL gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def139] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/simple-object-mach-o.c:1210:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘index’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/simple-object-mach-o.c:1079:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/simple-object-mach-o.c:1110:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/simple-object-mach-o.c:1201:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/simple-object-mach-o.c:1210:27: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def140] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/strerror.c:756:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error_names’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/strerror.c:744:1: enter_function: entry to ‘strtoerrno’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/strerror.c:748:6: branch_true: following ‘true’ branch (when ‘name’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/strerror.c:750:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/strerror.c:750:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/strerror.c:752:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/strerror.c:752:11: call_function: calling ‘init_error_tables’ from ‘strtoerrno’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/strerror.c:752:11: return_function: returning to ‘strtoerrno’ from ‘init_error_tables’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/strerror.c:754:26: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/strerror.c:756:27: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def141] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/strsignal.c:524:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘signal_names’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/strsignal.c:512:1: enter_function: entry to ‘strtosigno’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/strsignal.c:516:6: branch_true: following ‘true’ branch (when ‘name’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/strsignal.c:518:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/strsignal.c:518:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/strsignal.c:520:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/strsignal.c:520:11: call_function: calling ‘init_signal_tables’ from ‘strtosigno’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/strsignal.c:520:11: return_function: returning to ‘strtosigno’ from ‘init_signal_tables’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/strsignal.c:522:23: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libiberty/../../libiberty/strsignal.c:524:28: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def142] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libsframe/../../libsframe/sframe-dump.c:76:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘flags_str’ where non-null expected gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libsframe/../../libsframe/sframe-dump.c:222:1: enter_function: entry to ‘dump_sframe’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def143] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libsframe/../../libsframe/sframe-dump.c:81:11: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘flags_str’ where non-null expected gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libsframe/../../libsframe/sframe-dump.c:222:1: enter_function: entry to ‘dump_sframe’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def144] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libsframe/../../libsframe/sframe-dump.c:85:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘flags_str’ where non-null expected gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libsframe/../../libsframe/sframe-dump.c:222:1: enter_function: entry to ‘dump_sframe’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def145] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libsframe/../../libsframe/sframe.c:110:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘hp’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libsframe/../../libsframe/sframe.c:973:1: enter_function: entry to ‘sframe_decoder_get_hdr_size’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libsframe/../../libsframe/sframe.c:976:9: call_function: inlined call to ‘sframe_decoder_get_header’ from ‘sframe_decoder_get_hdr_size’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libsframe/../../libsframe/sframe.c:977:10: call_function: inlined call to ‘sframe_get_hdr_size’ from ‘sframe_decoder_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): [#def146] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libsframe/../../libsframe/sframe.c:870:12: warning[-Wanalyzer-malloc-leak]: leak of ‘dctx’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libsframe/../../libsframe/sframe.c:869:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libsframe/../../libsframe/sframe.c:871:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libsframe/../../libsframe/sframe.c:871:11: branch_false: following ‘false’ branch (when ‘sf_size > 27’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libsframe/../../libsframe/sframe.c:877:51: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libsframe/../../libsframe/sframe.c:882:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libsframe/../../libsframe/sframe.c:889:15: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libsframe/../../libsframe/sframe.c:889:15: acquire_memory: allocated here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libsframe/../../libsframe/sframe.c:889:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libsframe/../../libsframe/sframe.c:891:3: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libsframe/../../libsframe/sframe.c:893:6: branch_true: following ‘true’ branch (when ‘foreign_endian != 0’)... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libsframe/../../libsframe/sframe.c:896:26: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def147] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libsframe/../../libsframe/sframe.c:987:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘hp’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libsframe/../../libsframe/sframe.c:983:1: enter_function: entry to ‘sframe_decoder_get_abi_arch’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libsframe/../../libsframe/sframe.c:986:19: call_function: inlined call to ‘sframe_decoder_get_header’ from ‘sframe_decoder_get_abi_arch’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libsframe/../../libsframe/sframe.c:987:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def148] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libsframe/../../libsframe/sframe.c:1006:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘hp’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libsframe/../../libsframe/sframe.c:1002:1: enter_function: entry to ‘sframe_decoder_get_fixed_fp_offset’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libsframe/../../libsframe/sframe.c:1005:9: call_function: inlined call to ‘sframe_decoder_get_header’ from ‘sframe_decoder_get_fixed_fp_offset’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libsframe/../../libsframe/sframe.c:1006:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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): [#def149] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libsframe/../../libsframe/sframe.c:1015:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘hp’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libsframe/../../libsframe/sframe.c:716:1: enter_function: entry to ‘sframe_fre_get_ra_offset’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libsframe/../../libsframe/sframe.c:719:22: call_function: inlined call to ‘sframe_decoder_get_fixed_ra_offset’ from ‘sframe_fre_get_ra_offset’ # 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): [#def150] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libsframe/../../libsframe/sframe.c:1649:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘encoder’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libsframe/../../libsframe/sframe.c:1643:1: enter_function: entry to ‘sframe_sort_funcdesc’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libsframe/../../libsframe/sframe.c:1647:9: call_function: inlined call to ‘sframe_encoder_get_header’ from ‘sframe_sort_funcdesc’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/libsframe/../../libsframe/sframe.c:1649:15: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/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: GCC_ANALYZER_WARNING (CWE-835): [#def151] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/opcodes/../../opcodes/aarch64-dis.c:2770:29: warning[-Wanalyzer-infinite-loop]: infinite loop gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/opcodes/../../opcodes/aarch64-dis.c:4159:1: enter_function: entry to ‘print_insn_aarch64_word’ # 2768| value = extract_field (FLD_rcpc3_size, inst->value, 0); # 2769| for (int i = 0; # 2770|-> aarch64_operands[inst->operands[i].type].op_class != AARCH64_OPND_CLASS_ADDRESS; # 2771| i++) # 2772| { Error: GCC_ANALYZER_WARNING (CWE-1335): [#def152] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/opcodes/../../opcodes/s390-mkopc.c:117:3: warning[-Wanalyzer-shift-count-overflow]: shift by count (‘64’) >= precision of type (‘64’) gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/opcodes/../../opcodes/s390-mkopc.c:367:1: enter_function: entry to ‘main’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/opcodes/../../opcodes/s390-mkopc.c:375:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/opcodes/../../opcodes/s390-mkopc.c:390:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/opcodes/../../opcodes/s390-mkopc.c:390:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/opcodes/../../opcodes/s390-mkopc.c:392:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/opcodes/../../opcodes/s390-mkopc.c:403:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/opcodes/../../opcodes/s390-mkopc.c:409:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/opcodes/../../opcodes/s390-mkopc.c:517:7: call_function: calling ‘insertExpandedMnemonic’ from ‘main’ # 115| str ++; # 116| } # 117|-> sort_value <<= 4*(16 - ix); # 118| sort_value += (min_cpu << 8) + mode_bits; # 119| no_nibbles = ix; Error: GCC_ANALYZER_WARNING (CWE-476): [#def153] gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/opcodes/../../opcodes/s390-mkopc.c:121:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/opcodes/../../opcodes/s390-mkopc.c:367:1: enter_function: entry to ‘main’ gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/opcodes/../../opcodes/s390-mkopc.c:375:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/opcodes/../../opcodes/s390-mkopc.c:390:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/opcodes/../../opcodes/s390-mkopc.c:390:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/opcodes/../../opcodes/s390-mkopc.c:392:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/opcodes/../../opcodes/s390-mkopc.c:403:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/opcodes/../../opcodes/s390-mkopc.c:409:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu-minimal/opcodes/../../opcodes/s390-mkopc.c:517:7: call_function: calling ‘insertExpandedMnemonic’ from ‘main’ # 119| no_nibbles = ix; # 120| for (ix = 0; ix < no_ops; ix++) # 121|-> if (sort_value > op_array[ix].sort_value) # 122| break; # 123| for (k = no_ops; k > ix; k--) Error: GCC_ANALYZER_WARNING (CWE-476): [#def154] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/archive.c:2382:36: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘syms’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/archive.c:2303:1: enter_function: entry to ‘_bfd_compute_and_write_armap’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/archive.c:2319:6: branch_true: following ‘true’ branch (when ‘elength != 0’)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/archive.c:2320:5: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/archive.c:2325:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/archive.c:2330:25: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/archive.c:2331:6: branch_false: following ‘false’ branch... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/archive.c:2335:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/archive.c:2336:13: call_function: inlined call to ‘bfd_get_filename’ from ‘_bfd_compute_and_write_armap’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/archive.c:2341:8: branch_true: following ‘true’ branch (when ‘current’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/archive.c:2344:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/archive.c:2344:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/archive.c:2345:15: call_function: inlined call to ‘bfd_get_file_flags’ from ‘_bfd_compute_and_write_armap’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/archive.c:2344:11: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/archive.c:2351:15: call_function: inlined call to ‘bfd_get_lto_type’ from ‘_bfd_compute_and_write_armap’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/archive.c:2361:14: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/archive.c:2364:14: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/archive.c:2364:14: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/archive.c:2366:18: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/archive.c:2366:18: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/archive.c:2374:26: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/archive.c:2375:18: branch_false: following ‘false’ branch... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/archive.c:2380:35: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/archive.c:2382:41: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/archive.c:2382:41: release_memory: ‘syms’ is NULL gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/archive.c:2382:36: danger: dereference of NULL ‘syms + (long unsigned int)src_count * 8’ # 2380| for (src_count = 0; src_count < symcount; src_count++) # 2381| { # 2382|-> flagword flags = (syms[src_count])->flags; # 2383| asection *sec = syms[src_count]->section; # 2384| Error: GCC_ANALYZER_WARNING (CWE-674): [#def155] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/bfd.c:889:25: warning[-Wanalyzer-infinite-recursion]: infinite recursion gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/bfd.c:882:1: enter_function: entry to ‘bfd_errmsg’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/bfd.c:889:25: call_function: calling ‘bfd_errmsg’ from ‘bfd_errmsg’ # 887| if (error_tag == bfd_error_on_input) # 888| { # 889|-> const char *msg = bfd_errmsg (input_error); # 890| char *ret = bfd_asprintf (_(bfd_errmsgs[error_tag]), # 891| bfd_get_filename (input_bfd), msg); Error: GCC_ANALYZER_WARNING (CWE-457): [#def156] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3375:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*pelength’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3462:1: enter_function: entry to ‘coff_apply_checksum’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3469:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3472:8: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def157] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3848:22: warning[-Wanalyzer-deref-before-check]: check of ‘**abfd.outsymbols’ for NULL after already dereferencing it gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3498:1: enter_function: entry to ‘coff_write_object_contents’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3603:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3607:8: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3608:8: branch_true: following ‘true’ branch (when ‘current’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3623:7: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3767:10: branch_true: following ‘true’ branch (when the strings are equal)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3782:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3783:11: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3814:31: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3816:14: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3817:18: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3816:15: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3825:12: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3825:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3833:19: call_function: inlined call to ‘bfd_get_symcount’ from ‘coff_write_object_contents’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3834:48: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3836:19: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3836:18: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3841:18: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3841:18: branch_true: following ‘true’ branch (when ‘psymsec’ is NULL)... branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3845:18: branch_true: following ‘true’ branch (when the strings are equal)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3847:26: call_function: inlined call to ‘bfd_asymbol_bfd’ from ‘coff_write_object_contents’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3847:26: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3848:22: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def158] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3848:22: warning[-Wanalyzer-deref-before-check]: check of ‘*psym’ for NULL after already dereferencing it gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3498:1: enter_function: entry to ‘coff_write_object_contents’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3603:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3607:8: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3608:8: branch_true: following ‘true’ branch (when ‘current’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3623:7: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3767:10: branch_false: following ‘false’ branch (when the strings are non-equal)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3769:17: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3769:15: branch_true: following ‘true’ branch (when the strings are equal)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3782:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3783:11: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3814:31: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3816:14: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3817:18: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3816:15: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3825:12: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3825:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3833:19: call_function: inlined call to ‘bfd_get_symcount’ from ‘coff_write_object_contents’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3834:48: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3836:19: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3836:18: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3841:18: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3841:18: branch_true: following ‘true’ branch (when ‘psymsec’ is NULL)... branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3834:48: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3836:19: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3836:18: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3841:18: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3841:18: branch_false: following ‘false’ branch (when ‘psymsec’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3845:19: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3845:18: branch_true: following ‘true’ branch (when the strings are equal)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3847:26: call_function: inlined call to ‘bfd_asymbol_bfd’ from ‘coff_write_object_contents’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3847:26: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3848:22: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def159] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3872:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘csym’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3498:1: enter_function: entry to ‘coff_write_object_contents’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3603:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3607:8: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3608:8: branch_true: following ‘true’ branch (when ‘current’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3615:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3630:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3634:17: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3635:14: branch_true: following ‘true’ branch (when ‘len > 8’)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3641:18: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3641:18: branch_true: following ‘true’ branch (when ‘string_size <= 9999999’)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3655:19: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3681:18: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3695:27: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3767:10: branch_true: following ‘true’ branch (when the strings are equal)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3782:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3783:11: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3808:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3808:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3809:9: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3825:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3833:19: call_function: inlined call to ‘bfd_get_symcount’ from ‘coff_write_object_contents’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3865:14: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffcode.h:3872:21: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def160] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffgen.c:2942:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sym’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffgen.c:3205:1: enter_function: entry to ‘bfd_coff_gc_sections’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffgen.c:3224:32: branch_true: following ‘true’ branch (when ‘sub’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffgen.c:3228:11: call_function: inlined call to ‘bfd_get_flavour’ from ‘bfd_coff_gc_sections’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffgen.c:3228:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffgen.c:3231:12: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffgen.c:3231:31: branch_true: following ‘true’ branch (when ‘o’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffgen.c:3233:17: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffgen.c:3233:15: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/coffgen.c:3239:20: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def161] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/cofflink.c:3004:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sym’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/cofflink.c:2924:10: branch_true: following ‘true’ branch (when ‘rel < relend’)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/cofflink.c:2935:7: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/cofflink.c:2937:10: branch_false: following ‘false’ branch (when ‘symndx != -1’)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/cofflink.c:2942:15: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/cofflink.c:2942:15: branch_false: following ‘false’ branch (when ‘symndx >= 0’)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/cofflink.c:2943:45: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/cofflink.c:2942:16: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/cofflink.c:2952:15: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/cofflink.c:2960:10: branch_false: following ‘false’ branch (when ‘sym’ is NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/cofflink.c:2963:9: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/cofflink.c:2967:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/cofflink.c:2974:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/cofflink.c:2984:10: branch_true: following ‘true’ branch (when ‘h’ is NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/cofflink.c:2986:14: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/cofflink.c:2986:14: branch_false: following ‘false’ branch (when ‘symndx != -1’)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/cofflink.c:2993:29: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/cofflink.c:2999:18: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def162] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/cofflink.c:3132:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sym’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/cofflink.c:2910:1: enter_function: entry to ‘_bfd_coff_generic_relocate_section’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/cofflink.c:2924:10: branch_true: following ‘true’ branch (when ‘rel < relend’)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/cofflink.c:2935:7: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/cofflink.c:2937:10: branch_true: following ‘true’ branch (when ‘symndx == -1’)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/cofflink.c:2963:9: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/cofflink.c:2967:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/cofflink.c:2974:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/cofflink.c:2984:10: branch_true: following ‘true’ branch (when ‘h’ is NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/cofflink.c:2986:14: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/cofflink.c:2986:14: branch_true: following ‘true’ branch (when ‘symndx == -1’)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/cofflink.c:3071:26: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/cofflink.c:3071:26: call_function: calling ‘discarded_section’ from ‘_bfd_coff_generic_relocate_section’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/cofflink.c:3071:26: return_function: returning to ‘_bfd_coff_generic_relocate_section’ from ‘discarded_section’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/cofflink.c:3071:11: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/cofflink.c:3078:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/cofflink.c:3129:16: branch_true: following ‘true’ branch (when ‘val == 0’)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/cofflink.c:3131:20: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/cofflink.c:3129:17: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/cofflink.c:3132:20: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def163] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/doc/chew.c:1296:7: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/doc/chew.c:1516:1: enter_function: entry to ‘main’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/doc/chew.c:1522:3: call_function: inlined call to ‘init_string’ from ‘main’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/doc/chew.c:1522:3: call_function: inlined call to ‘init_string’ from ‘main’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/doc/chew.c:1523:3: call_function: inlined call to ‘init_string’ from ‘main’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/doc/chew.c:1523:3: call_function: inlined call to ‘init_string’ from ‘main’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/doc/chew.c:1524:3: call_function: inlined call to ‘init_string’ from ‘main’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/doc/chew.c:1524:3: call_function: inlined call to ‘init_string’ from ‘main’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/doc/chew.c:1528:3: call_function: calling ‘add_intrinsic’ from ‘main’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/doc/chew.c:1528:3: return_function: returning to ‘main’ from ‘add_intrinsic’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/doc/chew.c:1529:3: call_function: calling ‘add_intrinsic’ from ‘main’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/doc/chew.c:1529:3: return_function: returning to ‘main’ from ‘add_intrinsic’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/doc/chew.c:1530:3: call_function: calling ‘add_intrinsic’ from ‘main’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/doc/chew.c:1530:3: return_function: returning to ‘main’ from ‘add_intrinsic’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/doc/chew.c:1531:3: call_function: calling ‘add_intrinsic’ from ‘main’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/doc/chew.c:1531:3: return_function: returning to ‘main’ from ‘add_intrinsic’ gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def164] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:744:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cie’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:578:1: enter_function: entry to ‘_bfd_elf_parse_eh_frame’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:604:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:605:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:604:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:606:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:604:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:612:27: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:612:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:621:3: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:621:3: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:625:3: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:625:3: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:627:15: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:629:3: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:633:3: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:661:3: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:664:6: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:664:6: branch_false: following ‘false’ branch (when ‘num_cies == 0’)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:694:3: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:697:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:704:18: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:708:7: call_function: inlined call to ‘skip_bytes’ from ‘_bfd_elf_parse_eh_frame’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:712:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:713:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:719:10: branch_false: following ‘false’ branch (when ‘hdr_length != 0’)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:731:7: call_function: inlined call to ‘skip_bytes’ from ‘_bfd_elf_parse_eh_frame’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:734:10: branch_true: following ‘true’ branch (when ‘hdr_id == 0’)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:739:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:742:11: release_memory: ‘local_cies’ is NULL gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:744:11: danger: dereference of NULL ‘cie’ # 742| cie = local_cies + cie_count++; # 743| # 744|-> cie->cie_inf = this_inf; # 745| cie->length = hdr_length; # 746| start = buf; Error: GCC_ANALYZER_WARNING (CWE-476): [#def165] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:1361:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ent’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:1343:6: branch_false: following ‘false’ branch (when ‘hi != 0’)... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:1346:10: branch_false: following ‘false’ branch (when ‘lo >= hi’)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:1360:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:1360:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:1361:23: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def166] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:1366:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ent’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:1343:6: branch_false: following ‘false’ branch (when ‘hi != 0’)... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:1346:10: branch_false: following ‘false’ branch (when ‘lo >= hi’)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:1360:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:1360:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:1362:12: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:1362:11: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def167] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:1374:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ent’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:1343:6: branch_false: following ‘false’ branch (when ‘hi != 0’)... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:1346:10: branch_false: following ‘false’ branch (when ‘lo >= hi’)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:1360:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:1360:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:1362:12: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def168] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:2323:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sec’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:2299:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:2300:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:2299:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:2301:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:2299:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:2306:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:2307:15: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:2323:12: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf-eh-frame.c:2323:12: danger: dereference of NULL ‘sec’ # 2321| # 2322| /* Fix the link_order to match. */ # 2323|-> for (p = sec->output_section->map_head.link_order; p != NULL; p = p->next) # 2324| { # 2325| if (p->type != bfd_indirect_link_order) Error: GCC_ANALYZER_WARNING (CWE-476): [#def169] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3597:46: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3597:20: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3597:46: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def170] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3707:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3597:20: branch_false: following ‘false’ branch... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3600:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3606:21: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3608:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3618:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3618:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3626:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3631:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3644:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3652:24: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3661:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3677:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3680:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3682:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3689:14: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3697:21: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def171] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3739:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3597:20: branch_false: following ‘false’ branch... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3600:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3606:21: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3608:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3618:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3618:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3626:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3631:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3644:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3652:24: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3661:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3677:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3736:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3738:15: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3738:14: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3739:13: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def172] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3766:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3597:20: branch_false: following ‘false’ branch... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3600:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3606:21: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3608:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3618:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3618:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3626:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3631:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3644:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3652:24: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3661:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3677:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3736:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3738:15: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3738:14: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3747:27: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def173] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3776:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3597:20: branch_false: following ‘false’ branch... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3600:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3606:21: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3608:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3618:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3618:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3626:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3631:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3644:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3652:24: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3661:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3677:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3736:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3738:15: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3738:14: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3747:27: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3750:14: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3750:15: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def174] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3805:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3597:20: branch_false: following ‘false’ branch... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3600:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3606:21: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3608:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3798:12: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3798:11: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3805:7: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def175] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3931:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3597:20: branch_false: following ‘false’ branch... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3600:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3606:21: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3798:11: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3839:6: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3861:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3862:12: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3861:7: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3861:7: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3861:7: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3861:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3867:17: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3874:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3886:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3887:14: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3886:11: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3889:15: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3889:14: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3915:20: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3915:19: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3925:19: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3925:18: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3931:19: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def176] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3972:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3597:20: branch_false: following ‘false’ branch... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3600:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3606:21: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3798:11: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3839:6: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3861:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3862:12: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3861:7: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3861:7: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3861:7: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3861:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3867:17: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3874:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3948:15: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3949:19: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3948:16: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3951:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3952:14: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3956:15: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3971:14: branch_true: following ‘true’ branch (when ‘relative_reloc_name’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-i386.c:3972:18: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def177] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:2386:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ # 2384| | SEC_IN_MEMORY | SEC_LINKER_CREATED); # 2385| s = bfd_make_section_anyway_with_flags (abfd, ".glink", flags); # 2386|-> htab->glink = s; # 2387| p2align = htab->params->ppc476_workaround ? 6 : 4; # 2388| if (p2align < htab->params->plt_stub_align) Error: GCC_ANALYZER_WARNING (CWE-476): [#def178] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:2471:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:2468:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:2471:7: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:2471:7: danger: dereference of NULL ‘htab’ # 2469| return false; # 2470| # 2471|-> if (htab->glink == NULL # 2472| && !ppc_elf_create_glink (abfd, info)) # 2473| return false; Error: GCC_ANALYZER_WARNING (CWE-476): [#def179] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:2630:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:2620:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:2621:10: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:2620:7: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:2622:10: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:2620:7: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:2620:7: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:2629:14: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:2630:11: danger: dereference of NULL ‘htab’ # 2628| # 2629| htab = ppc_elf_hash_table (info); # 2630|-> if (htab->sbss == NULL) # 2631| { # 2632| flagword flags = SEC_IS_COMMON | SEC_SMALL_DATA | SEC_LINKER_CREATED; Error: GCC_ANALYZER_WARNING (CWE-476): [#def180] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:2906:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:2878:1: enter_function: entry to ‘ppc_elf_check_relocs’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:2891:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:2899:3: call_function: inlined call to ‘bfd_get_flavour’ from ‘ppc_elf_check_relocs’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:2906:7: danger: dereference of NULL ‘htab’ # 2904| # 2905| htab = ppc_elf_hash_table (info); # 2906|-> if (htab->glink == NULL) # 2907| { # 2908| if (htab->elf.dynobj == NULL) Error: GCC_ANALYZER_WARNING (CWE-476): [#def181] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:2976:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘isym’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:2878:1: enter_function: entry to ‘ppc_elf_check_relocs’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:2891:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:2899:3: call_function: inlined call to ‘bfd_get_flavour’ from ‘ppc_elf_check_relocs’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:2905:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:2905:10: call_function: inlined call to ‘elf_hash_table_id’ from ‘ppc_elf_check_relocs’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:2905:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:2906:7: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:2921:22: branch_true: following ‘true’ branch (when ‘rel < rel_end’)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:2932:18: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:3443:18: branch_true: following ‘true’ branch (when ‘sreloc’ is NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:3445:23: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:3451:22: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:3457:18: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:3457:18: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:3463:19: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:2921:22: branch_true: following ‘true’ branch (when ‘rel < rel_end’)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:2932:18: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:2933:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:2942:26: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:2966:10: branch_false: following ‘false’ branch (when ‘h’ is NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:2974:16: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:2974:15: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:2976:15: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:2976:15: danger: dereference of NULL ‘isym’ # 2974| else if (htab->elf.target_os != is_vxworks) # 2975| { # 2976|-> if (ELF_ST_TYPE (isym->st_info) == STT_GNU_IFUNC) # 2977| { # 2978| /* Set PLT_IFUNC flag for this sym, no GOT entry yet. */ Error: GCC_ANALYZER_WARNING (CWE-476): [#def182] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:3353:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘isym’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:2878:1: enter_function: entry to ‘ppc_elf_check_relocs’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:2891:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:2899:3: call_function: inlined call to ‘bfd_get_flavour’ from ‘ppc_elf_check_relocs’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:2905:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:2905:10: call_function: inlined call to ‘elf_hash_table_id’ from ‘ppc_elf_check_relocs’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:2905:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:2906:7: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:2921:22: branch_true: following ‘true’ branch (when ‘rel < rel_end’)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:2932:18: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:3443:18: branch_true: following ‘true’ branch (when ‘sreloc’ is NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:3445:23: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:3451:22: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:3457:18: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:3457:18: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:3463:19: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:2921:22: branch_true: following ‘true’ branch (when ‘rel < rel_end’)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:2932:18: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:2933:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:2942:26: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:2966:10: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:2968:15: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:2968:14: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:2970:15: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:3339:14: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:3341:19: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:3339:15: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:3342:18: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:3339:15: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:3343:18: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:3339:15: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:3353:19: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:3353:19: danger: dereference of NULL ‘isym’ # 3351| asection *s; # 3352| # 3353|-> s = bfd_section_from_elf_index (abfd, isym->st_shndx); # 3354| if (s == got2) # 3355| { Error: GCC_ANALYZER_WARNING (CWE-476): [#def183] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:3969:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ # 3967| htab = ppc_elf_hash_table (info); # 3968| # 3969|-> if (htab->plt_type == PLT_UNSET) # 3970| { # 3971| struct elf_link_hash_entry *h; Error: GCC_ANALYZER_WARNING (CWE-476): [#def184] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4273:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘local_syms’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4171:1: enter_function: entry to ‘ppc_elf_inline_plt’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4178:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4178:10: call_function: inlined call to ‘elf_hash_table_id’ from ‘ppc_elf_inline_plt’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4178:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4188:14: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4188:42: branch_true: following ‘true’ branch (when ‘sec’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4189:10: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4200:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4219:8: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4219:33: branch_true: following ‘true’ branch (when ‘ibfd’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4224:12: call_function: inlined call to ‘bfd_get_flavour’ from ‘ppc_elf_inline_plt’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4224:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4227:7: release_memory: ‘local_syms’ is NULL gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4230:34: branch_true: following ‘true’ branch (when ‘sec’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4231:13: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4231:12: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4232:37: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4231:13: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4238:51: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4239:16: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4242:33: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4243:34: branch_true: following ‘true’ branch (when ‘rel < relend’)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4252:26: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4253:20: branch_false: following ‘false’ branch (when ‘r_type == 120’)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4256:17: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4257:22: call_function: calling ‘get_sym_h’ from ‘ppc_elf_inline_plt’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4257:22: return_function: returning to ‘ppc_elf_inline_plt’ from ‘get_sym_h’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4257:20: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4267:21: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4267:20: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4270:24: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4273:31: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4273:31: release_memory: ‘local_syms’ is NULL gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4273:23: danger: dereference of NULL ‘sym’ # 4271| to = h->root.u.def.value; # 4272| else # 4273|-> to = sym->st_value; # 4274| to += (rel->r_addend # 4275| + sym_sec->output_offset Error: GCC_ANALYZER_WARNING (CWE-476): [#def185] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4281:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘tls_maskp’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4171:1: enter_function: entry to ‘ppc_elf_inline_plt’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4178:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4178:10: call_function: inlined call to ‘elf_hash_table_id’ from ‘ppc_elf_inline_plt’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4178:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4188:14: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4188:42: branch_true: following ‘true’ branch (when ‘sec’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4189:10: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4200:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4219:8: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4219:33: branch_true: following ‘true’ branch (when ‘ibfd’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4224:12: call_function: inlined call to ‘bfd_get_flavour’ from ‘ppc_elf_inline_plt’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4224:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4230:34: branch_true: following ‘true’ branch (when ‘sec’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4231:13: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4231:12: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4232:37: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4231:13: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4238:51: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4239:16: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4242:33: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4243:34: branch_true: following ‘true’ branch (when ‘rel < relend’)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4252:26: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4253:20: branch_false: following ‘false’ branch (when ‘r_type == 120’)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4256:17: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4257:22: call_function: calling ‘get_sym_h’ from ‘ppc_elf_inline_plt’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4257:22: return_function: returning to ‘ppc_elf_inline_plt’ from ‘get_sym_h’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4257:20: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4267:21: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4267:20: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4270:24: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4273:31: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4280:24: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4281:23: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4281:23: release_memory: ‘tls_maskp’ is NULL gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4281:23: danger: dereference of NULL ‘tls_maskp’ # 4279| + sec->output_section->vma); # 4280| if (to - from + limit < 2 * limit) # 4281|-> *tls_maskp &= ~PLT_KEEP; # 4282| } # 4283| } Error: GCC_ANALYZER_WARNING (CWE-476): [#def186] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4310:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ # 4308| # 4309| htab = ppc_elf_hash_table (info); # 4310|-> htab->tls_get_addr = elf_link_hash_lookup (&htab->elf, "__tls_get_addr", # 4311| false, false, true); # 4312| if (htab->plt_type != PLT_NEW) Error: GCC_ANALYZER_WARNING (CWE-476): [#def187] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4860:41: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4774:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4776:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4774:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4847:5: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4852:6: branch_true: following ‘true’ branch... branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4855:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4856:31: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4858:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4859:41: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4858:11: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4860:41: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4860:41: danger: dereference of NULL ‘htab’ # 4858| if (def->root.u.def.section == htab->elf.sdynbss # 4859| || def->root.u.def.section == htab->elf.sdynrelro # 4860|-> || def->root.u.def.section == htab->dynsbss) # 4861| h->dyn_relocs = NULL; # 4862| return true; Error: GCC_ANALYZER_WARNING (CWE-476): [#def188] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4895:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4774:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4776:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4774:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4847:5: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4852:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4872:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4872:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4880:6: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4880:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4890:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4890:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4893:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4892:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4894:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4892:11: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4895:14: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4895:14: danger: dereference of NULL ‘htab’ # 4893| && ppc_elf_hash_entry (h)->has_addr16_ha # 4894| && ppc_elf_hash_entry (h)->has_addr16_lo # 4895|-> && htab->params->pic_fixup == 0 # 4896| && info->disable_target_specific_optimizations <= 1) # 4897| htab->params->pic_fixup = 1; Error: GCC_ANALYZER_WARNING (CWE-476): [#def189] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4931:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4774:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4776:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4774:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4847:5: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4852:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4872:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4872:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4880:6: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4880:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4890:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4890:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4902:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4902:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4912:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4930:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4931:5: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4931:5: danger: dereference of NULL ‘htab’ # 4929| must instead allocate it in .sbss. */ # 4930| if (ppc_elf_hash_entry (h)->has_sda_refs) # 4931|-> s = htab->dynsbss; # 4932| else if ((h->root.u.def.section->flags & SEC_READONLY) != 0) # 4933| s = htab->elf.sdynrelro; Error: GCC_ANALYZER_WARNING (CWE-476): [#def190] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4946:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4774:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4776:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4774:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4847:5: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4852:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4872:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4872:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4880:6: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4880:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4890:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4890:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4902:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4902:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4912:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4930:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4932:13: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4936:3: branch_false: following ‘false’ branch (when ‘s’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4938:8: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4938:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4945:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4946:9: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4946:9: danger: dereference of NULL ‘htab’ # 4944| and into the runtime process image. */ # 4945| if (ppc_elf_hash_entry (h)->has_sda_refs) # 4946|-> srel = htab->relsbss; # 4947| else if ((h->root.u.def.section->flags & SEC_READONLY) != 0) # 4948| srel = htab->elf.sreldynrelro; Error: GCC_ANALYZER_WARNING (CWE-476): [#def191] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5002:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4989:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4991:37: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4997:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4999:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:4999:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5001:7: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5002:32: danger: dereference of NULL ‘htab’ # 5000| { # 5001| sh->root.type = bfd_link_hash_defined; # 5002|-> sh->root.u.def.section = htab->glink; # 5003| sh->root.u.def.value = ent->glink_offset; # 5004| sh->ref_regular = 1; Error: GCC_ANALYZER_WARNING (CWE-476): [#def192] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5023:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5107:1: enter_function: entry to ‘allocate_dynrelocs’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5114:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5117:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5119:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5128:12: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5128:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5131:47: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5146:10: branch_false: following ‘false’ branch (when ‘need != 0’)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5150:32: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5150:32: call_function: calling ‘allocate_got’ from ‘allocate_dynrelocs’ # 5021| unsigned int max_before_header; # 5022| # 5023|-> if (htab->plt_type == PLT_VXWORKS) # 5024| { # 5025| where = htab->elf.sgot->size; Error: GCC_ANALYZER_WARNING (CWE-476): [#def193] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5125:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5114:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5117:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5119:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5121:14: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5119:7: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5122:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5120:11: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5123:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5120:11: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5124:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5120:11: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5125:14: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5125:14: danger: dereference of NULL ‘htab’ # 5123| && eh->has_addr16_ha # 5124| && eh->has_addr16_lo # 5125|-> && htab->params->pic_fixup > 0)) # 5126| { # 5127| /* Make sure this symbol is output as a dynamic symbol. */ Error: GCC_ANALYZER_WARNING (CWE-476): [#def194] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5255:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5114:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5117:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5189:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5197:12: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5197:11: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5245:12: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5245:11: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5251:15: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5245:11: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5253:16: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5252:16: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5254:16: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5252:16: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5255:19: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5255:19: danger: dereference of NULL ‘htab’ # 5253| && eh->has_addr16_ha # 5254| && eh->has_addr16_lo # 5255|-> && htab->params->pic_fixup > 0)) # 5256| { # 5257| /* Make sure this symbol is output as a dynamic symbol. */ Error: GCC_ANALYZER_WARNING (CWE-476): [#def195] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5314:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5107:1: enter_function: entry to ‘allocate_dynrelocs’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5114:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5117:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5298:32: branch_true: following ‘true’ branch (when ‘ent’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5299:13: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5299:12: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5304:18: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5304:16: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5307:20: call_function: inlined call to ‘use_local_plt’ from ‘allocate_dynrelocs’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5311:21: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5311:20: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5314:19: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5314:19: danger: dereference of NULL ‘htab’ # 5312| s = htab->elf.iplt; # 5313| else # 5314|-> s = htab->pltlocal; # 5315| } # 5316| Error: GCC_ANALYZER_WARNING (CWE-476): [#def196] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5317:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5107:1: enter_function: entry to ‘allocate_dynrelocs’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5114:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5117:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5298:32: branch_true: following ‘true’ branch (when ‘ent’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5299:13: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5299:12: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5304:18: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5304:16: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5307:20: call_function: inlined call to ‘use_local_plt’ from ‘allocate_dynrelocs’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5311:20: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5312:19: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5317:17: danger: dereference of NULL ‘htab’ # 5315| } # 5316| # 5317|-> if (htab->plt_type == PLT_NEW || !dyn) # 5318| { # 5319| if (!doneone) Error: GCC_ANALYZER_WARNING (CWE-476): [#def197] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5508:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5493:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5496:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:5508:7: danger: dereference of NULL ‘htab’ # 5506| } # 5507| # 5508|-> if (htab->plt_type == PLT_OLD) # 5509| htab->got_header_size = 16; # 5510| else if (htab->plt_type == PLT_NEW) Error: GCC_ANALYZER_WARNING (CWE-476): [#def198] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:6291:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘h’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:6068:1: enter_function: entry to ‘ppc_elf_relax_section’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:6100:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:6101:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:6100:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:6102:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:6100:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:6103:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:6100:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:6104:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:6100:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:6113:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:6113:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:6113:10: call_function: inlined call to ‘elf_hash_table_id’ from ‘ppc_elf_relax_section’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:6113:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:6117:16: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:6126:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:6127:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:6126:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:6140:27: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:6153:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:6156:56: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:6157:14: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:6161:14: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:6164:36: branch_true: following ‘true’ branch (when ‘irel < irelend’)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:6166:34: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:6204:16: call_function: calling ‘get_sym_h’ from ‘ppc_elf_relax_section’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:6204:16: return_function: returning to ‘ppc_elf_relax_section’ from ‘get_sym_h’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:6204:14: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:6208:15: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:6208:14: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:6222:19: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:6223:25: release_memory: ‘h’ is NULL gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:6291:27: release_memory: ‘h’ is NULL gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:6291:15: danger: dereference of NULL ‘h’ # 6289| } # 6290| # 6291|-> sym_type = h->type; # 6292| } # 6293| Error: GCC_ANALYZER_WARNING (CWE-476): [#def199] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:6728:8: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:6724:3: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:6724:3: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:6728:8: danger: dereference of NULL ‘<unknown>’ # 6726| /* Offset will always be a multiple of four, so use the bottom bit # 6727| as a "written" flag. */ # 6728|-> if ((linker_section_ptr->offset & 1) == 0) # 6729| { # 6730| bfd_put_32 (lsect->section->owner, Error: GCC_ANALYZER_WARNING (CWE-476): [#def200] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:6762:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:6762:28: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:6762:28: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:6762:28: danger: dereference of NULL ‘htab’ # 6760| bfd *output_bfd = info->output_bfd; # 6761| bfd_vma plt; # 6762|-> unsigned char *end = p + GLINK_ENTRY_SIZE (htab, h); # 6763| # 6764| if (h != NULL Error: GCC_ANALYZER_WARNING (CWE-476): [#def201] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9183:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:7022:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:7043:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:7046:21: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9183:7: danger: dereference of NULL ‘htab’ # 9181| } # 9182| # 9183|-> if (htab->params->ppc476_workaround # 9184| && input_section->sec_info_type == SEC_INFO_TYPE_TARGET # 9185| && (!bfd_link_relocatable (info) Error: GCC_ANALYZER_WARNING (CWE-476): [#def202] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9492:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9471:1: enter_function: entry to ‘write_global_sym_plt’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9479:28: branch_true: following ‘true’ branch (when ‘ent’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9480:9: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9480:8: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9482:21: call_function: inlined call to ‘use_local_plt’ from ‘write_global_sym_plt’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9484:12: branch_false: following ‘false’ branch (when ‘doneone == 0’)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9489:23: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9492:17: danger: dereference of NULL ‘htab’ # 9490| asection *relplt = htab->elf.srelplt; # 9491| # 9492|-> if (htab->plt_type == PLT_NEW || !dyn) # 9493| reloc_index = ent->plt.offset / 4; # 9494| else Error: GCC_ANALYZER_WARNING (CWE-476): [#def203] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9784:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘local_syms’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9732:1: enter_function: entry to ‘ppc_finish_symbols’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9734:42: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9734:42: call_function: inlined call to ‘elf_hash_table_id’ from ‘ppc_finish_symbols’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9734:42: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9740:3: call_function: inlined call to ‘elf_link_hash_traverse’ from ‘ppc_finish_symbols’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9742:33: branch_true: following ‘true’ branch (when ‘ibfd’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9748:25: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9748:25: release_memory: ‘local_syms’ is NULL gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9751:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9755:10: branch_false: following ‘false’ branch (when ‘local_got’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9759:21: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9763:30: branch_true: following ‘true’ branch (when ‘lplt < end_local_plt’)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9764:14: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9764:27: branch_true: following ‘true’ branch (when ‘ent’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9766:17: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9764:27: branch_true: following ‘true’ branch (when ‘ent’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9766:17: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9776:22: call_function: calling ‘get_sym_h’ from ‘ppc_finish_symbols’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9776:22: return_function: returning to ‘ppc_finish_symbols’ from ‘get_sym_h’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9776:20: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9784:26: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9784:26: release_memory: ‘local_syms’ is NULL gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9784:17: danger: dereference of NULL ‘sym’ # 9782| } # 9783| # 9784|-> val = sym->st_value; # 9785| if (sym_sec != NULL && sym_sec->output_section != NULL) # 9786| val += sym_sec->output_offset + sym_sec->output_section->vma; Error: GCC_ANALYZER_WARNING (CWE-476): [#def204] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9784:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sym’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9732:1: enter_function: entry to ‘ppc_finish_symbols’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9734:42: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9734:42: call_function: inlined call to ‘elf_hash_table_id’ from ‘ppc_finish_symbols’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9734:42: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9740:3: call_function: inlined call to ‘elf_link_hash_traverse’ from ‘ppc_finish_symbols’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9742:33: branch_true: following ‘true’ branch (when ‘ibfd’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9748:25: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9748:25: release_memory: ‘local_syms’ is NULL gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9751:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9755:10: branch_false: following ‘false’ branch (when ‘local_got’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9759:21: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9763:30: branch_true: following ‘true’ branch (when ‘lplt < end_local_plt’)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9764:14: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9764:27: branch_true: following ‘true’ branch (when ‘ent’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9766:17: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9776:22: call_function: calling ‘get_sym_h’ from ‘ppc_finish_symbols’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9776:22: return_function: returning to ‘ppc_finish_symbols’ from ‘get_sym_h’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9776:20: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9784:26: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9764:27: branch_true: following ‘true’ branch (when ‘ent’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9766:17: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9776:22: call_function: calling ‘get_sym_h’ from ‘ppc_finish_symbols’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9776:22: return_function: returning to ‘ppc_finish_symbols’ from ‘get_sym_h’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9776:20: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9784:26: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9784:26: release_memory: ‘sym’ is NULL gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9784:17: danger: dereference of NULL ‘sym’ # 9782| } # 9783| # 9784|-> val = sym->st_value; # 9785| if (sym_sec != NULL && sym_sec->output_section != NULL) # 9786| val += sym_sec->output_offset + sym_sec->output_section->vma; Error: GCC_ANALYZER_WARNING (CWE-476): [#def205] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9888:39: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9852:7: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9854:30: branch_true: following ‘true’ branch (when ‘ent’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9855:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9855:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9857:14: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9857:14: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9888:39: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9888:39: danger: dereference of NULL ‘htab’ # 9886| sym->st_shndx # 9887| = (_bfd_elf_section_from_bfd_section # 9888|-> (info->output_bfd, htab->glink->output_section)); # 9889| sym->st_value = (ent->glink_offset # 9890| + htab->glink->output_offset Error: GCC_ANALYZER_WARNING (CWE-476): [#def206] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9910:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9896:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9907:7: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9909:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9910:9: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:9910:9: danger: dereference of NULL ‘htab’ # 9908| # 9909| if (ppc_elf_hash_entry (h)->has_sda_refs) # 9910|-> s = htab->relsbss; # 9911| else if (h->root.u.def.section == htab->elf.sdynrelro) # 9912| s = htab->elf.sreldynrelro; Error: GCC_ANALYZER_WARNING (CWE-476): [#def207] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:10046:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:10037:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:10038:10: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:10037:7: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:10040:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:10046:15: danger: dereference of NULL ‘htab’ #10044| #10045| p += htab->elf.hgot->root.u.def.value; #10046|-> if (htab->plt_type == PLT_OLD) #10047| { #10048| /* Add a blrl instruction at _GLOBAL_OFFSET_TABLE_-4 Error: GCC_ANALYZER_WARNING (CWE-476): [#def208] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:10116:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:10079:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:10080:10: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:10079:7: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:10081:10: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:10079:7: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:10082:10: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:10079:7: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:10086:35: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:10111:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:10116:17: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:10116:17: danger: dereference of NULL ‘htab’ #10114| bfd_byte *loc; #10115| #10116|-> loc = htab->srelplt2->contents; #10117| #10118| /* Output the @ha relocation for the first instruction. */ Error: GCC_ANALYZER_WARNING (CWE-476): [#def209] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-ppc.c:10161:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ #10159| } #10160| #10161|-> if (htab->glink != NULL #10162| && htab->glink->contents != NULL #10163| && htab->elf.dynamic_sections_created) Error: GCC_ANALYZER_WARNING (CWE-476): [#def210] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-s390.c:1913:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-s390.c:1788:6: branch_false: following ‘false’ branch (when ‘dynobj’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-s390.c:1791:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-s390.c:1901:30: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-s390.c:1903:12: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-s390.c:1903:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-s390.c:1906:16: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-s390.c:1906:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-s390.c:1907:19: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-s390.c:1906:11: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-s390.c:1908:19: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-s390.c:1906:11: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-s390.c:1909:19: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-s390.c:1906:11: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-s390.c:1910:19: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-s390.c:1906:11: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-s390.c:1911:19: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-s390.c:1906:11: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-s390.c:1912:19: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-s390.c:1906:11: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-s390.c:1913:19: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-s390.c:1913:19: danger: dereference of NULL ‘htab’ # 1911| || s == htab->elf.iplt # 1912| || s == htab->elf.igotplt # 1913|-> || s == htab->irelifunc) # 1914| { # 1915| /* Strip this section if we don't need it; see the Error: GCC_ANALYZER_WARNING (CWE-476): [#def211] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-s390.c:3115:55: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sym’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-s390.c:2016:1: enter_function: entry to ‘elf_s390_relocate_section’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-s390.c:2032:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-s390.c:2038:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-s390.c:2038:10: call_function: inlined call to ‘elf_hash_table_id’ from ‘elf_s390_relocate_section’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-s390.c:2038:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-s390.c:2040:3: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-s390.c:2045:10: branch_true: following ‘true’ branch (when ‘rel < relend’)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-s390.c:2058:17: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-s390.c:2062:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-s390.c:2062:10: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-s390.c:2045:10: branch_true: following ‘true’ branch (when ‘rel < relend’)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-s390.c:2058:17: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-s390.c:2045:10: branch_true: following ‘true’ branch (when ‘rel < relend’)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-s390.c:2058:17: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-s390.c:2045:10: branch_true: following ‘true’ branch (when ‘rel < relend’)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-s390.c:2058:17: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-s390.c:2065:10: branch_false: following ‘false’ branch (when ‘r_type <= 251’)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-s390.c:2071:31: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-s390.c:2138:11: branch_false: following ‘false’ branch (when ‘sym_hashes’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-s390.c:2138:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-s390.c:2207:14: branch_false: following ‘false’ branch (when ‘base_got’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-s390.c:2210:14: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-s390.c:3089:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-s390.c:3101:13: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-s390.c:3105:10: branch_true: following ‘true’ branch (when ‘r != 2’)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-s390.c:3109:14: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-s390.c:3109:14: branch_false: following ‘false’ branch (when ‘h’ is NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-s390.c:3115:55: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf32-s390.c:3115:55: danger: dereference of NULL ‘sym’ # 3113| name = bfd_elf_string_from_elf_section (input_bfd, # 3114| symtab_hdr->sh_link, # 3115|-> sym->st_name); # 3116| if (name == NULL) # 3117| return false; Error: GCC_ANALYZER_WARNING (CWE-476): [#def212] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-s390.c:3190:55: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sym’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-s390.c:1985:1: enter_function: entry to ‘elf_s390_relocate_section’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-s390.c:2001:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-s390.c:2007:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-s390.c:2007:10: call_function: inlined call to ‘elf_hash_table_id’ from ‘elf_s390_relocate_section’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-s390.c:2007:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-s390.c:2012:3: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-s390.c:2017:10: branch_true: following ‘true’ branch (when ‘rel < relend’)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-s390.c:2032:16: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-s390.c:2033:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-s390.c:2033:10: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-s390.c:2017:10: branch_true: following ‘true’ branch (when ‘rel < relend’)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-s390.c:2032:16: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-s390.c:2017:10: branch_true: following ‘true’ branch (when ‘rel < relend’)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-s390.c:2032:16: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-s390.c:2017:10: branch_true: following ‘true’ branch (when ‘rel < relend’)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-s390.c:2032:16: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-s390.c:2036:10: branch_false: following ‘false’ branch (when ‘r_type <= 251’)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-s390.c:2042:31: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-s390.c:2113:11: branch_false: following ‘false’ branch (when ‘sym_hashes’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-s390.c:2113:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-s390.c:2182:14: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-s390.c:2185:14: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-s390.c:3148:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-s390.c:3149:44: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-s390.c:3148:11: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-s390.c:3164:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-s390.c:3164:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-s390.c:3176:13: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-s390.c:3180:10: branch_true: following ‘true’ branch (when ‘r != 2’)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-s390.c:3184:14: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-s390.c:3184:14: branch_false: following ‘false’ branch (when ‘h’ is NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-s390.c:3190:55: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-s390.c:3190:55: danger: dereference of NULL ‘sym’ # 3188| name = bfd_elf_string_from_elf_section (input_bfd, # 3189| symtab_hdr->sh_link, # 3190|-> sym->st_name); # 3191| if (name == NULL) # 3192| return false; Error: GCC_ANALYZER_WARNING (CWE-476): [#def213] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:1334:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:2112:1: enter_function: entry to ‘elf_x86_64_scan_relocs’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:2124:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:2127:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:2127:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:2127:10: call_function: inlined call to ‘elf_hash_table_id’ from ‘elf_x86_64_scan_relocs’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:2127:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:2134:3: call_function: inlined call to ‘bfd_get_flavour’ from ‘elf_x86_64_scan_relocs’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:2151:22: branch_true: following ‘true’ branch (when ‘rel < rel_end’)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:2163:18: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:2167:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:2170:23: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:2170:23: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:2170:23: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:2170:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:2178:22: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:2178:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:2181:18: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:2183:14: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:2187:15: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:2187:14: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:2216:12: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:2250:10: branch_false: following ‘false’ branch (when ‘h’ is NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:2256:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:2273:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:2277:13: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def214] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:1784:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:2112:1: enter_function: entry to ‘elf_x86_64_scan_relocs’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:2124:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:2127:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:2127:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:2127:10: call_function: inlined call to ‘elf_hash_table_id’ from ‘elf_x86_64_scan_relocs’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:2127:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:2134:3: call_function: inlined call to ‘bfd_get_flavour’ from ‘elf_x86_64_scan_relocs’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:2151:22: branch_true: following ‘true’ branch (when ‘rel < rel_end’)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:2163:18: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:2167:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:2170:23: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:2170:23: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:2170:23: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:2170:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:2178:22: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:2178:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:2181:18: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:2183:14: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:2187:15: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:2187:14: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:2216:12: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:2250:10: branch_false: following ‘false’ branch (when ‘h’ is NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:2256:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:2257:11: branch_true: following ‘true’ branch (when ‘h’ is NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:2264:16: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def215] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4664:46: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4664:20: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4664:46: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4664:46: danger: dereference of NULL ‘htab’ # 4662| # 4663| /* Use the second PLT section only if there is .plt section. */ # 4664|-> use_plt_second = htab->elf.splt != NULL && htab->plt_second != NULL; # 4665| # 4666| eh = (struct elf_x86_link_hash_entry *) h; Error: GCC_ANALYZER_WARNING (CWE-476): [#def216] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4772:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4664:20: branch_false: following ‘false’ branch... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4667:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4673:21: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4675:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4687:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4687:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4695:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4700:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4713:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4721:40: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4728:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4740:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4769:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4771:15: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4771:14: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4772:13: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4772:13: danger: dereference of NULL ‘htab’ # 4770| { # 4771| if (htab->plt.has_plt0) # 4772|-> bfd_put_64 (output_bfd, (plt->output_section->vma # 4773| + plt->output_offset # 4774| + h->plt.offset Error: GCC_ANALYZER_WARNING (CWE-476): [#def217] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4790:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4664:20: branch_false: following ‘false’ branch... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4667:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4673:21: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4675:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4687:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4687:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4695:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4700:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4713:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4721:40: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4728:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4740:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4769:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4771:15: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4771:14: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4779:28: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4790:29: danger: dereference of NULL ‘htab’ # 4788| /* If an STT_GNU_IFUNC symbol is locally defined, generate # 4789| R_X86_64_IRELATIVE instead of R_X86_64_JUMP_SLOT. */ # 4790|-> rela.r_info = htab->r_info (0, R_X86_64_IRELATIVE); # 4791| rela.r_addend = (h->root.u.def.value # 4792| + h->root.u.def.section->output_section->vma Error: GCC_ANALYZER_WARNING (CWE-476): [#def218] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4804:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4664:20: branch_false: following ‘false’ branch... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4667:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4673:21: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4675:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4687:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4687:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4695:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4700:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4713:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4721:40: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4728:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4740:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4769:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4771:15: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4771:14: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4779:28: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4782:14: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4782:15: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4804:29: danger: dereference of NULL ‘htab’ # 4802| else # 4803| { # 4804|-> rela.r_info = htab->r_info (h->dynindx, R_X86_64_JUMP_SLOT); # 4805| if (htab->params->mark_plt) # 4806| rela.r_addend = (resolved_plt->output_section->vma Error: GCC_ANALYZER_WARNING (CWE-476): [#def219] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4851:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4664:20: branch_false: following ‘false’ branch... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4667:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4673:21: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4675:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4843:12: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4843:11: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4851:7: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4851:7: danger: dereference of NULL ‘htab’ # 4849| # 4850| /* Set the entry in the GOT procedure linkage table. */ # 4851|-> plt = htab->plt_got; # 4852| got = htab->elf.sgot; # 4853| got_offset = h->got.offset; Error: GCC_ANALYZER_WARNING (CWE-476): [#def220] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4956:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4664:20: branch_false: following ‘false’ branch... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4667:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4673:21: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4843:11: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4892:6: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4914:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4915:12: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4914:7: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4914:7: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4914:7: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4914:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4920:17: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4926:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4938:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4939:14: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4938:11: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4941:15: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4941:14: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4944:19: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4944:18: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4948:19: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4950:18: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4952:19: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4956:33: danger: dereference of NULL ‘htab’ # 4954| h->root.u.def.section->owner); # 4955| # 4956|-> rela.r_info = htab->r_info (0, # 4957| R_X86_64_IRELATIVE); # 4958| rela.r_addend = (h->root.u.def.value Error: GCC_ANALYZER_WARNING (CWE-476): [#def221] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4982:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4664:20: branch_false: following ‘false’ branch... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4667:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4673:21: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4843:11: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4892:6: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4914:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4915:12: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4914:7: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4914:7: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4914:7: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4914:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4920:17: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4926:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4938:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4939:14: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4938:11: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4941:15: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4941:14: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4966:20: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4966:19: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4976:19: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4976:18: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4982:19: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4982:19: danger: dereference of NULL ‘htab’ # 4980| contains the real function addres if we need pointer # 4981| equality. We load the GOT entry with the PLT entry. */ # 4982|-> if (htab->plt_second != NULL) # 4983| { # 4984| plt = htab->plt_second; Error: GCC_ANALYZER_WARNING (CWE-476): [#def222] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:5009:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4664:20: branch_false: following ‘false’ branch... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4667:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4673:21: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4843:11: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4892:6: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4914:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4915:12: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4914:7: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4914:7: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4914:7: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4914:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4920:17: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4926:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4999:15: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:5000:19: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4999:16: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:5002:16: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:5005:14: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:5009:29: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:5009:29: danger: dereference of NULL ‘htab’ # 5007| else # 5008| { # 5009|-> rela.r_info = htab->r_info (0, R_X86_64_RELATIVE); # 5010| rela.r_addend = (h->root.u.def.value # 5011| + h->root.u.def.section->output_section->vma Error: GCC_ANALYZER_WARNING (CWE-476): [#def223] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:5022:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4664:20: branch_false: following ‘false’ branch... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4667:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4673:21: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4843:11: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4892:6: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4914:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4915:12: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4914:7: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4914:7: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4914:7: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4914:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4920:17: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4926:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:5022:25: danger: dereference of NULL ‘htab’ # 5020| bfd_put_64 (output_bfd, (bfd_vma) 0, # 5021| htab->elf.sgot->contents + h->got.offset); # 5022|-> rela.r_info = htab->r_info (h->dynindx, R_X86_64_GLOB_DAT); # 5023| rela.r_addend = 0; # 5024| } Error: GCC_ANALYZER_WARNING (CWE-476): [#def224] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:5048:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4664:20: branch_false: following ‘false’ branch... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4667:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4673:21: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4843:11: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:4892:6: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:5037:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:5043:7: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:5043:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:5048:21: danger: dereference of NULL ‘htab’ # 5046| + h->root.u.def.section->output_section->vma # 5047| + h->root.u.def.section->output_offset); # 5048|-> rela.r_info = htab->r_info (h->dynindx, R_X86_64_COPY); # 5049| rela.r_addend = 0; # 5050| if (h->root.u.def.section == htab->elf.sdynrelro) Error: GCC_ANALYZER_WARNING (CWE-476): [#def225] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:5112:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:5107:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:5108:10: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:5107:7: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:5112:32: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elf64-x86-64.c:5112:32: danger: dereference of NULL ‘htab’ # 5110| /* Check relocation against STT_GNU_IFUNC symbol if there are # 5111| dynamic symbols. */ # 5112|-> unsigned long r_symndx = htab->r_sym (rela->r_info); # 5113| if (r_symndx != STN_UNDEF) # 5114| { Error: GCC_ANALYZER_WARNING (CWE-476): [#def226] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-aarch64.c:9976:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sym’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-aarch64.c:10104:1: enter_function: entry to ‘elf64_aarch64_finish_local_dynamic_symbol’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-aarch64.c:10111:10: call_function: calling ‘elf64_aarch64_finish_dynamic_symbol’ from ‘elf64_aarch64_finish_local_dynamic_symbol’ # 9974| /* Mark the symbol as undefined, rather than as defined in # 9975| the .plt section. */ # 9976|-> sym->st_shndx = SHN_UNDEF; # 9977| /* If the symbol is weak we need to clear the value. # 9978| Otherwise, the PLT entry would provide a definition for Error: GCC_ANALYZER_WARNING (CWE-476): [#def227] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:450:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2223:1: enter_function: entry to ‘riscv_elf_relocate_section’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2244:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2247:21: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2248:22: branch_true: following ‘true’ branch (when ‘rel < relend’)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2259:20: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2265:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2269:18: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2274:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2276:28: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2281:14: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2282:18: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2281:15: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2284:19: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2284:19: call_function: calling ‘riscv_elf_get_local_sym_hash’ from ‘riscv_elf_relocate_section’ # 448| eh.elf.indx = sec->id; # 449| eh.elf.dynstr_index = ELFNN_R_SYM (rel->r_info); # 450|-> slot = htab_find_slot_with_hash (htab->loc_hash_table, &eh, h, # 451| create ? INSERT : NO_INSERT); # 452| Error: GCC_ANALYZER_WARNING (CWE-476): [#def228] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2440:44: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2244:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2247:21: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2248:22: branch_true: following ‘true’ branch (when ‘rel < relend’)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2259:20: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2265:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2269:18: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2274:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2297:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2297:11: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2313:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2317:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2317:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2322:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2322:10: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2323:14: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2322:11: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2324:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2322:11: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2328:16: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2328:14: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2343:20: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2365:18: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2383:22: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2383:21: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2390:39: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2394:24: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2398:40: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2426:24: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2429:30: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2429:29: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2439:33: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2440:44: danger: dereference of NULL ‘htab’ # 2438| const struct elf_backend_data *bed = # 2439| get_elf_backend_data (output_bfd); # 2440|-> bfd_vma iplt_idx = htab->last_iplt_index--; # 2441| bfd_byte *loc = htab->elf.irelplt->contents # 2442| + iplt_idx * sizeof (ElfNN_External_Rela); Error: GCC_ANALYZER_WARNING (CWE-476): [#def229] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2558:52: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sym’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2223:1: enter_function: entry to ‘riscv_elf_relocate_section’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2236:44: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2236:44: call_function: inlined call to ‘elf_hash_table_id’ from ‘riscv_elf_relocate_section’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2236:44: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2237:36: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2244:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2247:21: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2248:22: branch_true: following ‘true’ branch (when ‘rel < relend’)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2259:20: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2265:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2269:18: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2274:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2297:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2297:11: branch_false: following ‘false’ branch (when ‘sym_hashes’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2297:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2297:11: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2297:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2317:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2322:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2322:10: branch_false: following ‘false’ branch (when ‘h’ is NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2558:52: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:2558:52: danger: dereference of NULL ‘sym’ # 2556| { # 2557| name = (bfd_elf_string_from_elf_section # 2558|-> (input_bfd, symtab_hdr->sh_link, sym->st_name)); # 2559| if (name == NULL || *name == '\0') # 2560| name = bfd_section_name (sec); Error: GCC_ANALYZER_WARNING (CWE-476): [#def230] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:3344:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sym’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:3512:1: enter_function: entry to ‘riscv_elf_finish_local_dynamic_symbol’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:3517:10: call_function: calling ‘riscv_elf_finish_dynamic_symbol’ from ‘riscv_elf_finish_local_dynamic_symbol’ # 3342| /* Mark the symbol as undefined, rather than as defined in # 3343| the .plt section. Leave the value alone. */ # 3344|-> sym->st_shndx = SHN_UNDEF; # 3345| /* If the symbol is weak, we do need to clear the value. # 3346| Otherwise, the PLT entry would provide a definition for Error: GCC_ANALYZER_WARNING (CWE-476): [#def231] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:3503:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sym’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:3512:1: enter_function: entry to ‘riscv_elf_finish_local_dynamic_symbol’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:3517:10: call_function: calling ‘riscv_elf_finish_dynamic_symbol’ from ‘riscv_elf_finish_local_dynamic_symbol’ # 3501| if (h == htab->elf.hdynamic # 3502| || (h == htab->elf.hgot || h == htab->elf.hplt)) # 3503|-> sym->st_shndx = SHN_ABS; # 3504| # 3505| return true; Error: GCC_ANALYZER_WARNING (CWE-476): [#def232] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:3644:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ # 3642| # 3643| /* Fill PLT and GOT entries for local STT_GNU_IFUNC symbols. */ # 3644|-> htab_traverse (htab->loc_hash_table, # 3645| riscv_elf_finish_local_dynamic_symbol, # 3646| info); Error: GCC_ANALYZER_WARNING (CWE-476): [#def233] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:4753:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ # 4751| bfd_byte *contents = elf_section_data (sec)->this_hdr.contents; # 4752| /* Can relax to x0 even when gp relaxation is disabled. */ # 4753|-> bfd_vma gp = htab->params->relax_gp # 4754| ? riscv_global_pointer_value (link_info) # 4755| : 0; Error: GCC_ANALYZER_WARNING (CWE-476): [#def234] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:4979:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ # 4977| struct riscv_elf_link_hash_table *htab = riscv_elf_hash_table (link_info); # 4978| /* Can relax to x0 even when gp relaxation is disabled. */ # 4979|-> bfd_vma gp = htab->params->relax_gp # 4980| ? riscv_global_pointer_value (link_info) # 4981| : 0; Error: GCC_ANALYZER_WARNING (CWE-476): [#def235] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:5125:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ # 5123| { # 5124| struct riscv_elf_link_hash_table *htab = riscv_elf_hash_table (info); # 5125|-> htab->data_segment_phase = data_segment_phase; # 5126| } # 5127| Error: GCC_ANALYZER_WARNING (CWE-476): [#def236] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:5160:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:5151:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:5152:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:5151:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:5153:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:5151:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:5154:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:5151:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:5155:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:5151:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:5156:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfnn-riscv.c:5160:11: danger: dereference of NULL ‘htab’ # 5158| /* The exp_seg_relro_adjust is enum phase_enum (0x4), # 5159| and defined in ld/ldexp.h. */ # 5160|-> || *(htab->data_segment_phase) == 4) # 5161| return true; # 5162| Error: GCC_ANALYZER_WARNING (CWE-476): [#def237] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfxx-x86.c:1857:36: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfxx-x86.c:1857:15: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfxx-x86.c:1857:36: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfxx-x86.c:1857:36: danger: dereference of NULL ‘htab’ # 1855| # 1856| plt0_entry_size # 1857|-> = htab->plt.has_plt0 ? htab->sframe_plt->plt0_entry_size : 0; # 1858| plt_entry_size = htab->sframe_plt->pltn_entry_size; # 1859| pltn_fres = htab->sframe_plt->pltn_fres; Error: GCC_ANALYZER_WARNING (CWE-476): [#def238] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfxx-x86.c:1858:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfxx-x86.c:1857:15: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfxx-x86.c:1858:28: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfxx-x86.c:1858:28: danger: dereference of NULL ‘htab’ # 1856| plt0_entry_size # 1857| = htab->plt.has_plt0 ? htab->sframe_plt->plt0_entry_size : 0; # 1858|-> plt_entry_size = htab->sframe_plt->pltn_entry_size; # 1859| pltn_fres = htab->sframe_plt->pltn_fres; # 1860| num_pltn_fres = htab->sframe_plt->pltn_num_fres; Error: GCC_ANALYZER_WARNING (CWE-476): [#def239] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfxx-x86.c:1869:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ # 1867| { # 1868| ectx = &htab->plt_second_cfe_ctx; # 1869|-> dpltsec = htab->plt_second; # 1870| # 1871| plt0_entry_size = 0; Error: GCC_ANALYZER_WARNING (CWE-476): [#def240] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfxx-x86.c:1883:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ # 1881| { # 1882| ectx = &htab->plt_got_cfe_ctx; # 1883|-> dpltsec = htab->plt_got; # 1884| # 1885| plt0_entry_size = 0; Error: GCC_ANALYZER_WARNING (CWE-476): [#def241] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfxx-x86.c:1992:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ # 1990| { # 1991| case SFRAME_PLT: # 1992|-> ectx = htab->plt_cfe_ctx; # 1993| sec = htab->plt_sframe; # 1994| break; Error: GCC_ANALYZER_WARNING (CWE-476): [#def242] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfxx-x86.c:1996:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ # 1994| break; # 1995| case SFRAME_PLT_SEC: # 1996|-> ectx = htab->plt_second_cfe_ctx; # 1997| sec = htab->plt_second_sframe; # 1998| break; Error: GCC_ANALYZER_WARNING (CWE-476): [#def243] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfxx-x86.c:2000:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ # 1998| break; # 1999| case SFRAME_PLT_GOT: # 2000|-> ectx = htab->plt_got_cfe_ctx; # 2001| sec = htab->plt_got_sframe; # 2002| break; Error: GCC_ANALYZER_WARNING (CWE-476): [#def244] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/elfxx-x86.c:3332:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ # 3330| # 3331| case elf_x86_tls_error_indirect_call: # 3332|-> info->callbacks->einfo # 3333| /* xgettext:c-format */ # 3334| (_("%pB(%pA+0x%v): relocation %s against `%s' must be used " Error: GCC_ANALYZER_WARNING (CWE-476): [#def245] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:323:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘buf’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:487:1: enter_function: entry to ‘ihex_object_p’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:495:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:497:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:497:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:504:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:504:6: branch_false: following ‘false’ branch... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:510:15: branch_true: following ‘true’ branch (when ‘i != 9’)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:512:13: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:512:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:510:22: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:520:6: branch_false: following ‘false’ branch (when ‘type <= 5’)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:527:8: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:527:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:530:8: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def246] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:333:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘buf’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:487:1: enter_function: entry to ‘ihex_object_p’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:495:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:497:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:497:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:504:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:504:6: branch_false: following ‘false’ branch... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:510:15: branch_true: following ‘true’ branch (when ‘i != 9’)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:512:13: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:512:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:510:22: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:520:6: branch_false: following ‘false’ branch (when ‘type <= 5’)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:527:8: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:527:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:530:8: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def247] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:334:53: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘buf’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:487:1: enter_function: entry to ‘ihex_object_p’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:495:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:497:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:497:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:504:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:504:6: branch_false: following ‘false’ branch... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:510:15: branch_true: following ‘true’ branch (when ‘i != 9’)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:512:13: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:512:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:510:22: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:520:6: branch_false: following ‘false’ branch (when ‘type <= 5’)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:527:8: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:527:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:530:8: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def248] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:597:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘buf’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:542:1: enter_function: entry to ‘ihex_read_section’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:550:6: branch_false: following ‘false’ branch... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:556:15: call_function: calling ‘ihex_get_byte’ from ‘ihex_read_section’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:556:15: return_function: returning to ‘ihex_read_section’ from ‘ihex_get_byte’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:556:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:563:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:570:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:573:13: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:577:10: branch_false: following ‘false’ branch (when ‘type == 0’)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:585:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:585:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:593:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:593:10: branch_false: following ‘false’ branch... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/ihex.c:597:16: release_memory: ‘buf’ is NULL gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def249] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:521:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘buf’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:677:1: enter_function: entry to ‘symbolsrec_object_p’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:683:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:684:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:683:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:687:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:687:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:693:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:696:8: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def250] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:527:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘data’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:677:1: enter_function: entry to ‘symbolsrec_object_p’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:683:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:684:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:683:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:687:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:687:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:693:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:696:8: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def251] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:533:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘data’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:677:1: enter_function: entry to ‘symbolsrec_object_p’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:683:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:684:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:683:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:687:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:687:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:693:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:696:8: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def252] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:589:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘buf’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:677:1: enter_function: entry to ‘symbolsrec_object_p’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:683:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:684:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:683:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:687:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:687:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:693:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:696:8: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def253] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:594:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘data’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:677:1: enter_function: entry to ‘symbolsrec_object_p’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:683:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:684:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:683:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:687:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:687:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:693:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:696:8: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def254] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:599:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘data’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:677:1: enter_function: entry to ‘symbolsrec_object_p’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:683:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:684:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:683:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:687:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:687:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:693:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:696:8: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def255] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:767:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘buf’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:711:1: enter_function: entry to ‘srec_read_section’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:719:6: branch_false: following ‘false’ branch... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:722:15: call_function: calling ‘srec_get_byte’ from ‘srec_read_section’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:722:15: return_function: returning to ‘srec_read_section’ from ‘srec_get_byte’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:722:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:729:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:734:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:737:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:737:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:740:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:744:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:753:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:753:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:758:15: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def256] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:772:38: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘data’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:711:1: enter_function: entry to ‘srec_read_section’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:719:6: branch_false: following ‘false’ branch... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:722:15: call_function: calling ‘srec_get_byte’ from ‘srec_read_section’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:722:15: return_function: returning to ‘srec_read_section’ from ‘srec_get_byte’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:722:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:729:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:734:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:737:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:737:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:740:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:744:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:753:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:753:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:758:15: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def257] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:777:38: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘data’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:711:1: enter_function: entry to ‘srec_read_section’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:719:6: branch_false: following ‘false’ branch... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:722:15: call_function: calling ‘srec_get_byte’ from ‘srec_read_section’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:722:15: return_function: returning to ‘srec_read_section’ from ‘srec_get_byte’ gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:722:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:729:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:734:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:737:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:737:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:740:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:744:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:753:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:753:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/srec.c:758:15: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def258] gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/stabs.c:401:20: warning[-Wanalyzer-null-argument]: use of NULL ‘symb’ where non-null expected gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/stabs.c:191:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/stabs.c:192:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/stabs.c:191:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/stabs.c:193:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/stabs.c:191:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/stabs.c:194:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/stabs.c:191:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/stabs.c:198:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/stabs.c:198:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/stabs.c:203:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/stabs.c:203:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/stabs.c:208:27: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/stabs.c:208:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/stabs.c:209:30: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/stabs.c:208:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/stabs.c:216:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/stabs.c:246:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/stabs.c:250:3: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/stabs.c:256:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/stabs.c:257:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/stabs.c:256:7: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/stabs.c:267:17: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/stabs.c:272:8: branch_true: following ‘true’ branch (when ‘sym < symend’)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/stabs.c:279:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/stabs.c:279:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/stabs.c:283:14: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/stabs.c:304:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/stabs.c:313:16: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/stabs.c:321:10: branch_true: following ‘true’ branch (when ‘type == 130’)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/stabs.c:338:16: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/stabs.c:389:11: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/stabs.c:394:13: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/stabs.c:395:14: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/stabs.c:398:16: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/stabs.c:398:40: branch_true: following ‘true’ branch (when ‘t’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/stabs.c:399:17: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/stabs.c:399:16: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/stabs.c:400:20: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/stabs.c:399:17: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/bfd/../../bfd/stabs.c:401:28: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/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-457): [#def259] gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-archive.c:768:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘err’ gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-archive.c:650:1: enter_function: entry to ‘ctf_dict_open_cached’ gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def260] gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-hash.c:186:7: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-hash.c:164:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-hash.c:168:17: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-hash.c:171:6: branch_false: following ‘false’ branch (when ‘dynhash’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-hash.c:174:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-hash.c:174:6: branch_true: following ‘true’ branch... branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-hash.c:177:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-hash.c:184:6: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-hash.c:184:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-hash.c:186:7: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def261] gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-hash.c:187:7: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-hash.c:164:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-hash.c:168:17: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-hash.c:171:6: branch_false: following ‘false’ branch (when ‘dynhash’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-hash.c:174:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-hash.c:174:6: branch_true: following ‘true’ branch... branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-hash.c:177:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-hash.c:184:6: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-hash.c:184:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-hash.c:186:7: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def262] gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-hash.c:233:11: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-hash.c:218:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-hash.c:224:8: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-hash.c:224:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-hash.c:228:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-hash.c:228:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-hash.c:232:21: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def263] gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-inlines.h:96:3: warning[-Wanalyzer-malloc-leak]: leak of ‘files’ gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-link.c:1810:6: branch_false: following ‘false’ branch (when ‘names’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-link.c:1817:61: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-link.c:1817:6: branch_false: following ‘false’ branch (when ‘files’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-link.c:1829:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-link.c:1829:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-link.c:1833:13: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-link.c:1837:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-link.c:1840:55: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-link.c:1839:14: branch_true: following ‘true’ branch (when ‘dynames’ is NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-link.c:1842:15: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def264] gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-inlines.h:96:3: warning[-Wanalyzer-malloc-leak]: leak of ‘names’ gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-link.c:1810:6: branch_false: following ‘false’ branch (when ‘names’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-link.c:1817:61: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-link.c:1817:6: branch_true: following ‘true’ branch (when ‘files’ is NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-link.c:1819:7: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def265] gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-lookup.c:590:17: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-lookup.c:1298:1: enter_function: entry to ‘ctf_func_args’ gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-lookup.c:1303:15: call_function: inlined call to ‘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): [#def266] gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-open.c:1524:14: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’ gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-open.c:1442:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-open.c:1443:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-open.c:1442:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-open.c:1449:31: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-open.c:1465:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-open.c:1469:6: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-open.c:1484:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-open.c:1492:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-open.c:1492:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-open.c:1495:13: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-open.c:1495:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-open.c:1498:3: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-open.c:1500:25: acquire_memory: allocated here gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-open.c:1500:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-open.c:1506:15: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-open.c:1507:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-open.c:1510:6: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-open.c:1510:6: branch_false: following ‘false’ branch (when ‘foreign_endian == 0’)... gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-open.c:1512:23: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def267] gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-open.c:1524:14: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’ gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-open.c:1442:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-open.c:1443:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-open.c:1442:7: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-open.c:1449:31: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-open.c:1465:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-open.c:1469:6: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-open.c:1484:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-open.c:1492:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-open.c:1492:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-open.c:1495:13: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-open.c:1495:13: acquire_memory: allocated here gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-open.c:1495:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-open.c:1498:3: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-open.c:1500:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-open.c:1506:15: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-open.c:1507:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-open.c:1510:6: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-open.c:1510:6: branch_false: following ‘false’ branch (when ‘foreign_endian == 0’)... gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-open.c:1512:23: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def268] gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-string.c:827:3: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’ gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-string.c:662:6: branch_false: following ‘false’ branch (when ‘strtab’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-string.c:671:21: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-string.c:700:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-string.c:709:32: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-string.c:714:6: branch_false: following ‘false’ branch (when ‘sorttab’ is non-NULL)... branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-string.c:740:27: acquire_memory: allocated here gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-string.c:740:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-string.c:743:16: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-string.c:745:6: branch_false: following ‘false’ branch (when ‘new_strtab == 0’)... gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-string.c:751:31: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-string.c:760:15: branch_false: following ‘false’ branch (when ‘strtab_count <= i’)... gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-string.c:766:3: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-string.c:790:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/libctf/../../libctf/ctf-string.c:792:7: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/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-457): [#def269] gdb-16.2/build-x86_64-redhat-linux-gnu/libdecnumber/../../libdecnumber/decNumber.c:6276:37: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*u’ gdb-16.2/build-x86_64-redhat-linux-gnu/libdecnumber/../../libdecnumber/decNumber.c:6163:12: enter_function: entry to ‘decCompare’ gdb-16.2/build-x86_64-redhat-linux-gnu/libdecnumber/../../libdecnumber/decNumber.c:6174:8: branch_false: following ‘false’ branch (when ‘result != 0’)... gdb-16.2/build-x86_64-redhat-linux-gnu/libdecnumber/../../libdecnumber/decNumber.c:6188:8: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libdecnumber/../../libdecnumber/decNumber.c:6188:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/libdecnumber/../../libdecnumber/decNumber.c:6196:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libdecnumber/../../libdecnumber/decNumber.c:6203:11: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/libdecnumber/../../libdecnumber/decNumber.c:6204:36: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libdecnumber/../../libdecnumber/decNumber.c:6203:11: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/libdecnumber/../../libdecnumber/decNumber.c:6203:36: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libdecnumber/../../libdecnumber/decNumber.c:6203:11: call_function: calling ‘decUnitCompare’ from ‘decCompare’ # 6274| else { /* non-negative result */ # 6275| /* check units of the result before freeing any storage */ # 6276|-> for (u=acc; u<acc+accunits-1 && *u==0;) u++; # 6277| result=(*u==0 ? 0 : +1); # 6278| } Error: GCC_ANALYZER_WARNING (CWE-457): [#def270] gdb-16.2/build-x86_64-redhat-linux-gnu/libdecnumber/../../libdecnumber/decNumber.c:6277:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*u’ gdb-16.2/build-x86_64-redhat-linux-gnu/libdecnumber/../../libdecnumber/decNumber.c:6163:12: enter_function: entry to ‘decCompare’ gdb-16.2/build-x86_64-redhat-linux-gnu/libdecnumber/../../libdecnumber/decNumber.c:6174:8: branch_false: following ‘false’ branch (when ‘result != 0’)... gdb-16.2/build-x86_64-redhat-linux-gnu/libdecnumber/../../libdecnumber/decNumber.c:6188:8: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libdecnumber/../../libdecnumber/decNumber.c:6188:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/libdecnumber/../../libdecnumber/decNumber.c:6196:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libdecnumber/../../libdecnumber/decNumber.c:6203:11: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/libdecnumber/../../libdecnumber/decNumber.c:6204:36: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libdecnumber/../../libdecnumber/decNumber.c:6203:11: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/libdecnumber/../../libdecnumber/decNumber.c:6203:36: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libdecnumber/../../libdecnumber/decNumber.c:6203:11: call_function: calling ‘decUnitCompare’ from ‘decCompare’ # 6275| /* check units of the result before freeing any storage */ # 6276| for (u=acc; u<acc+accunits-1 && *u==0;) u++; # 6277|-> result=(*u==0 ? 0 : +1); # 6278| } # 6279| /* clean up and return the result */ Error: GCC_ANALYZER_WARNING (CWE-126): [#def271] gdb-16.2/build-x86_64-redhat-linux-gnu/libdecnumber/../../libdecnumber/decNumber.c:6376:19: warning[-Wanalyzer-out-of-bounds]: buffer over-read gdb-16.2/build-x86_64-redhat-linux-gnu/libdecnumber/../../libdecnumber/decNumber.c:7422:13: enter_function: entry to ‘decSetSubnormal’ gdb-16.2/build-x86_64-redhat-linux-gnu/libdecnumber/../../libdecnumber/decNumber.c:7458:6: branch_false: following ‘false’ branch (when ‘adjust > 0’)... gdb-16.2/build-x86_64-redhat-linux-gnu/libdecnumber/../../libdecnumber/decNumber.c:7468:3: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libdecnumber/../../libdecnumber/decNumber.c:7472:3: call_function: calling ‘decSetCoeff’ from ‘decSetSubnormal’ gdb-16.2/build-x86_64-redhat-linux-gnu/libdecnumber/../../libdecnumber/decNumber.c:7472:3: return_function: returning to ‘decSetSubnormal’ from ‘decSetCoeff’ gdb-16.2/build-x86_64-redhat-linux-gnu/libdecnumber/../../libdecnumber/decNumber.c:7473:3: call_function: inlined call to ‘decApplyRound’ from ‘decSetSubnormal’ branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libdecnumber/../../libdecnumber/decNumber.c:7473:3: call_function: inlined call to ‘decApplyRound’ from ‘decSetSubnormal’ # 6374| carry+=*a; # 6375| a++; # 6376|-> carry+=((eInt)*b)*m; /* [special-casing m=1/-1 */ # 6377| b++; /* here is not a win] */ # 6378| /* here carry is new Unit of digits; it could be +ve or -ve */ Error: GCC_ANALYZER_WARNING (CWE-465): [#def272] gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/dyn-string.c:251:6: warning[-Wanalyzer-deref-before-check]: check of ‘dest’ for NULL after already dereferencing it gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/dyn-string.c:244:1: enter_function: entry to ‘dyn_string_insert’ gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/dyn-string.c:248:6: branch_false: following ‘false’ branch (when ‘src != dest’)... gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/dyn-string.c:251:32: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/dyn-string.c:251:7: call_function: calling ‘dyn_string_resize’ from ‘dyn_string_insert’ gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/dyn-string.c:251:7: return_function: returning to ‘dyn_string_insert’ from ‘dyn_string_resize’ gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def273] gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/dyn-string.c:274:6: warning[-Wanalyzer-deref-before-check]: check of ‘dest’ for NULL after already dereferencing it gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/dyn-string.c:269:1: enter_function: entry to ‘dyn_string_insert_cstr’ gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/dyn-string.c:274:7: call_function: calling ‘dyn_string_resize’ from ‘dyn_string_insert_cstr’ gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/dyn-string.c:274:7: return_function: returning to ‘dyn_string_insert_cstr’ from ‘dyn_string_resize’ gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def274] gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/dyn-string.c:295:6: warning[-Wanalyzer-deref-before-check]: check of ‘dest’ for NULL after already dereferencing it gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/dyn-string.c:291:1: enter_function: entry to ‘dyn_string_insert_char’ gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/dyn-string.c:295:7: call_function: calling ‘dyn_string_resize’ from ‘dyn_string_insert_char’ gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/dyn-string.c:295:7: return_function: returning to ‘dyn_string_insert_char’ from ‘dyn_string_resize’ gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def275] gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/dyn-string.c:314:6: warning[-Wanalyzer-deref-before-check]: check of ‘dest’ for NULL after already dereferencing it gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/dyn-string.c:312:1: enter_function: entry to ‘dyn_string_append’ gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/dyn-string.c:314:7: call_function: calling ‘dyn_string_resize’ from ‘dyn_string_append’ gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/dyn-string.c:314:7: return_function: returning to ‘dyn_string_append’ from ‘dyn_string_resize’ gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def276] gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/dyn-string.c:332:6: warning[-Wanalyzer-deref-before-check]: check of ‘dest’ for NULL after already dereferencing it gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/dyn-string.c:326:1: enter_function: entry to ‘dyn_string_append_cstr’ gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/dyn-string.c:332:7: call_function: calling ‘dyn_string_resize’ from ‘dyn_string_append_cstr’ gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/dyn-string.c:332:7: return_function: returning to ‘dyn_string_append_cstr’ from ‘dyn_string_resize’ gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def277] gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/dyn-string.c:346:6: warning[-Wanalyzer-deref-before-check]: check of ‘dest’ for NULL after already dereferencing it gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/dyn-string.c:343:1: enter_function: entry to ‘dyn_string_append_char’ gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/dyn-string.c:346:7: call_function: calling ‘dyn_string_resize’ from ‘dyn_string_append_char’ gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/dyn-string.c:346:7: return_function: returning to ‘dyn_string_append_char’ from ‘dyn_string_resize’ gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def278] gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/make-relative-prefix.c:192:7: warning[-Wanalyzer-out-of-bounds]: heap-based buffer under-read gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/make-relative-prefix.c:428:1: enter_function: entry to ‘make_relative_prefix_ignore_links’ gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def279] gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/make-relative-prefix.c:274:23: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘nstore’ gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/make-relative-prefix.c:428:1: enter_function: entry to ‘make_relative_prefix_ignore_links’ gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def280] gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/make-relative-prefix.c:289:19: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘nstore’ where non-null expected gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/make-relative-prefix.c:428:1: enter_function: entry to ‘make_relative_prefix_ignore_links’ gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def281] gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/obstack.c:210:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘new_chunk’ gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/obstack.c:209:3: release_memory: ‘new_chunk’ is NULL gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def282] gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/simple-object-mach-o.c:1159:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘index’ gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/simple-object-mach-o.c:1079:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/simple-object-mach-o.c:1110:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/simple-object-mach-o.c:1121:8: branch_true: following ‘true’ branch (when ‘section’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/simple-object-mach-o.c:1128:21: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/simple-object-mach-o.c:1157:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/simple-object-mach-o.c:1159:17: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/simple-object-mach-o.c:1159:16: release_memory: ‘index’ is NULL gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def283] gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/simple-object-mach-o.c:1210:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘index’ gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/simple-object-mach-o.c:1079:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/simple-object-mach-o.c:1110:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/simple-object-mach-o.c:1201:6: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/simple-object-mach-o.c:1210:27: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def284] gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/strerror.c:756:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error_names’ gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/strerror.c:744:1: enter_function: entry to ‘strtoerrno’ gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/strerror.c:748:6: branch_true: following ‘true’ branch (when ‘name’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/strerror.c:750:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/strerror.c:750:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/strerror.c:752:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/strerror.c:752:11: call_function: calling ‘init_error_tables’ from ‘strtoerrno’ gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/strerror.c:752:11: return_function: returning to ‘strtoerrno’ from ‘init_error_tables’ gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/strerror.c:754:26: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/strerror.c:756:27: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def285] gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/strsignal.c:524:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘signal_names’ gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/strsignal.c:512:1: enter_function: entry to ‘strtosigno’ gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/strsignal.c:516:6: branch_true: following ‘true’ branch (when ‘name’ is non-NULL)... gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/strsignal.c:518:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/strsignal.c:518:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/strsignal.c:520:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/strsignal.c:520:11: call_function: calling ‘init_signal_tables’ from ‘strtosigno’ gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/strsignal.c:520:11: return_function: returning to ‘strtosigno’ from ‘init_signal_tables’ gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/strsignal.c:522:23: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/libiberty/../../libiberty/strsignal.c:524:28: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def286] gdb-16.2/build-x86_64-redhat-linux-gnu/libsframe/../../libsframe/sframe-dump.c:76:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘flags_str’ where non-null expected gdb-16.2/build-x86_64-redhat-linux-gnu/libsframe/../../libsframe/sframe-dump.c:222:1: enter_function: entry to ‘dump_sframe’ gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def287] gdb-16.2/build-x86_64-redhat-linux-gnu/libsframe/../../libsframe/sframe-dump.c:81:11: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘flags_str’ where non-null expected gdb-16.2/build-x86_64-redhat-linux-gnu/libsframe/../../libsframe/sframe-dump.c:222:1: enter_function: entry to ‘dump_sframe’ gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def288] gdb-16.2/build-x86_64-redhat-linux-gnu/libsframe/../../libsframe/sframe-dump.c:85:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘flags_str’ where non-null expected gdb-16.2/build-x86_64-redhat-linux-gnu/libsframe/../../libsframe/sframe-dump.c:222:1: enter_function: entry to ‘dump_sframe’ gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def289] gdb-16.2/build-x86_64-redhat-linux-gnu/libsframe/../../libsframe/sframe.c:110:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘hp’ gdb-16.2/build-x86_64-redhat-linux-gnu/libsframe/../../libsframe/sframe.c:1390:1: enter_function: entry to ‘sframe_encoder_get_hdr_size’ gdb-16.2/build-x86_64-redhat-linux-gnu/libsframe/../../libsframe/sframe.c:1393:9: call_function: inlined call to ‘sframe_encoder_get_header’ from ‘sframe_encoder_get_hdr_size’ gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def290] gdb-16.2/build-x86_64-redhat-linux-gnu/libsframe/../../libsframe/sframe.c:870:12: warning[-Wanalyzer-malloc-leak]: leak of ‘dctx’ gdb-16.2/build-x86_64-redhat-linux-gnu/libsframe/../../libsframe/sframe.c:869:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/libsframe/../../libsframe/sframe.c:871:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libsframe/../../libsframe/sframe.c:871:11: branch_false: following ‘false’ branch (when ‘sf_size > 27’)... gdb-16.2/build-x86_64-redhat-linux-gnu/libsframe/../../libsframe/sframe.c:877:51: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libsframe/../../libsframe/sframe.c:882:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/libsframe/../../libsframe/sframe.c:889:15: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libsframe/../../libsframe/sframe.c:889:15: acquire_memory: allocated here gdb-16.2/build-x86_64-redhat-linux-gnu/libsframe/../../libsframe/sframe.c:889:6: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/libsframe/../../libsframe/sframe.c:891:3: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/libsframe/../../libsframe/sframe.c:893:6: branch_true: following ‘true’ branch (when ‘foreign_endian != 0’)... gdb-16.2/build-x86_64-redhat-linux-gnu/libsframe/../../libsframe/sframe.c:896:26: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def291] gdb-16.2/build-x86_64-redhat-linux-gnu/libsframe/../../libsframe/sframe.c:987:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘hp’ gdb-16.2/build-x86_64-redhat-linux-gnu/libsframe/../../libsframe/sframe.c:983:1: enter_function: entry to ‘sframe_decoder_get_abi_arch’ gdb-16.2/build-x86_64-redhat-linux-gnu/libsframe/../../libsframe/sframe.c:986:19: call_function: inlined call to ‘sframe_decoder_get_header’ from ‘sframe_decoder_get_abi_arch’ gdb-16.2/build-x86_64-redhat-linux-gnu/libsframe/../../libsframe/sframe.c:987:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def292] gdb-16.2/build-x86_64-redhat-linux-gnu/libsframe/../../libsframe/sframe.c:1006:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘hp’ gdb-16.2/build-x86_64-redhat-linux-gnu/libsframe/../../libsframe/sframe.c:1002:1: enter_function: entry to ‘sframe_decoder_get_fixed_fp_offset’ gdb-16.2/build-x86_64-redhat-linux-gnu/libsframe/../../libsframe/sframe.c:1005:9: call_function: inlined call to ‘sframe_decoder_get_header’ from ‘sframe_decoder_get_fixed_fp_offset’ gdb-16.2/build-x86_64-redhat-linux-gnu/libsframe/../../libsframe/sframe.c:1006:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def293] gdb-16.2/build-x86_64-redhat-linux-gnu/libsframe/../../libsframe/sframe.c:1015:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘hp’ gdb-16.2/build-x86_64-redhat-linux-gnu/libsframe/../../libsframe/sframe.c:1011:1: enter_function: entry to ‘sframe_decoder_get_fixed_ra_offset’ gdb-16.2/build-x86_64-redhat-linux-gnu/libsframe/../../libsframe/sframe.c:1014:9: call_function: inlined call to ‘sframe_decoder_get_header’ from ‘sframe_decoder_get_fixed_ra_offset’ gdb-16.2/build-x86_64-redhat-linux-gnu/libsframe/../../libsframe/sframe.c:1015:10: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/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): [#def294] gdb-16.2/build-x86_64-redhat-linux-gnu/libsframe/../../libsframe/sframe.c:1649:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘encoder’ gdb-16.2/build-x86_64-redhat-linux-gnu/libsframe/../../libsframe/sframe.c:1643:1: enter_function: entry to ‘sframe_sort_funcdesc’ gdb-16.2/build-x86_64-redhat-linux-gnu/libsframe/../../libsframe/sframe.c:1647:9: call_function: inlined call to ‘sframe_encoder_get_header’ from ‘sframe_sort_funcdesc’ gdb-16.2/build-x86_64-redhat-linux-gnu/libsframe/../../libsframe/sframe.c:1649:15: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/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: GCC_ANALYZER_WARNING (CWE-835): [#def295] gdb-16.2/build-x86_64-redhat-linux-gnu/opcodes/../../opcodes/aarch64-dis.c:2770:29: warning[-Wanalyzer-infinite-loop]: infinite loop gdb-16.2/build-x86_64-redhat-linux-gnu/opcodes/../../opcodes/aarch64-dis.c:4159:1: enter_function: entry to ‘print_insn_aarch64_word’ # 2768| value = extract_field (FLD_rcpc3_size, inst->value, 0); # 2769| for (int i = 0; # 2770|-> aarch64_operands[inst->operands[i].type].op_class != AARCH64_OPND_CLASS_ADDRESS; # 2771| i++) # 2772| { Error: GCC_ANALYZER_WARNING (CWE-1335): [#def296] gdb-16.2/build-x86_64-redhat-linux-gnu/opcodes/../../opcodes/s390-mkopc.c:117:3: warning[-Wanalyzer-shift-count-overflow]: shift by count (‘64’) >= precision of type (‘64’) gdb-16.2/build-x86_64-redhat-linux-gnu/opcodes/../../opcodes/s390-mkopc.c:367:1: enter_function: entry to ‘main’ gdb-16.2/build-x86_64-redhat-linux-gnu/opcodes/../../opcodes/s390-mkopc.c:375:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/opcodes/../../opcodes/s390-mkopc.c:390:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/opcodes/../../opcodes/s390-mkopc.c:390:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/opcodes/../../opcodes/s390-mkopc.c:392:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/opcodes/../../opcodes/s390-mkopc.c:403:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/opcodes/../../opcodes/s390-mkopc.c:409:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/opcodes/../../opcodes/s390-mkopc.c:517:7: call_function: calling ‘insertExpandedMnemonic’ from ‘main’ # 115| str ++; # 116| } # 117|-> sort_value <<= 4*(16 - ix); # 118| sort_value += (min_cpu << 8) + mode_bits; # 119| no_nibbles = ix; Error: GCC_ANALYZER_WARNING (CWE-476): [#def297] gdb-16.2/build-x86_64-redhat-linux-gnu/opcodes/../../opcodes/s390-mkopc.c:121:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ gdb-16.2/build-x86_64-redhat-linux-gnu/opcodes/../../opcodes/s390-mkopc.c:367:1: enter_function: entry to ‘main’ gdb-16.2/build-x86_64-redhat-linux-gnu/opcodes/../../opcodes/s390-mkopc.c:375:10: branch_true: following ‘true’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/opcodes/../../opcodes/s390-mkopc.c:390:11: branch_true: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/opcodes/../../opcodes/s390-mkopc.c:390:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/opcodes/../../opcodes/s390-mkopc.c:392:7: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/opcodes/../../opcodes/s390-mkopc.c:403:10: branch_false: following ‘false’ branch... gdb-16.2/build-x86_64-redhat-linux-gnu/opcodes/../../opcodes/s390-mkopc.c:409:11: branch_false: ...to here gdb-16.2/build-x86_64-redhat-linux-gnu/opcodes/../../opcodes/s390-mkopc.c:517:7: call_function: calling ‘insertExpandedMnemonic’ from ‘main’ # 119| no_nibbles = ix; # 120| for (ix = 0; ix < no_ops; ix++) # 121|-> if (sort_value > op_array[ix].sort_value) # 122| break; # 123| for (k = no_ops; k > ix; k--) Error: CPPCHECK_WARNING (CWE-562): [#def298] gdb-16.2/gdbserver/mem-break.cc:477: error[returnDanglingLifetime]: Returning pointer to local variable 'bp_holder' that will be invalid when returning. # 475| proc->raw_breakpoints = bp; # 476| } # 477|-> return bp; # 478| } # 479| Error: CPPCHECK_WARNING (CWE-457): [#def299] gdb-16.2/gdbsupport/filestuff.cc:153: error[uninitvar]: Uninitialized variable: max # 151| } # 152| # 153|-> for (fd = 0; fd < max; ++fd) # 154| { # 155| struct stat sb; Error: CPPCHECK_WARNING (CWE-562): [#def300] gdb-16.2/gnulib/import/gettext.h:247: error[returnDanglingLifetime]: Returning pointer to local variable 'msg_ctxt_id' that will be invalid when returning. # 245| #endif # 246| if (found_translation) # 247|-> return translation; # 248| } # 249| return msgid; Error: CPPCHECK_WARNING (CWE-401): [#def301] gdb-16.2/gnulib/import/malloc/scratch_buffer_dupfree.c:38: error[memleak]: Memory leak: copy # 36| { # 37| void *copy = realloc (data, size); # 38|-> return copy != NULL ? copy : data; # 39| } # 40| } Error: CPPCHECK_WARNING (CWE-190): [#def302] gdb-16.2/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): [#def303] gdb-16.2/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): [#def304] gdb-16.2/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): [#def305] gdb-16.2/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): [#def306] gdb-16.2/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): [#def307] gdb-16.2/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): [#def308] gdb-16.2/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): [#def309] gdb-16.2/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): [#def310] gdb-16.2/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): [#def311] gdb-16.2/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: CPPCHECK_WARNING (CWE-457): [#def312] gdb-16.2/libdecnumber/bid/bid2dpd_dpd2bid.c:305: error[legacyUninitvar]: Uninitialized variable: BH # 303| bcoeff.w[0] = x.w[0]; # 304| d1018 = reciprocals10_128[18]; # 305|-> __mul_128x128_high (BH, bcoeff, d1018); # 306| amount = recip_scale[18]; # 307| BH.w[0] = (BH.w[0] >> amount) | (BH.w[1] << (64 - amount)); Error: CPPCHECK_WARNING (CWE-562): [#def313] gdb-16.2/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): [#def314] gdb-16.2/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): [#def315] gdb-16.2/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): [#def316] gdb-16.2/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): [#def317] gdb-16.2/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): [#def318] gdb-16.2/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: CPPCHECK_WARNING (CWE-823): [#def319] gdb-16.2/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): [#def320] gdb-16.2/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): [#def321] gdb-16.2/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): [#def322] gdb-16.2/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): [#def323] gdb-16.2/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): [#def324] gdb-16.2/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): [#def325] gdb-16.2/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): [#def326] gdb-16.2/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): [#def327] gdb-16.2/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): [#def328] gdb-16.2/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): [#def329] gdb-16.2/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): [#def330] gdb-16.2/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): [#def331] gdb-16.2/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): [#def332] gdb-16.2/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): [#def333] gdb-16.2/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): [#def334] gdb-16.2/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): [#def335] gdb-16.2/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-457): [#def336] gdb-16.2/opcodes/aarch64-opc.c:1384: warning[uninitvar]: Uninitialized variable: &imm_enc.encoding # 1382| imm_enc.imm = value; # 1383| imm_encoding = (const simd_imm_encoding *) # 1384|-> bsearch(&imm_enc, simd_immediates, TOTAL_IMM_NB, # 1385| sizeof(simd_immediates[0]), simd_imm_encoding_cmp); # 1386| if (imm_encoding == NULL) Error: CPPCHECK_WARNING (CWE-476): [#def337] gdb-16.2/opcodes/aarch64-opc.c:5501: error[ctunullpointer]: Null pointer dereference: inst # 5499| aarch64_instr_sequence *insn_sequence) # 5500| { # 5501|-> insn_sequence->instr[insn_sequence->num_added_insns++] = *inst; # 5502| } # 5503| Error: CPPCHECK_WARNING (CWE-476): [#def338] gdb-16.2/opcodes/aarch64-opc.c:5501: warning[nullPointer]: Possible null pointer dereference: inst # 5499| aarch64_instr_sequence *insn_sequence) # 5500| { # 5501|-> insn_sequence->instr[insn_sequence->num_added_insns++] = *inst; # 5502| } # 5503| Error: CPPCHECK_WARNING (CWE-562): [#def339] gdb-16.2/opcodes/i386-dis.c:9522: error[autoVariables]: Address of local auto-variable assigned to a function parameter. # 9520| info->bytes_per_line = 7; # 9521| # 9522|-> info->private_data = &priv; # 9523| priv.fetched = 0; # 9524| priv.insn_start = pc; Error: CPPCHECK_WARNING (CWE-401): [#def340] gdb-16.2/opcodes/s390-mkopc.c:98: error[memleakOnRealloc]: Common realloc mistake: 'op_array' nulled but not freed upon failure # 96| { # 97| max_ops = max_ops * 2; # 98|-> op_array = realloc (op_array, max_ops * sizeof (struct op_struct)); # 99| } # 100|
analyzer-version-clippy | 1.86.0 |
analyzer-version-cppcheck | 2.17.1 |
analyzer-version-gcc | 15.0.1 |
analyzer-version-gcc-analyzer | 15.0.1 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-75.us-west-2.compute.internal |
known-false-positives | /usr/share/csmock/known-false-positives.js |
known-false-positives-rpm | known-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch |
mock-config | fedora-rawhide-x86_64 |
project-name | gdb-16.2-3.fc43 |
store-results-to | /tmp/tmpjez9myp3/gdb-16.2-3.fc43.tar.xz |
time-created | 2025-04-25 12:53:30 |
time-finished | 2025-04-25 13:11:58 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpjez9myp3/gdb-16.2-3.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpjez9myp3/gdb-16.2-3.fc43.src.rpm' |
tool-version | csmock-3.8.1.20250422.172604.g26bc3d6-1.el9 |