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-39.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.ge51d9df3-1.20261021013602206404.pr652.6.ge51d9df3 |
| diffbase-store-results-to | /tmp/tmph5y7z_vj/python-drgn-0.3.0+6.ge51d9df3-1.20261021013602206404.pr652.6.ge51d9df3.tar.xz |
| diffbase-time-created | 2026-10-21 01:44:14 |
| diffbase-time-finished | 2026-10-21 01:47:20 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '--root-override=fedora-rawhide-x86_64-7eb26bcd-e440-4b1a-8745-a8c55a7f941a' '-t' 'unicontrol,cppcheck,shellcheck,clippy,gcc' '-o' '/tmp/tmph5y7z_vj/python-drgn-0.3.0+6.ge51d9df3-1.20261021013602206404.pr652.6.ge51d9df3.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmph5y7z_vj/python-drgn-0.3.0+6.ge51d9df3-1.20261021013602206404.pr652.6.ge51d9df3.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-39.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/tmp0vnxazoa/python-drgn-0.3.0+4.ge7c27769-1.20261020223936114103.main.4.ge7c27769.tar.xz |
| time-created | 2026-10-21 01:40:25 |
| time-finished | 2026-10-21 01:43:42 |
| title | Fixed findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '--root-override=fedora-rawhide-x86_64-3e0ebe50-55f7-4ea6-9689-d70a7d819004' '-t' 'unicontrol,cppcheck,shellcheck,clippy,gcc' '-o' '/tmp/tmp0vnxazoa/python-drgn-0.3.0+4.ge7c27769-1.20261020223936114103.main.4.ge7c27769.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmp0vnxazoa/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 |