Task #351 - fixed.err
back to task #351download
Error: GCC_ANALYZER_WARNING (CWE-401): 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): 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),