Error: GCC_ANALYZER_WARNING (CWE-688): [#def1] drgn-0.3.0+4.ge7c27769/libdrgn/debug_info.c: scope_hint: In function 'drgn_debug_info_set_map_files_segments' drgn-0.3.0+4.ge7c27769/libdrgn/debug_info.c:2113:17: warning[-Wanalyzer-null-argument]: use of NULL 'map_files_segments.vector.<U8be0>._data' where non-null expected drgn-0.3.0+4.ge7c27769/libdrgn/debug_info.c:40: included_from: Included from here. drgn-0.3.0+4.ge7c27769/libdrgn/log.h:59:29: note: in expansion of macro 'drgn_log' drgn-0.3.0+4.ge7c27769/libdrgn/debug_info.c:5503:9: note: in expansion of macro 'drgn_log_debug' drgn-0.3.0+4.ge7c27769/libdrgn/debug_info.c: scope_hint: In function 'drgn_debug_info_set_map_files_segments' drgn-0.3.0+4.ge7c27769/libdrgn/debug_info.c: scope_hint: In function 'drgn_debug_info_set_map_files_segments' drgn-0.3.0+4.ge7c27769/libdrgn/log.h:59:29: note: in expansion of macro 'drgn_log' drgn-0.3.0+4.ge7c27769/libdrgn/debug_info.c:4813:9: note: in expansion of macro 'drgn_log_debug' drgn-0.3.0+4.ge7c27769/libdrgn/dwarf_info.h:26: included_from: Included from here. drgn-0.3.0+4.ge7c27769/libdrgn/debug_info.h:26: included_from: Included from here. drgn-0.3.0+4.ge7c27769/libdrgn/vector.h:458:13: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.3.0+4.ge7c27769/libdrgn/debug_info.c:2059:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.3.0+4.ge7c27769/libdrgn/vector.h:603:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.3.0+4.ge7c27769/libdrgn/debug_info.c:2059:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.3.0+4.ge7c27769/libdrgn/vector.h:603:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.3.0+4.ge7c27769/libdrgn/debug_info.c:2059:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.3.0+4.ge7c27769/libdrgn/vector.h:603:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.3.0+4.ge7c27769/libdrgn/debug_info.c:2059:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.3.0+4.ge7c27769/libdrgn/vector.h:603:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.3.0+4.ge7c27769/libdrgn/debug_info.c:2059:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.3.0+4.ge7c27769/libdrgn/vector.h:603:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' drgn-0.3.0+4.ge7c27769/libdrgn/debug_info.c:2059:1: note: in expansion of macro 'DEFINE_VECTOR' drgn-0.3.0+4.ge7c27769/libdrgn/debug_info.c: scope_hint: In function 'drgn_debug_info_set_map_files_segments' drgn-0.3.0+4.ge7c27769/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]),
| analyzer-version-clippy | 1.99.1 |
| analyzer-version-cppcheck | 2.22.0 |
| analyzer-version-gcc | 16.2.1 |
| analyzer-version-gcc-analyzer | 16.2.1 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| diffbase-analyzer-version-clippy | 1.99.1 |
| diffbase-analyzer-version-cppcheck | 2.22.0 |
| diffbase-analyzer-version-gcc | 16.2.1 |
| diffbase-analyzer-version-gcc-analyzer | 16.2.1 |
| diffbase-analyzer-version-shellcheck | 0.11.0 |
| diffbase-analyzer-version-unicontrol | 0.0.2 |
| diffbase-enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| diffbase-exit-code | 0 |
| diffbase-host | ip-172-16-1-64.us-west-2.compute.internal |
| diffbase-known-false-positives | /usr/share/csmock/known-false-positives.js |
| diffbase-known-false-positives-rpm | known-false-positives-0.0.0.20260813.215201.gc98a3c4.main-1.el9.noarch |
| diffbase-mock-config | fedora-rawhide-x86_64 |
| diffbase-project-name | python-drgn-0.3.0+6.g55d239f3-1.20261021010145098376.pr652.6.g55d239f3 |
| diffbase-store-results-to | /tmp/tmpv8cg8rtn/python-drgn-0.3.0+6.g55d239f3-1.20261021010145098376.pr652.6.g55d239f3.tar.xz |
| diffbase-time-created | 2026-10-21 01:12:09 |
| diffbase-time-finished | 2026-10-21 01:15:05 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '--root-override=fedora-rawhide-x86_64-a0bd9f45-eca0-470d-a97f-39c5c57962f8' '-t' 'unicontrol,cppcheck,shellcheck,clippy,gcc' '-o' '/tmp/tmpv8cg8rtn/python-drgn-0.3.0+6.g55d239f3-1.20261021010145098376.pr652.6.g55d239f3.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpv8cg8rtn/python-drgn-0.3.0+6.g55d239f3-1.20261021010145098376.pr652.6.g55d239f3.src.rpm' |
| diffbase-tool-version | csmock-3.8.7.20261019.142327.ge371d49-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-64.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20260813.215201.gc98a3c4.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | python-drgn-0.3.0+4.ge7c27769-1.20261020223936114103.main.4.ge7c27769 |
| store-results-to | /tmp/tmpura_g_pl/python-drgn-0.3.0+4.ge7c27769-1.20261020223936114103.main.4.ge7c27769.tar.xz |
| time-created | 2026-10-21 01:08:43 |
| time-finished | 2026-10-21 01:11:48 |
| title | Fixed findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '--root-override=fedora-rawhide-x86_64-c9a008f5-1704-49f6-8298-5c3acda3ace8' '-t' 'unicontrol,cppcheck,shellcheck,clippy,gcc' '-o' '/tmp/tmpura_g_pl/python-drgn-0.3.0+4.ge7c27769-1.20261020223936114103.main.4.ge7c27769.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpura_g_pl/python-drgn-0.3.0+4.ge7c27769-1.20261020223936114103.main.4.ge7c27769.src.rpm' |
| tool-version | csmock-3.8.7.20261019.142327.ge371d49-1.el9 |