[PATCH] [ASan] Improved stack overflow detection for PowerPC64

Jay Foad jay.foad at gmail.com
Thu Nov 13 09:20:20 PST 2014


Hi kcc, samsonov, eugenis,

AsanOnSIGSEGV has some heuristics for detecting stack overflow, but
they don't cope with a PowerPC store-with-update instruction which
modifies sp and stores to the modified address in one instruction.

This patch adds some PowerPC-specific code to check for this case.

This fixes the last few cases of the stack-overflow test.

http://reviews.llvm.org/D6253

Files:
  lib/asan/asan_posix.cc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6253.16164.patch
Type: text/x-patch
Size: 1723 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141113/5c00434a/attachment.bin>


More information about the llvm-commits mailing list