Commit Graph

20784 Commits

Author SHA1 Message Date
Reijo Tomperi fee4d77e7b Refactoring: %var1% -> %varid% 2009-01-03 20:53:12 +00:00
Reijo Tomperi 5d1d267624 Refactoring: Rename class "TOKEN" to "Token" 2009-01-03 20:29:20 +00:00
Daniel Marjamäki 2f9c73ce82 Buffer overrun: Moved the "buffer overrun" and "array index out of bounds" to "--all" because there were false positives 2009-01-03 15:22:53 +00:00
Reijo Tomperi 6850441c4a ErrorMessage class added (not used yet and it is still unfinished) 2009-01-03 13:51:55 +00:00
Daniel Marjamäki 2e23b09a05 Refactoring : Removed a short commented code that I never use anyway 2009-01-03 07:55:05 +00:00
Daniel Marjamäki 2b3a987552 Using freed memory : Fixed false positive when usage is something like: printf("free %x",p); 2009-01-03 07:47:35 +00:00
Daniel Marjamäki b756158644 Memory leak : Fixed a regression and added a test case 2009-01-03 07:40:09 +00:00
Reijo Tomperi f099796a10 Copyright 2007-2008 -> 2007-2009 2009-01-02 19:02:35 +00:00
Reijo Tomperi 8f55e38ea6 Refactoring: Constructor of TOKEN changed to use initialization list
instead of assignment.
2009-01-02 18:36:03 +00:00
Daniel Marjamäki 80e35e7332 Preprocessor : Replace "#if defined(.." with "ifdef .." where possible 2009-01-02 18:27:50 +00:00
Daniel Marjamäki 0e219ec24b Memory leak : Added test case "if10" which is similar to "if9" 2009-01-02 08:16:32 +00:00
Daniel Marjamäki 8ff5124233 Memory leak: Improved the checking of usage after free (if str is freed then "char c = str[0];" is illegal) 2009-01-02 08:00:12 +00:00
Daniel Marjamäki cc569d164d Memory leak: Renamed the test case "func12" to "if9" 2009-01-02 07:44:49 +00:00
Nicolas Le Cam 0c2f90dceb Memory leak : Add a new test that currently fail to highlight a regression 2009-01-02 01:29:07 +00:00
Nicolas Le Cam e29ead375f Preprocessor: Get rid of an unused parameter 2009-01-02 00:13:24 +00:00
Nicolas Le Cam 08cd1894ee Preprocessor: Get rid of an unused parameter 2009-01-02 00:06:27 +00:00
Nicolas Le Cam 2e439d8cea Memory leak : Completly fix false positive when using callbacks (Bug 2458510) 2009-01-02 00:05:08 +00:00
Reijo Tomperi 5b42b5777e Refactoring: i++; changed to ++i; 2009-01-01 23:43:23 +00:00
Reijo Tomperi 94923cca1a Refactoring: Prefer ++i; over i++; 2009-01-01 22:22:28 +00:00
Daniel Marjamäki ca550fb03e Memory leak : Changed the handling of "realloc" a little. The "getcode" will return "realloc" instead. And this will be converted to "dealloc;alloc;" before simplifycode 2009-01-01 18:42:32 +00:00
Daniel Marjamäki 35cdb6b0ba Memory leak : a little different handling when the callstack gets too big 2009-01-01 16:10:10 +00:00
Daniel Marjamäki b7b737c8f2 Memory leak : fixed false positive when there are recursive calls. (using memory after it has been freed) 2009-01-01 11:02:30 +00:00
Daniel Marjamäki 0b69a13205 Memory leak : Fixed false positives for "memory is used after it has been freed" 2009-01-01 10:14:52 +00:00
Daniel Marjamäki 784fc0d33e Memory leak : Fixed a bug in getcode (assignment) 2009-01-01 10:02:53 +00:00
Daniel Marjamäki 9a3696cb6f TOKEN: Renamed TOKEN::setstr to TOKEN::str 2009-01-01 09:37:07 +00:00
Daniel Marjamäki cf355c9e75 Memory leak : Fix to avoid false positives 2009-01-01 08:15:27 +00:00
Daniel Marjamäki dec4561ce3 memory leak: removed 'if(true)' and 'if(false)' as these are handled in the tokenizer instead 2008-12-31 17:32:18 +00:00
Daniel Marjamäki b31b56fbe9 releasenotes : removed this file 2008-12-31 09:07:01 +00:00
Daniel Marjamäki 085e97fd36 Memory leak : Added check "Using resource after it has been released" 2008-12-31 09:02:45 +00:00
Daniel Marjamäki 43150ce9fb if checking : fixed bug in previous commit 2008-12-31 08:38:48 +00:00
Daniel Marjamäki da1b84b199 if statements : bug fix and refactorings in the checking for "if (condition);" 2008-12-31 07:42:50 +00:00
Daniel Marjamäki 6167c22eb9 help : minor updates to help text that cppcheck shows when no parameters are given 2008-12-30 18:48:36 +00:00
Daniel Marjamäki a0d27c9109 readme : minor updates 2008-12-30 18:45:35 +00:00
Reijo Tomperi e11799eede c++check -> cppcheck 2008-12-30 18:45:17 +00:00
Daniel Marjamäki 75ec9f5c86 releasenotes : edit 2008-12-30 18:45:06 +00:00
Daniel Marjamäki 8a0e44a41b cppcheck : updated version to 1.27 in help text 2008-12-30 18:21:19 +00:00
Daniel Marjamäki 3947d8e797 Memory leak : Reverted 796 and 797. I didn't see definite improvements 2008-12-29 11:31:19 +00:00
Daniel Marjamäki 6a83e24c90 Memory leak : Removed checking of 'if(true)' and 'if(false)' as these are handled in the Tokenizer 2008-12-29 08:12:33 +00:00
Daniel Marjamäki 7e43f9f7f9 Memory leak : Optimising the 'CheckMemoryLeakClass::simplifycode' 2008-12-29 08:07:25 +00:00
Daniel Marjamäki c3954afdef Memory leak : Remove false positive for "if (cond1) str=strdup(); if (cond2) str=strdup();" 2008-12-28 21:24:51 +00:00
Daniel Marjamäki 6c8c4d7a63 memory leak : fixed false positive for "list << data" 2008-12-28 21:02:11 +00:00
Daniel Marjamäki 7f1b98d7ae Memory leak : Fixed false positive for "list += data" 2008-12-28 20:57:50 +00:00
Reijo Tomperi ec32e071b5 Bail out text is now not printed with --quiet option 2008-12-28 20:13:03 +00:00
Daniel Marjamäki 76239fcdf9 Memory leak : Fixed a problem with a fclose inside an if condition 2008-12-28 19:57:50 +00:00
Reijo Tomperi 56de5ece91 releasenotes updated command line options made more accurate 2008-12-28 16:01:26 +00:00
Daniel Marjamäki dbe56e2574 releasenotes : Added release notes for the coming 1.27 release 2008-12-28 14:41:22 +00:00
Daniel Marjamäki 8ba739a99a Tokenizer::setVarId : Minor bug fix 2008-12-28 10:13:41 +00:00
Reijo Tomperi 7a9a43390e Optimizing setVarId() 2008-12-27 20:48:42 +00:00
Reijo Tomperi 31e9a7e10c preprocessor optimized to handle faster removal of spaces near newline 2008-12-27 20:30:54 +00:00
Daniel Marjamäki c5247aa887 Visual C++ : Updated the project file 2008-12-27 11:31:00 +00:00