aboutsummaryrefslogtreecommitdiff
path: root/lib/asan/tests/heap-overflow.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/asan/tests/heap-overflow.cc')
-rw-r--r--lib/asan/tests/heap-overflow.cc9
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/asan/tests/heap-overflow.cc b/lib/asan/tests/heap-overflow.cc
deleted file mode 100644
index 475d1637385a..000000000000
--- a/lib/asan/tests/heap-overflow.cc
+++ /dev/null
@@ -1,9 +0,0 @@
-#include <stdlib.h>
-#include <string.h>
-int main(int argc, char **argv) {
- char *x = (char*)malloc(10 * sizeof(char));
- memset(x, 0, 10);
- int res = x[argc * 10]; // BOOOM
- free(x);
- return res;
-}