diff options
| author | Mason Reed <mason@vector35.com> | 2025-06-27 11:18:20 -0400 |
|---|---|---|
| committer | Mason Reed <mason@vector35.com> | 2025-06-27 11:28:05 -0400 |
| commit | 3edef361482bce50931517b9173d97d2220c7e02 (patch) | |
| tree | 965efd63fd22b003438e02d809f1237909066628 /plugins/rtti/microsoft.cpp | |
| parent | 119198601640661af01348d8b72708ff085875e5 (diff) | |
[RTTI] Fix itanium vft analysis adding misaligned functions for thumb2
Fixes https://github.com/Vector35/binaryninja-api/issues/6959
Diffstat (limited to 'plugins/rtti/microsoft.cpp')
| -rw-r--r-- | plugins/rtti/microsoft.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/rtti/microsoft.cpp b/plugins/rtti/microsoft.cpp index 856661b4..55d1955f 100644 --- a/plugins/rtti/microsoft.cpp +++ b/plugins/rtti/microsoft.cpp @@ -499,7 +499,8 @@ std::optional<VirtualFunctionTableInfo> MicrosoftRTTIProcessor::ProcessVFT(uint6 } // TODO: Is likely a function check here? m_logger->LogDebug("Discovered function from virtual function table... %llx", vFuncAddr); - auto vFunc = m_view->AddFunctionForAnalysis(m_view->GetDefaultPlatform(), vFuncAddr, true); + auto vftPlatform = m_view->GetDefaultPlatform()->GetAssociatedPlatformByAddress(vFuncAddr); + auto vFunc = m_view->AddFunctionForAnalysis(vftPlatform, vFuncAddr, true); virtualFunctions.emplace_back(vFuncAddr, vFunc ? std::optional(vFunc) : std::nullopt); } else |
