[llvm-bugs] [Bug 25588] New: SafeStack missing alignment for Dynamic Alloca
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Nov 20 12:17:45 PST 2015
https://llvm.org/bugs/show_bug.cgi?id=25588
Bug ID: 25588
Summary: SafeStack missing alignment for Dynamic Alloca
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Miscellaneous Instrumentation passes
Assignee: unassignedbugs at nondot.org
Reporter: hal_ler at yahoo.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
When moving a Dynamic Alloca to the SafeStack the unaligned base is used (SP,
the result of the subtract: Value *NewAI = IRB.CreateIntToPtr(SP,
AI->getType())) ignoring the previous alignment setting.
The code should just align SP using the existing code (IRB.CreateAnd(SP,
ConstantInt::get(IntPtrTy, ~uint64_t(Align - 1)))) and use that further for
NewTop and NewAI.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20151120/a865d1bf/attachment.html>
More information about the llvm-bugs
mailing list