From 99194f432a4dad6938497e7d54ccb0d812dfacac Mon Sep 17 00:00:00 2001 From: Brandon Miller Date: Tue, 10 Feb 2026 09:23:38 -0500 Subject: Remove code using uninitialized stack data in ABB --- defaultarch.cpp | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'defaultarch.cpp') diff --git a/defaultarch.cpp b/defaultarch.cpp index 7a24b31a..0c1178b4 100644 --- a/defaultarch.cpp +++ b/defaultarch.cpp @@ -517,22 +517,6 @@ void Architecture::DefaultAnalyzeBasicBlocks(Function* function, BasicBlockAnaly if (indirectNoReturnCalls.count(location)) { - size_t instrLength = info.length; - if (info.delaySlots) - { - InstructionInfo delayInfo; - delayInfo.delaySlots = info.delaySlots; // we'll decrement this inside the loop - size_t archMax = location.arch->GetMaxInstructionLength(); - uint8_t delayOpcode[BN_MAX_INSTRUCTION_LENGTH]; - do - { - delayInfo.delaySlots--; - if (!location.arch->GetInstructionInfo(delayOpcode, location.address + instrLength, archMax - instrLength, delayInfo)) - break; - instrLength += delayInfo.length; - } while (delayInfo.delaySlots && (instrLength < archMax)); - } - // Conditional Call Support (Part 1) // Do not halt basic block analysis if this is a conditional call to a function that is 'no return' // This works for both direct and indirect calls. -- cgit v1.3.1