Task #118857 - fixed.err
back to task #118857download
Error: GCC_ANALYZER_WARNING (CWE-476):
gdb-17.1/bfd/elf32-ppc.c:2373:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
# 2371| | SEC_IN_MEMORY | SEC_LINKER_CREATED);
# 2372| s = bfd_make_section_anyway_with_flags (abfd, ".glink", flags);
# 2373|-> htab->glink = s;
# 2374| p2align = htab->params->ppc476_workaround ? 6 : 4;
# 2375| if (p2align < htab->params->plt_stub_align)
Error: GCC_ANALYZER_WARNING (CWE-476):
gdb-17.1/bfd/elf32-ppc.c:2458:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-17.1/bfd/elf32-ppc.c:2455:6: branch_true: following ‘true’ branch...
gdb-17.1/bfd/elf32-ppc.c:2458:7: branch_true: ...to here
gdb-17.1/bfd/elf32-ppc.c:2458:7: danger: dereference of NULL ‘htab’
# 2456| return false;
# 2457|
# 2458|-> if (htab->glink == NULL
# 2459| && !ppc_elf_create_glink (abfd, info))
# 2460| return false;
Error: GCC_ANALYZER_WARNING (CWE-476):
gdb-17.1/bfd/elf32-ppc.c:2617:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-17.1/bfd/elf32-ppc.c:2607:7: branch_true: following ‘true’ branch...
gdb-17.1/bfd/elf32-ppc.c:2607:7: branch_true: following ‘true’ branch...
gdb-17.1/bfd/elf32-ppc.c:2616:14: branch_true: ...to here
gdb-17.1/bfd/elf32-ppc.c:2617:11: danger: dereference of NULL ‘htab’
# 2615|
# 2616| htab = ppc_elf_hash_table (info);
# 2617|-> if (htab->sbss == NULL)
# 2618| {
# 2619| flagword flags = SEC_IS_COMMON | SEC_SMALL_DATA | SEC_LINKER_CREATED;
Error: GCC_ANALYZER_WARNING (CWE-476):
gdb-17.1/bfd/elf32-ppc.c:2893:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-17.1/bfd/elf32-ppc.c:2865:1: enter_function: entry to ‘ppc_elf_check_relocs’
gdb-17.1/bfd/elf32-ppc.c:2878:6: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:2886:3: call_function: inlined call to ‘bfd_get_flavour’ from ‘ppc_elf_check_relocs’
gdb-17.1/bfd/elf32-ppc.c:2893:7: danger: dereference of NULL ‘htab’
# 2891|
# 2892| htab = ppc_elf_hash_table (info);
# 2893|-> if (htab->glink == NULL)
# 2894| {
# 2895| if (htab->elf.dynobj == NULL)
Error: GCC_ANALYZER_WARNING (CWE-476):
gdb-17.1/bfd/elf32-ppc.c:2963:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘isym’
gdb-17.1/bfd/elf32-ppc.c:2865:1: enter_function: entry to ‘ppc_elf_check_relocs’
gdb-17.1/bfd/elf32-ppc.c:2878:6: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:2886:3: call_function: inlined call to ‘bfd_get_flavour’ from ‘ppc_elf_check_relocs’
gdb-17.1/bfd/elf32-ppc.c:2892:10: branch_true: following ‘true’ branch...
gdb-17.1/bfd/elf32-ppc.c:2892:10: call_function: inlined call to ‘elf_hash_table_id’ from ‘ppc_elf_check_relocs’
gdb-17.1/bfd/elf32-ppc.c:2892:10: branch_true: following ‘true’ branch...
gdb-17.1/bfd/elf32-ppc.c:2893:7: branch_true: ...to here
gdb-17.1/bfd/elf32-ppc.c:2908:22: branch_true: following ‘true’ branch (when ‘rel < rel_end’)...
gdb-17.1/bfd/elf32-ppc.c:2919:18: branch_true: ...to here
gdb-17.1/bfd/elf32-ppc.c:2920:10: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:2929:26: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:2995:10: branch_true: following ‘true’ branch...
gdb-17.1/bfd/elf32-ppc.c:2996:14: branch_true: ...to here
gdb-17.1/bfd/elf32-ppc.c:2995:11: branch_true: following ‘true’ branch...
gdb-17.1/bfd/elf32-ppc.c:2997:14: branch_true: ...to here
gdb-17.1/bfd/elf32-ppc.c:2995:11: branch_true: following ‘true’ branch...
gdb-17.1/bfd/elf32-ppc.c:3000:14: branch_true: ...to here
gdb-17.1/bfd/elf32-ppc.c:3000:14: branch_false: following ‘false’ branch (when ‘rel == relocs’)...
gdb-17.1/bfd/elf32-ppc.c:3008:13: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:2908:22: branch_true: following ‘true’ branch (when ‘rel < rel_end’)...
gdb-17.1/bfd/elf32-ppc.c:2919:18: branch_true: ...to here
gdb-17.1/bfd/elf32-ppc.c:2920:10: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:2929:26: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:2953:10: branch_false: following ‘false’ branch (when ‘h’ is NULL)...
gdb-17.1/bfd/elf32-ppc.c:2961:16: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:2961:15: branch_true: following ‘true’ branch...
gdb-17.1/bfd/elf32-ppc.c:2963:15: branch_true: ...to here
gdb-17.1/bfd/elf32-ppc.c:2963:15: danger: dereference of NULL ‘isym’
# 2961| else if (htab->elf.target_os != is_vxworks)
# 2962| {
# 2963|-> if (ELF_ST_TYPE (isym->st_info) == STT_GNU_IFUNC)
# 2964| {
# 2965| /* Set PLT_IFUNC flag for this sym, no GOT entry yet. */
Error: GCC_ANALYZER_WARNING (CWE-476):
gdb-17.1/bfd/elf32-ppc.c:3956:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
# 3954| htab = ppc_elf_hash_table (info);
# 3955|
# 3956|-> if (htab->plt_type == PLT_UNSET)
# 3957| {
# 3958| struct elf_link_hash_entry *h;
Error: GCC_ANALYZER_WARNING (CWE-476):
gdb-17.1/bfd/elf32-ppc.c:4260:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sym’
gdb-17.1/bfd/elf32-ppc.c:4158:1: enter_function: entry to ‘ppc_elf_inline_plt’
gdb-17.1/bfd/elf32-ppc.c:4165:10: branch_true: following ‘true’ branch...
gdb-17.1/bfd/elf32-ppc.c:4165:10: call_function: inlined call to ‘elf_hash_table_id’ from ‘ppc_elf_inline_plt’
gdb-17.1/bfd/elf32-ppc.c:4165:10: branch_true: following ‘true’ branch...
gdb-17.1/bfd/elf32-ppc.c:4175:14: branch_true: ...to here
gdb-17.1/bfd/elf32-ppc.c:4187:6: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:4206:8: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:4206:33: branch_true: following ‘true’ branch (when ‘ibfd’ is non-NULL)...
gdb-17.1/bfd/elf32-ppc.c:4211:12: call_function: inlined call to ‘bfd_get_flavour’ from ‘ppc_elf_inline_plt’
gdb-17.1/bfd/elf32-ppc.c:4214:7: release_memory: ‘local_syms’ is NULL
gdb-17.1/bfd/elf32-ppc.c:4226:16: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:4229:33: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:4244:22: call_function: calling ‘get_sym_h’ from ‘ppc_elf_inline_plt’
gdb-17.1/bfd/elf32-ppc.c:4244:22: return_function: returning to ‘ppc_elf_inline_plt’ from ‘get_sym_h’
gdb-17.1/bfd/elf32-ppc.c:4244:20: branch_true: following ‘true’ branch...
gdb-17.1/bfd/elf32-ppc.c:4254:21: branch_true: ...to here
gdb-17.1/bfd/elf32-ppc.c:4244:22: call_function: calling ‘get_sym_h’ from ‘ppc_elf_inline_plt’
gdb-17.1/bfd/elf32-ppc.c:4244:22: return_function: returning to ‘ppc_elf_inline_plt’ from ‘get_sym_h’
gdb-17.1/bfd/elf32-ppc.c:4244:20: branch_true: following ‘true’ branch...
gdb-17.1/bfd/elf32-ppc.c:4254:21: branch_true: ...to here
gdb-17.1/bfd/elf32-ppc.c:4260:31: release_memory: ‘sym’ is NULL
gdb-17.1/bfd/elf32-ppc.c:4260:23: danger: dereference of NULL ‘sym’
# 4258| to = h->root.u.def.value;
# 4259| else
# 4260|-> to = sym->st_value;
# 4261| to += (rel->r_addend
# 4262| + sym_sec->output_offset
Error: GCC_ANALYZER_WARNING (CWE-476):
gdb-17.1/bfd/elf32-ppc.c:4268:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘tls_maskp’
gdb-17.1/bfd/elf32-ppc.c:4158:1: enter_function: entry to ‘ppc_elf_inline_plt’
gdb-17.1/bfd/elf32-ppc.c:4165:10: branch_true: following ‘true’ branch...
gdb-17.1/bfd/elf32-ppc.c:4165:10: call_function: inlined call to ‘elf_hash_table_id’ from ‘ppc_elf_inline_plt’
gdb-17.1/bfd/elf32-ppc.c:4165:10: branch_true: following ‘true’ branch...
gdb-17.1/bfd/elf32-ppc.c:4175:14: branch_true: ...to here
gdb-17.1/bfd/elf32-ppc.c:4187:6: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:4206:8: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:4206:33: branch_true: following ‘true’ branch (when ‘ibfd’ is non-NULL)...
gdb-17.1/bfd/elf32-ppc.c:4211:12: call_function: inlined call to ‘bfd_get_flavour’ from ‘ppc_elf_inline_plt’
gdb-17.1/bfd/elf32-ppc.c:4226:16: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:4229:33: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:4244:22: call_function: calling ‘get_sym_h’ from ‘ppc_elf_inline_plt’
gdb-17.1/bfd/elf32-ppc.c:4244:22: return_function: returning to ‘ppc_elf_inline_plt’ from ‘get_sym_h’
gdb-17.1/bfd/elf32-ppc.c:4244:20: branch_true: following ‘true’ branch...
gdb-17.1/bfd/elf32-ppc.c:4254:21: branch_true: ...to here
gdb-17.1/bfd/elf32-ppc.c:4257:24: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:4260:31: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:4268:23: release_memory: ‘tls_maskp’ is NULL
gdb-17.1/bfd/elf32-ppc.c:4268:23: danger: dereference of NULL ‘tls_maskp’
# 4266| + sec->output_section->vma);
# 4267| if (to - from + limit < 2 * limit)
# 4268|-> *tls_maskp &= ~PLT_KEEP;
# 4269| }
# 4270| }
Error: GCC_ANALYZER_WARNING (CWE-476):
gdb-17.1/bfd/elf32-ppc.c:4297:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
# 4295|
# 4296| htab = ppc_elf_hash_table (info);
# 4297|-> htab->tls_get_addr = elf_link_hash_lookup (&htab->elf, "__tls_get_addr",
# 4298| false, false, true);
# 4299| if (htab->plt_type != PLT_NEW)
Error: GCC_ANALYZER_WARNING (CWE-476):
gdb-17.1/bfd/elf32-ppc.c:4847:41: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-17.1/bfd/elf32-ppc.c:4761:6: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:4763:7: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:4761:7: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:4834:5: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:4839:6: branch_true: following ‘true’ branch...
gdb-17.1/bfd/elf32-ppc.c:4839:6: branch_true: ...to here
gdb-17.1/bfd/elf32-ppc.c:4842:7: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:4843:31: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:4845:10: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:4846:41: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:4845:11: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:4847:41: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:4847:41: danger: dereference of NULL ‘htab’
# 4845| if (def->root.u.def.section == htab->elf.sdynbss
# 4846| || def->root.u.def.section == htab->elf.sdynrelro
# 4847|-> || def->root.u.def.section == htab->dynsbss)
# 4848| h->dyn_relocs = NULL;
# 4849| return true;
Error: GCC_ANALYZER_WARNING (CWE-476):
gdb-17.1/bfd/elf32-ppc.c:4882:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-17.1/bfd/elf32-ppc.c:4761:6: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:4763:7: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:4761:7: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:4834:5: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:4839:6: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:4859:7: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:4859:6: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:4859:6: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:4867:6: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:4877:7: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:4877:6: branch_true: following ‘true’ branch...
gdb-17.1/bfd/elf32-ppc.c:4880:11: branch_true: ...to here
gdb-17.1/bfd/elf32-ppc.c:4879:10: branch_true: following ‘true’ branch...
gdb-17.1/bfd/elf32-ppc.c:4881:11: branch_true: ...to here
gdb-17.1/bfd/elf32-ppc.c:4879:11: branch_true: following ‘true’ branch...
gdb-17.1/bfd/elf32-ppc.c:4882:14: branch_true: ...to here
gdb-17.1/bfd/elf32-ppc.c:4882:14: danger: dereference of NULL ‘htab’
# 4880| && ppc_elf_hash_entry (h)->has_addr16_ha
# 4881| && ppc_elf_hash_entry (h)->has_addr16_lo
# 4882|-> && htab->params->pic_fixup == 0
# 4883| && info->disable_target_specific_optimizations <= 1)
# 4884| htab->params->pic_fixup = 1;
Error: GCC_ANALYZER_WARNING (CWE-476):
gdb-17.1/bfd/elf32-ppc.c:4918:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-17.1/bfd/elf32-ppc.c:4761:6: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:4763:7: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:4761:7: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:4834:5: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:4839:6: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:4859:7: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:4859:6: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:4859:6: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:4867:6: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:4877:7: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:4877:6: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:4889:7: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:4889:6: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:4899:10: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:4917:6: branch_true: following ‘true’ branch...
gdb-17.1/bfd/elf32-ppc.c:4918:5: branch_true: ...to here
gdb-17.1/bfd/elf32-ppc.c:4918:5: danger: dereference of NULL ‘htab’
# 4916| must instead allocate it in .sbss. */
# 4917| if (ppc_elf_hash_entry (h)->has_sda_refs)
# 4918|-> s = htab->dynsbss;
# 4919| else if ((h->root.u.def.section->flags & SEC_READONLY) != 0)
# 4920| s = htab->elf.sdynrelro;
Error: GCC_ANALYZER_WARNING (CWE-476):
gdb-17.1/bfd/elf32-ppc.c:4933:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-17.1/bfd/elf32-ppc.c:4761:6: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:4763:7: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:4761:7: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:4834:5: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:4839:6: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:4859:7: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:4859:6: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:4859:6: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:4867:6: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:4877:7: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:4877:6: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:4889:7: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:4889:6: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:4899:10: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:4917:6: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:4919:13: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:4923:3: branch_false: following ‘false’ branch (when ‘s’ is non-NULL)...
gdb-17.1/bfd/elf32-ppc.c:4925:8: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:4925:6: branch_true: following ‘true’ branch...
gdb-17.1/bfd/elf32-ppc.c:4932:10: branch_true: following ‘true’ branch...
gdb-17.1/bfd/elf32-ppc.c:4933:9: branch_true: ...to here
gdb-17.1/bfd/elf32-ppc.c:4933:9: danger: dereference of NULL ‘htab’
# 4931| and into the runtime process image. */
# 4932| if (ppc_elf_hash_entry (h)->has_sda_refs)
# 4933|-> srel = htab->relsbss;
# 4934| else if ((h->root.u.def.section->flags & SEC_READONLY) != 0)
# 4935| srel = htab->elf.sreldynrelro;
Error: GCC_ANALYZER_WARNING (CWE-476):
gdb-17.1/bfd/elf32-ppc.c:4989:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-17.1/bfd/elf32-ppc.c:4976:6: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:4978:37: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:4984:6: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:4986:7: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:4986:6: branch_true: following ‘true’ branch...
gdb-17.1/bfd/elf32-ppc.c:4988:7: branch_true: ...to here
gdb-17.1/bfd/elf32-ppc.c:4989:32: danger: dereference of NULL ‘htab’
# 4987| {
# 4988| sh->root.type = bfd_link_hash_defined;
# 4989|-> sh->root.u.def.section = htab->glink;
# 4990| sh->root.u.def.value = ent->glink_offset;
# 4991| sh->ref_regular = 1;
Error: GCC_ANALYZER_WARNING (CWE-476):
gdb-17.1/bfd/elf32-ppc.c:5010:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-17.1/bfd/elf32-ppc.c:5094:1: enter_function: entry to ‘allocate_dynrelocs’
gdb-17.1/bfd/elf32-ppc.c:5101:6: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:5104:10: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:5106:6: branch_true: following ‘true’ branch...
gdb-17.1/bfd/elf32-ppc.c:5115:12: branch_true: ...to here
gdb-17.1/bfd/elf32-ppc.c:5115:10: branch_true: following ‘true’ branch...
gdb-17.1/bfd/elf32-ppc.c:5118:47: branch_true: ...to here
gdb-17.1/bfd/elf32-ppc.c:5133:10: branch_false: following ‘false’ branch (when ‘need != 0’)...
gdb-17.1/bfd/elf32-ppc.c:5137:32: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:5137:32: call_function: calling ‘allocate_got’ from ‘allocate_dynrelocs’
# 5008| unsigned int max_before_header;
# 5009|
# 5010|-> if (htab->plt_type == PLT_VXWORKS)
# 5011| {
# 5012| where = htab->elf.sgot->size;
Error: GCC_ANALYZER_WARNING (CWE-476):
gdb-17.1/bfd/elf32-ppc.c:5112:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-17.1/bfd/elf32-ppc.c:5101:6: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:5104:10: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:5106:6: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:5108:14: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:5106:7: branch_true: following ‘true’ branch...
gdb-17.1/bfd/elf32-ppc.c:5109:11: branch_true: ...to here
gdb-17.1/bfd/elf32-ppc.c:5107:11: branch_true: following ‘true’ branch...
gdb-17.1/bfd/elf32-ppc.c:5110:11: branch_true: ...to here
gdb-17.1/bfd/elf32-ppc.c:5107:11: branch_true: following ‘true’ branch...
gdb-17.1/bfd/elf32-ppc.c:5111:11: branch_true: ...to here
gdb-17.1/bfd/elf32-ppc.c:5107:11: branch_true: following ‘true’ branch...
gdb-17.1/bfd/elf32-ppc.c:5112:14: branch_true: ...to here
gdb-17.1/bfd/elf32-ppc.c:5112:14: danger: dereference of NULL ‘htab’
# 5110| && eh->has_addr16_ha
# 5111| && eh->has_addr16_lo
# 5112|-> && htab->params->pic_fixup > 0))
# 5113| {
# 5114| /* Make sure this symbol is output as a dynamic symbol. */
Error: GCC_ANALYZER_WARNING (CWE-476):
gdb-17.1/bfd/elf32-ppc.c:5242:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-17.1/bfd/elf32-ppc.c:5101:6: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:5104:10: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:5106:6: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:5108:14: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:5176:6: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:5184:12: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:5184:11: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:5232:12: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:5232:11: branch_true: following ‘true’ branch...
gdb-17.1/bfd/elf32-ppc.c:5238:15: branch_true: ...to here
gdb-17.1/bfd/elf32-ppc.c:5232:11: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:5240:16: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:5239:16: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:5241:16: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:5239:16: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:5242:19: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:5242:19: danger: dereference of NULL ‘htab’
# 5240| && eh->has_addr16_ha
# 5241| && eh->has_addr16_lo
# 5242|-> && htab->params->pic_fixup > 0))
# 5243| {
# 5244| /* Make sure this symbol is output as a dynamic symbol. */
Error: GCC_ANALYZER_WARNING (CWE-476):
gdb-17.1/bfd/elf32-ppc.c:5496:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-17.1/bfd/elf32-ppc.c:5480:6: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:5483:7: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:5496:7: danger: dereference of NULL ‘htab’
# 5494| }
# 5495|
# 5496|-> if (htab->plt_type == PLT_OLD)
# 5497| htab->got_header_size = 16;
# 5498| else if (htab->plt_type == PLT_NEW)
Error: GCC_ANALYZER_WARNING (CWE-476):
gdb-17.1/bfd/elf32-ppc.c:6280:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘h’
gdb-17.1/bfd/elf32-ppc.c:6057:1: enter_function: entry to ‘ppc_elf_relax_section’
gdb-17.1/bfd/elf32-ppc.c:6089:6: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:6090:10: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:6089:7: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:6091:10: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:6089:7: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:6092:10: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:6089:7: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:6093:10: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:6089:7: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:6102:10: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:6102:10: branch_true: following ‘true’ branch...
gdb-17.1/bfd/elf32-ppc.c:6102:10: call_function: inlined call to ‘elf_hash_table_id’ from ‘ppc_elf_relax_section’
gdb-17.1/bfd/elf32-ppc.c:6102:10: branch_true: following ‘true’ branch...
gdb-17.1/bfd/elf32-ppc.c:6106:16: branch_true: ...to here
gdb-17.1/bfd/elf32-ppc.c:6115:6: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:6116:10: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:6115:7: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:6129:27: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:6142:10: branch_true: following ‘true’ branch...
gdb-17.1/bfd/elf32-ppc.c:6145:56: branch_true: ...to here
gdb-17.1/bfd/elf32-ppc.c:6146:14: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:6150:14: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:6153:36: branch_true: following ‘true’ branch (when ‘irel < irelend’)...
gdb-17.1/bfd/elf32-ppc.c:6155:34: branch_true: ...to here
gdb-17.1/bfd/elf32-ppc.c:6193:16: call_function: calling ‘get_sym_h’ from ‘ppc_elf_relax_section’
gdb-17.1/bfd/elf32-ppc.c:6193:16: return_function: returning to ‘ppc_elf_relax_section’ from ‘get_sym_h’
gdb-17.1/bfd/elf32-ppc.c:6193:14: branch_true: following ‘true’ branch...
gdb-17.1/bfd/elf32-ppc.c:6197:15: branch_true: ...to here
gdb-17.1/bfd/elf32-ppc.c:6212:25: release_memory: ‘h’ is NULL
gdb-17.1/bfd/elf32-ppc.c:6280:27: release_memory: ‘h’ is NULL
gdb-17.1/bfd/elf32-ppc.c:6280:15: danger: dereference of NULL ‘h’
# 6278| }
# 6279|
# 6280|-> sym_type = h->type;
# 6281| }
# 6282|
Error: GCC_ANALYZER_WARNING (CWE-476):
gdb-17.1/bfd/elf32-ppc.c:6706:8: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
gdb-17.1/bfd/elf32-ppc.c:6702:3: branch_true: following ‘true’ branch...
gdb-17.1/bfd/elf32-ppc.c:6702:3: branch_true: ...to here
gdb-17.1/bfd/elf32-ppc.c:6706:8: danger: dereference of NULL ‘<unknown>’
# 6704| /* Offset will always be a multiple of four, so use the bottom bit
# 6705| as a "written" flag. */
# 6706|-> if ((linker_section_ptr->offset & 1) == 0)
# 6707| {
# 6708| bfd_put_32 (lsect->section->owner,
Error: GCC_ANALYZER_WARNING (CWE-476):
gdb-17.1/bfd/elf32-ppc.c:6740:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-17.1/bfd/elf32-ppc.c:6740:28: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)...
gdb-17.1/bfd/elf32-ppc.c:6740:28: branch_true: ...to here
gdb-17.1/bfd/elf32-ppc.c:6740:28: danger: dereference of NULL ‘htab’
# 6738| bfd *output_bfd = info->output_bfd;
# 6739| bfd_vma plt;
# 6740|-> unsigned char *end = p + GLINK_ENTRY_SIZE (htab, h);
# 6741|
# 6742| if (h != NULL
Error: GCC_ANALYZER_WARNING (CWE-476):
gdb-17.1/bfd/elf32-ppc.c:9151:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-17.1/bfd/elf32-ppc.c:7000:6: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:7021:6: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:7024:21: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:7025:10: branch_false: following ‘false’ branch (when ‘rel >= relend’)...
gdb-17.1/bfd/elf32-ppc.c:9124:6: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:9124:6: branch_false: following ‘false’ branch (when ‘rel == wrel’)...
gdb-17.1/bfd/elf32-ppc.c:9141:7: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:9151:7: danger: dereference of NULL ‘htab’
# 9149| }
# 9150|
# 9151|-> if (htab->params->ppc476_workaround
# 9152| && input_section->sec_info_type == SEC_INFO_TYPE_TARGET
# 9153| && (!bfd_link_relocatable (info)
Error: GCC_ANALYZER_WARNING (CWE-476):
gdb-17.1/bfd/elf32-ppc.c:9460:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-17.1/bfd/elf32-ppc.c:9439:1: enter_function: entry to ‘write_global_sym_plt’
gdb-17.1/bfd/elf32-ppc.c:9447:28: branch_true: following ‘true’ branch (when ‘ent’ is non-NULL)...
gdb-17.1/bfd/elf32-ppc.c:9448:9: branch_true: ...to here
gdb-17.1/bfd/elf32-ppc.c:9448:8: branch_true: following ‘true’ branch...
gdb-17.1/bfd/elf32-ppc.c:9450:21: call_function: inlined call to ‘use_local_plt’ from ‘write_global_sym_plt’
gdb-17.1/bfd/elf32-ppc.c:9452:12: branch_false: following ‘false’ branch (when ‘doneone == 0’)...
gdb-17.1/bfd/elf32-ppc.c:9457:23: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:9460:17: danger: dereference of NULL ‘htab’
# 9458| asection *relplt = htab->elf.srelplt;
# 9459|
# 9460|-> if (htab->plt_type == PLT_NEW || !dyn)
# 9461| reloc_index = ent->plt.offset / 4;
# 9462| else
Error: GCC_ANALYZER_WARNING (CWE-476):
gdb-17.1/bfd/elf32-ppc.c:9752:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sym’
gdb-17.1/bfd/elf32-ppc.c:9700:1: enter_function: entry to ‘ppc_finish_symbols’
gdb-17.1/bfd/elf32-ppc.c:9702:42: branch_true: following ‘true’ branch...
gdb-17.1/bfd/elf32-ppc.c:9702:42: call_function: inlined call to ‘elf_hash_table_id’ from ‘ppc_finish_symbols’
gdb-17.1/bfd/elf32-ppc.c:9702:42: branch_true: following ‘true’ branch...
gdb-17.1/bfd/elf32-ppc.c:9708:3: call_function: inlined call to ‘elf_link_hash_traverse’ from ‘ppc_finish_symbols’
gdb-17.1/bfd/elf32-ppc.c:9710:33: branch_true: following ‘true’ branch (when ‘ibfd’ is non-NULL)...
gdb-17.1/bfd/elf32-ppc.c:9716:25: branch_true: ...to here
gdb-17.1/bfd/elf32-ppc.c:9716:25: release_memory: ‘local_syms’ is NULL
gdb-17.1/bfd/elf32-ppc.c:9734:16: branch_true: following ‘true’ branch...
gdb-17.1/bfd/elf32-ppc.c:9745:38: branch_true: ...to here
gdb-17.1/bfd/elf32-ppc.c:9744:22: call_function: calling ‘get_sym_h’ from ‘ppc_finish_symbols’
gdb-17.1/bfd/elf32-ppc.c:9744:22: return_function: returning to ‘ppc_finish_symbols’ from ‘get_sym_h’
gdb-17.1/bfd/elf32-ppc.c:9744:20: branch_true: following ‘true’ branch...
gdb-17.1/bfd/elf32-ppc.c:9752:26: branch_true: ...to here
gdb-17.1/bfd/elf32-ppc.c:9753:20: branch_true: following ‘true’ branch...
gdb-17.1/bfd/elf32-ppc.c:9756:20: branch_true: following ‘true’ branch...
gdb-17.1/bfd/elf32-ppc.c:9758:21: branch_true: ...to here
gdb-17.1/bfd/elf32-ppc.c:9783:17: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:9783:17: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:9787:17: call_function: calling ‘write_glink_stub’ from ‘ppc_finish_symbols’
gdb-17.1/bfd/elf32-ppc.c:9787:17: return_function: returning to ‘ppc_finish_symbols’ from ‘write_glink_stub’
gdb-17.1/bfd/elf32-ppc.c:9734:16: branch_true: following ‘true’ branch...
gdb-17.1/bfd/elf32-ppc.c:9745:38: branch_true: ...to here
gdb-17.1/bfd/elf32-ppc.c:9744:22: call_function: calling ‘get_sym_h’ from ‘ppc_finish_symbols’
gdb-17.1/bfd/elf32-ppc.c:9744:22: return_function: returning to ‘ppc_finish_symbols’ from ‘get_sym_h’
gdb-17.1/bfd/elf32-ppc.c:9744:20: branch_true: following ‘true’ branch...
gdb-17.1/bfd/elf32-ppc.c:9752:26: branch_true: ...to here
gdb-17.1/bfd/elf32-ppc.c:9752:26: release_memory: ‘sym’ is NULL
gdb-17.1/bfd/elf32-ppc.c:9752:17: danger: dereference of NULL ‘sym’
# 9750| }
# 9751|
# 9752|-> val = sym->st_value;
# 9753| if (sym_sec != NULL && sym_sec->output_section != NULL)
# 9754| val += sym_sec->output_offset + sym_sec->output_section->vma;
Error: GCC_ANALYZER_WARNING (CWE-476):
gdb-17.1/bfd/elf32-ppc.c:9856:39: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-17.1/bfd/elf32-ppc.c:9820:7: branch_true: following ‘true’ branch...
gdb-17.1/bfd/elf32-ppc.c:9822:30: branch_true: following ‘true’ branch (when ‘ent’ is non-NULL)...
gdb-17.1/bfd/elf32-ppc.c:9823:11: branch_true: ...to here
gdb-17.1/bfd/elf32-ppc.c:9823:10: branch_true: following ‘true’ branch...
gdb-17.1/bfd/elf32-ppc.c:9825:14: branch_true: ...to here
gdb-17.1/bfd/elf32-ppc.c:9825:14: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:9856:39: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:9856:39: danger: dereference of NULL ‘htab’
# 9854| sym->st_shndx
# 9855| = (_bfd_elf_section_from_bfd_section
# 9856|-> (info->output_bfd, htab->glink->output_section));
# 9857| sym->st_value = (ent->glink_offset
# 9858| + htab->glink->output_offset
Error: GCC_ANALYZER_WARNING (CWE-476):
gdb-17.1/bfd/elf32-ppc.c:9878:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-17.1/bfd/elf32-ppc.c:9864:6: branch_true: following ‘true’ branch...
gdb-17.1/bfd/elf32-ppc.c:9875:7: branch_true: ...to here
gdb-17.1/bfd/elf32-ppc.c:9875:7: branch_false: following ‘false’ branch...
gdb-17.1/bfd/elf32-ppc.c:9877:11: branch_false: ...to here
gdb-17.1/bfd/elf32-ppc.c:9877:10: branch_true: following ‘true’ branch...
gdb-17.1/bfd/elf32-ppc.c:9878:9: branch_true: ...to here
gdb-17.1/bfd/elf32-ppc.c:9878:9: danger: dereference of NULL ‘htab’
# 9876|
# 9877| if (ppc_elf_hash_entry (h)->has_sda_refs)
# 9878|-> s = htab->relsbss;
# 9879| else if (h->root.u.def.section == htab->elf.sdynrelro)
# 9880| s = htab->elf.sreldynrelro;
Error: GCC_ANALYZER_WARNING (CWE-476):
gdb-17.1/bfd/elf32-ppc.c:10014:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-17.1/bfd/elf32-ppc.c:10005:6: branch_true: following ‘true’ branch...
gdb-17.1/bfd/elf32-ppc.c:10006:10: branch_true: ...to here
gdb-17.1/bfd/elf32-ppc.c:10005:7: branch_true: following ‘true’ branch...
gdb-17.1/bfd/elf32-ppc.c:10008:11: branch_true: ...to here
gdb-17.1/bfd/elf32-ppc.c:10014:15: danger: dereference of NULL ‘htab’
#10012|
#10013| p += htab->elf.hgot->root.u.def.value;
#10014|-> if (htab->plt_type == PLT_OLD)
#10015| {
#10016| /* Add a blrl instruction at _GLOBAL_OFFSET_TABLE_-4
Error: GCC_ANALYZER_WARNING (CWE-476):
gdb-17.1/bfd/elf32-ppc.c:10084:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-17.1/bfd/elf32-ppc.c:10047:6: branch_true: following ‘true’ branch...
gdb-17.1/bfd/elf32-ppc.c:10048:10: branch_true: ...to here
gdb-17.1/bfd/elf32-ppc.c:10047:7: branch_true: following ‘true’ branch...
gdb-17.1/bfd/elf32-ppc.c:10049:10: branch_true: ...to here
gdb-17.1/bfd/elf32-ppc.c:10047:7: branch_true: following ‘true’ branch...
gdb-17.1/bfd/elf32-ppc.c:10050:10: branch_true: ...to here
gdb-17.1/bfd/elf32-ppc.c:10047:7: branch_true: following ‘true’ branch...
gdb-17.1/bfd/elf32-ppc.c:10054:35: branch_true: ...to here
gdb-17.1/bfd/elf32-ppc.c:10079:10: branch_true: following ‘true’ branch...
gdb-17.1/bfd/elf32-ppc.c:10084:17: branch_true: ...to here
gdb-17.1/bfd/elf32-ppc.c:10084:17: danger: dereference of NULL ‘htab’
#10082| bfd_byte *loc;
#10083|
#10084|-> loc = htab->srelplt2->contents;
#10085|
#10086| /* Output the @ha relocation for the first instruction. */
Error: GCC_ANALYZER_WARNING (CWE-476):
gdb-17.1/bfd/elf32-ppc.c:10129:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
#10127| }
#10128|
#10129|-> if (htab->glink != NULL
#10130| && htab->glink->contents != NULL
#10131| && htab->elf.dynamic_sections_created)