Test: Added a buffer overrun test that contains a calculation that points at an illegal index
This commit is contained in:
parent
7b7650ad97
commit
5753d4d776
|
@ -0,0 +1 @@
|
|||
[testbufferoverrun6\testbufferoverrun6.cpp:8]: Array index out of bounds
|
|
@ -0,0 +1,10 @@
|
|||
|
||||
|
||||
|
||||
void f()
|
||||
{
|
||||
int i[10];
|
||||
|
||||
i[ sizeof(i) - 1 ] = 0;
|
||||
|
||||
}
|
Loading…
Reference in New Issue