From 39aef96ee6cb17677f23e3177f135b359e32e315 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Mon, 21 May 2007 17:17:11 +0000 Subject: [PATCH] Test: Added 'TestBufferOverrun4' --- testbufferoverrun4/err.msg | 1 + testbufferoverrun4/testbufferoverrun4.cpp | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 testbufferoverrun4/err.msg create mode 100644 testbufferoverrun4/testbufferoverrun4.cpp diff --git a/testbufferoverrun4/err.msg b/testbufferoverrun4/err.msg new file mode 100644 index 000000000..8bdd46a06 --- /dev/null +++ b/testbufferoverrun4/err.msg @@ -0,0 +1 @@ +[testbufferoverrun4\testbufferoverrun4.cpp:6]: Buffer overrun diff --git a/testbufferoverrun4/testbufferoverrun4.cpp b/testbufferoverrun4/testbufferoverrun4.cpp new file mode 100644 index 000000000..bccb3e09a --- /dev/null +++ b/testbufferoverrun4/testbufferoverrun4.cpp @@ -0,0 +1,7 @@ + + +void f() +{ + char str[3]; + strcpy(str, "abc"); +}