Newly introduced defects

List of Defects

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1]
python-drgn-0.0.27+28.g8a9c8658-build/drgn-0.0.27+28.g8a9c8658/libdrgn/symbol.c: scope_hint: In function 'drgn_symbol_index_init_from_builder'
python-drgn-0.0.27+28.g8a9c8658-build/drgn-0.0.27+28.g8a9c8658/libdrgn/symbol.c:439:57: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
python-drgn-0.0.27+28.g8a9c8658-build/drgn-0.0.27+28.g8a9c8658/libdrgn/symbol.h:15: included_from: Included from here.
python-drgn-0.0.27+28.g8a9c8658-build/drgn-0.0.27+28.g8a9c8658/libdrgn/symbol.c:11: included_from: Included from here.
python-drgn-0.0.27+28.g8a9c8658-build/drgn-0.0.27+28.g8a9c8658/libdrgn/vector.h:449:13: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
python-drgn-0.0.27+28.g8a9c8658-build/drgn-0.0.27+28.g8a9c8658/libdrgn/symbol.c:14:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS'
python-drgn-0.0.27+28.g8a9c8658-build/drgn-0.0.27+28.g8a9c8658/libdrgn/symbol.c:14:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS'
#  437|   	// static lifetimes helps avoid unnecessary copying.
#  438|   	for (size_t i = 0; i < num_syms; i++) {
#  439|-> 		size_t string_index = (size_t)symbols[i].name;
#  440|   		symbols[i].name = &names[string_index];
#  441|   		symbols[i].name_lifetime = DRGN_LIFETIME_STATIC;

Scan Properties

analyzer-version-clippy1.80.1
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.80.1
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-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-103.us-west-2.compute.internal
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namepython-drgn-0.0.27+22.g7438d362-1.20240814182006028877.main.22.g7438d362
diffbase-store-results-to/tmp/tmpyaak0p6z/python-drgn-0.0.27+22.g7438d362-1.20240814182006028877.main.22.g7438d362.tar.xz
diffbase-time-created2024-08-21 02:56:28
diffbase-time-finished2024-08-21 02:58:36
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'clippy,gcc,cppcheck,shellcheck,unicontrol' '-o' '/tmp/tmpyaak0p6z/python-drgn-0.0.27+22.g7438d362-1.20240814182006028877.main.22.g7438d362.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '/tmp/tmpyaak0p6z/python-drgn-0.0.27+22.g7438d362-1.20240814182006028877.main.22.g7438d362.src.rpm'
diffbase-tool-versioncsmock-3.6.1-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-103.us-west-2.compute.internal
mock-configfedora-rawhide-x86_64
project-namepython-drgn-0.0.27+28.g8a9c8658-1.20240821024903897087.pr388.28.g8a9c8658
store-results-to/tmp/tmpah0dzzof/python-drgn-0.0.27+28.g8a9c8658-1.20240821024903897087.pr388.28.g8a9c8658.tar.xz
time-created2024-08-21 02:58:51
time-finished2024-08-21 03:01:09
titleNewly introduced defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'clippy,gcc,cppcheck,shellcheck,unicontrol' '-o' '/tmp/tmpah0dzzof/python-drgn-0.0.27+28.g8a9c8658-1.20240821024903897087.pr388.28.g8a9c8658.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '/tmp/tmpah0dzzof/python-drgn-0.0.27+28.g8a9c8658-1.20240821024903897087.pr388.28.g8a9c8658.src.rpm'
tool-versioncsmock-3.6.1-1.el9