Error: GCC_ANALYZER_WARNING (CWE-401): [#def1] debugedit-5.0-build/debugedit-5.0/tools/debugedit.c: scope_hint: In function ‘read_abbrev’ debugedit-5.0-build/debugedit-5.0/tools/debugedit.c:878:15: warning[-Wanalyzer-malloc-leak]: leak of ‘t’ debugedit-5.0-build/debugedit-5.0/tools/debugedit.c:2529:16: note: in expansion of macro ‘read_32’ debugedit-5.0-build/debugedit-5.0/tools/debugedit.c:2542:20: note: in expansion of macro ‘read_16’ debugedit-5.0-build/debugedit-5.0/tools/debugedit.c:372:18: note: in expansion of macro ‘do_read_32_relocated’ debugedit-5.0-build/debugedit-5.0/tools/debugedit.c:2573:15: note: in expansion of macro ‘read_32_relocated’ debugedit-5.0-build/debugedit-5.0/tools/debugedit.c:819:18: note: in expansion of macro ‘read_uleb128’ debugedit-5.0-build/debugedit-5.0/tools/debugedit.c:819:18: note: in expansion of macro ‘read_uleb128’ debugedit-5.0-build/debugedit-5.0/tools/debugedit.c:843:22: note: in expansion of macro ‘read_uleb128’ debugedit-5.0-build/debugedit-5.0/tools/debugedit.c:843:22: note: in expansion of macro ‘read_uleb128’ debugedit-5.0-build/debugedit-5.0/tools/debugedit.c:843:22: note: in expansion of macro ‘read_uleb128’ debugedit-5.0-build/debugedit-5.0/tools/debugedit.c:843:22: note: in expansion of macro ‘read_uleb128’ # 876| error (0, 0, "%s: Unknown DWARF DW_FORM_0x%x", dso->filename, # 877| form); # 878|-> htab_delete (h); # 879| return NULL; # 880| } Error: CPPCHECK_WARNING (CWE-457): [#def2] debugedit-5.0-build/debugedit-5.0/tools/debugedit.c:2191: error[uninitvar]: Uninitialized variables: &key.new_idx, &key.size_diff, &key.replace_dirs, &key.replace_files, &key.unit_length, &key.version, &key.header_length, &key.min_instr_len, &key.max_op_per_instr, &key.default_is_stmt, &key.line_base, &key.line_range, &key.opcode_base # 2189| struct line_table key; # 2190| key.old_idx = idx; # 2191|-> struct line_table *table = bsearch (&key, lines->table, # 2192| lines->used, # 2193| sizeof (struct line_table),
analyzer-version-clang | 18.1.7 |
analyzer-version-cppcheck | 2.14.2 |
analyzer-version-gcc | 14.1.1 |
analyzer-version-gcc-analyzer | 14.1.1 |
analyzer-version-shellcheck | 0.10.0 |
diffbase-analyzer-version-clang | 18.1.7 |
diffbase-analyzer-version-cppcheck | 2.14.2 |
diffbase-analyzer-version-gcc | 14.1.1 |
diffbase-analyzer-version-gcc-analyzer | 14.1.1 |
diffbase-analyzer-version-shellcheck | 0.10.0 |
diffbase-enabled-plugins | clang, cppcheck, gcc, shellcheck |
diffbase-exit-code | 0 |
diffbase-host | ip-172-16-1-56.us-west-2.compute.internal |
diffbase-mock-config | fedora-41-x86_64 |
diffbase-project-name | debugedit-5.0-16.fc41 |
diffbase-store-results-to | /tmp/tmp_cjm74hs/debugedit-5.0-16.fc41.tar.xz |
diffbase-time-created | 2024-07-03 12:19:05 |
diffbase-time-finished | 2024-07-03 12:20:07 |
diffbase-tool | csmock |
diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp_cjm74hs/debugedit-5.0-16.fc41.tar.xz' '--gcc-analyze' '/tmp/tmp_cjm74hs/debugedit-5.0-16.fc41.src.rpm' |
diffbase-tool-version | csmock-3.5.3-1.el9 |
enabled-plugins | clang, cppcheck, gcc, shellcheck |
exit-code | 0 |
host | ip-172-16-1-56.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | debugedit-5.0-14.fc40 |
store-results-to | /tmp/tmpyd6zfurb/debugedit-5.0-14.fc40.tar.xz |
time-created | 2024-07-03 12:17:22 |
time-finished | 2024-07-03 12:18:48 |
title | Fixed defects |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpyd6zfurb/debugedit-5.0-14.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpyd6zfurb/debugedit-5.0-14.fc40.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |