summaryrefslogtreecommitdiff
path: root/defaultarch.cpp
diff options
context:
space:
mode:
authorBrandon Miller <brandon@vector35.com>2026-02-10 09:23:38 -0500
committerBrandon Miller <brandon@vector35.com>2026-02-10 09:23:38 -0500
commit99194f432a4dad6938497e7d54ccb0d812dfacac (patch)
tree8b573420077de5543e84cccf59c873a262c028a7 /defaultarch.cpp
parentd66617bdfab6c64b9fe0faa89566d2f35973b211 (diff)
Remove code using uninitialized stack data in ABB
Diffstat (limited to 'defaultarch.cpp')
-rw-r--r--defaultarch.cpp16
1 files changed, 0 insertions, 16 deletions
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.