Commit Graph

12348 Commits

Author SHA1 Message Date
Daniel Marjamäki e7e9402ab0 disabled checks that generates false positives 2007-10-22 06:59:28 +00:00
Daniel Marjamäki 8d116542ab Removing false positives 2007-08-31 04:23:09 +00:00
Daniel Marjamäki 2b3f362dfd Added 2 checks for memory leaks 2007-07-27 08:11:07 +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 d3f30c0a6e Minor update: Updated the readme and checkproj files. 2007-07-26 06:16:29 +00:00
Daniel Marjamäki e816bff240 TestCond1: Updated test. It didn't have a "err.msg" file 2007-07-26 06:16:01 +00:00
Daniel Marjamäki e82ac787c6 Added test: "testcasebreak" 2007-07-26 06:15:10 +00:00
Daniel Marjamäki ae8a914832 Searching multiple files 2007-07-24 06:24:12 +00:00
Daniel Marjamäki 8c0c57ddf4 Added checks:
* CheckIfAssignment: assignment in condition
 * CheckCaseWithoutBreak: case but no break/return
2007-07-24 06:23:28 +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 6ee93c2d62 bufferoverrun.txt: Added file that contains thoughts and ideas concerning buffer overruns. 2007-07-20 06:21:40 +00:00
Daniel Marjamäki 5b6ab28e0b For the highest accuracy, don't warn for all memory leaks unless the "-w" is given 2007-07-20 06:20:31 +00:00
Daniel Marjamäki 8af24ee783 Always give a warning when 'memset' is used upon a class 2007-07-20 06:18:33 +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 ade2265ed2 Minor modifications to make it compile on linux 2007-07-18 06:37:37 +00:00
Daniel Marjamäki 93b3e2e5aa Buffer overruns, using string with unknown length 2007-07-18 06:12:16 +00:00
Daniel Marjamäki 7ea6e10f1f Minor updates to make it easier to port to Linux 2007-07-17 06:39:34 +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 b0d9994210 CheckHeaders: Checking if included headers are needed 2007-06-11 13:56:51 +00:00
Daniel Marjamäki 9af3e36c4d CheckOther: minor bug fix 2007-06-10 18:26:06 +00:00
Daniel Marjamäki 6ed70ae745 CheckMemoryLeak: Detect memory leaks for class members 2007-06-10 18:25:39 +00:00
Daniel Marjamäki 8a1ec67b22 CheckOther: Improved the check that checks 'if (condition) var=true;' 2007-06-09 18:36:52 +00:00
Daniel Marjamäki f0f117d4f6 CheckHeaders: Improved the check that checks included headers. 2007-06-09 18:25:08 +00:00
Daniel Marjamäki 0bea996e4d CheckHeaders: Updated message 2007-06-08 18:56:11 +00:00
Daniel Marjamäki 5b9513b17d Tokenize: generate tokens on '#define' (CheckIncludedHeaders) 2007-06-08 18:55:44 +00:00
Daniel Marjamäki f36ab6dc61 Updated the tests 2007-06-08 18:32:23 +00:00
Daniel Marjamäki 9da999b53f Checking Notepad++: Enabled all warnings 2007-06-08 18:20:13 +00:00
Daniel Marjamäki 5b83f5d0cd CheckOther: Added check. 'if (condition) var=true; else var=false;' => 'var = (condition);' 2007-06-08 18:19:15 +00:00
Daniel Marjamäki b3a3097b66 CheckHeaders: Limit the number of warnings about 'implementation in header' 2007-06-08 18:17:32 +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 7801d262a2 CheckHeaders: Bug fix 2007-06-08 17:19:31 +00:00
Daniel Marjamäki 148ac8a57a CheckHeaders: Bug fix 2007-06-08 16:57:20 +00:00
Daniel Marjamäki 746c99be28 Modified comments 2007-06-08 16:46:51 +00:00
Daniel Marjamäki abc1f6816d CheckHeaders: Check if all included headers are needed 2007-06-08 16:46:06 +00:00
Daniel Marjamäki 0525aeb5e4 Added check: "if (condition) var=true;" can be written as "var|=(condition);" 2007-06-06 17:33:28 +00:00
Daniel Marjamäki b44e82bc22 Buffer overrun: also check the 'memcopy' parameters. 2007-06-05 20:29:58 +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 0b7686d2be CheckHeaders: Minor update 2007-06-05 18:02:34 +00:00
Daniel Marjamäki 0531c02fca CheckBufferOverrun: Optimized and improved the checking 2007-06-05 04:52:01 +00:00
Daniel Marjamäki cf7485ce0c Added check: 'IsAlpha' 2007-06-05 04:51:01 +00:00
Daniel Marjamäki 7b07271134 Tests: Updated the tests. Checking for unneeded includes 2007-06-04 06:36:08 +00:00
Daniel Marjamäki eb24a6fecd CheckHeaders: Check for unnecessary headers. some fixes. 2007-06-04 06:31:57 +00:00
Daniel Marjamäki eade228c24 CheckMemoryLeak: Bug fix. 2007-06-03 17:09:15 +00:00
Daniel Marjamäki 7a8ee64068 tokenize: bug fixes. Handling typedefs. 2007-06-03 17:08:30 +00:00
Daniel Marjamäki 2ebf2dd530 Test: Updated 'testif2' which is testing the 'a=b; if (a!=b)' 2007-06-02 16:37:06 +00:00
Daniel Marjamäki 2490357054 Test: Test that 'a=b; if (a==b)' don't generate false positives 2007-06-02 16:33:46 +00:00
Daniel Marjamäki 2c9a688dd4 Test: Test that 'a=b; if (a==b)' is detected 2007-06-02 16:32:45 +00:00
Daniel Marjamäki 7b85324a0b tokenize: Fixed the 'typedef' simplifications. Added token '#' upon preprocessor instructions. 2007-06-02 16:32:07 +00:00
Daniel Marjamäki 13657ab127 Test: Test that 'a=b; if (a==b)' is detected 2007-06-02 16:30:35 +00:00