[PATCH] D15725: Ensure safestack overflow test doesn't segfault
Dimitry Andric via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 7 14:22:48 PST 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL257106: Ensure safestack overflow test doesn't segfault (authored by dim).
Changed prior to commit:
http://reviews.llvm.org/D15725?vs=43476&id=44257#toc
Repository:
rL LLVM
http://reviews.llvm.org/D15725
Files:
compiler-rt/trunk/test/safestack/overflow.c
Index: compiler-rt/trunk/test/safestack/overflow.c
===================================================================
--- compiler-rt/trunk/test/safestack/overflow.c
+++ compiler-rt/trunk/test/safestack/overflow.c
@@ -17,9 +17,13 @@
int main(int argc, char **argv)
{
+ int prebuf[7];
int value1 = 42;
int buffer[5];
int value2 = 42;
+ int postbuf[7];
+ fct(prebuf + 1);
+ fct(postbuf + 1);
fct(buffer);
return value1 != 42 || value2 != 42;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15725.44257.patch
Type: text/x-patch
Size: 467 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160107/4f3a187f/attachment.bin>
More information about the llvm-commits
mailing list