diff options
| author | Brandon Miller <brandon@vector35.com> | 2025-07-01 16:35:05 -0400 |
|---|---|---|
| committer | Brandon Miller <brandon@vector35.com> | 2025-07-01 16:35:05 -0400 |
| commit | 0b2b24e4cfc6258dbc03a9675fda3f484b6f5c9a (patch) | |
| tree | 35eff5bc269f7f2d58504cd802b5e7d72c1d39f8 /defaultabb.cpp | |
| parent | f60e84330c8fc94f9eaeed2b8abd069e73133eb5 (diff) | |
Fix heap corruption in default ABB
Diffstat (limited to 'defaultabb.cpp')
| -rw-r--r-- | defaultabb.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<Platform> 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<Platform> targetPlatform = funcPlatform; if (target.arch != funcPlatform->GetArchitecture()) targetPlatform = funcPlatform->GetRelatedPlatform(target.arch); |
