1
0
UAHCode/CPE455/lab06/cppcheck.txt
2022-08-28 16:12:16 -05:00

25 lines
966 B
Plaintext
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

ec3.cpp:11:6: error: Array 'a[10]' accessed at index 10, which is out of bounds. [arrayIndexOutOfBounds]
a[10] = 0;
^
ec3.cpp:16:10: error: Array 'a[10]' accessed at index 10, which is out of bounds. [arrayIndexOutOfBounds]
a[k] = k;
^
ec3.cpp:62:0: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn]
return false;
^
ec3.cpp:33:6: error: Null pointer dereference: x [nullPointer]
*x = 1;
^
ec3.cpp:32:14: note: Assignment 'x=0', assigned value is 0
int* x = 0;
^
ec3.cpp:33:6: note: Null pointer dereference
*x = 1;
^
ec3.cpp:29:6: error: Uninitialized variable: p [uninitvar]
*p = 5;
^
ec3.cpp:47:12: error: Memory is allocated but not initialized: r [uninitdata]
delete r;
^