Commit Graph

5407 Commits

Author SHA1 Message Date
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
Daniel Marjamäki f9e684d135 CheckOther: Added check for 'a=b; if (a==b)' 2007-06-02 16:29:05 +00:00
Daniel Marjamäki f3bbdbf144 tokenizer: made the 'SizeOfType' public. bug fix in the tokenizer (strings longer than 1000 characters). 2007-05-30 20:08:05 +00:00
Daniel Marjamäki 000d5c0249 CheckBufferOverrun.cpp: Bug fixes 2007-05-30 20:07:02 +00:00
Daniel Marjamäki f99a79de9b minor updates 2007-05-29 17:12:14 +00:00
Daniel Marjamäki 012ba2f492 Tokenize: Replace 'typedef' 2007-05-29 17:11:53 +00:00
Daniel Marjamäki ae46002607 Tokenize: Simplify declarations 2007-05-29 06:24:36 +00:00
Daniel Marjamäki a2df9a5647 Tokenize: Replace '*(var+num)' with 'var[num]' 2007-05-28 10:34:18 +00:00
Daniel Marjamäki 03bcdf9e6e Tokenize: improved the preprocessing of 'sizeof(type)' 2007-05-28 06:17:18 +00:00
Daniel Marjamäki 95906c1b0f tok: Added a program that tests the tokenizer. 2007-05-26 06:45:00 +00:00
Daniel Marjamäki 7908421e0e Tokenize: Improved the tokenizer. Calculations are done in the tokenizer. sizeof is replaced with numbers. 2007-05-26 06:44:28 +00:00
Daniel Marjamäki 5753d4d776 Test: Added a buffer overrun test that contains a calculation that points at an illegal index 2007-05-26 06:43:35 +00:00
Daniel Marjamäki 7b7650ad97 Makefile: Updated because the program has been split up into several files. 2007-05-26 06:42:31 +00:00
Daniel Marjamäki 48a584201c CheckBufferOverrun: Improved checking for types other than char 2007-05-26 06:41:41 +00:00
Daniel Marjamäki da2dc8cc5b cppcheck: added checkothers to the project 2007-05-25 06:52:02 +00:00
Daniel Marjamäki 162b02bcb4 CheckOther: Added files. This will contain checks that don't fit in the other checking files. 2007-05-25 06:51:18 +00:00
Daniel Marjamäki a8f4091875 tokenize: moved 'IsName' to commoncheck. Replace 'sizeof(type)' with size. 2007-05-25 06:50:16 +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 be6a45069b Statements: Moved 'IsName' from main to commoncheck 2007-05-25 06:47:45 +00:00
Daniel Marjamäki 3991ccab25 CheckClass: Moved 'IsName' from main to commoncheck 2007-05-25 06:47:04 +00:00
Daniel Marjamäki 909bf7e6cd CommonCheck: Moved 'IsName' and 'IsNumber' from main.cpp 2007-05-25 06:45:47 +00:00
Daniel Marjamäki 997ae5f5b8 CheckBufferOverrun: Added 'CheckDangerousFunctions' 2007-05-25 06:44:53 +00:00
Daniel Marjamäki 0a57ef44f7 CommonCheck: Common functions used while checking for mistakes 2007-05-24 13:09:23 +00:00
Daniel Marjamäki 454c349363 CheckMemoryLeak: Added files (Check for memory leaks) 2007-05-24 13:08:51 +00:00
Daniel Marjamäki 7b9d6a7215 CheckHeaders: Added files (Check for mistakes in headers or related to headers) 2007-05-24 13:08:18 +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 399a3e2598 CheckBufferOverrun; Added files 2007-05-24 13:06:47 +00:00
Daniel Marjamäki ae4c97f814 tokenize: Added files 2007-05-24 05:40:45 +00:00
Daniel Marjamäki 442ed0fa00 readme: minor updates 2007-05-23 07:49:44 +00:00
Daniel Marjamäki ac3073e9fd Tests: Added 'TestBufferOverrun5' 2007-05-21 18:04:19 +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 d8139cf66d Test: minor update to TestBufferOverrun1 2007-05-21 17:19:26 +00:00
Daniel Marjamäki 63dd654ae4 Test: Updated 'TestBufferOverrun2'. Bufferusage out of bounds. 2007-05-21 17:18:50 +00:00
Daniel Marjamäki 39aef96ee6 Test: Added 'TestBufferOverrun4' 2007-05-21 17:17:11 +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 a48d8cad54 Test: Buffer overrun 2007-05-21 09:54:42 +00:00
Daniel Marjamäki b570e3c81d Test: Added 'TestBufferOverrun1' 2007-05-20 17:47:39 +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 c7cc0d0f9c Test: Updated 'testmemcheck4' and 'testmemcheck5' (continue/break) 2007-05-20 06:36:47 +00:00