[PATCH] Implement variable-sized alloca instrumentation (take 2).

Reid Kleckner rnk at google.com
Wed Feb 25 15:06:35 PST 2015


+1

ASan should replace dynamic allocas with runtime calls that delegate to
malloc. Poisoning will work out of the box with no changes.

We will need additional runtime handling to deal with VLAs, which use
llvm.stacksave / llvm.stackrestore.

On Thu, Feb 19, 2015 at 5:20 PM, Kostya Serebryany <kcc at google.com> wrote:

> I did not give much thought to dynamic allocas, but what if we simply
> replace them with run-time calls somehow?
> Maybe we could reuse the FakeStack here somehow?
>
> Alexey, you've been touching the Alloca's recently, and was going to touch
> them more. Thoughts?
>
>
> REPOSITORY
>   rL LLVM
>
> http://reviews.llvm.org/D7098
>
> EMAIL PREFERENCES
>   http://reviews.llvm.org/settings/panel/emailpreferences/
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150225/bbc07961/attachment.html>


More information about the llvm-commits mailing list