Newly introduced findings

List of Findings

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;

Scan Properties

analyzer-version-clippy1.97.1
analyzer-version-cppcheck2.21.1
analyzer-version-gcc16.1.1
analyzer-version-gcc-analyzer16.1.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.97.1
diffbase-analyzer-version-cppcheck2.21.1
diffbase-analyzer-version-gcc16.1.1
diffbase-analyzer-version-gcc-analyzer16.1.1
diffbase-analyzer-version-shellcheck0.11.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-117.us-west-2.compute.internal
diffbase-known-false-positives/usr/share/csmock/known-false-positives.js
diffbase-known-false-positives-rpmknown-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namebinutils-2.46-1.fc44
diffbase-store-results-to/tmp/tmpo5s7zcdv/binutils-2.46-1.fc44.tar.xz
diffbase-time-created2026-08-03 13:32:05
diffbase-time-finished2026-08-03 13:45:41
diffbase-toolcsmock
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-versioncsmock-3.8.7.HEAD-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-117.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namebinutils-2.47-1.fc45
store-results-to/tmp/tmpxhsekkw_/binutils-2.47-1.fc45.tar.xz
time-created2026-08-03 13:46:11
time-finished2026-08-03 13:59:28
titleNewly introduced findings
toolcsmock
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-versioncsmock-3.8.7.HEAD-1.el9