Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ ./cppcheck samples/
- Checking samples/AssignmentAddressToInteger/bad.c ...
- 1/18 files checked 5% done
- Checking samples/AssignmentAddressToInteger/good.c ...
- 2/18 files checked 11% done
- Checking samples/arrayIndexOutOfBounds/bad.c ...
- [samples/arrayIndexOutOfBounds/bad.c:6]: (error) Array 'a[2]' accessed at index 2, which is out of bounds.
- 3/18 files checked 16% done
- Checking samples/arrayIndexOutOfBounds/good.c ...
- 4/18 files checked 22% done
- Checking samples/autoVariables/bad.c ...
- [samples/autoVariables/bad.c:4]: (error) Address of local auto-variable assigned to a function parameter.
- 5/18 files checked 27% done
- Checking samples/autoVariables/good.c ...
- 6/18 files checked 33% done
- Checking samples/bufferAccessOutOfBounds/bad.c ...
- [samples/bufferAccessOutOfBounds/bad.c:6]: (error) Array 'a[2]' accessed at index 2, which is out of bounds.
- 7/18 files checked 38% done
- Checking samples/bufferAccessOutOfBounds/good.c ...
- 8/18 files checked 44% done
- Checking samples/erase/bad.cpp ...
- [samples/erase/bad.cpp:9] -> [samples/erase/bad.cpp:11]: (error) Iterator 'iter' used after element has been erased.
- 9/18 files checked 50% done
- Checking samples/erase/good.cpp ...
- 10/18 files checked 55% done
- Checking samples/memleak/bad.c ...
- [samples/memleak/bad.c:8]: (error) Memory leak: a
- 11/18 files checked 61% done
- Checking samples/memleak/good.c ...
- 12/18 files checked 66% done
- Checking samples/outOfBounds/bad.c ...
- [samples/outOfBounds/bad.c:5]: (error) Buffer is accessed out of bounds: str
- 13/18 files checked 72% done
- Checking samples/outOfBounds/good.c ...
- 14/18 files checked 77% done
- Checking samples/resourceLeak/bad.c ...
- [samples/resourceLeak/bad.c:8]: (error) Resource leak: a
- 15/18 files checked 83% done
- Checking samples/resourceLeak/good.c ...
- 16/18 files checked 88% done
- Checking samples/syntaxError/bad.c ...
- [samples/syntaxError/bad.c:2]: (error) Invalid number of character '{' when no macros are defined.
- Checking samples/syntaxError/bad.c: A...
- 17/18 files checked 94% done
- Checking samples/syntaxError/good.c ...
- 18/18 files checked 100% done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement