cppcheck/samples/arrayIndexOutOfBounds/out.txt

4 lines
151 B
Plaintext

samples\arrayIndexOutOfBounds\bad.c:7:6: error: Array 'a[2]' accessed at index 2, which is out of bounds. [arrayIndexOutOfBounds]
a[2] = 0;
^