Test: Added a buffer overrun test that contains a calculation that points at an illegal index

This commit is contained in:
Daniel Marjamäki 2007-05-26 06:43:35 +00:00
parent 7b7650ad97
commit 5753d4d776
2 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1 @@
[testbufferoverrun6\testbufferoverrun6.cpp:8]: Array index out of bounds

View File

@ -0,0 +1,10 @@
void f()
{
int i[10];
i[ sizeof(i) - 1 ] = 0;
}