cppcheck/samples/bufferAccessOutOfBounds/bad.c

10 lines
104 B
C

int main()
{
int a[2];
int i;
for (i = 0; i < 3; i++)
a[i] = 0;
return a[0];
}