cppcheck/testbufferoverrun6/testbufferoverrun6.cpp

10 lines
69 B
C++

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