Error: GCC_ANALYZER_WARNING (CWE-457): [#def1] python-drgn-0.0.29+15.g0bf51a66-build/drgn-0.0.29+15.g0bf51a66/libdrgn/kallsyms.c: scope_hint: In function 'kallsyms_expand_symbol' python-drgn-0.0.29+15.g0bf51a66-build/drgn-0.0.29+15.g0bf51a66/libdrgn/kallsyms.c:255:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'len' python-drgn-0.0.29+15.g0bf51a66-build/drgn-0.0.29+15.g0bf51a66/libdrgn/binary_buffer.h:22: included_from: Included from here. python-drgn-0.0.29+15.g0bf51a66-build/drgn-0.0.29+15.g0bf51a66/libdrgn/kallsyms.c:7: included_from: Included from here. python-drgn-0.0.29+15.g0bf51a66-build/drgn-0.0.29+15.g0bf51a66/libdrgn/util.h:56:41: note: in definition of macro 'unlikely' # 253| # 254| const uint8_t *data = (uint8_t *)names_bb->pos; # 255|-> err = binary_buffer_skip(names_bb, len); # 256| if (err) # 257| return err; Error: COMPILER_WARNING (CWE-457): [#def2] python-drgn-0.0.29+15.g0bf51a66-build/drgn-0.0.29+15.g0bf51a66/libdrgn/kallsyms.c:479:60: warning[-Wmaybe-uninitialized]: 'stext_idx' may be used uninitialized # 479 | uint64_t stext_abs = relative_base + addr32[stext_idx]; # | ^ python-drgn-0.0.29+15.g0bf51a66-build/drgn-0.0.29+15.g0bf51a66/libdrgn/kallsyms.c: scope_hint: In function 'drgn_load_builtin_kallsyms' python-drgn-0.0.29+15.g0bf51a66-build/drgn-0.0.29+15.g0bf51a66/libdrgn/kallsyms.c:475:25: note: 'stext_idx' was declared here # 475 | ssize_t stext_idx; # | ^~~~~~~~~ # 477| if (err) # 478| return err; # 479|-> uint64_t stext_abs = relative_base + addr32[stext_idx]; # 480| uint64_t stext_pcpu = absolute_percpu(relative_base, (int32_t)addr32[stext_idx]); # 481| if (stext_abs == loc->_stext) { Error: GCC_ANALYZER_WARNING (CWE-476): [#def3] python-drgn-0.0.29+15.g0bf51a66-build/drgn-0.0.29+15.g0bf51a66/libdrgn/symbol.c: scope_hint: In function 'drgn_symbol_index_init_from_builder' python-drgn-0.0.29+15.g0bf51a66-build/drgn-0.0.29+15.g0bf51a66/libdrgn/symbol.c:421:57: warning[-Wanalyzer-null-dereference]: dereference of NULL '0' python-drgn-0.0.29+15.g0bf51a66-build/drgn-0.0.29+15.g0bf51a66/libdrgn/symbol.h:15: included_from: Included from here. python-drgn-0.0.29+15.g0bf51a66-build/drgn-0.0.29+15.g0bf51a66/libdrgn/symbol.c:12: included_from: Included from here. python-drgn-0.0.29+15.g0bf51a66-build/drgn-0.0.29+15.g0bf51a66/libdrgn/vector.h:449:13: note: in definition of macro 'DEFINE_VECTOR_FUNCTIONS' python-drgn-0.0.29+15.g0bf51a66-build/drgn-0.0.29+15.g0bf51a66/libdrgn/symbol.c:15:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' python-drgn-0.0.29+15.g0bf51a66-build/drgn-0.0.29+15.g0bf51a66/libdrgn/symbol.c:15:1: note: in expansion of macro 'DEFINE_VECTOR_FUNCTIONS' # 419| // static lifetimes helps avoid unnecessary copying. # 420| for (size_t i = 0; i < num_syms; i++) { # 421|-> size_t string_index = (size_t)symbols[i].name; # 422| symbols[i].name = &names[string_index]; # 423| symbols[i].name_lifetime = DRGN_LIFETIME_STATIC;
| analyzer-version-clippy | 1.81.0 |
| analyzer-version-cppcheck | 2.15.0 |
| analyzer-version-gcc | 14.2.1 |
| analyzer-version-gcc-analyzer | 14.2.1 |
| analyzer-version-shellcheck | 0.10.0 |
| analyzer-version-unicontrol | 0.0.2 |
| diffbase-analyzer-version-clippy | 1.81.0 |
| diffbase-analyzer-version-cppcheck | 2.15.0 |
| diffbase-analyzer-version-gcc | 14.2.1 |
| diffbase-analyzer-version-gcc-analyzer | 14.2.1 |
| diffbase-analyzer-version-shellcheck | 0.10.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-145.us-west-2.compute.internal |
| diffbase-mock-config | fedora-rawhide-x86_64 |
| diffbase-project-name | python-drgn-0.0.29+8.ge1bc97e6-1.20241010222554362591.main.8.ge1bc97e6 |
| diffbase-store-results-to | /tmp/tmpqicapj_7/python-drgn-0.0.29+8.ge1bc97e6-1.20241010222554362591.main.8.ge1bc97e6.tar.xz |
| diffbase-time-created | 2024-10-12 00:08:27 |
| diffbase-time-finished | 2024-10-12 00:10:45 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'clippy,cppcheck,gcc,shellcheck,unicontrol' '-o' '/tmp/tmpqicapj_7/python-drgn-0.0.29+8.ge1bc97e6-1.20241010222554362591.main.8.ge1bc97e6.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '/tmp/tmpqicapj_7/python-drgn-0.0.29+8.ge1bc97e6-1.20241010222554362591.main.8.ge1bc97e6.src.rpm' |
| diffbase-tool-version | csmock-3.7.1-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-145.us-west-2.compute.internal |
| mock-config | fedora-rawhide-x86_64 |
| project-name | python-drgn-0.0.29+15.g0bf51a66-1.20241011235909244902.pr388.15.g0bf51a66 |
| store-results-to | /tmp/tmpezoq2jyz/python-drgn-0.0.29+15.g0bf51a66-1.20241011235909244902.pr388.15.g0bf51a66.tar.xz |
| time-created | 2024-10-12 00:11:11 |
| time-finished | 2024-10-12 00:13:03 |
| title | Newly introduced findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'clippy,cppcheck,gcc,shellcheck,unicontrol' '-o' '/tmp/tmpezoq2jyz/python-drgn-0.0.29+15.g0bf51a66-1.20241011235909244902.pr388.15.g0bf51a66.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '/tmp/tmpezoq2jyz/python-drgn-0.0.29+15.g0bf51a66-1.20241011235909244902.pr388.15.g0bf51a66.src.rpm' |
| tool-version | csmock-3.7.1-1.el9 |