gdb-15.2-2.fc42
List of Findings
Error: SHELLCHECK_WARNING (CWE-569): [#def1]
/usr/bin/gdb-add-index:150:13: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled.
Error: SHELLCHECK_WARNING (CWE-156): [#def2]
/usr/bin/gdb-add-index:204:4: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING (CWE-156): [#def3]
/usr/bin/gstack:20:13: warning[SC2046]: Quote this to prevent word splitting.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def4]
gdb-15.2-build/gdb-15.2/bfd/archive.c: scope_hint: In function ‘_bfd_compute_and_write_armap’
gdb-15.2-build/gdb-15.2/bfd/archive.c:2389:41: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘syms’
gdb-15.2-build/gdb-15.2/bfd/archive.c: scope_hint: In function ‘_bfd_compute_and_write_armap’
gdb-15.2-build/gdb-15.2/bfd/archive.c: scope_hint: In function ‘_bfd_compute_and_write_armap’
gdb-15.2-build/gdb-15.2/bfd/archive.c: scope_hint: In function ‘_bfd_compute_and_write_armap’
gdb-15.2-build/gdb-15.2/build-x86_64-redhat-linux-gnu-minimal/bfd/bfd.h:1279:8: note: in expansion of macro ‘BFD_SEND’
gdb-15.2-build/gdb-15.2/bfd/archive.c:2381:26: note: in expansion of macro ‘bfd_canonicalize_symtab’
Error: GCC_ANALYZER_WARNING (CWE-674): [#def5]
gdb-15.2-build/gdb-15.2/bfd/bfd.c: scope_hint: In function ‘bfd_errmsg’
gdb-15.2-build/gdb-15.2/bfd/bfd.c:888:25: warning[-Wanalyzer-infinite-recursion]: infinite recursion
Error: CPPCHECK_WARNING (CWE-457): [#def6]
gdb-15.2-build/gdb-15.2/bfd/coffcode.h:3375: warning[uninitvar]: Uninitialized variable: *pelength
Error: GCC_ANALYZER_WARNING (CWE-457): [#def7]
gdb-15.2-build/gdb-15.2/bfd/coff-i386.c:706: included_from: Included from here.
gdb-15.2-build/gdb-15.2/bfd/pei-i386.c:45: included_from: Included from here.
gdb-15.2-build/gdb-15.2/bfd/coffcode.h: scope_hint: In function ‘coff_read_word’
gdb-15.2-build/gdb-15.2/bfd/coffcode.h:3375:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*pelength’
Error: GCC_ANALYZER_WARNING (CWE-465): [#def8]
gdb-15.2-build/gdb-15.2/bfd/coff-x86_64.c:887: included_from: Included from here.
gdb-15.2-build/gdb-15.2/bfd/pe-x86_64.c:104: included_from: Included from here.
gdb-15.2-build/gdb-15.2/bfd/coffcode.h: scope_hint: In function ‘coff_write_object_contents’
gdb-15.2-build/gdb-15.2/bfd/coffcode.h:3848:22: warning[-Wanalyzer-deref-before-check]: check of ‘**abfd.outsymbols’ for NULL after already dereferencing it
gdb-15.2-build/gdb-15.2/bfd/pe-x86_64.c:29: included_from: Included from here.
gdb-15.2-build/gdb-15.2/bfd/coffcode.h:3782:11: note: in expansion of macro ‘COFF_ENCODE_ALIGNMENT’
gdb-15.2-build/gdb-15.2/bfd/pe-x86_64.c:30: included_from: Included from here.
gdb-15.2-build/gdb-15.2/bfd/libcoff.h:915:32: note: in expansion of macro ‘coff_backend_info’
gdb-15.2-build/gdb-15.2/bfd/coffcode.h:3814:31: note: in expansion of macro ‘bfd_coff_scnhsz’
gdb-15.2-build/gdb-15.2/bfd/coffcode.h: scope_hint: In function ‘coff_write_object_contents’
gdb-15.2-build/gdb-15.2/bfd/libcoff.h:30: included_from: Included from here.
gdb-15.2-build/gdb-15.2/bfd/coffcode.h:3847:26: note: in expansion of macro ‘coff_symbol_from’
gdb-15.2-build/gdb-15.2/bfd/coffcode.h: scope_hint: In function ‘coff_write_object_contents’
gdb-15.2-build/gdb-15.2/bfd/coffcode.h:3847:26: note: in expansion of macro ‘coff_symbol_from’
Error: GCC_ANALYZER_WARNING (CWE-465): [#def9]
gdb-15.2-build/gdb-15.2/bfd/coffcode.h:3848:22: warning[-Wanalyzer-deref-before-check]: check of ‘*psym’ for NULL after already dereferencing it
gdb-15.2-build/gdb-15.2/bfd/coffcode.h:3782:11: note: in expansion of macro ‘COFF_ENCODE_ALIGNMENT’
gdb-15.2-build/gdb-15.2/bfd/libcoff.h:915:32: note: in expansion of macro ‘coff_backend_info’
gdb-15.2-build/gdb-15.2/bfd/coffcode.h:3814:31: note: in expansion of macro ‘bfd_coff_scnhsz’
gdb-15.2-build/gdb-15.2/bfd/coffcode.h: scope_hint: In function ‘coff_write_object_contents’
gdb-15.2-build/gdb-15.2/bfd/coffcode.h:3847:26: note: in expansion of macro ‘coff_symbol_from’
gdb-15.2-build/gdb-15.2/bfd/coffcode.h: scope_hint: In function ‘coff_write_object_contents’
gdb-15.2-build/gdb-15.2/bfd/coffcode.h:3847:26: note: in expansion of macro ‘coff_symbol_from’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def10]
gdb-15.2-build/gdb-15.2/bfd/coffcode.h: scope_hint: In function ‘coff_write_object_contents’
gdb-15.2-build/gdb-15.2/bfd/coffcode.h:3872:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘csym’
gdb-15.2-build/gdb-15.2/bfd/coff-i386.c:31: included_from: Included from here.
gdb-15.2-build/gdb-15.2/bfd/coffcode.h:3782:11: note: in expansion of macro ‘COFF_ENCODE_ALIGNMENT’
gdb-15.2-build/gdb-15.2/bfd/coffcode.h: scope_hint: In function ‘coff_write_object_contents’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def11]
gdb-15.2-build/gdb-15.2/bfd/coffgen.c: scope_hint: In function ‘_bfd_coff_gc_mark_hook’
gdb-15.2-build/gdb-15.2/bfd/coffgen.c:2941:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sym’
gdb-15.2-build/gdb-15.2/bfd/coffgen.c: scope_hint: In function ‘_bfd_coff_gc_mark_hook’
gdb-15.2-build/gdb-15.2/bfd/libcoff.h:30: included_from: Included from here.
gdb-15.2-build/gdb-15.2/bfd/coffgen.c:44: included_from: Included from here.
gdb-15.2-build/gdb-15.2/bfd/coffgen.c:618:7: note: in expansion of macro ‘coff_section_data’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def12]
gdb-15.2-build/gdb-15.2/bfd/cofflink.c: scope_hint: In function ‘_bfd_coff_generic_relocate_section’
gdb-15.2-build/gdb-15.2/bfd/cofflink.c:3004:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sym’
gdb-15.2-build/gdb-15.2/bfd/cofflink.c:29: included_from: Included from here.
gdb-15.2-build/gdb-15.2/bfd/libcoff.h:46:40: note: in expansion of macro ‘coff_data’
gdb-15.2-build/gdb-15.2/bfd/cofflink.c:2943:45: note: in expansion of macro ‘obj_raw_syment_count’
gdb-15.2-build/gdb-15.2/bfd/cofflink.c:2952:15: note: in expansion of macro ‘obj_coff_sym_hashes’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def13]
gdb-15.2-build/gdb-15.2/bfd/cofflink.c:3132:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sym’
gdb-15.2-build/gdb-15.2/bfd/cofflink.c:25: included_from: Included from here.
Error: COMPILER_WARNING (CWE-1164): [#def14]
gdb-15.2-build/gdb-15.2/bfd/doc/chew.c:206:1: warning[-Wunused-function]: ‘find’ defined but not used
Error: GCC_ANALYZER_WARNING (CWE-401): [#def15]
gdb-15.2-build/gdb-15.2/bfd/doc/chew.c: scope_hint: In function ‘add_to_definition’
gdb-15.2-build/gdb-15.2/bfd/doc/chew.c:1312:19: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
gdb-15.2-build/gdb-15.2/bfd/doc/chew.c: scope_hint: In function ‘add_to_definition’
gdb-15.2-build/gdb-15.2/bfd/doc/chew.c: scope_hint: In function ‘add_to_definition’
gdb-15.2-build/gdb-15.2/bfd/doc/chew.c: scope_hint: In function ‘add_to_definition’
gdb-15.2-build/gdb-15.2/bfd/doc/chew.c: scope_hint: In function ‘add_to_definition’
gdb-15.2-build/gdb-15.2/bfd/doc/chew.c: scope_hint: In function ‘add_to_definition’
gdb-15.2-build/gdb-15.2/bfd/doc/chew.c: scope_hint: In function ‘add_to_definition’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def16]
gdb-15.2-build/gdb-15.2/bfd/elf-eh-frame.c: scope_hint: In function ‘_bfd_elf_parse_eh_frame’
gdb-15.2-build/gdb-15.2/bfd/elf-eh-frame.c:744:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cie’
gdb-15.2-build/gdb-15.2/bfd/elf-eh-frame.c:583:11: note: in definition of macro ‘REQUIRE’
gdb-15.2-build/gdb-15.2/bfd/elf-eh-frame.c:621:3: note: in expansion of macro ‘REQUIRE’
gdb-15.2-build/gdb-15.2/bfd/elf-eh-frame.c:583:11: note: in definition of macro ‘REQUIRE’
gdb-15.2-build/gdb-15.2/bfd/elf-eh-frame.c:625:3: note: in expansion of macro ‘REQUIRE’
gdb-15.2-build/gdb-15.2/bfd/elf-eh-frame.c:25: included_from: Included from here.
gdb-15.2-build/gdb-15.2/bfd/elf-bfd.h:1906:39: note: in definition of macro ‘xvec_get_elf_backend_data’
gdb-15.2-build/gdb-15.2/bfd/elf-eh-frame.c:627:15: note: in expansion of macro ‘get_elf_backend_data’
gdb-15.2-build/gdb-15.2/bfd/elf-eh-frame.c:629:3: note: in expansion of macro ‘REQUIRE’
gdb-15.2-build/gdb-15.2/bfd/elf-eh-frame.c:661:3: note: in expansion of macro ‘REQUIRE’
gdb-15.2-build/gdb-15.2/bfd/elf-eh-frame.c:583:11: note: in definition of macro ‘REQUIRE’
gdb-15.2-build/gdb-15.2/bfd/elf-eh-frame.c: scope_hint: In function ‘_bfd_elf_parse_eh_frame’
gdb-15.2-build/gdb-15.2/bfd/elf-eh-frame.c:712:7: note: in expansion of macro ‘REQUIRE’
gdb-15.2-build/gdb-15.2/bfd/elf-eh-frame.c:583:11: note: in definition of macro ‘REQUIRE’
gdb-15.2-build/gdb-15.2/bfd/elf-eh-frame.c: scope_hint: In function ‘_bfd_elf_parse_eh_frame’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def17]
gdb-15.2-build/gdb-15.2/bfd/elf-eh-frame.c: scope_hint: In function ‘offset_adjust’
gdb-15.2-build/gdb-15.2/bfd/elf-eh-frame.c:1361:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ent’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def18]
gdb-15.2-build/gdb-15.2/bfd/elf-eh-frame.c:1366:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ent’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def19]
gdb-15.2-build/gdb-15.2/bfd/elf-eh-frame.c:1374:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ent’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def20]
gdb-15.2-build/gdb-15.2/bfd/elf-eh-frame.c: scope_hint: In function ‘_bfd_elf_fixup_eh_frame_hdr’
gdb-15.2-build/gdb-15.2/bfd/elf-eh-frame.c:2324:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sec’
Error: CPPCHECK_WARNING (CWE-457): [#def21]
gdb-15.2-build/gdb-15.2/bfd/elf-nacl.c:192: error[uninitvar]: Uninitialized variable: *m
Error: CPPCHECK_WARNING (CWE-457): [#def22]
gdb-15.2-build/gdb-15.2/bfd/elf32-arm.c:5632: error[uninitvar]: Uninitialized variables: &key.destination, &key.hash, &key.sym_name, &key.r_type, &key.branch_type, &key.non_a8_stub
Error: CPPCHECK_WARNING (CWE-457): [#def23]
gdb-15.2-build/gdb-15.2/bfd/elf32-arm.c:17558: error[uninitvar]: Uninitialized variable: &rel
Error: GCC_ANALYZER_WARNING (CWE-476): [#def24]
gdb-15.2-build/gdb-15.2/bfd/elf32-i386.c: scope_hint: In function ‘elf_i386_finish_dynamic_symbol’
gdb-15.2-build/gdb-15.2/bfd/elf32-i386.c:3587:50: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def25]
gdb-15.2-build/gdb-15.2/bfd/elf32-i386.c:3697:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-15.2-build/gdb-15.2/bfd/elf32-i386.c:21: included_from: Included from here.
gdb-15.2-build/gdb-15.2/bfd/elf32-i386.c:3596:21: note: in expansion of macro ‘UNDEFINED_WEAK_RESOLVED_TO_ZERO’
gdb-15.2-build/gdb-15.2/bfd/elf32-i386.c:3621:7: note: in expansion of macro ‘VERIFY_PLT_ENTRY’
gdb-15.2-build/gdb-15.2/bfd/elfxx-x86.h:25: included_from: Included from here.
gdb-15.2-build/gdb-15.2/build-x86_64-redhat-linux-gnu-minimal/bfd/bfd.h:212:3: note: in expansion of macro ‘BFD_SEND’
gdb-15.2-build/gdb-15.2/bfd/elf32-i386.c:3672:11: note: in expansion of macro ‘bfd_put_32’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def26]
gdb-15.2-build/gdb-15.2/bfd/elf32-i386.c:3733:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-15.2-build/gdb-15.2/build-x86_64-redhat-linux-gnu-minimal/bfd/bfd.h:7550:30: note: in definition of macro ‘BFD_SEND’
gdb-15.2-build/gdb-15.2/bfd/elf32-i386.c:3729:13: note: in expansion of macro ‘bfd_put_32’
gdb-15.2-build/gdb-15.2/bfd/elf32-i386.c:3596:21: note: in expansion of macro ‘UNDEFINED_WEAK_RESOLVED_TO_ZERO’
gdb-15.2-build/gdb-15.2/bfd/elf32-i386.c:3621:7: note: in expansion of macro ‘VERIFY_PLT_ENTRY’
gdb-15.2-build/gdb-15.2/build-x86_64-redhat-linux-gnu-minimal/bfd/bfd.h:212:3: note: in expansion of macro ‘BFD_SEND’
gdb-15.2-build/gdb-15.2/bfd/elf32-i386.c:3729:13: note: in expansion of macro ‘bfd_put_32’
gdb-15.2-build/gdb-15.2/build-x86_64-redhat-linux-gnu-minimal/bfd/bfd.h:7550:30: note: in definition of macro ‘BFD_SEND’
gdb-15.2-build/gdb-15.2/bfd/elf32-i386.c:3729:13: note: in expansion of macro ‘bfd_put_32’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def27]
gdb-15.2-build/gdb-15.2/bfd/elf32-i386.c:3756:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-15.2-build/gdb-15.2/bfd/elf32-i386.c:3596:21: note: in expansion of macro ‘UNDEFINED_WEAK_RESOLVED_TO_ZERO’
gdb-15.2-build/gdb-15.2/bfd/elf32-i386.c:3621:7: note: in expansion of macro ‘VERIFY_PLT_ENTRY’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def28]
gdb-15.2-build/gdb-15.2/bfd/elf32-i386.c:3766:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-15.2-build/gdb-15.2/bfd/elf32-i386.c:3596:21: note: in expansion of macro ‘UNDEFINED_WEAK_RESOLVED_TO_ZERO’
gdb-15.2-build/gdb-15.2/bfd/elf32-i386.c:3621:7: note: in expansion of macro ‘VERIFY_PLT_ENTRY’
gdb-15.2-build/gdb-15.2/bfd/elf-bfd.h:27: included_from: Included from here.
gdb-15.2-build/gdb-15.2/bfd/elfxx-x86.h:28: included_from: Included from here.
gdb-15.2-build/gdb-15.2/bfd/elf32-i386.c:3765:28: note: in expansion of macro ‘ELF32_R_INFO’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def29]
gdb-15.2-build/gdb-15.2/bfd/elf32-i386.c:3795:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-15.2-build/gdb-15.2/bfd/elf32-i386.c:3596:21: note: in expansion of macro ‘UNDEFINED_WEAK_RESOLVED_TO_ZERO’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def30]
gdb-15.2-build/gdb-15.2/bfd/elf32-i386.c:3921:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-15.2-build/gdb-15.2/bfd/elf32-i386.c:3596:21: note: in expansion of macro ‘UNDEFINED_WEAK_RESOLVED_TO_ZERO’
gdb-15.2-build/gdb-15.2/bfd/elfxx-x86.h:536:5: note: in definition of macro ‘GOT_TLS_GD_P’
gdb-15.2-build/gdb-15.2/bfd/elf32-i386.c:3852:12: note: in expansion of macro ‘GOT_TLS_GD_ANY_P’
gdb-15.2-build/gdb-15.2/bfd/elfxx-x86.h:26: included_from: Included from here.
gdb-15.2-build/gdb-15.2/include/bfdlink.h:328:37: note: in expansion of macro ‘bfd_link_dll’
gdb-15.2-build/gdb-15.2/bfd/elf32-i386.c:3905:20: note: in expansion of macro ‘bfd_link_pic’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def31]
gdb-15.2-build/gdb-15.2/bfd/elf32-i386.c:3962:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-15.2-build/gdb-15.2/bfd/elf32-i386.c:3596:21: note: in expansion of macro ‘UNDEFINED_WEAK_RESOLVED_TO_ZERO’
gdb-15.2-build/gdb-15.2/bfd/elfxx-x86.h:536:5: note: in definition of macro ‘GOT_TLS_GD_P’
gdb-15.2-build/gdb-15.2/bfd/elf32-i386.c:3852:12: note: in expansion of macro ‘GOT_TLS_GD_ANY_P’
gdb-15.2-build/gdb-15.2/bfd/elf32-i386.c:3939:19: note: in expansion of macro ‘SYMBOL_REFERENCES_LOCAL_P’
gdb-15.2-build/gdb-15.2/bfd/elfxx-x86.h:27: included_from: Included from here.
gdb-15.2-build/gdb-15.2/bfd/libbfd.h:749:14: note: in definition of macro ‘BFD_ASSERT’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def32]
gdb-15.2-build/gdb-15.2/bfd/elf32-s390.c: scope_hint: In function ‘elf_s390_late_size_sections’
gdb-15.2-build/gdb-15.2/bfd/elf32-s390.c:1915:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def33]
gdb-15.2-build/gdb-15.2/bfd/elf32-s390.c: scope_hint: In function ‘elf_s390_relocate_section’
gdb-15.2-build/gdb-15.2/bfd/elf32-s390.c:3119:58: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sym’
gdb-15.2-build/gdb-15.2/bfd/elf32-s390.c:2040:10: note: in expansion of macro ‘elf_s390_hash_table’
gdb-15.2-build/gdb-15.2/bfd/elf32-s390.c:2040:10: note: in expansion of macro ‘elf_s390_hash_table’
gdb-15.2-build/gdb-15.2/bfd/elf32-s390.c:2040:10: note: in expansion of macro ‘elf_s390_hash_table’
gdb-15.2-build/gdb-15.2/bfd/elf32-s390.c: scope_hint: In function ‘elf_s390_relocate_section’
gdb-15.2-build/gdb-15.2/bfd/elf32-s390.c:2040:10: note: in expansion of macro ‘elf_s390_hash_table’
gdb-15.2-build/gdb-15.2/bfd/elf32-s390.c:2140:11: note: in expansion of macro ‘RELOC_FOR_GLOBAL_SYMBOL’
gdb-15.2-build/gdb-15.2/bfd/elf32-s390.c:2140:11: note: in expansion of macro ‘RELOC_FOR_GLOBAL_SYMBOL’
Error: CPPCHECK_WARNING (CWE-457): [#def34]
gdb-15.2-build/gdb-15.2/bfd/elf64-ppc.c:7337: error[uninitvar]: Uninitialized variable: *pp
Error: GCC_ANALYZER_WARNING (CWE-476): [#def35]
gdb-15.2-build/gdb-15.2/bfd/elf64-s390.c: scope_hint: In function ‘elf_s390_relocate_section’
gdb-15.2-build/gdb-15.2/bfd/elf64-s390.c:3158:58: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sym’
gdb-15.2-build/gdb-15.2/bfd/elf64-s390.c:2009:10: note: in expansion of macro ‘elf_s390_hash_table’
gdb-15.2-build/gdb-15.2/bfd/elf64-s390.c:2009:10: note: in expansion of macro ‘elf_s390_hash_table’
gdb-15.2-build/gdb-15.2/bfd/elf64-s390.c:2009:10: note: in expansion of macro ‘elf_s390_hash_table’
gdb-15.2-build/gdb-15.2/bfd/elf64-s390.c: scope_hint: In function ‘elf_s390_relocate_section’
gdb-15.2-build/gdb-15.2/bfd/elf64-s390.c:2009:10: note: in expansion of macro ‘elf_s390_hash_table’
gdb-15.2-build/gdb-15.2/bfd/elf-bfd.h:27: included_from: Included from here.
gdb-15.2-build/gdb-15.2/include/elf/common.h:1112:35: note: in definition of macro ‘ELF64_R_TYPE’
gdb-15.2-build/gdb-15.2/include/elf/common.h:1112:35: note: in definition of macro ‘ELF64_R_TYPE’
gdb-15.2-build/gdb-15.2/include/elf/common.h:1112:35: note: in definition of macro ‘ELF64_R_TYPE’
gdb-15.2-build/gdb-15.2/include/elf/common.h:1112:35: note: in definition of macro ‘ELF64_R_TYPE’
gdb-15.2-build/gdb-15.2/bfd/elf64-s390.c:2115:11: note: in expansion of macro ‘RELOC_FOR_GLOBAL_SYMBOL’
gdb-15.2-build/gdb-15.2/bfd/elf64-s390.c:2115:11: note: in expansion of macro ‘RELOC_FOR_GLOBAL_SYMBOL’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def36]
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c: scope_hint: In function ‘elf_x86_64_check_tls_transition’
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c:1277:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c:22: included_from: Included from here.
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c:2048:10: note: in expansion of macro ‘elf_x86_hash_table’
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c:2048:10: note: in expansion of macro ‘elf_x86_hash_table’
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c:2048:10: note: in expansion of macro ‘elf_x86_hash_table’
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c: scope_hint: In function ‘elf_x86_64_check_tls_transition’
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c:2048:10: note: in expansion of macro ‘elf_x86_hash_table’
gdb-15.2-build/gdb-15.2/bfd/elfxx-x86.h:27: included_from: Included from here.
gdb-15.2-build/gdb-15.2/bfd/libbfd.h:749:14: note: in definition of macro ‘BFD_ASSERT’
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c:2055:15: note: in expansion of macro ‘is_x86_elf’
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c: scope_hint: In function ‘elf_x86_64_check_tls_transition’
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c:2091:23: note: in expansion of macro ‘NUM_SHDR_ENTRIES’
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c:2091:23: note: in expansion of macro ‘NUM_SHDR_ENTRIES’
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c:2091:23: note: in expansion of macro ‘NUM_SHDR_ENTRIES’
gdb-15.2-build/gdb-15.2/bfd/elf-bfd.h:27: included_from: Included from here.
gdb-15.2-build/gdb-15.2/include/elf/common.h:1048:43: note: in definition of macro ‘ELF_ST_TYPE’
gdb-15.2-build/gdb-15.2/bfd/elf-bfd.h:1906:39: note: in definition of macro ‘xvec_get_elf_backend_data’
gdb-15.2-build/gdb-15.2/bfd/elfxx-x86.h:106:4: note: in expansion of macro ‘get_elf_backend_data’
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c:2137:12: note: in expansion of macro ‘ABI_64_P’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def37]
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c: scope_hint: In function ‘elf_x86_64_convert_load_reloc’
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c:1705:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c:2048:10: note: in expansion of macro ‘elf_x86_hash_table’
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c:2048:10: note: in expansion of macro ‘elf_x86_hash_table’
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c:2048:10: note: in expansion of macro ‘elf_x86_hash_table’
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c: scope_hint: In function ‘elf_x86_64_convert_load_reloc’
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c:2048:10: note: in expansion of macro ‘elf_x86_hash_table’
gdb-15.2-build/gdb-15.2/bfd/libbfd.h:749:14: note: in definition of macro ‘BFD_ASSERT’
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c:2055:15: note: in expansion of macro ‘is_x86_elf’
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c: scope_hint: In function ‘elf_x86_64_convert_load_reloc’
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c:2091:23: note: in expansion of macro ‘NUM_SHDR_ENTRIES’
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c:2091:23: note: in expansion of macro ‘NUM_SHDR_ENTRIES’
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c:2091:23: note: in expansion of macro ‘NUM_SHDR_ENTRIES’
gdb-15.2-build/gdb-15.2/include/elf/common.h:1048:43: note: in definition of macro ‘ELF_ST_TYPE’
gdb-15.2-build/gdb-15.2/bfd/elf-bfd.h:1906:39: note: in definition of macro ‘xvec_get_elf_backend_data’
gdb-15.2-build/gdb-15.2/bfd/elfxx-x86.h:106:4: note: in expansion of macro ‘get_elf_backend_data’
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c:2137:12: note: in expansion of macro ‘ABI_64_P’
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c:1686:10: note: in expansion of macro ‘elf_x86_hash_table’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def38]
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c: scope_hint: In function ‘elf_x86_64_finish_dynamic_symbol’
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c:4585:50: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def39]
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c:4696:44: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-15.2-build/gdb-15.2/build-x86_64-redhat-linux-gnu-minimal/bfd/bfd.h:7550:30: note: in definition of macro ‘BFD_SEND’
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c:4693:13: note: in expansion of macro ‘bfd_put_64’
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c:4594:21: note: in expansion of macro ‘UNDEFINED_WEAK_RESOLVED_TO_ZERO’
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c:4621:7: note: in expansion of macro ‘VERIFY_PLT_ENTRY’
gdb-15.2-build/gdb-15.2/build-x86_64-redhat-linux-gnu-minimal/bfd/bfd.h:221:3: note: in expansion of macro ‘BFD_SEND’
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c:4693:13: note: in expansion of macro ‘bfd_put_64’
gdb-15.2-build/gdb-15.2/build-x86_64-redhat-linux-gnu-minimal/bfd/bfd.h:7550:30: note: in definition of macro ‘BFD_SEND’
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c:4693:13: note: in expansion of macro ‘bfd_put_64’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def40]
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c:4711:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c:4594:21: note: in expansion of macro ‘UNDEFINED_WEAK_RESOLVED_TO_ZERO’
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c:4621:7: note: in expansion of macro ‘VERIFY_PLT_ENTRY’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def41]
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c:4725:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c:4594:21: note: in expansion of macro ‘UNDEFINED_WEAK_RESOLVED_TO_ZERO’
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c:4621:7: note: in expansion of macro ‘VERIFY_PLT_ENTRY’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def42]
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c:4772:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c:4594:21: note: in expansion of macro ‘UNDEFINED_WEAK_RESOLVED_TO_ZERO’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def43]
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c:4877:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c:4594:21: note: in expansion of macro ‘UNDEFINED_WEAK_RESOLVED_TO_ZERO’
gdb-15.2-build/gdb-15.2/bfd/elfxx-x86.h:536:5: note: in definition of macro ‘GOT_TLS_GD_P’
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c:4836:12: note: in expansion of macro ‘GOT_TLS_GD_ANY_P’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def44]
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c:4903:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c:4594:21: note: in expansion of macro ‘UNDEFINED_WEAK_RESOLVED_TO_ZERO’
gdb-15.2-build/gdb-15.2/bfd/elfxx-x86.h:536:5: note: in definition of macro ‘GOT_TLS_GD_P’
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c:4836:12: note: in expansion of macro ‘GOT_TLS_GD_ANY_P’
gdb-15.2-build/gdb-15.2/bfd/elfxx-x86.h:26: included_from: Included from here.
gdb-15.2-build/gdb-15.2/include/bfdlink.h:328:37: note: in expansion of macro ‘bfd_link_dll’
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c:4887:20: note: in expansion of macro ‘bfd_link_pic’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def45]
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c:4930:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c:4594:21: note: in expansion of macro ‘UNDEFINED_WEAK_RESOLVED_TO_ZERO’
gdb-15.2-build/gdb-15.2/bfd/elfxx-x86.h:536:5: note: in definition of macro ‘GOT_TLS_GD_P’
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c:4836:12: note: in expansion of macro ‘GOT_TLS_GD_ANY_P’
gdb-15.2-build/gdb-15.2/include/bfdlink.h:328:37: note: in expansion of macro ‘bfd_link_dll’
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c:4920:16: note: in expansion of macro ‘bfd_link_pic’
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c:4921:19: note: in expansion of macro ‘SYMBOL_REFERENCES_LOCAL_P’
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c:4923:16: note: in expansion of macro ‘SYMBOL_DEFINED_NON_SHARED_P’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def46]
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c:4943:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c:4594:21: note: in expansion of macro ‘UNDEFINED_WEAK_RESOLVED_TO_ZERO’
gdb-15.2-build/gdb-15.2/bfd/elfxx-x86.h:536:5: note: in definition of macro ‘GOT_TLS_GD_P’
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c:4836:12: note: in expansion of macro ‘GOT_TLS_GD_ANY_P’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def47]
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c:4969:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c:4594:21: note: in expansion of macro ‘UNDEFINED_WEAK_RESOLVED_TO_ZERO’
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c:4964:7: note: in expansion of macro ‘VERIFY_COPY_RELOC’
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c:4964:7: note: in expansion of macro ‘VERIFY_COPY_RELOC’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def48]
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c: scope_hint: In function ‘elf_x86_64_reloc_type_class’
gdb-15.2-build/gdb-15.2/bfd/elf64-x86-64.c:5033:36: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def49]
gdb-15.2-build/gdb-15.2/bfd/elfnn-aarch64.c: scope_hint: In function ‘elf32_aarch64_finish_dynamic_symbol’
gdb-15.2-build/gdb-15.2/bfd/elfnn-aarch64.c:9680:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sym’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def50]
gdb-15.2-build/gdb-15.2/bfd/elfnn-riscv.c: scope_hint: In function ‘riscv_elf_get_local_sym_hash’
gdb-15.2-build/gdb-15.2/bfd/elfnn-riscv.c:451:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-15.2-build/gdb-15.2/bfd/elfnn-riscv.c:2233:20: note: in expansion of macro ‘sec_addr’
gdb-15.2-build/gdb-15.2/bfd/elf-bfd.h:27: included_from: Included from here.
gdb-15.2-build/gdb-15.2/bfd/elfnn-riscv.c:30: included_from: Included from here.
gdb-15.2-build/gdb-15.2/include/elf/common.h:1111:35: note: in definition of macro ‘ELF64_R_SYM’
gdb-15.2-build/gdb-15.2/include/elf/common.h:1048:43: note: in definition of macro ‘ELF_ST_TYPE’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def51]
gdb-15.2-build/gdb-15.2/bfd/elfnn-riscv.c: scope_hint: In function ‘riscv_elf_relocate_section’
gdb-15.2-build/gdb-15.2/bfd/elfnn-riscv.c:2522:55: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sym’
gdb-15.2-build/gdb-15.2/bfd/elfnn-riscv.c:2210:44: note: in expansion of macro ‘riscv_elf_hash_table’
gdb-15.2-build/gdb-15.2/bfd/elfnn-riscv.c:2210:44: note: in expansion of macro ‘riscv_elf_hash_table’
gdb-15.2-build/gdb-15.2/bfd/elfnn-riscv.c: scope_hint: In function ‘riscv_elf_relocate_section’
gdb-15.2-build/gdb-15.2/bfd/elfnn-riscv.c:2210:44: note: in expansion of macro ‘riscv_elf_hash_table’
gdb-15.2-build/gdb-15.2/bfd/elf-bfd.h:2227:34: note: in expansion of macro ‘elf_tdata’
gdb-15.2-build/gdb-15.2/bfd/elfnn-riscv.c:2211:36: note: in expansion of macro ‘elf_symtab_hdr’
gdb-15.2-build/gdb-15.2/bfd/elfnn-riscv.c:2233:20: note: in expansion of macro ‘sec_addr’
gdb-15.2-build/gdb-15.2/include/elf/common.h:1111:35: note: in definition of macro ‘ELF64_R_SYM’
gdb-15.2-build/gdb-15.2/bfd/elfnn-riscv.c:2271:11: note: in expansion of macro ‘RELOC_FOR_GLOBAL_SYMBOL’
gdb-15.2-build/gdb-15.2/bfd/elfnn-riscv.c:2271:11: note: in expansion of macro ‘RELOC_FOR_GLOBAL_SYMBOL’
gdb-15.2-build/gdb-15.2/bfd/elfnn-riscv.c:2271:11: note: in expansion of macro ‘RELOC_FOR_GLOBAL_SYMBOL’
gdb-15.2-build/gdb-15.2/bfd/elfnn-riscv.c:2271:11: note: in expansion of macro ‘RELOC_FOR_GLOBAL_SYMBOL’
gdb-15.2-build/gdb-15.2/bfd/elfnn-riscv.c:2271:11: note: in expansion of macro ‘RELOC_FOR_GLOBAL_SYMBOL’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def52]
gdb-15.2-build/gdb-15.2/bfd/elfnn-riscv.c: scope_hint: In function ‘riscv_elf_finish_dynamic_symbol’
gdb-15.2-build/gdb-15.2/bfd/elfnn-riscv.c:3308:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sym’
gdb-15.2-build/gdb-15.2/bfd/elfnn-riscv.c:3240:24: note: in expansion of macro ‘sec_addr’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def53]
gdb-15.2-build/gdb-15.2/bfd/elfnn-riscv.c:3467:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sym’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def54]
gdb-15.2-build/gdb-15.2/bfd/elfnn-riscv.c: scope_hint: In function ‘riscv_elf_finish_dynamic_sections’
gdb-15.2-build/gdb-15.2/bfd/elfnn-riscv.c:3611:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def55]
gdb-15.2-build/gdb-15.2/bfd/elfnn-riscv.c: scope_hint: In function ‘_bfd_riscv_relax_lui’
gdb-15.2-build/gdb-15.2/bfd/elfnn-riscv.c:4731:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def56]
gdb-15.2-build/gdb-15.2/bfd/elfnn-riscv.c: scope_hint: In function ‘_bfd_riscv_relax_pc’
gdb-15.2-build/gdb-15.2/bfd/elfnn-riscv.c:4945:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def57]
gdb-15.2-build/gdb-15.2/bfd/elfnn-riscv.c: scope_hint: In function ‘bfd_elf64_riscv_set_data_segment_info’
gdb-15.2-build/gdb-15.2/bfd/elfnn-riscv.c:5078:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def58]
gdb-15.2-build/gdb-15.2/bfd/elfnn-riscv.c: scope_hint: In function ‘_bfd_riscv_relax_section’
gdb-15.2-build/gdb-15.2/bfd/elfnn-riscv.c:5113:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def59]
gdb-15.2-build/gdb-15.2/bfd/elfxx-x86.c: scope_hint: In function ‘_bfd_x86_elf_create_sframe_plt’
gdb-15.2-build/gdb-15.2/bfd/elfxx-x86.c:1852:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def60]
gdb-15.2-build/gdb-15.2/bfd/elfxx-x86.c:1862:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def61]
gdb-15.2-build/gdb-15.2/bfd/elfxx-x86.c:1872:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def62]
gdb-15.2-build/gdb-15.2/bfd/elfxx-x86.c: scope_hint: In function ‘_bfd_x86_elf_write_sframe_plt’
gdb-15.2-build/gdb-15.2/bfd/elfxx-x86.c:1975:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def63]
gdb-15.2-build/gdb-15.2/bfd/elfxx-x86.c:1979:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def64]
gdb-15.2-build/gdb-15.2/bfd/ihex.c:135:40: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘buf’
gdb-15.2-build/gdb-15.2/include/libiberty.h:396:69: note: in definition of macro ‘hex_value’
gdb-15.2-build/gdb-15.2/bfd/ihex.c:135:24: note: in expansion of macro ‘NIBBLE’
gdb-15.2-build/gdb-15.2/bfd/ihex.c:333:23: note: in expansion of macro ‘HEX2’
gdb-15.2-build/gdb-15.2/include/libiberty.h:396:69: note: in definition of macro ‘hex_value’
gdb-15.2-build/gdb-15.2/bfd/ihex.c:137:23: note: in expansion of macro ‘hex_p’
gdb-15.2-build/gdb-15.2/bfd/ihex.c:513:13: note: in expansion of macro ‘ISHEX’
gdb-15.2-build/gdb-15.2/include/libiberty.h:396:69: note: in definition of macro ‘hex_value’
gdb-15.2-build/gdb-15.2/bfd/ihex.c:137:23: note: in expansion of macro ‘hex_p’
gdb-15.2-build/gdb-15.2/bfd/ihex.c:297:21: note: in expansion of macro ‘ISHEX’
gdb-15.2-build/gdb-15.2/include/libiberty.h:396:69: note: in definition of macro ‘hex_value’
gdb-15.2-build/gdb-15.2/bfd/ihex.c:135:24: note: in expansion of macro ‘NIBBLE’
gdb-15.2-build/gdb-15.2/bfd/ihex.c:333:23: note: in expansion of macro ‘HEX2’
gdb-15.2-build/gdb-15.2/include/libiberty.h:396:69: note: in definition of macro ‘hex_value’
gdb-15.2-build/gdb-15.2/bfd/ihex.c:135:24: note: in expansion of macro ‘NIBBLE’
gdb-15.2-build/gdb-15.2/bfd/ihex.c:333:23: note: in expansion of macro ‘HEX2’
gdb-15.2-build/gdb-15.2/include/libiberty.h:396:69: note: in definition of macro ‘hex_value’
gdb-15.2-build/gdb-15.2/bfd/ihex.c:135:24: note: in expansion of macro ‘NIBBLE’
gdb-15.2-build/gdb-15.2/bfd/ihex.c:333:23: note: in expansion of macro ‘HEX2’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def65]
gdb-15.2-build/gdb-15.2/bfd/ihex.c:125: included_from: Included from here.
gdb-15.2-build/gdb-15.2/bfd/ihex.c: scope_hint: In function ‘ihex_scan’
gdb-15.2-build/gdb-15.2/bfd/ihex.c:323:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘buf’
gdb-15.2-build/gdb-15.2/include/libiberty.h:396:69: note: in definition of macro ‘hex_value’
gdb-15.2-build/gdb-15.2/bfd/ihex.c:137:23: note: in expansion of macro ‘hex_p’
gdb-15.2-build/gdb-15.2/bfd/ihex.c:323:21: note: in expansion of macro ‘ISHEX’
gdb-15.2-build/gdb-15.2/include/libiberty.h:396:69: note: in definition of macro ‘hex_value’
gdb-15.2-build/gdb-15.2/bfd/ihex.c:137:23: note: in expansion of macro ‘hex_p’
gdb-15.2-build/gdb-15.2/bfd/ihex.c:513:13: note: in expansion of macro ‘ISHEX’
gdb-15.2-build/gdb-15.2/include/libiberty.h:396:69: note: in definition of macro ‘hex_value’
gdb-15.2-build/gdb-15.2/bfd/ihex.c:137:23: note: in expansion of macro ‘hex_p’
gdb-15.2-build/gdb-15.2/bfd/ihex.c:297:21: note: in expansion of macro ‘ISHEX’
gdb-15.2-build/gdb-15.2/include/libiberty.h:396:69: note: in definition of macro ‘hex_value’
gdb-15.2-build/gdb-15.2/bfd/ihex.c:137:23: note: in expansion of macro ‘hex_p’
gdb-15.2-build/gdb-15.2/bfd/ihex.c:323:21: note: in expansion of macro ‘ISHEX’
gdb-15.2-build/gdb-15.2/include/libiberty.h:396:69: note: in definition of macro ‘hex_value’
gdb-15.2-build/gdb-15.2/bfd/ihex.c:137:23: note: in expansion of macro ‘hex_p’
gdb-15.2-build/gdb-15.2/bfd/ihex.c:323:21: note: in expansion of macro ‘ISHEX’
gdb-15.2-build/gdb-15.2/include/libiberty.h:396:69: note: in definition of macro ‘hex_value’
gdb-15.2-build/gdb-15.2/bfd/ihex.c:137:23: note: in expansion of macro ‘hex_p’
gdb-15.2-build/gdb-15.2/bfd/ihex.c:323:21: note: in expansion of macro ‘ISHEX’
Error: CPPCHECK_WARNING (CWE-119): [#def66]
gdb-15.2-build/gdb-15.2/bfd/peXXigen.c:302: error[bufferAccessOutOfBounds]: Buffer is accessed out of bounds: ext->x_file.x_fname
Error: CPPCHECK_WARNING (CWE-457): [#def67]
gdb-15.2-build/gdb-15.2/bfd/peXXigen.c:2667: warning[uninitvar]: Uninitialized variable: signature
Error: GCC_ANALYZER_WARNING (CWE-476): [#def68]
gdb-15.2-build/gdb-15.2/bfd/srec.c:107: included_from: Included from here.
gdb-15.2-build/gdb-15.2/bfd/srec.c: scope_hint: In function ‘srec_scan’
gdb-15.2-build/gdb-15.2/bfd/srec.c:116:39: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘buf’
gdb-15.2-build/gdb-15.2/include/libiberty.h:396:69: note: in definition of macro ‘hex_value’
gdb-15.2-build/gdb-15.2/bfd/srec.c:116:23: note: in expansion of macro ‘NIBBLE’
gdb-15.2-build/gdb-15.2/bfd/srec.c:521:30: note: in expansion of macro ‘HEX’
gdb-15.2-build/gdb-15.2/include/libiberty.h:396:69: note: in definition of macro ‘hex_value’
gdb-15.2-build/gdb-15.2/bfd/srec.c:121:21: note: in expansion of macro ‘hex_p’
gdb-15.2-build/gdb-15.2/bfd/srec.c:469:19: note: in expansion of macro ‘ISHEX’
gdb-15.2-build/gdb-15.2/bfd/srec.c:115:22: note: in expansion of macro ‘hex_value’
gdb-15.2-build/gdb-15.2/bfd/srec.c:116:23: note: in expansion of macro ‘NIBBLE’
gdb-15.2-build/gdb-15.2/bfd/srec.c:479:33: note: in expansion of macro ‘HEX’
gdb-15.2-build/gdb-15.2/include/libiberty.h:396:69: note: in definition of macro ‘hex_value’
gdb-15.2-build/gdb-15.2/bfd/srec.c:116:23: note: in expansion of macro ‘NIBBLE’
gdb-15.2-build/gdb-15.2/bfd/srec.c:521:30: note: in expansion of macro ‘HEX’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def69]
gdb-15.2-build/gdb-15.2/bfd/srec.c:116:39: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘data’
gdb-15.2-build/gdb-15.2/include/libiberty.h:396:69: note: in definition of macro ‘hex_value’
gdb-15.2-build/gdb-15.2/bfd/srec.c:116:23: note: in expansion of macro ‘NIBBLE’
gdb-15.2-build/gdb-15.2/bfd/srec.c:527:30: note: in expansion of macro ‘HEX’
gdb-15.2-build/gdb-15.2/include/libiberty.h:396:69: note: in definition of macro ‘hex_value’
gdb-15.2-build/gdb-15.2/bfd/srec.c:121:21: note: in expansion of macro ‘hex_p’
gdb-15.2-build/gdb-15.2/bfd/srec.c:469:19: note: in expansion of macro ‘ISHEX’
gdb-15.2-build/gdb-15.2/bfd/srec.c:115:22: note: in expansion of macro ‘hex_value’
gdb-15.2-build/gdb-15.2/bfd/srec.c:116:23: note: in expansion of macro ‘NIBBLE’
gdb-15.2-build/gdb-15.2/bfd/srec.c:479:33: note: in expansion of macro ‘HEX’
gdb-15.2-build/gdb-15.2/include/libiberty.h:396:69: note: in definition of macro ‘hex_value’
gdb-15.2-build/gdb-15.2/bfd/srec.c:116:23: note: in expansion of macro ‘NIBBLE’
gdb-15.2-build/gdb-15.2/bfd/srec.c:527:30: note: in expansion of macro ‘HEX’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def70]
gdb-15.2-build/gdb-15.2/bfd/stabs.c: scope_hint: In function ‘_bfd_link_section_stabs’
gdb-15.2-build/gdb-15.2/bfd/stabs.c:401:20: warning[-Wanalyzer-null-argument]: use of NULL ‘symb’ where non-null expected
gdb-15.2-build/gdb-15.2/bfd/stabs.c:28: included_from: Included from here.
gdb-15.2-build/gdb-15.2/bfd/stabs.c:389:11: note: in expansion of macro ‘BFD_ASSERT’
gdb-15.2-build/gdb-15.2/bfd/sysdep.h:38: included_from: Included from here.
gdb-15.2-build/gdb-15.2/bfd/stabs.c:26: included_from: Included from here.
/usr/include/string.h:64:12: note: argument 2 of ‘memcmp’ must be non-null
Error: COMPILER_WARNING (CWE-457): [#def71]
gdb-15.2-build/gdb-15.2/gdb/ui-out.h:415:18: warning[-Wmaybe-uninitialized]: ‘*(ui_out_emit_type<ui_out_type_list>*)((char*)&sources_list + offsetof(std::optional<ui_out_emit_type<ui_out_type_list> >,std::optional<ui_out_emit_type<ui_out_type_list> >::<unnamed>.std::_Optional_base<ui_out_emit_type<ui_out_type_list>, false, false>::<unnamed>)).ui_out_emit_type<ui_out_type_list>::m_uiout’ may be used uninitialized
gdb-15.2-build/gdb-15.2/gdb/symtab.c: scope_hint: In function ‘void info_sources_worker(ui_out*, bool, const info_sources_filter&)’
gdb-15.2-build/gdb-15.2/gdb/symtab.c:4662:35: note: ‘*(ui_out_emit_type<ui_out_type_list>*)((char*)&sources_list + offsetof(std::optional<ui_out_emit_type<ui_out_type_list> >,std::optional<ui_out_emit_type<ui_out_type_list> >::<unnamed>.std::_Optional_base<ui_out_emit_type<ui_out_type_list>, false, false>::<unnamed>)).ui_out_emit_type<ui_out_type_list>::m_uiout’ was declared here
Error: COMPILER_WARNING (CWE-457): [#def72]
gdb-15.2-build/gdb-15.2/gdb/ui-out.h:415:18: warning[-Wmaybe-uninitialized]: ‘*(ui_out_emit_type<ui_out_type_tuple>*)((char*)&output_tuple + offsetof(std::optional<ui_out_emit_type<ui_out_type_tuple> >,std::optional<ui_out_emit_type<ui_out_type_tuple> >::<unnamed>.std::_Optional_base<ui_out_emit_type<ui_out_type_tuple>, false, false>::<unnamed>)).ui_out_emit_type<ui_out_type_tuple>::m_uiout’ may be used uninitialized
gdb-15.2-build/gdb-15.2/gdb/symtab.c: scope_hint: In function ‘void info_sources_worker(ui_out*, bool, const info_sources_filter&)’
gdb-15.2-build/gdb-15.2/gdb/symtab.c:4661:36: note: ‘*(ui_out_emit_type<ui_out_type_tuple>*)((char*)&output_tuple + offsetof(std::optional<ui_out_emit_type<ui_out_type_tuple> >,std::optional<ui_out_emit_type<ui_out_type_tuple> >::<unnamed>.std::_Optional_base<ui_out_emit_type<ui_out_type_tuple>, false, false>::<unnamed>)).ui_out_emit_type<ui_out_type_tuple>::m_uiout’ was declared here
Error: COMPILER_WARNING (CWE-457): [#def73]
gdb-15.2-build/gdb-15.2/gdb/ui-out.h:415:18: warning[-Wmaybe-uninitialized]: ‘*(ui_out_emit_type<ui_out_type_tuple>*)((char*)&tuple_emitter + offsetof(std::optional<ui_out_emit_type<ui_out_type_tuple> >,std::optional<ui_out_emit_type<ui_out_type_tuple> >::<unnamed>.std::_Optional_base<ui_out_emit_type<ui_out_type_tuple>, false, false>::<unnamed>)).ui_out_emit_type<ui_out_type_tuple>::m_uiout’ may be used uninitialized
gdb-15.2-build/gdb-15.2/gdb/disasm.c: scope_hint: In function ‘void do_mixed_source_and_assembly(gdbarch*, ui_out*, symtab*, CORE_ADDR, CORE_ADDR, int, gdb_disassembly_flags)’
gdb-15.2-build/gdb-15.2/gdb/disasm.c:818:36: note: ‘*(ui_out_emit_type<ui_out_type_tuple>*)((char*)&tuple_emitter + offsetof(std::optional<ui_out_emit_type<ui_out_type_tuple> >,std::optional<ui_out_emit_type<ui_out_type_tuple> >::<unnamed>.std::_Optional_base<ui_out_emit_type<ui_out_type_tuple>, false, false>::<unnamed>)).ui_out_emit_type<ui_out_type_tuple>::m_uiout’ was declared here
Error: CPPCHECK_WARNING (CWE-570): [#def74]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:1688: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def75]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:1700: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def76]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:1711: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def77]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:1719: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def78]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:1754: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def79]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:1760: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def80]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:1765: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def81]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:1776: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def82]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:1785: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def83]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:1793: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def84]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:1801: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def85]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:1809: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def86]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:1816: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def87]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:1830: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def88]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:1844: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def89]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:1861: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def90]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:1865: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def91]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:1869: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def92]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:1873: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def93]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:1882: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def94]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:1896: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def95]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:1998: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def96]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:2005: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def97]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:2015: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def98]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:2019: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def99]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:2023: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def100]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:2035: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def101]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:2094: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def102]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:2100: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def103]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:2108: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def104]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:2128: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def105]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:2148: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def106]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:2168: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def107]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:2188: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def108]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:2208: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def109]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:2272: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def110]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:2283: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def111]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:2296: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def112]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:2305: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def113]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:2342: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def114]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:2349: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def115]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:2355: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def116]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:2367: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def117]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:2378: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def118]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:2387: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def119]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:2396: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def120]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:2405: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def121]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:2413: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def122]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:2431: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def123]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:2450: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def124]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:2472: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def125]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:2476: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def126]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:2480: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def127]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:2484: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def128]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:2494: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def129]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:2512: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def130]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:2588: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def131]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:2597: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def132]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:2602: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def133]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:2610: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def134]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:2618: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def135]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:2629: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def136]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:2634: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def137]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:2639: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def138]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:2650: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def139]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:2684: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def140]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:2698: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def141]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:2712: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def142]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:2733: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def143]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:2743: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def144]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:2768: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def145]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:2794: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def146]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:2820: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def147]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:2846: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-570): [#def148]
gdb-15.2-build/gdb-15.2/gdbserver/linux-x86-low.cc:2872: error[subtractPointers]: Subtracting pointers that point to different objects
Error: CPPCHECK_WARNING (CWE-562): [#def149]
gdb-15.2-build/gdb-15.2/gdbserver/mem-break.cc:477: error[returnDanglingLifetime]: Returning pointer to local variable 'bp_holder' that will be invalid when returning.
Error: CPPCHECK_WARNING (CWE-457): [#def150]
gdb-15.2-build/gdb-15.2/gdbsupport/filestuff.cc:154: error[uninitvar]: Uninitialized variable: max
Error: CPPCHECK_WARNING (CWE-562): [#def151]
gdb-15.2-build/gdb-15.2/gnulib/import/gettext.h:247: error[returnDanglingLifetime]: Returning pointer to local variable 'msg_ctxt_id' that will be invalid when returning.
Error: CPPCHECK_WARNING (CWE-401): [#def152]
gdb-15.2-build/gdb-15.2/gnulib/import/malloc/scratch_buffer_dupfree.c:38: error[memleak]: Memory leak: copy
Error: GCC_ANALYZER_WARNING (CWE-476): [#def153]
gdb-15.2-build/gdb-15.2/include/sframe.h:168:42: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘hp’
gdb-15.2-build/gdb-15.2/libsframe/sframe.c:110:10: note: in expansion of macro ‘SFRAME_V1_HDR_SIZE’
gdb-15.2-build/gdb-15.2/libsframe/sframe.c: scope_hint: In function ‘sframe_decoder_get_hdr_size’
gdb-15.2-build/gdb-15.2/libsframe/sframe.c: scope_hint: In function ‘sframe_decoder_get_hdr_size’
gdb-15.2-build/gdb-15.2/libsframe/sframe.c:110:10: note: in expansion of macro ‘SFRAME_V1_HDR_SIZE’
gdb-15.2-build/gdb-15.2/libsframe/sframe.c:110:10: note: in expansion of macro ‘SFRAME_V1_HDR_SIZE’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def154]
gdb-15.2-build/gdb-15.2/libctf/ctf-archive.c: scope_hint: In function ‘ctf_arc_import_parent’
gdb-15.2-build/gdb-15.2/libctf/ctf-archive.c:774:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘err’
Error: CPPCHECK_WARNING (CWE-190): [#def155]
gdb-15.2-build/gdb-15.2/libctf/ctf-create.c:526: error[integerOverflow]: Signed integer overflow for expression '-8'.
Error: CPPCHECK_WARNING (CWE-190): [#def156]
gdb-15.2-build/gdb-15.2/libctf/ctf-create.c:628: error[integerOverflow]: Signed integer overflow for expression '-8'.
Error: COMPILER_WARNING: [#def157]
gdb-15.2-build/gdb-15.2/libctf/ctf-hash.c: scope_hint: In function ‘ctf_dynhash_create_sized’
gdb-15.2-build/gdb-15.2/libctf/ctf-hash.c:167:13: warning[-Walloc-size]: allocation of insufficient size ‘8’ for type ‘ctf_dynhash_t’ {aka ‘struct ctf_dynhash’} with size ‘24’
Error: GCC_ANALYZER_WARNING (CWE-131): [#def158]
gdb-15.2-build/gdb-15.2/libctf/ctf-hash.c: scope_hint: In function ‘ctf_dynhash_create_sized’
gdb-15.2-build/gdb-15.2/libctf/ctf-hash.c:167:15: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
Error: GCC_ANALYZER_WARNING (CWE-122): [#def159]
gdb-15.2-build/gdb-15.2/libctf/ctf-hash.c:183:25: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
gdb-15.2-build/gdb-15.2/libctf/ctf-hash.c:183:25: note: write of 8 bytes to beyond the end of the region
Error: GCC_ANALYZER_WARNING (CWE-122): [#def160]
gdb-15.2-build/gdb-15.2/libctf/ctf-hash.c:184:27: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
gdb-15.2-build/gdb-15.2/libctf/ctf-hash.c:184:27: note: write of 8 bytes to beyond the end of the region
Error: COMPILER_WARNING: [#def161]
gdb-15.2-build/gdb-15.2/libctf/ctf-hash.c: scope_hint: In function ‘ctf_hashtab_insert’
gdb-15.2-build/gdb-15.2/libctf/ctf-hash.c:228:15: warning[-Walloc-size]: allocation of insufficient size ‘16’ for type ‘ctf_helem_t’ {aka ‘struct ctf_helem’} with size ‘24’
Error: GCC_ANALYZER_WARNING (CWE-131): [#def162]
gdb-15.2-build/gdb-15.2/libctf/ctf-hash.c: scope_hint: In function ‘ctf_hashtab_insert’
gdb-15.2-build/gdb-15.2/libctf/ctf-hash.c:228:15: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
Error: GCC_ANALYZER_WARNING (CWE-401): [#def163]
gdb-15.2-build/gdb-15.2/libctf/ctf-inlines.h:96:17: warning[-Wanalyzer-malloc-leak]: leak of ‘files’
gdb-15.2-build/gdb-15.2/libctf/ctf-link.c: scope_hint: In function ‘ctf_accumulate_archive_names’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def164]
gdb-15.2-build/gdb-15.2/libctf/ctf-inlines.h:96:17: warning[-Wanalyzer-malloc-leak]: leak of ‘names’
gdb-15.2-build/gdb-15.2/libctf/ctf-link.c: scope_hint: In function ‘ctf_accumulate_archive_names’
Error: CPPCHECK_WARNING (CWE-457): [#def165]
gdb-15.2-build/gdb-15.2/libctf/ctf-link.c:254: error[uninitvar]: Uninitialized variable: err
Error: CPPCHECK_WARNING (CWE-457): [#def166]
gdb-15.2-build/gdb-15.2/libctf/ctf-link.c:1754: error[legacyUninitvar]: Uninitialized variable: name
Error: GCC_ANALYZER_WARNING (CWE-131): [#def167]
gdb-15.2-build/gdb-15.2/libctf/ctf-lookup.c: scope_hint: In function ‘ctf_symidx_sort’
gdb-15.2-build/gdb-15.2/libctf/ctf-lookup.c:445:17: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
gdb-15.2-build/gdb-15.2/libctf/ctf-lookup.c: scope_hint: In function ‘ctf_symidx_sort’
Error: CPPCHECK_WARNING (CWE-457): [#def168]
gdb-15.2-build/gdb-15.2/libctf/ctf-open.c:1302: error[uninitvar]: Uninitialized variables: &skeleton.cts_data, &skeleton.cts_size
Error: CPPCHECK_WARNING (CWE-401): [#def169]
gdb-15.2-build/gdb-15.2/libctf/ctf-open.c:1447: error[memleak]: Memory leak: fp
Error: GCC_ANALYZER_WARNING (CWE-401): [#def170]
gdb-15.2-build/gdb-15.2/libctf/ctf-open.c:1447:15: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
gdb-15.2-build/gdb-15.2/libctf/ctf-open.c:1435:27: note: in expansion of macro ‘cth_flags’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def171]
gdb-15.2-build/gdb-15.2/libctf/ctf-open.c: scope_hint: In function ‘ctf_bufopen.part.0’
gdb-15.2-build/gdb-15.2/libctf/ctf-open.c:1447:15: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
gdb-15.2-build/gdb-15.2/include/ctf-api.h:28: included_from: Included from here.
gdb-15.2-build/gdb-15.2/libctf/ctf-impl.h:27: included_from: Included from here.
gdb-15.2-build/gdb-15.2/libctf/ctf-open.c:20: included_from: Included from here.
gdb-15.2-build/gdb-15.2/libctf/ctf-open.c:1435:27: note: in expansion of macro ‘cth_flags’
Error: CPPCHECK_WARNING (CWE-401): [#def172]
gdb-15.2-build/gdb-15.2/libctf/ctf-open.c:1459: error[memleak]: Memory leak: fp
Error: CPPCHECK_WARNING (CWE-401): [#def173]
gdb-15.2-build/gdb-15.2/libctf/ctf-open.c:1469: error[memleak]: Memory leak: fp
Error: CPPCHECK_WARNING (CWE-401): [#def174]
gdb-15.2-build/gdb-15.2/libctf/ctf-open.c:1483: error[memleak]: Memory leak: fp
Error: CPPCHECK_WARNING (CWE-401): [#def175]
gdb-15.2-build/gdb-15.2/libctf/ctf-open.c:1496: error[memleak]: Memory leak: fp
Error: GCC_ANALYZER_WARNING (CWE-401): [#def176]
gdb-15.2-build/gdb-15.2/libctf/ctf-string.c: scope_hint: In function ‘ctf_str_write_strtab’
gdb-15.2-build/gdb-15.2/libctf/ctf-string.c:797:3: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def177]
gdb-15.2-build/gdb-15.2/libdecnumber/decNumber.c: scope_hint: In function ‘decUnitCompare’
gdb-15.2-build/gdb-15.2/libdecnumber/decNumber.c:6276:37: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*u’
gdb-15.2-build/gdb-15.2/libdecnumber/decNumber.c:181: included_from: Included from here.
gdb-15.2-build/gdb-15.2/libdecnumber/decNumber.c:6204:36: note: in expansion of macro ‘D2U’
gdb-15.2-build/gdb-15.2/libdecnumber/decNumber.c:6203:36: note: in expansion of macro ‘D2U’
Error: GCC_ANALYZER_WARNING (CWE-126): [#def178]
gdb-15.2-build/gdb-15.2/libdecnumber/decNumber.c: scope_hint: In function ‘decUnitAddSub’
gdb-15.2-build/gdb-15.2/libdecnumber/decNumber.c:6376:19: warning[-Wanalyzer-out-of-bounds]: buffer over-read
gdb-15.2-build/gdb-15.2/libdecnumber/decNumber.c: scope_hint: In function ‘decUnitAddSub’
gdb-15.2-build/gdb-15.2/libdecnumber/decNumber.c:7213:26: note: in expansion of macro ‘D2U’
gdb-15.2-build/gdb-15.2/libdecnumber/decNumber.c:6376:19: note: read of 2 bytes from after the end of ‘uarrone’
gdb-15.2-build/gdb-15.2/libdecnumber/decNumber.c:6376:19: note: valid subscripts for ‘uarrone’ are ‘[0]’ to ‘[0]’
Error: CPPCHECK_WARNING (CWE-562): [#def179]
gdb-15.2-build/gdb-15.2/libiberty/cp-demangle.c:5183: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Error: CPPCHECK_WARNING (CWE-562): [#def180]
gdb-15.2-build/gdb-15.2/libiberty/cp-demangle.c:5221: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Error: CPPCHECK_WARNING (CWE-562): [#def181]
gdb-15.2-build/gdb-15.2/libiberty/cp-demangle.c:5242: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Error: CPPCHECK_WARNING (CWE-562): [#def182]
gdb-15.2-build/gdb-15.2/libiberty/cp-demangle.c:5717: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Error: CPPCHECK_WARNING (CWE-562): [#def183]
gdb-15.2-build/gdb-15.2/libiberty/cp-demangle.c:6745: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Error: CPPCHECK_WARNING (CWE-909): [#def184]
gdb-15.2-build/gdb-15.2/libiberty/cp-demangle.c:6752: error[uninitStructMember]: Uninitialized struct member: dpt.next
Error: GCC_ANALYZER_WARNING (CWE-465): [#def185]
gdb-15.2-build/gdb-15.2/libiberty/dyn-string.c: scope_hint: In function ‘dyn_string_insert’
gdb-15.2-build/gdb-15.2/libiberty/dyn-string.c:251:6: warning[-Wanalyzer-deref-before-check]: check of ‘dest’ for NULL after already dereferencing it
Error: GCC_ANALYZER_WARNING (CWE-465): [#def186]
gdb-15.2-build/gdb-15.2/libiberty/dyn-string.c: scope_hint: In function ‘dyn_string_insert_cstr’
gdb-15.2-build/gdb-15.2/libiberty/dyn-string.c:274:6: warning[-Wanalyzer-deref-before-check]: check of ‘dest’ for NULL after already dereferencing it
Error: GCC_ANALYZER_WARNING (CWE-465): [#def187]
gdb-15.2-build/gdb-15.2/libiberty/dyn-string.c: scope_hint: In function ‘dyn_string_insert_char’
gdb-15.2-build/gdb-15.2/libiberty/dyn-string.c:295:6: warning[-Wanalyzer-deref-before-check]: check of ‘dest’ for NULL after already dereferencing it
Error: GCC_ANALYZER_WARNING (CWE-465): [#def188]
gdb-15.2-build/gdb-15.2/libiberty/dyn-string.c: scope_hint: In function ‘dyn_string_append’
gdb-15.2-build/gdb-15.2/libiberty/dyn-string.c:314:6: warning[-Wanalyzer-deref-before-check]: check of ‘dest’ for NULL after already dereferencing it
Error: GCC_ANALYZER_WARNING (CWE-465): [#def189]
gdb-15.2-build/gdb-15.2/libiberty/dyn-string.c: scope_hint: In function ‘dyn_string_append_cstr’
gdb-15.2-build/gdb-15.2/libiberty/dyn-string.c:332:6: warning[-Wanalyzer-deref-before-check]: check of ‘dest’ for NULL after already dereferencing it
Error: GCC_ANALYZER_WARNING (CWE-465): [#def190]
gdb-15.2-build/gdb-15.2/libiberty/dyn-string.c: scope_hint: In function ‘dyn_string_append_char’
gdb-15.2-build/gdb-15.2/libiberty/dyn-string.c:346:6: warning[-Wanalyzer-deref-before-check]: check of ‘dest’ for NULL after already dereferencing it
Error: CPPCHECK_WARNING (CWE-823): [#def191]
gdb-15.2-build/gdb-15.2/libiberty/hashtab.c:187: error[arrayIndexOutOfBounds]: Array 'prime_tab[30]' accessed at index 30, which is out of bounds.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def192]
gdb-15.2-build/gdb-15.2/libiberty/make-relative-prefix.c: scope_hint: In function ‘save_string’
gdb-15.2-build/gdb-15.2/libiberty/make-relative-prefix.c:110:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘result’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-127): [#def193]
gdb-15.2-build/gdb-15.2/libiberty/make-relative-prefix.c: scope_hint: In function ‘split_directories’
gdb-15.2-build/gdb-15.2/libiberty/make-relative-prefix.c:192:11: warning[-Wanalyzer-out-of-bounds]: heap-based buffer under-read
Error: GCC_ANALYZER_WARNING (CWE-476): [#def194]
gdb-15.2-build/gdb-15.2/libiberty/make-relative-prefix.c: scope_hint: In function ‘make_relative_prefix_1’
gdb-15.2-build/gdb-15.2/libiberty/make-relative-prefix.c:274:33: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘nstore’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def195]
gdb-15.2-build/gdb-15.2/libiberty/make-relative-prefix.c:280:23: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘nstore’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-476): [#def196]
gdb-15.2-build/gdb-15.2/libiberty/obstack.c: scope_hint: In function ‘_obstack_newchunk’
gdb-15.2-build/gdb-15.2/libiberty/obstack.c:210:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘new_chunk’
Error: CPPCHECK_WARNING (CWE-401): [#def197]
gdb-15.2-build/gdb-15.2/libiberty/regex.c:2444: error[memleak]: Memory leak: compile_stack.stack
Error: GCC_ANALYZER_WARNING (CWE-476): [#def198]
gdb-15.2-build/gdb-15.2/libiberty/simple-object-mach-o.c: scope_hint: In function ‘simple_object_mach_o_write_segment’
gdb-15.2-build/gdb-15.2/libiberty/simple-object-mach-o.c:1159:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘index’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def199]
gdb-15.2-build/gdb-15.2/libiberty/simple-object-mach-o.c:1210:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘index’
Error: CPPCHECK_WARNING (CWE-562): [#def200]
gdb-15.2-build/gdb-15.2/libiberty/simple-object.c:295: error[returnDanglingLifetime]: Returning pointer to local variable 'newname' that will be invalid when returning.
Error: CPPCHECK_WARNING (CWE-562): [#def201]
gdb-15.2-build/gdb-15.2/libiberty/simple-object.c:298: error[returnDanglingLifetime]: Returning pointer to local variable 'newname' that will be invalid when returning.
Error: CPPCHECK_WARNING (CWE-562): [#def202]
gdb-15.2-build/gdb-15.2/libiberty/simple-object.c:303: error[returnDanglingLifetime]: Returning pointer to local variable 'newname' that will be invalid when returning.
Error: CPPCHECK_WARNING (CWE-562): [#def203]
gdb-15.2-build/gdb-15.2/libiberty/simple-object.c:306: error[returnDanglingLifetime]: Returning pointer to local variable 'newname' that will be invalid when returning.
Error: CPPCHECK_WARNING (CWE-562): [#def204]
gdb-15.2-build/gdb-15.2/libiberty/simple-object.c:309: error[returnDanglingLifetime]: Returning pointer to local variable 'newname' that will be invalid when returning.
Error: CPPCHECK_WARNING (CWE-562): [#def205]
gdb-15.2-build/gdb-15.2/libiberty/simple-object.c:312: error[returnDanglingLifetime]: Returning pointer to local variable 'newname' that will be invalid when returning.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def206]
gdb-15.2-build/gdb-15.2/libiberty/strerror.c: scope_hint: In function ‘strtoerrno’
gdb-15.2-build/gdb-15.2/libiberty/strerror.c:756:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error_names’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def207]
gdb-15.2-build/gdb-15.2/libiberty/strsignal.c: scope_hint: In function ‘strtosigno’
gdb-15.2-build/gdb-15.2/libiberty/strsignal.c:524:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘signal_names’
Error: CPPCHECK_WARNING (CWE-664): [#def208]
gdb-15.2-build/gdb-15.2/libiberty/vprintf-support.c:52: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
Error: CPPCHECK_WARNING (CWE-664): [#def209]
gdb-15.2-build/gdb-15.2/libiberty/vprintf-support.c:64: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
Error: CPPCHECK_WARNING (CWE-664): [#def210]
gdb-15.2-build/gdb-15.2/libiberty/vprintf-support.c:74: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
Error: CPPCHECK_WARNING (CWE-664): [#def211]
gdb-15.2-build/gdb-15.2/libiberty/vprintf-support.c:92: error[va_list_usedBeforeStarted]: va_list 'ap' used before va_start() was called.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def212]
gdb-15.2-build/gdb-15.2/libsframe/sframe-dump.c: scope_hint: In function ‘dump_sframe_header’
gdb-15.2-build/gdb-15.2/libsframe/sframe-dump.c:74:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘flags_str’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def213]
gdb-15.2-build/gdb-15.2/libsframe/sframe-dump.c:79:11: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘flags_str’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-688): [#def214]
gdb-15.2-build/gdb-15.2/libsframe/sframe-dump.c:83:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘flags_str’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
Error: GCC_ANALYZER_WARNING (CWE-401): [#def215]
gdb-15.2-build/gdb-15.2/libsframe/sframe.c: scope_hint: In function ‘sframe_decode’
gdb-15.2-build/gdb-15.2/libsframe/sframe.c:870:12: warning[-Wanalyzer-malloc-leak]: leak of ‘dctx’
Error: CPPCHECK_WARNING (CWE-401): [#def216]
gdb-15.2-build/gdb-15.2/libsframe/sframe.c:898: error[memleak]: Memory leak: dctx
Error: CPPCHECK_WARNING (CWE-401): [#def217]
gdb-15.2-build/gdb-15.2/libsframe/sframe.c:908: error[memleak]: Memory leak: dctx
Error: GCC_ANALYZER_WARNING (CWE-476): [#def218]
gdb-15.2-build/gdb-15.2/libsframe/sframe.c: scope_hint: In function ‘sframe_decoder_get_abi_arch’
gdb-15.2-build/gdb-15.2/libsframe/sframe.c:987:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘hp’
gdb-15.2-build/gdb-15.2/libsframe/sframe.c: scope_hint: In function ‘sframe_decoder_get_abi_arch’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def219]
gdb-15.2-build/gdb-15.2/libsframe/sframe.c:1006:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘hp’
gdb-15.2-build/gdb-15.2/libsframe/sframe.c: scope_hint: In function ‘sframe_fre_get_fp_offset’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def220]
gdb-15.2-build/gdb-15.2/libsframe/sframe.c: scope_hint: In function ‘sframe_decoder_get_fixed_ra_offset’
gdb-15.2-build/gdb-15.2/libsframe/sframe.c:1015:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘hp’
gdb-15.2-build/gdb-15.2/libsframe/sframe.c: scope_hint: In function ‘sframe_decoder_get_fixed_ra_offset’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def221]
gdb-15.2-build/gdb-15.2/libsframe/sframe.c: scope_hint: In function ‘sframe_sort_funcdesc’
gdb-15.2-build/gdb-15.2/libsframe/sframe.c:1649:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘encoder’
gdb-15.2-build/gdb-15.2/libsframe/sframe.c: scope_hint: In function ‘sframe_sort_funcdesc’
Error: GCC_ANALYZER_WARNING (CWE-835): [#def222]
gdb-15.2-build/gdb-15.2/opcodes/aarch64-dis.c: scope_hint: In function ‘do_special_decoding’
gdb-15.2-build/gdb-15.2/opcodes/aarch64-dis.c:2711:46: warning[-Wanalyzer-infinite-loop]: infinite loop
Error: CPPCHECK_WARNING (CWE-457): [#def223]
gdb-15.2-build/gdb-15.2/opcodes/aarch64-opc.c:1357: warning[uninitvar]: Uninitialized variable: &imm_enc.encoding
Error: CPPCHECK_WARNING (CWE-476): [#def224]
gdb-15.2-build/gdb-15.2/opcodes/aarch64-opc.c:5280: error[ctunullpointer]: Null pointer dereference: inst
Error: CPPCHECK_WARNING (CWE-476): [#def225]
gdb-15.2-build/gdb-15.2/opcodes/aarch64-opc.c:5280: warning[nullPointer]: Possible null pointer dereference: inst
Error: CPPCHECK_WARNING (CWE-562): [#def226]
gdb-15.2-build/gdb-15.2/opcodes/i386-dis.c:9518: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
Error: CPPCHECK_WARNING (CWE-401): [#def227]
gdb-15.2-build/gdb-15.2/opcodes/s390-mkopc.c:98: error[memleakOnRealloc]: Common realloc mistake: 'op_array' nulled but not freed upon failure
Error: GCC_ANALYZER_WARNING (CWE-1335): [#def228]
gdb-15.2-build/gdb-15.2/opcodes/s390-mkopc.c: scope_hint: In function ‘insertOpcode’
gdb-15.2-build/gdb-15.2/opcodes/s390-mkopc.c:117:14: warning[-Wanalyzer-shift-count-overflow]: shift by count (‘64’) >= precision of type (‘64’)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def229]
gdb-15.2-build/gdb-15.2/opcodes/s390-mkopc.c:121:34: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
Scan Properties
analyzer-version-clippy | 1.82.0 |
analyzer-version-cppcheck | 2.16.0 |
analyzer-version-gcc | 14.2.1 |
analyzer-version-gcc-analyzer | 15.0.0 |
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-6.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | gdb-15.2-2.fc42 |
store-results-to | /tmp/tmp2di2gb86/gdb-15.2-2.fc42.tar.xz |
time-created | 2024-11-13 00:15:23 |
time-finished | 2024-11-13 00:34:57 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmp2di2gb86/gdb-15.2-2.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmp2di2gb86/gdb-15.2-2.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |