[Lldb-commits] [lldb] r362843 - [lldb] Fix msan use-of-uninitialized-value in DWARFDebugLine::FileNameEntry.
Jorge Gorbe Moya via lldb-commits
lldb-commits at lists.llvm.org
Fri Jun 7 14:09:31 PDT 2019
Author: jgorbe
Date: Fri Jun 7 14:09:30 2019
New Revision: 362843
URL: http://llvm.org/viewvc/llvm-project?rev=362843&view=rev
Log:
[lldb] Fix msan use-of-uninitialized-value in DWARFDebugLine::FileNameEntry.
lldb/lit/SymbolFile/DWARF/debug-types-expressions.test fails with msan.
This change fixes the issue by ensuring FileNameEntry::checksum is
always default-initialized.
Modified:
lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDebugLine.h
Modified: lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDebugLine.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDebugLine.h?rev=362843&r1=362842&r2=362843&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDebugLine.h (original)
+++ lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDebugLine.h Fri Jun 7 14:09:30 2019
@@ -29,7 +29,8 @@ class DWARFDebugLine {
public:
// FileNameEntry
struct FileNameEntry {
- FileNameEntry() : name(nullptr), dir_idx(0), mod_time(0), length(0) {}
+ FileNameEntry()
+ : name(nullptr), dir_idx(0), mod_time(0), length(0), checksum() {}
const char *name;
dw_sleb128_t dir_idx;
More information about the lldb-commits
mailing list