summaryrefslogtreecommitdiffstats
path: root/lldb/source
diff options
context:
space:
mode:
authorJorge Gorbe Moya <jgorbe@google.com>2019-06-07 21:09:30 +0000
committerJorge Gorbe Moya <jgorbe@google.com>2019-06-07 21:09:30 +0000
commit13427e64de2b67e4ca42b2860c5d3ee50db0abfc (patch)
tree16bce79adcc81e9e3974b4f9b98e38abf3e1e31f /lldb/source
parent45500fcd5dee4b348decac75ec00d7f071211345 (diff)
downloadbcm5719-llvm-13427e64de2b67e4ca42b2860c5d3ee50db0abfc.tar.gz
bcm5719-llvm-13427e64de2b67e4ca42b2860c5d3ee50db0abfc.zip
[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. llvm-svn: 362843
Diffstat (limited to 'lldb/source')
-rw-r--r--lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugLine.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugLine.h b/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugLine.h
index 9dc2d9b40df..0d236ca686b 100644
--- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugLine.h
+++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugLine.h
@@ -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;
OpenPOWER on IntegriCloud