Advertisement
alexanius

cppcheck on samples for e2k

Dec 21st, 2017
329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. $ ./cppcheck samples/
  2. Checking samples/AssignmentAddressToInteger/bad.c ...
  3. 1/18 files checked 5% done
  4. Checking samples/AssignmentAddressToInteger/good.c ...
  5. 2/18 files checked 11% done
  6. Checking samples/arrayIndexOutOfBounds/bad.c ...
  7. [samples/arrayIndexOutOfBounds/bad.c:6]: (error) Array 'a[2]' accessed at index 2, which is out of bounds.
  8. 3/18 files checked 16% done
  9. Checking samples/arrayIndexOutOfBounds/good.c ...
  10. 4/18 files checked 22% done
  11. Checking samples/autoVariables/bad.c ...
  12. [samples/autoVariables/bad.c:4]: (error) Address of local auto-variable assigned to a function parameter.
  13. 5/18 files checked 27% done
  14. Checking samples/autoVariables/good.c ...
  15. 6/18 files checked 33% done
  16. Checking samples/bufferAccessOutOfBounds/bad.c ...
  17. [samples/bufferAccessOutOfBounds/bad.c:6]: (error) Array 'a[2]' accessed at index 2, which is out of bounds.
  18. 7/18 files checked 38% done
  19. Checking samples/bufferAccessOutOfBounds/good.c ...
  20. 8/18 files checked 44% done
  21. Checking samples/erase/bad.cpp ...
  22. [samples/erase/bad.cpp:9] -> [samples/erase/bad.cpp:11]: (error) Iterator 'iter' used after element has been erased.
  23. 9/18 files checked 50% done
  24. Checking samples/erase/good.cpp ...
  25. 10/18 files checked 55% done
  26. Checking samples/memleak/bad.c ...
  27. [samples/memleak/bad.c:8]: (error) Memory leak: a
  28. 11/18 files checked 61% done
  29. Checking samples/memleak/good.c ...
  30. 12/18 files checked 66% done
  31. Checking samples/outOfBounds/bad.c ...
  32. [samples/outOfBounds/bad.c:5]: (error) Buffer is accessed out of bounds: str
  33. 13/18 files checked 72% done
  34. Checking samples/outOfBounds/good.c ...
  35. 14/18 files checked 77% done
  36. Checking samples/resourceLeak/bad.c ...
  37. [samples/resourceLeak/bad.c:8]: (error) Resource leak: a
  38. 15/18 files checked 83% done
  39. Checking samples/resourceLeak/good.c ...
  40. 16/18 files checked 88% done
  41. Checking samples/syntaxError/bad.c ...
  42. [samples/syntaxError/bad.c:2]: (error) Invalid number of character '{' when no macros are defined.
  43. Checking samples/syntaxError/bad.c: A...
  44. 17/18 files checked 94% done
  45. Checking samples/syntaxError/good.c ...
  46. 18/18 files checked 100% done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement