From e95dc2c36a40814703109eafbf7b0112da084504 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Sat, 11 Jan 2025 18:36:48 -0500 Subject: MSVC RTTI: Fix crash due to function creation on invalid virtual function entry Also fix type clobbering on anonymous class names --- 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 bcfb0e28..062c7b78 100644 --- a/plugins/msvc_rtti/rtti.h +++ b/plugins/msvc_rtti/rtti.h @@ -95,6 +95,7 @@ namespace BinaryNinja { Ref m_view; Ref m_logger; bool allowMangledClassNames; + bool allowAnonymousClassNames; bool checkWritableRData; bool virtualFunctionTableSweep; @@ -109,7 +110,7 @@ namespace BinaryNinja { std::optional ProcessVFT(uint64_t vftAddr, const ClassInfo &classInfo); public: - MicrosoftRTTIProcessor(const Ref &view, bool useMangled = true, bool checkRData = true, bool vftSweep = true); + MicrosoftRTTIProcessor(const Ref &view, bool useMangled = true, bool checkRData = true, bool vftSweep = true, bool allowAnonymous = true); Ref SerializedMetadata(); -- cgit v1.3.1