From 046b772c78a8f6a9728191eda7dae9eb0c766f1b Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Wed, 16 Feb 2022 10:01:04 -0800 Subject: [PATCH] [lldb] Default initialize DWARFDebugMacroHeader Default initialize the DWARFDebugMacroHeader to avoid returning a header with uninitialized variables from DWARFDebugMacroHeader::ParseHeader. --- lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugMacro.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugMacro.h b/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugMacro.h index 5c0338e..cbf7624 100644 --- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugMacro.h +++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugMacro.h @@ -43,9 +43,9 @@ private: SkipOperandTable(const lldb_private::DWARFDataExtractor &debug_macro_data, lldb::offset_t *offset); - uint16_t m_version; - bool m_offset_is_64_bit; - uint64_t m_debug_line_offset; + uint16_t m_version = 0; + bool m_offset_is_64_bit = false; + uint64_t m_debug_line_offset = 0; }; class DWARFDebugMacroEntry { -- 2.7.4