diff options
| -rw-r--r-- | view/macho/machoview.cpp | 2 | ||||
| -rw-r--r-- | view/macho/machoview.h | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/view/macho/machoview.cpp b/view/macho/machoview.cpp index cfdc0897..ed5f31b1 100644 --- a/view/macho/machoview.cpp +++ b/view/macho/machoview.cpp @@ -269,7 +269,7 @@ MachoView::MachoView(const string& typeName, BinaryView* data, bool parseOnly): MachOHeader MachoView::HeaderForAddress(BinaryView* data, uint64_t address, bool isMainHeader, std::string identifierPrefix) { - MachOHeader header; + MachOHeader header{}; header.isMainHeader = isMainHeader; header.identifierPrefix = identifierPrefix; diff --git a/view/macho/machoview.h b/view/macho/machoview.h index 20d2ea78..8dd5328d 100644 --- a/view/macho/machoview.h +++ b/view/macho/machoview.h @@ -1228,7 +1228,7 @@ namespace BinaryNinja #endif struct MachOHeader { - bool isMainHeader; + bool isMainHeader = false; uint64_t textBase = 0; uint64_t loadCommandOffset = 0; @@ -1248,9 +1248,9 @@ namespace BinaryNinja linkedit_data_command chainedFixups {}; DataBuffer* stringList; - size_t stringListSize; + size_t stringListSize = 0; - uint64_t relocationBase; + uint64_t relocationBase = 0; // Section and program headers, internally use 64-bit form as it is a superset of 32-bit std::vector<segment_command_64> segments; //only three types of sections __TEXT, __DATA, __IMPORT std::vector<section_64> sections; |
