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 |
Daniel Marjamäki
|
954cccf843
|
Removed checking of 'dynamic data' it's impossible to determine if it's
false or true positives without deeper analysis.
|
2008-03-24 11:00:04 +00:00 |
Daniel Marjamäki
|
4c17dd9499
|
Buffer overrun in function parameter
|
2008-03-23 16:18:31 +00:00 |
Daniel Marjamäki
|
75debeba37
|
Reverted 205:207
|
2008-03-23 13:38:01 +00:00 |
Daniel Marjamäki
|
3dfc79d3b6
|
Refactoring: Use 'setindentlevel'
|
2008-03-23 07:57:27 +00:00 |
Daniel Marjamäki
|
13f681879f
|
Handling pointers in 'CheckBufferOverrun_StructVariable'
|
2008-03-21 18:55:29 +00:00 |
Daniel Marjamäki
|
0a86992806
|
Check for buffer overruns for struct members (only numeric)
|
2008-03-21 17:25:25 +00:00 |
Daniel Marjamäki
|
c5e7cb4032
|
'CheckUnsignedDivision' -> more errors. 'CheckVariableScope' -> removed false errors.
|
2008-03-21 06:44:52 +00:00 |
Daniel Marjamäki
|
d0cffeaa8c
|
Updated tokenizer. To handle "#define f1(a,b) (a+b)" better
|
2008-03-18 07:45:35 +00:00 |
Daniel Marjamäki
|
101afe4344
|
Checking variable scope
|
2008-03-17 11:05:30 +00:00 |
Daniel Marjamäki
|
119e719d52
|
bug fixes for 'CheckVariableScope'
|
2008-03-16 17:39:38 +00:00 |
Daniel Marjamäki
|
a9524b9207
|
Added test 'CheckVariableScope'. Increased constness.
|
2008-03-16 13:17:43 +00:00 |