From 0b2b24e4cfc6258dbc03a9675fda3f484b6f5c9a Mon Sep 17 00:00:00 2001 From: Brandon Miller Date: Tue, 1 Jul 2025 16:35:05 -0400 Subject: Fix heap corruption in default ABB --- defaultabb.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'defaultabb.cpp') diff --git a/defaultabb.cpp b/defaultabb.cpp index 00d0e560..0847f0c8 100644 --- a/defaultabb.cpp +++ b/defaultabb.cpp @@ -117,7 +117,7 @@ void Architecture::DefaultAnalyzeBasicBlocks(Function* function, BasicBlockAnaly } // Start by processing the entry point of the function - auto funcPlatform = function->GetPlatform(); + Ref funcPlatform = function->GetPlatform(); auto start = function->GetStart(); blocksToProcess.emplace(funcPlatform->GetArchitecture(), start); seenBlocks.emplace(funcPlatform->GetArchitecture(), start); @@ -363,7 +363,7 @@ void Architecture::DefaultAnalyzeBasicBlocks(Function* function, BasicBlockAnaly if (data->ShouldSkipTargetAnalysis(location, function, instrEnd, target)) break; - Platform* targetPlatform = funcPlatform; + Ref targetPlatform = funcPlatform; if (target.arch != funcPlatform->GetArchitecture()) targetPlatform = funcPlatform->GetRelatedPlatform(target.arch); -- cgit v1.3.1