Commit Graph

3737 Commits

Author SHA1 Message Date
Daniel Marjamäki 6490f79f78 CheckMemoryLeak: Added more allocation and deallocation functions 2008-04-06 10:36:41 +00:00
Daniel Marjamäki 72a1f746b8 Makefile: Removed Statements 2008-04-06 09:47:25 +00:00
Daniel Marjamäki 7b084fb1c4 Statements: Removed this bastard from cppcheck 2008-04-06 09:42:30 +00:00
Daniel Marjamäki 62e06185f8 Minor updates to [232] and [233]. Use __GNUC__ define instead of CYGWIN 2008-04-06 06:45:30 +00:00
Daniel Marjamäki 794710a0bd Addon to [232] 2008-04-06 06:35:53 +00:00
Daniel Marjamäki a938b4ed39 Fixing bug 1935006 - Compile problems on cygwin 2008-04-06 06:26:11 +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 0ad426ec88 Removed old file 'bufferoverrun.txt' 2008-04-04 04:28:29 +00:00
Daniel Marjamäki f055ecf708 Refactoring CheckMemoryLeak 2008-04-03 06:15:26 +00:00
Daniel Marjamäki c56cfb5305 Match: Added matching for [] 2008-04-02 09:37:05 +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 021b86afa2 test cppcheck: All tests work 2008-03-26 07:18:40 +00:00
Daniel Marjamäki b011228fce Fixed bugs in 'CheckBufferOverrun.cpp' 2008-03-25 17:10:52 +00:00
Daniel Marjamäki 5296377c52 To compile with borland, 'algorithm' was needed 2008-03-25 05:52:28 +00:00
Daniel Marjamäki fcff7a4052 Refactoring of 'CheckBufferOverrun.cpp' 2008-03-24 19:32:17 +00:00
Daniel Marjamäki 41252ac45a Refactoring 'CheckBufferOverrun'. Added 'Match1'. 2008-03-24 16:24:07 +00:00
Daniel Marjamäki 1e379b8ffa Refactoring the 'CheckBufferOverrun' 2008-03-24 11:51:16 +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 c327dc10d8 Made the checking for buffer overruns more generic 2008-03-24 10:03:45 +00:00
Daniel Marjamäki b7477cb27f Combined 'findfunction' and 'FindFunction'. Updated "CheckBufferOverrun"
(checking for-loops).
2008-03-24 07:24:49 +00:00
Daniel Marjamäki 4c17dd9499 Buffer overrun in function parameter 2008-03-23 16:18:31 +00:00
Daniel Marjamäki 44bee90d82 Refactoring (Replace '->' with '.', use matching function when possible) 2008-03-23 14:15:44 +00:00
Daniel Marjamäki 75debeba37 Reverted 205:207 2008-03-23 13:38:01 +00:00
Daniel Marjamäki 34a2fdfb37 Refactoring 2008-03-23 13:27:34 +00:00
Daniel Marjamäki 3dfc79d3b6 Refactoring: Use 'setindentlevel' 2008-03-23 07:57:27 +00:00
Daniel Marjamäki 0d0f562e90 Refactoring: Added helper function 'setindentlevel' 2008-03-22 20:14:25 +00:00
Daniel Marjamäki ede402a5ec Minor refactoring 2008-03-22 17:09:08 +00:00
Daniel Marjamäki ab7cb379af In the checks, use const pointers 2008-03-22 11:46:06 +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 c8038d52fd Deleted obsolete file 'checknpp.bat' 2008-03-21 16:06:53 +00:00
Daniel Marjamäki c5e7cb4032 'CheckUnsignedDivision' -> more errors. 'CheckVariableScope' -> removed false errors. 2008-03-21 06:44:52 +00:00
Daniel Marjamäki 313d3dafa1 Rewrote the checking for "unsigned division" => less false positives 2008-03-20 07:23:01 +00:00
Daniel Marjamäki 506fc0e16d tokenize: Fixed two bugs
* don't hang if we can't find the ending of a string.
 * don't divide by zero
2008-03-19 17:09:51 +00:00
Daniel Marjamäki b1b7593c76 Updates here and there to make it more accurate 2008-03-19 06:03:56 +00:00
Daniel Marjamäki 85a50103a5 Better checking of class declarations. 2008-03-18 07:46:42 +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 bcd292ffaa Updated 'todo.txt' 2008-03-17 05:53:29 +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
Daniel Marjamäki c366278b48 added 'todo.txt' 2008-03-16 07:07:51 +00:00
Daniel Marjamäki d9fc9762b8 Removed 'checkproj.bat' (Deprecated) 2008-03-15 17:06:27 +00:00