cppcheck/samples/bufferAccessOutOfBounds/bad.c

9 lines
103 B
C
Raw Permalink Normal View History

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