Error: GCC_ANALYZER_WARNING (CWE-476): [#def1] binutils-2.47/bfd/elf32-i386.c:3796:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ binutils-2.47/bfd/elf32-i386.c:3654:20: branch_false: following ‘false’ branch... binutils-2.47/bfd/elf32-i386.c:3654:20: branch_false: ...to here binutils-2.47/bfd/elf32-i386.c:3657:6: branch_false: following ‘false’ branch... binutils-2.47/bfd/elf32-i386.c:3663:21: branch_false: ...to here binutils-2.47/bfd/elf32-i386.c:3665:6: branch_true: following ‘true’ branch... binutils-2.47/bfd/elf32-i386.c:3675:11: branch_true: ...to here binutils-2.47/bfd/elf32-i386.c:3675:10: branch_false: following ‘false’ branch... binutils-2.47/bfd/elf32-i386.c:3683:11: branch_false: ...to here binutils-2.47/bfd/elf32-i386.c:3688:7: branch_false: following ‘false’ branch... binutils-2.47/bfd/elf32-i386.c:3701:10: branch_false: following ‘false’ branch... binutils-2.47/bfd/elf32-i386.c:3709:24: branch_false: ...to here binutils-2.47/bfd/elf32-i386.c:3718:10: branch_false: following ‘false’ branch... binutils-2.47/bfd/elf32-i386.c:3734:11: branch_false: ...to here binutils-2.47/bfd/elf32-i386.c:3793:10: branch_false: following ‘false’ branch... binutils-2.47/bfd/elf32-i386.c:3795:15: branch_false: ...to here binutils-2.47/bfd/elf32-i386.c:3795:14: branch_true: following ‘true’ branch... binutils-2.47/bfd/elf32-i386.c:3796:13: branch_true: ...to here binutils-2.47/bfd/elf32-i386.c:3796:13: danger: dereference of NULL ‘htab’ # 3794| { # 3795| if (htab->plt.has_plt0) # 3796|-> bfd_put_32 (info->output_bfd, # 3797| (plt->output_section->vma # 3798| + plt->output_offset Error: GCC_ANALYZER_WARNING (CWE-476): [#def2] binutils-2.47/bfd/elf64-x86-64.c:5263:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ binutils-2.47/bfd/elf64-x86-64.c:5155:20: branch_false: following ‘false’ branch... binutils-2.47/bfd/elf64-x86-64.c:5155:20: branch_false: ...to here binutils-2.47/bfd/elf64-x86-64.c:5158:6: branch_false: following ‘false’ branch... binutils-2.47/bfd/elf64-x86-64.c:5164:21: branch_false: ...to here binutils-2.47/bfd/elf64-x86-64.c:5166:6: branch_true: following ‘true’ branch... binutils-2.47/bfd/elf64-x86-64.c:5178:11: branch_true: ...to here binutils-2.47/bfd/elf64-x86-64.c:5178:10: branch_false: following ‘false’ branch... binutils-2.47/bfd/elf64-x86-64.c:5186:11: branch_false: ...to here binutils-2.47/bfd/elf64-x86-64.c:5191:7: branch_false: following ‘false’ branch... binutils-2.47/bfd/elf64-x86-64.c:5204:10: branch_false: following ‘false’ branch... binutils-2.47/bfd/elf64-x86-64.c:5212:40: branch_false: ...to here binutils-2.47/bfd/elf64-x86-64.c:5219:10: branch_false: following ‘false’ branch... binutils-2.47/bfd/elf64-x86-64.c:5231:11: branch_false: ...to here binutils-2.47/bfd/elf64-x86-64.c:5247:10: branch_false: following ‘false’ branch... binutils-2.47/bfd/elf64-x86-64.c:5252:7: branch_false: ...to here binutils-2.47/bfd/elf64-x86-64.c:5260:10: branch_false: following ‘false’ branch... binutils-2.47/bfd/elf64-x86-64.c:5262:15: branch_false: ...to here binutils-2.47/bfd/elf64-x86-64.c:5262:14: branch_true: following ‘true’ branch... binutils-2.47/bfd/elf64-x86-64.c:5263:13: branch_true: ...to here binutils-2.47/bfd/elf64-x86-64.c:5263:13: danger: dereference of NULL ‘htab’ # 5261| { # 5262| if (htab->plt.has_plt0) # 5263|-> bfd_put_64 (info->output_bfd, (plt->output_section->vma # 5264| + plt->output_offset # 5265| + h->plt.offset Error: GCC_ANALYZER_WARNING (CWE-476): [#def3] binutils-2.47/bfd/elfxx-x86.c:1994:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ # 1992| case SFRAME_PLT: # 1993| ectx = &htab->plt_cfe_ctx; # 1994|-> sec = htab->plt_sframe; # 1995| break; # 1996| case SFRAME_PLT_SEC: Error: GCC_ANALYZER_WARNING (CWE-476): [#def4] binutils-2.47/bfd/elfxx-x86.c:1998:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ # 1996| case SFRAME_PLT_SEC: # 1997| ectx = &htab->plt_second_cfe_ctx; # 1998|-> sec = htab->plt_second_sframe; # 1999| break; # 2000| case SFRAME_PLT_GOT: Error: GCC_ANALYZER_WARNING (CWE-476): [#def5] binutils-2.47/bfd/elfxx-x86.c:2002:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘htab’ # 2000| case SFRAME_PLT_GOT: # 2001| ectx = &htab->plt_got_cfe_ctx; # 2002|-> sec = htab->plt_got_sframe; # 2003| break; # 2004| default: Error: CPPCHECK_WARNING (CWE-562): [#def6] binutils-2.47/libiberty/simple-object.c:316: error[returnDanglingLifetime]: Returning pointer to local variable 'newname' that will be invalid when returning. # 314| aeabi attributes are present in this section. */ # 315| else if (strcmp (name, ".ARM.attributes") == 0) # 316|-> return strcpy (newname, name); # 317| free (newname); # 318| return NULL;
| analyzer-version-clippy | 1.97.1 |
| analyzer-version-cppcheck | 2.21.1 |
| analyzer-version-gcc | 16.1.1 |
| analyzer-version-gcc-analyzer | 16.1.1 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| diffbase-analyzer-version-clippy | 1.97.1 |
| diffbase-analyzer-version-cppcheck | 2.21.1 |
| diffbase-analyzer-version-gcc | 16.1.1 |
| diffbase-analyzer-version-gcc-analyzer | 16.1.1 |
| diffbase-analyzer-version-shellcheck | 0.11.0 |
| diffbase-analyzer-version-unicontrol | 0.0.2 |
| diffbase-enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| diffbase-exit-code | 0 |
| diffbase-host | ip-172-16-1-117.us-west-2.compute.internal |
| diffbase-known-false-positives | /usr/share/csmock/known-false-positives.js |
| diffbase-known-false-positives-rpm | known-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch |
| diffbase-mock-config | fedora-rawhide-x86_64 |
| diffbase-project-name | binutils-2.46-1.fc44 |
| diffbase-store-results-to | /tmp/tmpo5s7zcdv/binutils-2.46-1.fc44.tar.xz |
| diffbase-time-created | 2026-08-03 13:32:05 |
| diffbase-time-finished | 2026-08-03 13:45:41 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpo5s7zcdv/binutils-2.46-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpo5s7zcdv/binutils-2.46-1.fc44.src.rpm' |
| diffbase-tool-version | csmock-3.8.7.HEAD-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-117.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | binutils-2.47-1.fc45 |
| store-results-to | /tmp/tmpxhsekkw_/binutils-2.47-1.fc45.tar.xz |
| time-created | 2026-08-03 13:46:11 |
| time-finished | 2026-08-03 13:59:28 |
| title | Newly introduced findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpxhsekkw_/binutils-2.47-1.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpxhsekkw_/binutils-2.47-1.fc45.src.rpm' |
| tool-version | csmock-3.8.7.HEAD-1.el9 |