Fixed defects

List of Defects

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),

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-clang18.1.7
diffbase-analyzer-version-cppcheck2.14.2
diffbase-analyzer-version-gcc14.1.1
diffbase-analyzer-version-gcc-analyzer14.1.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-enabled-pluginsclang, cppcheck, gcc, shellcheck
diffbase-exit-code0
diffbase-hostip-172-16-1-56.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-namedebugedit-5.0-16.fc41
diffbase-store-results-to/tmp/tmp_cjm74hs/debugedit-5.0-16.fc41.tar.xz
diffbase-time-created2024-07-03 12:19:05
diffbase-time-finished2024-07-03 12:20:07
diffbase-toolcsmock
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-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-56.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namedebugedit-5.0-14.fc40
store-results-to/tmp/tmpyd6zfurb/debugedit-5.0-14.fc40.tar.xz
time-created2024-07-03 12:17:22
time-finished2024-07-03 12:18:48
titleFixed defects
toolcsmock
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-versioncsmock-3.5.3-1.el9