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"); +}