Commit Graph

78 Commits

Author SHA1 Message Date
Daniel Marjamäki 47d796519a test: Added 'testdivision' 2008-08-23 16:40:53 +00:00
Daniel Marjamäki 3d6093b970 test: Minor polishing 2008-08-23 16:16:58 +00:00
Daniel Marjamäki 8c901694b8 testing: Added 'testbufferoverrun' 2008-08-23 14:12:08 +00:00
Daniel Marjamäki c618971609 testing: Moved tests from tests.cpp to testmemleak.cpp (forwhile, switch) 2008-08-22 06:30:06 +00:00
Daniel Marjamäki 794cdfd2ee testing: Added tests TestMemoryleak::ifelse 2008-08-21 18:55:04 +00:00
Daniel Marjamäki 6bdb2ff0dc CheckMemoryLeak: Added testcase (false positive from linux kernel) 2008-08-19 17:16:55 +00:00
Daniel Marjamäki 0b8f646e0b CheckMemoryLeak: Small improvements 2008-08-19 04:53:41 +00:00
Daniel Marjamäki 9276783ab9 CheckMemoryLeak: By default skip class memory leaks because there may be various types of garbage collectors 2008-08-18 06:40:37 +00:00
Daniel Marjamäki 0679b89e84 CheckMemoryLeak: Minor updates 2008-08-17 18:01:37 +00:00
Daniel Marjamäki daf0563b07 CheckMemoryLeak: Made a test case work 2008-08-17 17:17:17 +00:00
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 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 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 d7bfe46fb3 tests: minor updates of the tests 2008-08-09 08:34:50 +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 3708fde176 tests: updated the tests 2008-05-14 04:31: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 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 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 7708c2c1d1 CheckMemoryLeak: Small fixes and updates 2008-04-14 18:42:30 +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 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 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
Daniel Marjamäki fd9ca7c300 Re-adding CheckMemoryLeak functionality. More work is still needed. 2008-04-05 12:27:02 +00:00
Daniel Marjamäki 0bd9f3a8fa Further improvements of CheckMemoryLeak. Still not working as good as a few revisions ago. 2008-04-04 04:29:28 +00:00
Daniel Marjamäki f055ecf708 Refactoring CheckMemoryLeak 2008-04-03 06:15:26 +00:00
Daniel Marjamäki b6868b7f1a Rewriting CheckMemoryLeak (Just Started) 2008-04-02 05:09:35 +00:00
Daniel Marjamäki 60e454fa11 Minor updates. Removed some false positives when checking variable scope 2008-04-01 06:21:12 +00:00
Daniel Marjamäki 89605c0167 Fixed minor bugs 2008-03-29 17:27:02 +00:00
Daniel Marjamäki 69d33444d4 Added style checks to check for unused global functions 2008-03-29 09:44:23 +00:00
Daniel Marjamäki f8569f0db4 Refactoring: Removed 'HasErrors'. Better usage of 'Match'. Hid the 'FunctionList' 2008-03-28 17:40:24 +00:00
Daniel Marjamäki 4691999ede Refactoring: Replaced deprecated "match" with the new "Match" 2008-03-28 07:18:03 +00:00
Daniel Marjamäki bf6926232b CheckBufferOverrun: Improved checking of arrays declared like this: "type * var [ num ]" 2008-03-27 05:41:21 +00:00
Daniel Marjamäki fcff7a4052 Refactoring of 'CheckBufferOverrun.cpp' 2008-03-24 19:32:17 +00:00