Fixed findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1]
drgn-0.3.0+50.g54fddcea/libdrgn/debug_info.c: scope_hint: In function 'drgn_debug_info_set_map_files_segments'
drgn-0.3.0+50.g54fddcea/libdrgn/debug_info.c:2113:17: warning[-Wanalyzer-null-argument]: use of NULL 'map_files_segments.vector.<U9c80>._data' where non-null expected
drgn-0.3.0+50.g54fddcea/libdrgn/debug_info.c:40: included_from: Included from here.
drgn-0.3.0+50.g54fddcea/libdrgn/log.h:59:29: note: in expansion of macro 'drgn_log'
drgn-0.3.0+50.g54fddcea/libdrgn/debug_info.c:5503:9: note: in expansion of macro 'drgn_log_debug'
drgn-0.3.0+50.g54fddcea/libdrgn/debug_info.c: scope_hint: In function 'drgn_debug_info_set_map_files_segments'
drgn-0.3.0+50.g54fddcea/libdrgn/debug_info.c: scope_hint: In function 'drgn_debug_info_set_map_files_segments'
drgn-0.3.0+50.g54fddcea/libdrgn/log.h:59:29: note: in expansion of macro 'drgn_log'
drgn-0.3.0+50.g54fddcea/libdrgn/debug_info.c:4813:9: note: in expansion of macro 'drgn_log_debug'
drgn-0.3.0+50.g54fddcea/libdrgn/dwarf_info.h:26: included_from: Included from here.
drgn-0.3.0+50.g54fddcea/libdrgn/debug_info.h:26: included_from: Included from here.
drgn-0.3.0+50.g54fddcea/libdrgn/vector.h:458:13: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.3.0+50.g54fddcea/libdrgn/debug_info.c:2059:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.3.0+50.g54fddcea/libdrgn/vector.h:603:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.3.0+50.g54fddcea/libdrgn/debug_info.c:2059:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.3.0+50.g54fddcea/libdrgn/vector.h:603:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.3.0+50.g54fddcea/libdrgn/debug_info.c:2059:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.3.0+50.g54fddcea/libdrgn/vector.h:603:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.3.0+50.g54fddcea/libdrgn/debug_info.c:2059:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.3.0+50.g54fddcea/libdrgn/vector.h:603:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.3.0+50.g54fddcea/libdrgn/debug_info.c:2059:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.3.0+50.g54fddcea/libdrgn/vector.h:603:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS'
drgn-0.3.0+50.g54fddcea/libdrgn/debug_info.c:2059:1: note: in expansion of macro 'DEFINE_VECTOR'
drgn-0.3.0+50.g54fddcea/libdrgn/debug_info.c: scope_hint: In function 'drgn_debug_info_set_map_files_segments'
drgn-0.3.0+50.g54fddcea/libdrgn/debug_info.c:19: included_from: Included from here.
/usr/include/stdlib.h:998:13: note: argument 1 of 'qsort' must be non-null
# 2111|   					    &dbinfo->num_map_files_segments);
# 2112|   	if (!segments->sorted) {
# 2113|-> 		qsort(dbinfo->map_files_segments,
# 2114|   		      dbinfo->num_map_files_segments,
# 2115|   		      sizeof(dbinfo->map_files_segments[0]),

Scan Properties

analyzer-version-clippy1.99.1
analyzer-version-cppcheck2.22.0
analyzer-version-gcc16.2.1
analyzer-version-gcc-analyzer16.2.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.99.1
diffbase-analyzer-version-cppcheck2.22.0
diffbase-analyzer-version-gcc16.2.1
diffbase-analyzer-version-gcc-analyzer16.2.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-53.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.20260813.215201.gc98a3c4.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namepython-drgn-0.3.0+51.g666444eb-1.20261110195105732606.pr670.51.g666444eb
diffbase-store-results-to/tmp/tmpyjae3zw0/python-drgn-0.3.0+51.g666444eb-1.20261110195105732606.pr670.51.g666444eb.tar.xz
diffbase-time-created2026-11-10 20:15:27
diffbase-time-finished2026-11-10 20:18:30
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '--root-override=fedora-rawhide-x86_64-451c5ee0-b8c4-43fc-b435-2e41f0d6382f' '-t' 'unicontrol,gcc,cppcheck,clippy,shellcheck' '-o' '/tmp/tmpyjae3zw0/python-drgn-0.3.0+51.g666444eb-1.20261110195105732606.pr670.51.g666444eb.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpyjae3zw0/python-drgn-0.3.0+51.g666444eb-1.20261110195105732606.pr670.51.g666444eb.src.rpm'
diffbase-tool-versioncsmock-3.8.7.20261109.142513.g0472814-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-53.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20260813.215201.gc98a3c4.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namepython-drgn-0.3.0+50.g54fddcea-1.20261110193150983064.main.50.g54fddcea
store-results-to/tmp/tmptw45z_k7/python-drgn-0.3.0+50.g54fddcea-1.20261110193150983064.main.50.g54fddcea.tar.xz
time-created2026-11-10 20:11:59
time-finished2026-11-10 20:15:06
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '--root-override=fedora-rawhide-x86_64-9c14c3b5-87f0-41ef-bf75-d1b72ffc6649' '-t' 'unicontrol,gcc,cppcheck,clippy,shellcheck' '-o' '/tmp/tmptw45z_k7/python-drgn-0.3.0+50.g54fddcea-1.20261110193150983064.main.50.g54fddcea.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmptw45z_k7/python-drgn-0.3.0+50.g54fddcea-1.20261110193150983064.main.50.g54fddcea.src.rpm'
tool-versioncsmock-3.8.7.20261109.142513.g0472814-1.el9