Task #90905 - added.err
back to task #90905download
Error: GCC_ANALYZER_WARNING (CWE-404):
gdb-16.3/bfd/elf32-ppc.c:1283:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
gdb-16.3/bfd/elf32-ppc.c:1280:9: acquire_resource: ‘va_start’ called here
gdb-16.3/bfd/elf32-ppc.c:1283:9: throw: if the called function throws an exception...
gdb-16.3/bfd/elf32-ppc.c:1283:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
# 1281| memset (data, 0, 72);
# 1282| pid = va_arg (ap, long);
# 1283|-> bfd_put_32 (abfd, pid, data + 24);
# 1284| cursig = va_arg (ap, int);
# 1285| bfd_put_16 (abfd, cursig, data + 12);
Error: GCC_ANALYZER_WARNING (CWE-404):
gdb-16.3/bfd/elf32-ppc.c:1285:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
gdb-16.3/bfd/elf32-ppc.c:1280:9: acquire_resource: ‘va_start’ called here
gdb-16.3/bfd/elf32-ppc.c:1285:9: throw: if the called function throws an exception...
gdb-16.3/bfd/elf32-ppc.c:1285:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
# 1283| bfd_put_32 (abfd, pid, data + 24);
# 1284| cursig = va_arg (ap, int);
# 1285|-> bfd_put_16 (abfd, cursig, data + 12);
# 1286| greg = va_arg (ap, const void *);
# 1287| memcpy (data + 72, greg, 192);
Error: GCC_ANALYZER_WARNING (CWE-476):
gdb-16.3/bfd/elf32-ppc.c:2386:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
# 2384| | SEC_IN_MEMORY | SEC_LINKER_CREATED);
# 2385| s = bfd_make_section_anyway_with_flags (abfd, ".glink", flags);
# 2386|-> htab->glink = s;
# 2387| p2align = htab->params->ppc476_workaround ? 6 : 4;
# 2388| if (p2align < htab->params->plt_stub_align)
Error: GCC_ANALYZER_WARNING (CWE-476):
gdb-16.3/bfd/elf32-ppc.c:2471:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elf32-ppc.c:2468:6: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:2471:7: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:2471:7: danger: dereference of NULL ‘htab’
# 2469| return false;
# 2470|
# 2471|-> if (htab->glink == NULL
# 2472| && !ppc_elf_create_glink (abfd, info))
# 2473| return false;
Error: GCC_ANALYZER_WARNING (CWE-476):
gdb-16.3/bfd/elf32-ppc.c:2630:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elf32-ppc.c:2620:7: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:2620:7: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:2629:14: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:2630:11: danger: dereference of NULL ‘htab’
# 2628|
# 2629| htab = ppc_elf_hash_table (info);
# 2630|-> if (htab->sbss == NULL)
# 2631| {
# 2632| flagword flags = SEC_IS_COMMON | SEC_SMALL_DATA | SEC_LINKER_CREATED;
Error: GCC_ANALYZER_WARNING (CWE-476):
gdb-16.3/bfd/elf32-ppc.c:2906:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elf32-ppc.c:2878:1: enter_function: entry to ‘ppc_elf_check_relocs’
gdb-16.3/bfd/elf32-ppc.c:2891:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:2899:3: call_function: inlined call to ‘bfd_get_flavour’ from ‘ppc_elf_check_relocs’
gdb-16.3/bfd/elf32-ppc.c:2906:7: danger: dereference of NULL ‘htab’
# 2904|
# 2905| htab = ppc_elf_hash_table (info);
# 2906|-> if (htab->glink == NULL)
# 2907| {
# 2908| if (htab->elf.dynobj == NULL)
Error: GCC_ANALYZER_WARNING (CWE-476):
gdb-16.3/bfd/elf32-ppc.c:2976:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘isym’
gdb-16.3/bfd/elf32-ppc.c:2878:1: enter_function: entry to ‘ppc_elf_check_relocs’
gdb-16.3/bfd/elf32-ppc.c:2891:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:2899:3: call_function: inlined call to ‘bfd_get_flavour’ from ‘ppc_elf_check_relocs’
gdb-16.3/bfd/elf32-ppc.c:2905:10: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:2905:10: call_function: inlined call to ‘elf_hash_table_id’ from ‘ppc_elf_check_relocs’
gdb-16.3/bfd/elf32-ppc.c:2905:10: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:2906:7: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:2906:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:2913:9: call_function: inlined call to ‘elf_link_hash_lookup’ from ‘ppc_elf_check_relocs’
gdb-16.3/bfd/elf32-ppc.c:2921:22: branch_true: following ‘true’ branch (when ‘rel < rel_end’)...
gdb-16.3/bfd/elf32-ppc.c:2932:18: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:2933:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:2942:26: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:3008:10: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:3009:14: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:3008:11: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:3010:14: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:3008:11: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:3013:14: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:3013:14: branch_false: following ‘false’ branch (when ‘rel == relocs’)...
gdb-16.3/bfd/elf32-ppc.c:3021:13: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:2921:22: branch_true: following ‘true’ branch (when ‘rel < rel_end’)...
gdb-16.3/bfd/elf32-ppc.c:2932:18: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:2933:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:2942:26: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:2966:10: branch_false: following ‘false’ branch (when ‘h’ is NULL)...
gdb-16.3/bfd/elf32-ppc.c:2974:16: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:2974:15: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:2976:15: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:2976:15: danger: dereference of NULL ‘isym’
# 2974| else if (htab->elf.target_os != is_vxworks)
# 2975| {
# 2976|-> if (ELF_ST_TYPE (isym->st_info) == STT_GNU_IFUNC)
# 2977| {
# 2978| /* Set PLT_IFUNC flag for this sym, no GOT entry yet. */
Error: GCC_ANALYZER_WARNING (CWE-476):
gdb-16.3/bfd/elf32-ppc.c:3969:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
# 3967| htab = ppc_elf_hash_table (info);
# 3968|
# 3969|-> if (htab->plt_type == PLT_UNSET)
# 3970| {
# 3971| struct elf_link_hash_entry *h;
Error: GCC_ANALYZER_WARNING (CWE-476):
gdb-16.3/bfd/elf32-ppc.c:4281:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘tls_maskp’
gdb-16.3/bfd/elf32-ppc.c:4171:1: enter_function: entry to ‘ppc_elf_inline_plt’
gdb-16.3/bfd/elf32-ppc.c:4178:10: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:4178:10: call_function: inlined call to ‘elf_hash_table_id’ from ‘ppc_elf_inline_plt’
gdb-16.3/bfd/elf32-ppc.c:4178:10: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:4188:14: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:4200:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4219:8: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4219:33: branch_true: following ‘true’ branch (when ‘ibfd’ is non-NULL)...
gdb-16.3/bfd/elf32-ppc.c:4224:12: call_function: inlined call to ‘bfd_get_flavour’ from ‘ppc_elf_inline_plt’
gdb-16.3/bfd/elf32-ppc.c:4239:16: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4242:33: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4257:22: call_function: calling ‘get_sym_h’ from ‘ppc_elf_inline_plt’
gdb-16.3/bfd/elf32-ppc.c:4257:22: return_function: returning to ‘ppc_elf_inline_plt’ from ‘get_sym_h’
gdb-16.3/bfd/elf32-ppc.c:4257:20: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:4267:21: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:4270:24: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4273:31: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4281:23: release_memory: ‘tls_maskp’ is NULL
gdb-16.3/bfd/elf32-ppc.c:4281:23: danger: dereference of NULL ‘tls_maskp’
# 4279| + sec->output_section->vma);
# 4280| if (to - from + limit < 2 * limit)
# 4281|-> *tls_maskp &= ~PLT_KEEP;
# 4282| }
# 4283| }
Error: GCC_ANALYZER_WARNING (CWE-476):
gdb-16.3/bfd/elf32-ppc.c:4310:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
# 4308|
# 4309| htab = ppc_elf_hash_table (info);
# 4310|-> htab->tls_get_addr = elf_link_hash_lookup (&htab->elf, "__tls_get_addr",
# 4311| false, false, true);
# 4312| if (htab->plt_type != PLT_NEW)
Error: GCC_ANALYZER_WARNING (CWE-476):
gdb-16.3/bfd/elf32-ppc.c:4860:41: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elf32-ppc.c:4774:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4776:7: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4774:7: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4847:5: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4852:6: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:4852:6: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:4855:7: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4856:31: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4858:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4859:41: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4858:11: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4860:41: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4860:41: danger: dereference of NULL ‘htab’
# 4858| if (def->root.u.def.section == htab->elf.sdynbss
# 4859| || def->root.u.def.section == htab->elf.sdynrelro
# 4860|-> || def->root.u.def.section == htab->dynsbss)
# 4861| h->dyn_relocs = NULL;
# 4862| return true;
Error: GCC_ANALYZER_WARNING (CWE-476):
gdb-16.3/bfd/elf32-ppc.c:4895:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elf32-ppc.c:4774:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4776:7: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4774:7: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4847:5: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4852:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4872:7: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4872:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4872:6: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4880:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4890:7: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4890:6: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:4893:11: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:4892:10: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:4894:11: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:4892:11: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:4895:14: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:4895:14: danger: dereference of NULL ‘htab’
# 4893| && ppc_elf_hash_entry (h)->has_addr16_ha
# 4894| && ppc_elf_hash_entry (h)->has_addr16_lo
# 4895|-> && htab->params->pic_fixup == 0
# 4896| && info->disable_target_specific_optimizations <= 1)
# 4897| htab->params->pic_fixup = 1;
Error: GCC_ANALYZER_WARNING (CWE-476):
gdb-16.3/bfd/elf32-ppc.c:4931:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elf32-ppc.c:4774:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4776:7: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4774:7: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4847:5: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4852:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4872:7: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4872:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4872:6: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4880:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4890:7: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4890:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4902:7: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4902:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4912:10: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4930:6: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:4931:5: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:4931:5: danger: dereference of NULL ‘htab’
# 4929| must instead allocate it in .sbss. */
# 4930| if (ppc_elf_hash_entry (h)->has_sda_refs)
# 4931|-> s = htab->dynsbss;
# 4932| else if ((h->root.u.def.section->flags & SEC_READONLY) != 0)
# 4933| s = htab->elf.sdynrelro;
Error: GCC_ANALYZER_WARNING (CWE-476):
gdb-16.3/bfd/elf32-ppc.c:4946:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elf32-ppc.c:4774:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4776:7: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4774:7: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4847:5: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4852:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4872:7: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4872:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4872:6: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4880:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4890:7: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4890:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4902:7: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4902:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4912:10: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4930:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4932:13: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4936:3: branch_false: following ‘false’ branch (when ‘s’ is non-NULL)...
gdb-16.3/bfd/elf32-ppc.c:4938:8: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4938:6: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:4945:10: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:4946:9: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:4946:9: danger: dereference of NULL ‘htab’
# 4944| and into the runtime process image. */
# 4945| if (ppc_elf_hash_entry (h)->has_sda_refs)
# 4946|-> srel = htab->relsbss;
# 4947| else if ((h->root.u.def.section->flags & SEC_READONLY) != 0)
# 4948| srel = htab->elf.sreldynrelro;
Error: GCC_ANALYZER_WARNING (CWE-476):
gdb-16.3/bfd/elf32-ppc.c:5002:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elf32-ppc.c:4989:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4991:37: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4997:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:4999:7: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:4999:6: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:5001:7: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:5002:32: danger: dereference of NULL ‘htab’
# 5000| {
# 5001| sh->root.type = bfd_link_hash_defined;
# 5002|-> sh->root.u.def.section = htab->glink;
# 5003| sh->root.u.def.value = ent->glink_offset;
# 5004| sh->ref_regular = 1;
Error: GCC_ANALYZER_WARNING (CWE-476):
gdb-16.3/bfd/elf32-ppc.c:5023:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elf32-ppc.c:5107:1: enter_function: entry to ‘allocate_dynrelocs’
gdb-16.3/bfd/elf32-ppc.c:5114:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:5117:10: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:5119:6: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:5128:12: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:5128:10: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:5131:47: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:5146:10: branch_false: following ‘false’ branch (when ‘need != 0’)...
gdb-16.3/bfd/elf32-ppc.c:5150:32: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:5150:32: call_function: calling ‘allocate_got’ from ‘allocate_dynrelocs’
# 5021| unsigned int max_before_header;
# 5022|
# 5023|-> if (htab->plt_type == PLT_VXWORKS)
# 5024| {
# 5025| where = htab->elf.sgot->size;
Error: GCC_ANALYZER_WARNING (CWE-476):
gdb-16.3/bfd/elf32-ppc.c:5125:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elf32-ppc.c:5114:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:5117:10: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:5119:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:5121:14: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:5119:7: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:5122:11: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:5120:11: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:5123:11: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:5120:11: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:5124:11: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:5120:11: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:5125:14: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:5125:14: danger: dereference of NULL ‘htab’
# 5123| && eh->has_addr16_ha
# 5124| && eh->has_addr16_lo
# 5125|-> && htab->params->pic_fixup > 0))
# 5126| {
# 5127| /* Make sure this symbol is output as a dynamic symbol. */
Error: GCC_ANALYZER_WARNING (CWE-476):
gdb-16.3/bfd/elf32-ppc.c:5255:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elf32-ppc.c:5114:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:5117:10: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:5189:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:5197:12: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:5197:11: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:5245:12: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:5245:11: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:5251:15: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:5245:11: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:5253:16: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:5252:16: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:5254:16: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:5252:16: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:5255:19: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:5255:19: danger: dereference of NULL ‘htab’
# 5253| && eh->has_addr16_ha
# 5254| && eh->has_addr16_lo
# 5255|-> && htab->params->pic_fixup > 0))
# 5256| {
# 5257| /* Make sure this symbol is output as a dynamic symbol. */
Error: GCC_ANALYZER_WARNING (CWE-476):
gdb-16.3/bfd/elf32-ppc.c:5508:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elf32-ppc.c:5493:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:5496:7: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:5508:7: danger: dereference of NULL ‘htab’
# 5506| }
# 5507|
# 5508|-> if (htab->plt_type == PLT_OLD)
# 5509| htab->got_header_size = 16;
# 5510| else if (htab->plt_type == PLT_NEW)
Error: GCC_ANALYZER_WARNING (CWE-476):
gdb-16.3/bfd/elf32-ppc.c:6728:8: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
gdb-16.3/bfd/elf32-ppc.c:6724:3: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:6724:3: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:6728:8: danger: dereference of NULL ‘<unknown>’
# 6726| /* Offset will always be a multiple of four, so use the bottom bit
# 6727| as a "written" flag. */
# 6728|-> if ((linker_section_ptr->offset & 1) == 0)
# 6729| {
# 6730| bfd_put_32 (lsect->section->owner,
Error: GCC_ANALYZER_WARNING (CWE-476):
gdb-16.3/bfd/elf32-ppc.c:6762:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elf32-ppc.c:6762:28: branch_true: following ‘true’ branch (when ‘h’ is non-NULL)...
gdb-16.3/bfd/elf32-ppc.c:6762:28: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:6762:28: danger: dereference of NULL ‘htab’
# 6760| bfd *output_bfd = info->output_bfd;
# 6761| bfd_vma plt;
# 6762|-> unsigned char *end = p + GLINK_ENTRY_SIZE (htab, h);
# 6763|
# 6764| if (h != NULL
Error: GCC_ANALYZER_WARNING (CWE-476):
gdb-16.3/bfd/elf32-ppc.c:9183:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elf32-ppc.c:7022:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:7043:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:7046:21: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:9147:6: branch_false: following ‘false’ branch (when ‘rel == wrel’)...
gdb-16.3/bfd/elf32-ppc.c:9173:7: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:9183:7: danger: dereference of NULL ‘htab’
# 9181| }
# 9182|
# 9183|-> if (htab->params->ppc476_workaround
# 9184| && input_section->sec_info_type == SEC_INFO_TYPE_TARGET
# 9185| && (!bfd_link_relocatable (info)
Error: GCC_ANALYZER_WARNING (CWE-476):
gdb-16.3/bfd/elf32-ppc.c:9192:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘relax_info’
gdb-16.3/bfd/elf32-ppc.c:6990:1: enter_function: entry to ‘ppc_elf_relocate_section’
gdb-16.3/bfd/elf32-ppc.c:7022:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:7034:10: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:7034:10: call_function: inlined call to ‘elf_hash_table_id’ from ‘ppc_elf_relocate_section’
gdb-16.3/bfd/elf32-ppc.c:7034:10: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:7035:23: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:7043:6: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:7046:21: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:7047:10: branch_true: following ‘true’ branch (when ‘rel < relend’)...
gdb-16.3/bfd/elf32-ppc.c:7047:10: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:7075:10: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:7077:28: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:7095:10: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:7114:14: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:7115:19: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:7114:15: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:7116:13: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:7047:10: branch_false: following ‘false’ branch (when ‘rel >= relend’)...
gdb-16.3/bfd/elf32-ppc.c:9147:6: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:9147:6: branch_true: following ‘true’ branch (when ‘rel != wrel’)...
gdb-16.3/bfd/elf32-ppc.c:9150:28: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:9154:10: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:9164:17: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:9183:6: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:9184:10: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:9183:7: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:9185:11: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:9192:11: danger: dereference of NULL ‘relax_info’
# 9190| bfd_vma pagesize = (bfd_vma) 1 << htab->params->pagesize_p2;
# 9191|
# 9192|-> if (relax_info->workaround_size != 0)
# 9193| {
# 9194| bfd_byte *p;
Error: GCC_ANALYZER_WARNING (CWE-476):
gdb-16.3/bfd/elf32-ppc.c:9492:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elf32-ppc.c:9471:1: enter_function: entry to ‘write_global_sym_plt’
gdb-16.3/bfd/elf32-ppc.c:9479:28: branch_true: following ‘true’ branch (when ‘ent’ is non-NULL)...
gdb-16.3/bfd/elf32-ppc.c:9480:9: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:9480:8: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:9482:21: call_function: inlined call to ‘use_local_plt’ from ‘write_global_sym_plt’
gdb-16.3/bfd/elf32-ppc.c:9484:12: branch_false: following ‘false’ branch (when ‘doneone == 0’)...
gdb-16.3/bfd/elf32-ppc.c:9489:23: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:9492:17: danger: dereference of NULL ‘htab’
# 9490| asection *relplt = htab->elf.srelplt;
# 9491|
# 9492|-> if (htab->plt_type == PLT_NEW || !dyn)
# 9493| reloc_index = ent->plt.offset / 4;
# 9494| else
Error: GCC_ANALYZER_WARNING (CWE-476):
gdb-16.3/bfd/elf32-ppc.c:9888:39: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elf32-ppc.c:9852:7: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:9854:30: branch_true: following ‘true’ branch (when ‘ent’ is non-NULL)...
gdb-16.3/bfd/elf32-ppc.c:9855:11: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:9855:10: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:9857:14: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:9857:14: branch_false: following ‘false’ branch...
gdb-16.3/bfd/elf32-ppc.c:9888:39: branch_false: ...to here
gdb-16.3/bfd/elf32-ppc.c:9888:39: danger: dereference of NULL ‘htab’
# 9886| sym->st_shndx
# 9887| = (_bfd_elf_section_from_bfd_section
# 9888|-> (info->output_bfd, htab->glink->output_section));
# 9889| sym->st_value = (ent->glink_offset
# 9890| + htab->glink->output_offset
Error: GCC_ANALYZER_WARNING (CWE-476):
gdb-16.3/bfd/elf32-ppc.c:9910:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elf32-ppc.c:9896:6: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:9907:7: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:9909:10: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:9910:9: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:9910:9: danger: dereference of NULL ‘htab’
# 9908|
# 9909| if (ppc_elf_hash_entry (h)->has_sda_refs)
# 9910|-> s = htab->relsbss;
# 9911| else if (h->root.u.def.section == htab->elf.sdynrelro)
# 9912| s = htab->elf.sreldynrelro;
Error: GCC_ANALYZER_WARNING (CWE-476):
gdb-16.3/bfd/elf32-ppc.c:10046:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elf32-ppc.c:10037:6: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:10038:10: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:10037:7: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:10040:11: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:10046:15: danger: dereference of NULL ‘htab’
#10044|
#10045| p += htab->elf.hgot->root.u.def.value;
#10046|-> if (htab->plt_type == PLT_OLD)
#10047| {
#10048| /* Add a blrl instruction at _GLOBAL_OFFSET_TABLE_-4
Error: GCC_ANALYZER_WARNING (CWE-476):
gdb-16.3/bfd/elf32-ppc.c:10116:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
gdb-16.3/bfd/elf32-ppc.c:10079:6: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:10080:10: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:10079:7: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:10081:10: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:10079:7: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:10082:10: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:10079:7: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:10086:35: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:10111:10: branch_true: following ‘true’ branch...
gdb-16.3/bfd/elf32-ppc.c:10116:17: branch_true: ...to here
gdb-16.3/bfd/elf32-ppc.c:10116:17: danger: dereference of NULL ‘htab’
#10114| bfd_byte *loc;
#10115|
#10116|-> loc = htab->srelplt2->contents;
#10117|
#10118| /* Output the @ha relocation for the first instruction. */
Error: GCC_ANALYZER_WARNING (CWE-476):
gdb-16.3/bfd/elf32-ppc.c:10161:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’
#10159| }
#10160|
#10161|-> if (htab->glink != NULL
#10162| && htab->glink->contents != NULL
#10163| && htab->elf.dynamic_sections_created)