Newly introduced findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1]
python-drgn-0.0.27+93.gf1d53eb2-build/drgn-0.0.27+93.gf1d53eb2/libdrgn/symbol.c: scope_hint: In function 'drgn_symbol_index_init_from_builder'
python-drgn-0.0.27+93.gf1d53eb2-build/drgn-0.0.27+93.gf1d53eb2/libdrgn/symbol.c:439:57: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
python-drgn-0.0.27+93.gf1d53eb2-build/drgn-0.0.27+93.gf1d53eb2/libdrgn/symbol.h:15: included_from: Included from here.
python-drgn-0.0.27+93.gf1d53eb2-build/drgn-0.0.27+93.gf1d53eb2/libdrgn/symbol.c:11: included_from: Included from here.
python-drgn-0.0.27+93.gf1d53eb2-build/drgn-0.0.27+93.gf1d53eb2/libdrgn/vector.h:449:13: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
python-drgn-0.0.27+93.gf1d53eb2-build/drgn-0.0.27+93.gf1d53eb2/libdrgn/symbol.c:14:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS'
python-drgn-0.0.27+93.gf1d53eb2-build/drgn-0.0.27+93.gf1d53eb2/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.81.0
analyzer-version-cppcheck2.15.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer14.2.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.81.0
diffbase-analyzer-version-cppcheck2.15.0
diffbase-analyzer-version-gcc14.2.1
diffbase-analyzer-version-gcc-analyzer14.2.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-122.us-west-2.compute.internal
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namepython-drgn-0.0.27+87.g495f01dc-1.20240930073625507523.main.87.g495f01dc
diffbase-store-results-to/tmp/tmp0dn0db3r/python-drgn-0.0.27+87.g495f01dc-1.20240930073625507523.main.87.g495f01dc.tar.xz
diffbase-time-created2024-09-30 23:42:00
diffbase-time-finished2024-09-30 23:44:09
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,gcc,shellcheck,cppcheck,clippy' '-o' '/tmp/tmp0dn0db3r/python-drgn-0.0.27+87.g495f01dc-1.20240930073625507523.main.87.g495f01dc.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '/tmp/tmp0dn0db3r/python-drgn-0.0.27+87.g495f01dc-1.20240930073625507523.main.87.g495f01dc.src.rpm'
diffbase-tool-versioncsmock-3.7.0-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-122.us-west-2.compute.internal
mock-configfedora-rawhide-x86_64
project-namepython-drgn-0.0.27+93.gf1d53eb2-1.20240930233118455376.pr388.93.gf1d53eb2
store-results-to/tmp/tmp_dj7ac56/python-drgn-0.0.27+93.gf1d53eb2-1.20240930233118455376.pr388.93.gf1d53eb2.tar.xz
time-created2024-09-30 23:44:23
time-finished2024-09-30 23:46:10
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,gcc,shellcheck,cppcheck,clippy' '-o' '/tmp/tmp_dj7ac56/python-drgn-0.0.27+93.gf1d53eb2-1.20240930233118455376.pr388.93.gf1d53eb2.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '/tmp/tmp_dj7ac56/python-drgn-0.0.27+93.gf1d53eb2-1.20240930233118455376.pr388.93.gf1d53eb2.src.rpm'
tool-versioncsmock-3.7.0-1.el9