Skip to content

Commit

Permalink
[CVE-2018-0954] Report a stack variable uaf bug to Edge Bug Bounty - …
Browse files Browse the repository at this point in the history
…360Vulcan - Edge RCE+Web Plat beta bounty on WIP
  • Loading branch information
agarwal-sandeep authored and MSLaguana committed May 8, 2018
1 parent 28928cb commit 51c4637
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions lib/Backend/BackwardPass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4232,6 +4232,11 @@ BackwardPass::ProcessStackSymUse(StackSym * stackSym, BOOLEAN isNonByteCodeUse)
return true;
}

if (this->DoMarkTempNumbers())
{
Assert((block->loop != nullptr) == block->tempNumberTracker->HasTempTransferDependencies());
block->tempNumberTracker->ProcessUse(stackSym, this);
}
if (this->DoMarkTempObjects())
{
Assert((block->loop != nullptr) == block->tempObjectTracker->HasTempTransferDependencies());
Expand Down Expand Up @@ -4294,17 +4299,7 @@ BackwardPass::ProcessSymUse(Sym * sym, bool isRegOpndUse, BOOLEAN isNonByteCodeU
}
}

StackSym * stackSym = sym->AsStackSym();
bool isUsed = ProcessStackSymUse(stackSym, isNonByteCodeUse);

if (!IsCollectionPass() && isRegOpndUse && this->DoMarkTempNumbers())
{
// Collect mark temp number information
Assert((block->loop != nullptr) == block->tempNumberTracker->HasTempTransferDependencies());
block->tempNumberTracker->ProcessUse(stackSym, this);
}

return isUsed;
return ProcessStackSymUse(sym->AsStackSym(), isNonByteCodeUse);
}

bool
Expand Down

0 comments on commit 51c4637

Please sign in to comment.