diff --git a/testbufferoverrun6/err.msg b/testbufferoverrun6/err.msg new file mode 100644 index 000000000..4e67a2dda --- /dev/null +++ b/testbufferoverrun6/err.msg @@ -0,0 +1 @@ +[testbufferoverrun6\testbufferoverrun6.cpp:8]: Array index out of bounds diff --git a/testbufferoverrun6/testbufferoverrun6.cpp b/testbufferoverrun6/testbufferoverrun6.cpp new file mode 100644 index 000000000..81d7a2d97 --- /dev/null +++ b/testbufferoverrun6/testbufferoverrun6.cpp @@ -0,0 +1,10 @@ + + + +void f() +{ + int i[10]; + + i[ sizeof(i) - 1 ] = 0; + +} \ No newline at end of file