From 0f53c21d6a7abbfd48fd59ec7c15586f02777b7e Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Thu, 24 Oct 2024 16:40:17 -0400 Subject: Add virtual function table sweep to MSVC RTTI This will sweep for vfts without relying on the pointer sweep --- plugins/msvc_rtti/rtti.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins/msvc_rtti/rtti.h') diff --git a/plugins/msvc_rtti/rtti.h b/plugins/msvc_rtti/rtti.h index 4475583a..f4bb8a63 100644 --- a/plugins/msvc_rtti/rtti.h +++ b/plugins/msvc_rtti/rtti.h @@ -95,6 +95,7 @@ namespace BinaryNinja { Ref m_logger; bool allowMangledClassNames; bool checkWritableRData; + bool virtualFunctionTableSweep; std::map m_classInfo; @@ -107,7 +108,7 @@ namespace BinaryNinja { std::optional ProcessVFT(uint64_t vftAddr, const ClassInfo &classInfo); public: - MicrosoftRTTIProcessor(const Ref &view, bool useMangled = true, bool checkRData = true); + MicrosoftRTTIProcessor(const Ref &view, bool useMangled = true, bool checkRData = true, bool vftSweep = true); Ref SerializedMetadata(); -- cgit v1.3.1