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
1
testbufferoverrun6/err.msg
Normal file
1
testbufferoverrun6/err.msg
Normal file
@ -0,0 +1 @@
|
|||||||
|
[testbufferoverrun6\testbufferoverrun6.cpp:8]: Array index out of bounds
|
10
testbufferoverrun6/testbufferoverrun6.cpp
Normal file
10
testbufferoverrun6/testbufferoverrun6.cpp
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
void f()
|
||||||
|
{
|
||||||
|
int i[10];
|
||||||
|
|
||||||
|
i[ sizeof(i) - 1 ] = 0;
|
||||||
|
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user