Commit Graph

104 Commits

Author SHA1 Message Date
Daniel Marjamäki 2dace08aae Unit Testing: Moved 'testmemcheck' 2008-02-16 18:24:13 +00:00
Daniel Marjamäki 4cb3c7b96b Unit Testing: Start 2008-02-16 15:46:32 +00:00
Daniel Marjamäki a770561de4 check for uninitialized variables - less generic to increase accuracy 2008-01-10 19:01:16 +00:00
Daniel Marjamäki e7e9402ab0 disabled checks that generates false positives 2007-10-22 06:59:28 +00:00
Daniel Marjamäki 639d5fe344 Don't allow search pattern in the filename yet. There's no way to solve it through ANSI C. 2007-07-26 06:17:25 +00:00
Daniel Marjamäki ae8a914832 Searching multiple files 2007-07-24 06:24:12 +00:00
Daniel Marjamäki eb0361d6b5 Command line options: Added "--all" and "--style", removed "-w" 2007-07-20 15:43:39 +00:00
Daniel Marjamäki 3ee0d3c9d3 Improved the buffer overrun checks. Results that are not 100% certain must be enabled through the "-w". 2007-07-19 06:21:01 +00:00
Daniel Marjamäki 93b3e2e5aa Buffer overruns, using string with unknown length 2007-07-18 06:12:16 +00:00
Daniel Marjamäki ba13ad5e3c Minor updates to make it portable to Linux. 2007-07-17 06:15:50 +00:00
Daniel Marjamäki bc70635e10 Main: More checks are only done when the '-w' flag is given. 2007-06-08 18:01:23 +00:00
Daniel Marjamäki 921dd3cf21 Added check: suspicious usage of strtok 2007-06-05 20:29:03 +00:00
Daniel Marjamäki 10a7868fc6 Invalid Function Parameter: Check calls to strtol and strtoul 2007-06-05 18:58:27 +00:00
Daniel Marjamäki cf7485ce0c Added check: 'IsAlpha' 2007-06-05 04:51:01 +00:00
Daniel Marjamäki eb24a6fecd CheckHeaders: Check for unnecessary headers. some fixes. 2007-06-04 06:31:57 +00:00
Daniel Marjamäki f99a79de9b minor updates 2007-05-29 17:12:14 +00:00
Daniel Marjamäki ae46002607 Tokenize: Simplify declarations 2007-05-29 06:24:36 +00:00
Daniel Marjamäki 284266664b Main: Moved 'IsName' and 'IsNumber' to commoncheck. Moved remaining checks to checkother and checkbufferoverrun. 2007-05-25 06:48:56 +00:00
Daniel Marjamäki f20c34a751 CheckClass; Added files (Check for mistakes related to classes) 2007-05-24 13:07:30 +00:00
Daniel Marjamäki ae4c97f814 tokenize: Added files 2007-05-24 05:40:45 +00:00
Daniel Marjamäki 45c5871503 Replacing constants to make it easier to find bugs. 2007-05-21 18:03:40 +00:00
Daniel Marjamäki 6f69fefc24 Testing: Added warning messages. 2007-05-21 17:16:35 +00:00
Daniel Marjamäki 242f627db2 CheckBufferOverrun: buffer overrun inside loop. The tokenizer will convert hexadecimal values to decimal values, which simplifies the checking. 2007-05-21 09:55:57 +00:00
Daniel Marjamäki bda349f9a6 CheckBufferOverrun: Array index out of bounds. 2007-05-20 17:47:07 +00:00
Daniel Marjamäki 9ac1525d8e Buffer Overrun: Using dangerous functions 2007-05-20 17:02:24 +00:00
Daniel Marjamäki f6c1973e67 Building statement list: SWITCH - BREAK 2007-05-20 15:28:42 +00:00
Daniel Marjamäki 7e54a6af54 CheckMemoryLeak: Handling continue/break 2007-05-20 06:35:56 +00:00
Daniel Marjamäki 685c8560d0 WarningIf: Bug fix 2007-05-20 05:49:51 +00:00
Daniel Marjamäki 8ec92256ea Build Statement List: LOOP, ENDLOOP 2007-05-19 19:23:03 +00:00
Daniel Marjamäki 139eabae9d 2007-05-19 19:21:14 +00:00
Daniel Marjamäki 4f2f651d18 CheckMemleak: Don't handle conditional allocation at the moment. 2007-05-19 19:00:16 +00:00
Daniel Marjamäki 22b1e990bb Build Statement List: ENDIF 2007-05-19 17:57:08 +00:00
Daniel Marjamäki 9523f0e2e8 Tests: Added "testmemcheck4", memory leak from a strdup 2007-05-19 17:26:28 +00:00
Daniel Marjamäki c3efd64b27 Building Statement List: MALLOC. Bug fix (strdup is a malloc) 2007-05-19 17:13:55 +00:00
Daniel Marjamäki 0d5d4f299a Building Statement List: CONTINUE, BREAK 2007-05-19 17:01:42 +00:00
Daniel Marjamäki a21ca7e6f6 internaltesting: IF 2007-05-18 18:40:44 +00:00
Daniel Marjamäki 8e568a1fd0 * Building Statement list: MALLOC, FREE
* Deactivated some warnings to make the output more interesting
2007-05-18 18:22:16 +00:00
Daniel Marjamäki e08c48e7d2 Building Statement List: IF, ELSE, ELSEIF 2007-05-18 17:52:27 +00:00
Daniel Marjamäki 775a62be69 Improving the accuracy of the memory leaks detecting 2007-05-17 17:25:20 +00:00
Daniel Marjamäki 8a3b14aeec Bug fixing 2007-05-16 17:16:25 +00:00
Daniel Marjamäki d3366b0267 Checking for memory leaks.. only active in debug mode since it's so inaccurate 2007-05-16 10:34:12 +00:00
Daniel Marjamäki 83faeeebb3 Building statement list; USE 2007-05-16 10:32:13 +00:00
Daniel Marjamäki 9896c237bb Check for memory leaks 2007-05-15 18:31:44 +00:00
Daniel Marjamäki 03e1eadba6 Test: Added command line option "--debug" that is used by the tests "internaltesting" 2007-05-15 16:51:39 +00:00
Daniel Marjamäki fd726d710f Building statement list; bug fixes 2007-05-15 11:19:52 +00:00
Daniel Marjamäki 1bcaa2c592 Building statement list; NEW, NEWARRAY, DELETE, DELETEARRAY 2007-05-14 16:53:38 +00:00
Daniel Marjamäki e47390597e Building statement list; OBRACE, EBRACE, DECL 2007-05-14 16:25:34 +00:00
Daniel Marjamäki dad497f314 Class (unused private functions): Reactivated and improved this check 2007-05-11 17:13:04 +00:00
Daniel Marjamäki 0fd16be44b Minor updates. Make sure there is no doublechecking. Don't perform certain checks upon c-files. 2007-05-10 17:25:52 +00:00
Daniel Marjamäki 2c697c6252 Check 'operator=()' 2007-05-09 18:10:10 +00:00
Daniel Marjamäki b4d5ee5d15 Minor updates:
* Refactoring.
 * don't warn for 'memset(this,..'
2007-05-09 06:50:31 +00:00
Daniel Marjamäki 6c585cf11d Updated warning message. Shorter and simpler 2007-05-08 15:58:02 +00:00
Daniel Marjamäki c3474c4ef9 Inactivated tests that are not accurate 2007-05-08 15:23:42 +00:00
Daniel Marjamäki 507c9f9f64 Added files from local repository. 2007-05-07 17:31:35 +00:00