Commit Graph

27689 Commits

Author SHA1 Message Date
Daniel Marjamäki 68f409aca5 CheckMemoryLeak: Refactoring further 2008-08-16 17:49:40 +00:00
Daniel Marjamäki b29c916d9f CheckMemoryLeak: Added simple checking 2008-08-16 16:47:54 +00:00
Daniel Marjamäki 8260cf459a CheckMemoryLeak: Got rid of false positives 2008-08-16 13:13:36 +00:00
Daniel Marjamäki 0575781a67 CheckMemoryLeak: Refactoring the check 2008-08-16 12:44:46 +00:00
Daniel Marjamäki c833b51b25 CheckMemoryLeak: Made the checking a lot simpler when "--all" is not
given. This should give few false positives
2008-08-15 19:17:06 +00:00
Daniel Marjamäki fcbd297ff0 tests: Added memory leak test that gives a false positive 2008-08-15 17:40:08 +00:00
Daniel Marjamäki 0ce33fe1da CheckMemoryLeak: Added testcase and made it work (assume that
foo.add(p) deallocates p. Todo to trace into foo.add)
2008-08-15 17:16:17 +00:00
Daniel Marjamäki 6b12d31f5f CheckMemoryLeak: better handling of switch blocks 2008-08-14 06:41:26 +00:00
Daniel Marjamäki 46be988e9a CheckMemoryLeak: Handle one more test case (return pointer) 2008-08-13 19:08:24 +00:00
Daniel Marjamäki 0394aedd52 CheckMemoryLeak: Calling unknown function => assume that it's deallocating variable 2008-08-13 16:41:27 +00:00
Daniel Marjamäki ff6adcbeff memory leak: improved the checking. subfunctions are parsed. redundant conditions are skipped 2008-08-12 18:24:42 +00:00
Daniel Marjamäki 81bcde9ed0 cleanup: removed spaces 2008-08-12 06:40:55 +00:00
Daniel Marjamäki a282495c2a buffer overruns: added tests and improved the checking 2008-08-12 06:39:41 +00:00
Daniel Marjamäki 0f83b0b9ea tests: cleanup and reordering 2008-08-11 18:08:00 +00:00
Daniel Marjamäki 953693ac2e tests: Refactoring 2008-08-11 17:23:34 +00:00
Daniel Marjamäki 4aa51fa973 todo: added todo to simplify the token list further 2008-08-09 08:35:28 +00:00
Daniel Marjamäki d7bfe46fb3 tests: minor updates of the tests 2008-08-09 08:34:50 +00:00
Daniel Marjamäki ff0f8a7434 CheckMemoryLeak: Improved the checking (handling loops) 2008-08-09 08:34:05 +00:00
Daniel Marjamäki 9607f3f4ce CheckMemoryLeak: updated the checking so that all execution paths are tried 2008-08-07 19:50:01 +00:00
Daniel Marjamäki 6fb6ede8d6 cg2007: Added CodeGear 2007 project files 2008-08-07 19:15:06 +00:00
Daniel Marjamäki 77c92a0fc8 Refactoring: Renamed class allocfunc to AllocFunc 2008-08-07 18:53:35 +00:00
Daniel Marjamäki bbd8c03369 CommonCheck: Refactoring. Renamed clGlobalFunction to GlobalFunction 2008-08-07 18:44:05 +00:00
Daniel Marjamäki 3708fde176 tests: updated the tests 2008-05-14 04:31:56 +00:00
Daniel Marjamäki c2b76372b9 CheckOther: Removed unused functions 2008-05-14 04:30:56 +00:00
Daniel Marjamäki 3bf21680b2 testing: Added test for mismatching allocation and deallocation 2008-05-10 14:01:12 +00:00
Daniel Marjamäki ece441d952 CheckBufferOverrun: Refactoring and made the checking smarter 2008-05-10 13:48:15 +00:00
Daniel Marjamäki aef0278e43 CheckBufferOverrun: Fixed minor bug that resultet in false positives 2008-05-10 12:12:50 +00:00
Daniel Marjamäki 9ce09909e6 CheckMemoryLeak: Made the checking weaker to reduce false positives 2008-05-10 08:33:22 +00:00
Daniel Marjamäki 7ae162792e CheckMemoryLeak: Handling functions that allocate memory 2008-05-10 07:33:50 +00:00
Daniel Marjamäki 58b1b5f101 CheckStructMemberUsage: Added more cases 2008-05-10 06:48:37 +00:00
Daniel Marjamäki 219d82e180 CheckStructMemberUsage: Check for unused struct members 2008-05-09 18:29:42 +00:00
Daniel Marjamäki 7464adfb47 CheckGlobalFunctionUsage: Optimised 2008-05-05 16:58:09 +00:00
Daniel Marjamäki 4094f6bc6e CheckMemoryLeak: Removed false positives 2008-05-04 10:15:39 +00:00
Daniel Marjamäki a4486fb883 CheckConstantFunctionParameters: Updated the check to handle all std::.. struct and class 2008-05-03 09:44:20 +00:00
Daniel Marjamäki cae2e190da Added check: passing constant function parameter by value instead of by reference/pointer 2008-05-03 07:20:25 +00:00
Daniel Marjamäki 15fe28272c CheckMemoryLeak.cpp: Minor improvements to avoid false positives 2008-05-03 07:16:22 +00:00
Daniel Marjamäki 77389640cf Checking memset/memcpy/memmove. Removed false positives 2008-04-18 17:18:22 +00:00
Daniel Marjamäki 70a9fa246c CheckMemoryLeak: A few tweaks to make it report less false positives against the linux kernel 2008-04-16 15:22:50 +00:00
Daniel Marjamäki 7708c2c1d1 CheckMemoryLeak: Small fixes and updates 2008-04-14 18:42:30 +00:00
Daniel Marjamäki a8ba28440c CheckMemoryLeak: Bug fix so that checking stops when the variable goes out of scope 2008-04-14 06:25:34 +00:00
Daniel Marjamäki e09d61180d Removed 'bugs_that_cppcheck_finds'. It will be listed in the wiki instead 2008-04-14 06:24:45 +00:00
Daniel Marjamäki 53f078fc1d Minor updates. Added todo. Refactoring 2008-04-12 12:07:35 +00:00
Daniel Marjamäki 4805f48a4f CheckMemoryLeak: Improved the checking
(tests.cpp:memleak_in_function:test16)
2008-04-12 11:44:32 +00:00
Daniel Marjamäki 90c2822031 CheckMemoryLeak: fixed bug that caused false positives 2008-04-12 11:33:48 +00:00
Daniel Marjamäki bb5276024b Added testcase to look at later 2008-04-12 10:54:46 +00:00
Daniel Marjamäki 59c1c16e03 Checking for memory leaks. Changed the handling of comments about
deleting
2008-04-12 06:33:45 +00:00
Daniel Marjamäki 1d258a55a4 Make it possible to disable memory leak checking for a variable. Usable to avoid false positives 2008-04-11 18:37:15 +00:00
Daniel Marjamäki 214266c08c Added comments 2008-04-11 06:58:45 +00:00
Daniel Marjamäki bee1c1fb8d Refactoring CheckMemoryLeak to detect more leaks 2008-04-08 07:03:32 +00:00
Daniel Marjamäki 137a4c6309 CheckBufferOverrun: Removed a false positive 2008-04-06 11:53:23 +00:00