diff options
| author | Galen Williamson <galen@vector35.com> | 2024-03-08 14:30:14 -0500 |
|---|---|---|
| committer | Galen Williamson <galen@vector35.com> | 2024-03-08 14:30:14 -0500 |
| commit | 626db3c3e52fe7b10d615cf9b19c37aa8602cc59 (patch) | |
| tree | 55c5d03f2775be21472b10bbb9c9ebc65f89ee94 | |
| parent | d463358de929f7e1fc5c8787ef886861e745e1a7 (diff) | |
restored "Merge pull request Vector35#7 from VisualEhrmanntraut/main" commit lost in views refactor
| -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; |
