Newly introduced defects

List of Defects

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1]
gnupg2-2.4.5-build/gnupg-2.4.5/g10/export.c: scope_hint: In function ‘print_dane_records’
gnupg2-2.4.5-build/gnupg-2.4.5/g10/export.c:1754:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘domain’
gnupg2-2.4.5-build/gnupg-2.4.5/g10/main.h:25: included_from: Included from here.
gnupg2-2.4.5-build/gnupg-2.4.5/g10/options.h:27: included_from: Included from here.
gnupg2-2.4.5-build/gnupg-2.4.5/g10/export.c:30: included_from: Included from here.
gnupg2-2.4.5-build/gnupg-2.4.5/g10/export.c:2273:14: note: in expansion of macro ‘xcalloc’
# 1752|   
# 1753|         domain = strchr (mbox, '@');
# 1754|->       *domain++ = 0;
# 1755|   
# 1756|         if (1)

Error: COMPILER_WARNING (CWE-704): [#def2]
gnupg2-2.4.5-build/gnupg-2.4.5/tools/gpg-card.c: scope_hint: In function ‘main’
gnupg2-2.4.5-build/gnupg-2.4.5/tools/gpg-card.c:318:21: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  316|     /* Set defaults for non given options.  */
#  317|     if (!opt.gpg_program)
#  318|->     opt.gpg_program = gnupg_module_name (GNUPG_MODULE_NAME_GPG);
#  319|     if (!opt.gpgsm_program)
#  320|       opt.gpgsm_program = gnupg_module_name (GNUPG_MODULE_NAME_GPGSM);

Error: COMPILER_WARNING (CWE-704): [#def3]
gnupg2-2.4.5-build/gnupg-2.4.5/tools/gpg-card.c:320:23: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  318|       opt.gpg_program = gnupg_module_name (GNUPG_MODULE_NAME_GPG);
#  319|     if (!opt.gpgsm_program)
#  320|->     opt.gpgsm_program = gnupg_module_name (GNUPG_MODULE_NAME_GPGSM);
#  321|   
#  322|     /* Now build the list of commands.  We guess the size of the array

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-clang18.1.7
diffbase-analyzer-version-cppcheck2.14.2
diffbase-analyzer-version-gcc14.1.1
diffbase-analyzer-version-gcc-analyzer14.1.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-enabled-pluginsclang, cppcheck, gcc, shellcheck
diffbase-exit-code0
diffbase-hostip-172-16-1-74.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-namegnupg2-2.4.4-1.fc40
diffbase-store-results-to/tmp/tmpsd_xfioj/gnupg2-2.4.4-1.fc40.tar.xz
diffbase-time-created2024-07-03 12:56:29
diffbase-time-finished2024-07-03 13:04:00
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpsd_xfioj/gnupg2-2.4.4-1.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpsd_xfioj/gnupg2-2.4.4-1.fc40.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-74.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namegnupg2-2.4.5-1.fc41
store-results-to/tmp/tmpssrbg1jv/gnupg2-2.4.5-1.fc41.tar.xz
time-created2024-07-03 13:04:23
time-finished2024-07-03 13:11:36
titleNewly introduced defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpssrbg1jv/gnupg2-2.4.5-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpssrbg1jv/gnupg2-2.4.5-1.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9