From 004cdc68ddb33012fa21899bdcc097adbf5b5744 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 17 Jan 2010 13:54:55 +0100 Subject: [PATCH] updated Changelog --- Changelog | 1342 ++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 1338 insertions(+), 4 deletions(-) diff --git a/Changelog b/Changelog index 79dcde5e9..d1a99e9a6 100644 --- a/Changelog +++ b/Changelog @@ -1,3 +1,1338 @@ +2010-01-17 Daniel Marjamäki + + * cli/cppcheck.rc, cli/main.cpp, createrelease, lib/cppcheck.cpp, + win_installer/productInfo.wxi: Updated version to 1.40 + +2010-01-17 Daniel Marjamäki + + * test/testsimplifytokens.cpp: Added TODO test for better pointer + aliasing with memset + +2010-01-17 Robert Reif + + * lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1275 + (Cppcheck hangs when analysing the code 'typedef struct { } A, *B, + **C;') + +2010-01-17 Kimmo Varis + + * : commit 97eb380bba8deeb480d035e606157d610db98379 Author: Kimmo + Varis Date: Sun Jan 17 01:21:45 2010 +0200 + +2010-01-17 Kimmo Varis + + * win_installer/cppcheck.wxs: Installer: Update package version to + 300 to use latest installer version. + +2010-01-17 Kimmo Varis + + * win_installer/cppcheck.wxs, win_installer/productInfo.wxi: + Installer: Add variable for Qt dll location. + +2010-01-17 Kimmo Varis + + * win_installer/cppcheck.wixproj, win_installer/cppcheck.wxs, + win_installer/productInfo.wxi: Install MS CRT runtimes. Add VS2008 CRT merge module to the installer. This is the correct + way to install MS runtimes. + +2010-01-17 Kimmo Varis + + * win_installer/cli.wxs, win_installer/cppcheck.wixproj, + win_installer/cppcheck.wxs, win_installer/productInfo.wxi: + Installer: Add project file. Project file allows building installer with msbuild. Add config + variables for binaries directories to avoid copying binaries to + installer directory. + +2010-01-16 Daniel Marjamäki + + * lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1272 (links + in typedef not handled correctly) + +2010-01-16 Daniel Marjamäki + + * : commit 0a8ca1f160bf635f63e4e7d936a65fac995af779 Author: Daniel + Marjamäki Date: Sat Jan 16 13:56:57 2010 + +0100 + +2010-01-16 Robert Reif + + * lib/tokenize.cpp, test/testsimplifytokens.cpp, + test/testtokenize.cpp: Refactoring the handling of typedefs + +2010-01-16 Daniel Marjamäki + + * cppcheck.cbproj, lib/checkclass.cpp, lib/checkclass.h: Revert + "minor tweak in Borland C++ project file" This reverts commit ad06ee4f71698fcd67d2d42d27c8117ff1ecc234. + +2010-01-16 Daniel Marjamäki + + * cppcheck.cbproj, lib/checkclass.cpp, lib/checkclass.h: minor tweak + in Borland C++ project file + +2010-01-15 Reijo Tomperi + + * lib/tokenize.cpp, test/testtokenize.cpp: Fix part of #1262 + (cppcheck false positives: 'Possible null pointer dereference' + http://sourceforge.net/apps/trac/cppcheck/ticket/1262 + +2010-01-14 Daniel Marjamäki + + * lib/preprocessor.cpp: refactoring + +2010-01-14 Daniel Marjamäki + + * lib/filelister.cpp, lib/preprocessor.cpp: astyle formatting + +2010-01-14 Daniel Marjamäki + + * cli/threadexecutor.cpp, cli/threadexecutor.h: lanurmi: Fixed + threads handling when using Sun compiler + +2010-01-14 Daniel Marjamäki + + * lib/filelister.cpp, lib/filelister.h, lib/preprocessor.cpp: + lanurmi: Fixed #1269 (Changes required for compiling with Sun's + compiler) + +2010-01-14 Daniel Marjamäki + + * lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #1264 (False + positive: Resource leak with if-else in while) + +2010-01-14 Daniel Marjamäki + + * lib/checkother.cpp, test/testother.cpp: Fixed #1268 (Null pointer + dereference false positive) + +2010-01-14 Henrik Nilsson + + * htmlreport/cppcheck-htmlreport: cppcheck-htmlreport now takes a + parameter for source code encoding to support non ascii characters. Also present a nicer error message if highlighting fail for a file. + +2010-01-13 Daniel Marjamäki + + * lib/preprocessor.cpp, lib/preprocessor.h: wrote comments about the + preprocessor + +2010-01-13 Daniel Marjamäki + + * lib/executionpath.cpp, test/testother.cpp: Fixed #1265 ((error) + Uninitialized variable on macro expansion) + +2010-01-13 Henrik Nilsson + + * htmlreport/cppcheck-htmlreport: cppcheck-htmlreport now takes a + --title parameter that will be displayed on top of every page. + +2010-01-13 Henrik Nilsson + + * htmlreport/cppcheck-htmlreport: Added !DOCTYPE declaration for + html generated by the cppcheck-htmlreport tool. + +2010-01-13 Robert Reif + + * lib/tokenize.cpp, test/testsimplifytokens.cpp: Tokenizer: fixed + typedef issues + +2010-01-12 Daniel Marjamäki + + * lib/checkother.cpp: Uninitialized variables: disable subfunction + analysis if multiple threads are used + +2010-01-12 Daniel Marjamäki + + * lib/checkmemoryleak.cpp: CheckMemoryLeaks: Added 'strlen' to white + list + +2010-01-12 Daniel Marjamäki + + * lib/checkmemoryleak.cpp: Fixed #1258 ('fscanf' missing in + call_func_white_list) + +2010-01-12 Daniel Marjamäki + + * lib/checkclass.cpp, test/testclass.cpp: Fixed #1259 (false + postive: Member variable 'A::b' is not assigned a value in + 'A::operator=') + +2010-01-12 Henrik Nilsson + + * htmlreport/cppcheck-htmlreport: cppcheck-htmlreport now annotates + the highlighted source code with the cppcheck error message. + +2010-01-12 Daniel Marjamäki + + * lib/tokenize.cpp, lib/tokenize.h, test/testsimplifytokens.cpp: + Tokenizer: some cleanup of std:: + +2010-01-12 Henrik Nilsson + + * htmlreport/cppcheck-htmlreport: Fixed some markup errors in + generated html from the cppcheck-htmlreport script. + +2010-01-12 Reijo Tomperi + + * test/testtoken.cpp: Get rid of casting in test file. + http://sourceforge.net/apps/trac/cppcheck/ticket/1242 + +2010-01-12 Daniel Marjamäki + + * lib/checkother.cpp, test/testother.cpp: Fixed #1070 (Improve scope + error message) + +2010-01-12 Daniel Marjamäki + + * lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #1257 + (potential leaks not reported becauseof 'continue' in loop) + +2010-01-12 Robert Reif + + * lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1252 + (Internal error in Cppcheck while parsing struct) + +2010-01-11 Robert Reif + + * lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1250 + (tokenize typedef of union) + +2010-01-11 Daniel Marjamäki + + * lib/checkother.cpp, lib/checkother.h, test/testother.cpp: Fixed + #1174 (improve check: Unintialized variable not detected in + subfunction) + +2010-01-11 Daniel Marjamäki + + * lib/checkbufferoverrun.cpp, lib/tokenize.cpp, + test/testbufferoverrun.cpp: BufferOverrun: negative index is out of + bounds + +2010-01-11 Daniel Marjamäki + + * lib/checkother.cpp, test/testother.cpp: Uninitialized variables: + fixed false positives when using pointer aliasing + +2010-01-11 Robert Reif + + * lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1248 + (tokenize typedef of array) + +2010-01-10 Daniel Marjamäki + + * lib/executionpath.cpp, test/testother.cpp: ExecutionPath: better + handling of for/while/do/switch, it doesn't bail out everything + +2010-01-10 Daniel Marjamäki + + * lib/checkother.cpp, test/testother.cpp: Fixed #1225 (false + negative :: uninitialized variable not detected when using enums) + +2010-01-10 Daniel Marjamäki + + * lib/checkmemoryleak.cpp, test/testmemleak.cpp: fixed unlogged + errors from the tokenizer and also some errors reported by valgrind + +2010-01-10 Daniel Marjamäki + + * test/testtoken.cpp: ivoire: 64-bit portability fix + +2010-01-10 Daniel Marjamäki + + * lib/checkmemoryleak.cpp, test/testmemleak.cpp: memory leaks: + better handling of loops and switch + +2010-01-10 Daniel Marjamäki + + * lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #1220 (False + memory leak when using while) + +2010-01-10 Daniel Marjamäki + + * lib/checkmemoryleak.cpp, test/testmemleak.cpp: Memory leaks: + Better handling of switch + +2010-01-10 Daniel Marjamäki + + * lib/checkother.cpp, test/testother.cpp: Fixed #1218 (Improve + check: incrementing uninitialized variable i++) + +2010-01-10 Robert Reif + + * lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1244 + (tokenize typedef of unnamed struct) + +2010-01-09 Daniel Marjamäki + + * lib/checkother.cpp, test/testother.cpp: Fixed #1189 (false + negative: using uninitialized variable i 'a[i] = 0;') + +2010-01-09 Daniel Marjamäki + + * lib/preprocessor.cpp, test/testpreprocessor.cpp: Fixed #1231 + (Preprocessor: Fail to evaluate '#if ! defined _ABCD_') + +2010-01-09 Kimmo Varis + + * build.bat: Add "all" target for build.bat. + +2010-01-09 Kimmo Varis + + * build.bat: Make release the default target in build.bat. + +2010-01-09 Kimmo Varis + + * build.bat: Allow building both debug and release targets using + build.bat. + +2010-01-09 Kimmo Varis + + * build.bat: Improve build.bat to support building from QT prompt. + +2010-01-09 Kimmo Varis + + * build.bat: Fix build.bat after directory renames. + +2010-01-09 Kimmo Varis + + * win_installer/build2.bat: Update build2.bat to point to latest Qt + SDK. + +2010-01-09 Daniel Marjamäki + + * lib/tokenize.cpp: Borland C++: Fixed compiler error + +2010-01-08 Daniel Marjamäki + + * lib/executionpath.cpp, test/testother.cpp: fixed segmentation + fault + +2010-01-08 Daniel Marjamäki + + * lib/executionpath.cpp, test/testother.cpp: Fixed #1237 + (Uninitialized variable false positive for return-value pattern in + pan source code.) + +2010-01-08 Robert Reif + + * lib/checkclass.cpp, test/testclass.cpp: Fixed #1233 (false + positive: operator = should check for assignment to self) + +2010-01-07 Daniel Marjamäki + + * lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #1235 + (CheckMemoryLeakInFunction: Wrong handling of 'fcloseall') + +2010-01-07 Kimmo Varis + + * win_installer/build1.bat: Update batch file for latest Qt SDK + location. + +2010-01-07 Robert Reif + + * lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1232 + (segmentation fault of cppcheck when scanning templates) + +2010-01-06 Daniel Marjamäki + + * lib/tokenize.cpp: After suggestion from Jim Vollner, remove dead + pointers from the used list + +2010-01-06 Daniel Marjamäki + + * lib/token.cpp, lib/tokenize.cpp: uncomment validation of + Tokenizer::_tokensBack + +2010-01-06 Daniel Marjamäki + + * lib/checkbufferoverrun.cpp, lib/checkmemoryleak.cpp, + lib/token.cpp, lib/token.h, lib/tokenize.cpp, + test/testbufferoverrun.cpp, test/testsimplifytokens.cpp, + test/testtoken.cpp: Ticket #1228 : Handle tokensBack in the Token + class. When adding&removing tokens the Token class can make sure + that this pointer is updated accordingly. It is very important that + the tokensBack has the same scope as the token list, otherwise there + will be a dead pointer problem. + +2010-01-06 Daniel Marjamäki + + * lib/checkclass.cpp, test/testclass.cpp: Fixed #1221 ([False + positive] Member variable not initialized with operator[] gives + wrong result) + +2010-01-06 Kimmo Varis + + * CMake/xmlto.cmake, CMakeLists.txt, man/CMakeLists.txt: CMake - + build Docbook manual in Linux. Add XMLTO macro to build Docbook manual using xmlto program. xmlto + is not available in Windows so limit building to Linux. Adds new target "html" to build which is not run automatically. + +2010-01-06 Kimmo Varis + + * gui/mainwindow.cpp: Fixed #1229 (GUI: project file not read when + checking a file) + +2010-01-06 Kimmo Varis + + * gui/mainwindow.cpp: Fixed #1226 (GUI: project include file + relative path search problem) Thanks for Robert Reif for finding and reporting problem in previous + commit. + +2010-01-06 Kimmo Varis + + * : commit 5bb3c5898bf87a5aed5e3f775daf7c70fe9fe20c Author: Kimmo + Varis Date: Wed Jan 6 01:40:26 2010 +0200 + +2010-01-06 Reijo Tomperi + + * lib/tokenize.cpp: Added more validating code to tokenizer. + Currently commented out. + +2010-01-06 Kimmo Varis + + * gui/gui.cppcheck: Add lib directory to gui "project file" include. + +2010-01-05 Robert Reif + + * lib/checkclass.cpp, test/testclass.cpp: Fixed #1224 (segmentation + fault of cppcheck) + +2010-01-05 Kimmo Varis + + * test/CMakeLists.txt: CMake - Include test project's header file to + VS IDE project. + +2010-01-05 Kimmo Varis + + * CMakeLists.txt: CMake - Include test project when creating VS IDE + project. + +2010-01-04 Robert Reif + + * lib/tokenize.cpp, lib/tokenize.h, test/testsimplifytokens.cpp: + Fixed #1215 (are enums processed properly?) + +2010-01-03 Kimmo Varis + + * cli/CMakeLists.txt: CMake - add header files to CLI project and VS + project. + +2010-01-03 Kimmo Varis + + * lib/CMakeLists.txt: CMake - add header files to lib project (and + to VS project). + +2010-01-03 Kimmo Varis + + * gui/CMakeLists.txt: CMake - Create folders for GUI files in Visual + Studio IDE. + +2010-01-03 Kimmo Varis + + * : commit b483221f4534938ef1849d6eefa5b28c4924c952 Author: Kimmo + Varis Date: Sun Jan 3 19:50:04 2010 +0200 + +2010-01-03 Daniel Marjamäki + + * lib/checkother.cpp, test/testother.cpp: Fixed #1023 (improve + check: Unintialized variable not detected when using +=) + +2010-01-03 Daniel Marjamäki + + * test/testbufferoverrun.cpp: refactoring + +2010-01-03 Daniel Marjamäki + + * test/testbufferoverrun.cpp: added test case for #1193 (false + negative: array out of bounds in loop when there is calculation) + +2010-01-03 Daniel Marjamäki + + * lib/executionpath.cpp, test/testother.cpp: Fixed #1216 (false + positive: uninitialized variable when using exit|abort) + +2010-01-03 Daniel Marjamäki + + * lib/checkother.cpp, lib/executionpath.cpp, test/testother.cpp: + Fixed #440 (NULL referencing not detected) + +2010-01-03 Daniel Marjamäki + + * gui/mainwindow.cpp: Fixed #1187 (GUI: fix project file loading) + +2010-01-03 Robert Reif + + * lib/checkclass.cpp, test/testclass.cpp: Fixed #1184 (improve test: + operator =) + +2010-01-03 Daniel Marjamäki + + * lib/checkother.cpp, test/testother.cpp: Fixed #1214 (false + positive: uninitialized variable 'bool fixed = + std::ios_base::fixed;') + +2010-01-02 Daniel Marjamäki + + * lib/preprocessor.cpp, test/testpreprocessor.cpp: Fixed #1203 + (Preprocessor: Doesn't handle macros usage that contain ';') + +2010-01-02 Daniel Marjamäki + + * lib/checkother.cpp, test/testother.cpp: Fixed #1209 (False + positive: uninitialized variable c when it is initialized with + 'ab(sizeof(xyz), &c)') + +2010-01-02 Robert Reif + + * lib/checkclass.cpp, lib/checkclass.h, lib/tokenize.cpp, + lib/tokenize.h, test/testconstructors.cpp, test/testtokenize.cpp: + Fixed #1211 (add struct support for constructor checks) + +2010-01-02 Daniel Marjamäki + + * lib/executionpath.cpp, test/testother.cpp: Fixed #1202 (false + positive: uninitialized variable when using 'do') + +2010-01-02 Daniel Marjamäki + + * lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1204 + (Tokenizer::findClassFunction broken) + +2010-01-02 Slava Semushin + + * lib/checkautovariables.cpp, test/testautovariables.cpp: Fixed + #1013 (autovariables: detect when assigning parameter **par) http://sourceforge.net/apps/trac/cppcheck/ticket/1013 + +2010-01-02 Slava Semushin + + * lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1197 + (Segmentation fault when we define function which was already + defined by preprocessor) http://sourceforge.net/apps/trac/cppcheck/ticket/1197 + +2010-01-01 Daniel Marjamäki + + * lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1178 (1.39: + Internal error) + +2010-01-01 Daniel Marjamäki + + * lib/executionpath.cpp, test/testother.cpp: Fixed #1200 (false + positive 'uninitialized variable' when using throw) + +2010-01-01 Daniel Marjamäki + + * lib/checkother.cpp: refactoring the fix for #1191 + +2010-01-01 Daniel Marjamäki + + * lib/checkother.cpp, test/testother.cpp: Fixed #1191 (false + positive: uninitialized variable) + +2010-01-01 Daniel Marjamäki + + * lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1196 (Hang: + Cppcheck hang for the file linux-2.6/drivers/crypto/hifn_795x.c) + +2009-12-31 Daniel Marjamäki + + * lib/checkother.cpp, test/testother.cpp: Fixed #1188 (false + negative: dereferencing p, which is a null pointer 'int y = 5 + *p') + +2009-12-31 Daniel Marjamäki + + * lib/tokenize.cpp, test/testtokenize.cpp: fixed a hang in + Tokenizer::simplifyFunctionParameters + +2009-12-31 Daniel Marjamäki + + * test/testclass.cpp: Self assignment in class: added TODO test + cases to reduce false positives + +2009-12-31 Robert Reif + + * lib/checkclass.cpp, lib/checkclass.h, test/testclass.cpp: Fixed + #1184 (improve test: operator =) + +2009-12-31 Daniel Marjamäki + + * lib/cppcheck.cpp: fixed cppcheck warning + +2009-12-31 Daniel Marjamäki + + * lib/preprocessor.cpp: Fixed #1181 (Preprocessor fails while + expanding macros) + +2009-12-31 Daniel Marjamäki + + * lib/checkother.cpp, test/testother.cpp: Fixed #1183 (False + positive: uninitialized variable p 'd = bar(sizeof(*p));') + +2009-12-30 Daniel Marjamäki + + * lib/checkother.cpp, test/testother.cpp: Fixed #1182 (False + positive: uninitialized variable 'int *pa = &a;') + +2009-12-30 Daniel Marjamäki + + * lib/checkmemoryleak.cpp, lib/checkmemoryleak.h, + test/testmemleak.cpp: Fixed #1173 (Improve check: memory leak not + detected in constructor) + +2009-12-30 Robert Reif + + * lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1167 (### + Internal error in Cppcheck. Please report it.) + +2009-12-30 Daniel Marjamäki + + * lib/checkother.cpp: cleanup + +2009-12-30 Daniel Marjamäki + + * lib/checkother.cpp, test/testother.cpp: Fixed #1087 (uninitialized + data not detected 'char z = *str') + +2009-12-30 Daniel Marjamäki + + * lib/checkother.cpp, lib/tokenize.cpp, test/testother.cpp, + test/testtokenize.cpp: Fixed #1105 (improve check: uninitialized + variable not detected for 'a = a') + +2009-12-30 Robert Reif + + * lib/checkclass.cpp, test/testclass.cpp: Fixed #1176 (void operator + = check doesn't support struct) + +2009-12-30 Daniel Marjamäki + + * lib/checkother.cpp, lib/checkother.h, test/testother.cpp: Fixed + #1041 (passing a nullpointer to a reference) + +2009-12-30 Daniel Marjamäki + + * lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1067 (Tokenizer: + K&R style function that returns function pointer) + +2009-12-30 Daniel Marjamäki + + * lib/checkother.cpp, test/testother.cpp: Fixed #1177 (False + positive: pointer is not dereferenced 'sizeof(*p)') + +2009-12-30 Daniel Marjamäki + + * lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1168 (false + positive: Uninitialized variable) + +2009-12-29 Daniel Marjamäki + + * lib/checkother.cpp, test/testother.cpp: Fixed #1166 (improve + check: using uninitialized pointer to create reference 'int + &r(*p);') + +2009-12-29 Daniel Marjamäki + + * lib/tokenize.cpp, test/testother.cpp: Robert Reif: Fixed #1163 + (post increment test broken for complex template types) + +2009-12-29 Daniel Marjamäki + + * lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1165 + (Tokenizer: wrong simplification of 'do { .. } while (0)' if the + body contains continue or break) + +2009-12-29 Daniel Marjamäki + + * lib/checkother.cpp, lib/executionpath.cpp, lib/executionpath.h: + ExecutionPath: Refactoring. Removed the bailOut variable + +2009-12-29 Daniel Marjamäki + + * lib/executionpath.cpp, lib/executionpath.h, test/testother.cpp: + Fixed #1160 (Null pointer dereference vs. goto) + +2009-12-29 Daniel Marjamäki + + * lib/checkclass.cpp: astyle formatting + +2009-12-29 Daniel Marjamäki + + * lib/checkclass.cpp, test/testclass.cpp: Robert Reif: Fixed #1164 + (only first void operator = found) + +2009-12-29 Daniel Marjamäki + + * lib/tokenize.cpp, test/testsimplifytokens.cpp: Robert Reif: Fixed + #1162 (add support to tokenize typedefs with templates) + +2009-12-28 Daniel Marjamäki + + * lib/executionpath.cpp, lib/preprocessor.cpp: Valgrind: Fixed + memory leaks when running testrunner that was found by Valgrind + +2009-12-28 Daniel Marjamäki + + * lib/checkstl.h, test/teststl.cpp: Robert Reif: Fixed #1158 + ((possible style) message with regular check) + +2009-12-28 Daniel Marjamäki + + * lib/tokenize.cpp, test/testsimplifytokens.cpp: Robert Reif: Fixed + #1161 (add tokenize support for typedefs with enum definitions) + +2009-12-28 Daniel Marjamäki + + * lib/tokenize.cpp: Fixed #1159 (Valgrind gives error in + Tokenizer::simplifyWhile0) + +2009-12-28 Daniel Marjamäki + + * lib/checkother.cpp, test/testother.cpp: Fixed #1156 ([False + positive] Uninitialized variable - class member in constructor) + +2009-12-28 Daniel Marjamäki + + * lib/cppcheck.cpp, lib/cppcheck.h, lib/preprocessor.cpp, + lib/settings.cpp, lib/settings.h: exitcode suppressions. Partly + fixes #1113 + +2009-12-28 Daniel Marjamäki + + * lib/tokenize.cpp, lib/tokenize.h, test/testsimplifytokens.cpp, + test/testtokenize.cpp: Tokenizer: Simplify 'while (0)' better + +2009-12-27 Daniel Marjamäki + + * lib/checkother.cpp, test/testother.cpp: Fixed another issue with + #1154 (false positive: Data is allocated but not initialized) + +2009-12-27 Daniel Marjamäki + + * lib/mathlib.cpp, test/testmathlib.cpp: astyle formatting + +2009-12-27 Daniel Marjamäki + + * lib/checkother.cpp, test/testother.cpp: Fixed #1154 (false + positive: Data is allocated but not initialized) + +2009-12-27 Daniel Marjamäki + + * lib/checkother.cpp, test/testother.cpp: Fixed #1138 (improve + check: dereferencing uninitialized pointer) + +2009-12-27 Martin Ettl + + * lib/mathlib.cpp, test/testmathlib.cpp: added further testcases to + testmathlib::convert(); now the conversion of + +-[hexnumber|octalnumber] works correctly + +2009-12-27 Martin Ettl + + * test/testmathlib.cpp: added further testcases to + testmathlib::isint() + +2009-12-27 Martin Ettl + + * lib/mathlib.cpp, test/testmathlib.cpp: extended testcases of + mathlib; fixed zero conversion: +0 and -0 is converted to 0 + +2009-12-27 Daniel Marjamäki + + * lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #972 (New + check: return pointer of stack memory) + +2009-12-27 Daniel Marjamäki + + * lib/checkother.cpp: Uninitialized variables: Refactoring and + commenting a little + +2009-12-27 Daniel Marjamäki + + * lib/checkother.cpp, test/testother.cpp: Fixed #1153 (False + positive: uninitialized data for reinterpret_cast) + +2009-12-26 Daniel Marjamäki + + * test/testmemleak.cpp: Fixed #1120 (Test compile warnings with + Cygwin) + +2009-12-26 Daniel Marjamäki + + * lib/checkother.cpp, test/testother.cpp: Uninitialized variables: + Fixed false positive for 'if (ptr)' + +2009-12-26 Daniel Marjamäki + + * lib/checkother.cpp, test/testother.cpp: Fixed #1151 (false + positive: Data is allocated but not initialized) + +2009-12-26 Daniel Marjamäki + + * lib/executionpath.cpp: Fixed #1152 (Hang/Slow: ExecutionPath + handling hangs) + +2009-12-25 Daniel Marjamäki + + * lib/checkother.cpp, lib/executionpath.cpp, lib/executionpath.h, + test/testother.cpp: ExecutionPath: Refactoring if-handling + +2009-12-25 Daniel Marjamäki + + * lib/checkmemoryleak.cpp, lib/checkother.cpp, + lib/executionpath.cpp, lib/executionpath.h: ExecutionPath: + Refactoring the interface + +2009-12-25 Daniel Marjamäki + + * lib/checkother.cpp, lib/executionpath.cpp, lib/executionpath.h, + test/testother.cpp: Fixed #683 (wrong usage of strcmp) + +2009-12-25 Daniel Marjamäki + + * man/manual.docbook: htmlreport: added brief information in the + manual + +2009-12-25 Daniel Marjamäki + + * : Merge commit 'hn/master' + +2009-12-25 Daniel Marjamäki + + * lib/cppcheck.cpp: Robert Reif: fix cppcheck post increment warning + +2009-12-25 Daniel Marjamäki + + * lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1141 + (Tokenizer: Wrong simplification of calculations) + +2009-12-23 Daniel Marjamäki + + * lib/checkother.cpp, test/testother.cpp: fixed unit testing + +2009-12-23 Daniel Marjamäki + + * lib/checkother.cpp, test/testother.cpp: Refactoring the + uninitialized variable / null pointer checks so they use a common + function to inspect function calls + +2009-12-23 Daniel Marjamäki + + * lib/checkother.cpp, test/testother.cpp: Fixed #1147 (Improve + check: return uninitialized variable) + +2009-12-23 Daniel Marjamäki + + * lib/checkother.cpp, test/testother.cpp: Fixed false positives + about uninitialized variables + +2009-12-23 Daniel Marjamäki + + * lib/checkother.cpp, test/testother.cpp: Fixed #1137 (false + positive: uninitialized variable when using a class object) + +2009-12-23 Daniel Marjamäki + + * lib/checkother.cpp, test/testother.cpp: Robert Reif: Fixed #1139 + (false negative: CheckOther::postIncrement() only finds at most one + problem) + +2009-12-23 Daniel Marjamäki + + * test/testtokenize.cpp: Robert Reif: code cleanup + +2009-12-23 Daniel Marjamäki + + * lib/cppcheck.cpp: Robert Reif: fix a style warning + +2009-12-22 Daniel Marjamäki + + * lib/checkmemoryleak.cpp: Borland C++: Fixed compiler error + +2009-12-22 Daniel Marjamäki + + * lib/executionpath.h, lib/preprocessor.cpp: Visual Studio: Added + casts to silence compiler warnings + +2009-12-22 Daniel Marjamäki + + * lib/checkmemoryleak.cpp, lib/checkmemoryleak.h: Visual Studio: + Fixed unittests + +2009-12-22 Daniel Marjamäki + + * testrunner.cbproj: C++ Builder: updated the testrunner project + file - added the lib/executionpath.cpp + +2009-12-22 Daniel Marjamäki + + * lib/checkother.cpp, test/testother.cpp: Fixed #1133 (Uninitialized + array: strchr, strrchr, etc) + +2009-12-22 Daniel Marjamäki + + * lib/checkother.cpp, test/testother.cpp: Fixed #1128 (false + positive: Data is allocated but not initialized) + +2009-12-22 Daniel Marjamäki + + * lib/preprocessor.cpp, test/testpreprocessor.cpp: Fixed #1112 + (cppcheck fails because of accented characters in comments) + +2009-12-22 Daniel Marjamäki + + * lib/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #1127 + (Segfault with template) + +2009-12-22 Daniel Marjamäki + + * test/testmemleak.cpp, test/testother.cpp: astyle formatting + +2009-12-22 Daniel Marjamäki + + * lib/checkother.cpp, test/testother.cpp: Eric Sesterhenn: Fixed + #1130 (False positive uninitialized variable) + +2009-12-22 Daniel Marjamäki + + * lib/checkmemoryleak.cpp, test/testmemleak.cpp: Eric Sesterhenn: + Fixed #1131 (descriptor leak false positive) + +2009-12-22 Daniel Marjamäki + + * lib/tokenize.cpp, test/testsimplifytokens.cpp: Robert Reif: Fixed + #1108 (Only trivial typedefs are tokenized properly) + +2009-12-21 Daniel Marjamäki + + * lib/checkother.cpp, test/testother.cpp: Fixed #1096 (Non-obvious + error message: Overlapping data buffer) + +2009-12-21 Daniel Marjamäki + + * lib/checkstl.cpp, test/teststl.cpp: Fixed #1095 (Non-obvious error + message: Dangerous usage of erase) + +2009-12-21 Daniel Marjamäki + + * lib/preprocessor.cpp: preprocessor: removed unnecessary casts + +2009-12-21 Daniel Marjamäki + + * lib/checkexceptionsafety.cpp, test/testexceptionsafety.cpp: Fixed + #1126 (False positive: upon exception there is memory leak (calling + unknown function)) + +2009-12-21 Daniel Marjamäki + + * lib/checkother.cpp, test/testother.cpp: ericsesterhenn: Fixed + #1091 (improve check: nullpointer dereference not detected) + +2009-12-21 Daniel Marjamäki + + * lib/checkmemoryleak.cpp, lib/checkother.cpp, + lib/executionpath.cpp, lib/executionpath.h: Execution Path: + Refactoring + +2009-12-20 Reijo Tomperi + + * lib/preprocessor.cpp, test/testpreprocessor.cpp: Fix #1124 + (Invalid number of character ((). Can't process file.) + http://sourceforge.net/apps/trac/cppcheck/ticket/1124 + +2009-12-20 Daniel Marjamäki + + * lib/checkother.cpp, lib/executionpath.h, test/testmemleak.cpp: + Execution Path: some refactorings of the checking + +2009-12-20 Daniel Marjamäki + + * lib/executionpath.cpp, test/testother.cpp: Fixed #1119 (false + positve: uninitialized variable y when y is assigned in inner + expression 'x = (y = 10)') + +2009-12-20 Daniel Marjamäki + + * lib/tokenize.cpp: Fixed #1117 (segmentation fault of cppcheck) + +2009-12-20 Kimmo Varis + + * CMakeLists.txt, test/CMakeLists.txt: CMake - add 'make check' + -target. Tests are now excluded from normal targets to make compiling faster. + 'make check' -target will compile and run tests. + +2009-12-20 Kimmo Varis + + * cli/CMakeLists.txt, gui/CMakeLists.txt, lib/CMakeLists.txt, + test/CMakeLists.txt: CMake - use more strict compiler flags. + +2009-12-20 Daniel Marjamäki + + * lib/preprocessor.cpp: Preprocessor: Use 'unsigned char' instead of + 'char' + +2009-12-20 Daniel Marjamäki + + * lib/checkclass.cpp: code cleanup + +2009-12-19 Daniel Marjamäki + + * lib/checkstl.cpp: stl size: minor fix to prevent segmentation + fault when token is null + +2009-12-19 Daniel Marjamäki + + * lib/checkstl.h: stl size: added documentation + +2009-12-19 Daniel Marjamäki + + * lib/checkclass.cpp, lib/checkclass.h, test/testclass.cpp, + test/testconstructors.cpp: Fixed #1093 (False positive: missing + constructor) + +2009-12-19 Daniel Marjamäki + + * lib/checkbufferoverrun.cpp, lib/checkstl.cpp, + test/testbufferoverrun.cpp: astyle + +2009-12-19 Kimmo Varis + + * gui/CMakeLists.txt: CMake- fix building GUI from different + directory. + +2009-12-19 Kimmo Varis + + * CMakeLists.txt: CMake - disable building GUI for Cygwin. + +2009-12-19 Kimmo Varis + + * : commit d51520d656459780d4addc67cd2e1e3dd830bb2b Author: Kimmo + Varis Date: Sat Dec 19 16:54:38 2009 +0200 + +2009-12-19 Kimmo Varis + + * gui/cppcheck-gui.rc: Fix Windows GUI resource file. + +2009-12-19 Daniel Marjamäki + + * lib/checkstl.cpp, lib/checkstl.h, test/teststl.cpp: robert reif: + Fixed #1118 (new check: use empty() instead of checking size() + against zero) + +2009-12-19 Kimmo Varis + + * cli/CMakeLists.txt, gui/CMakeLists.txt, test/CMakeLists.txt: CMake + - cleaner way to set additional library for Windows. + +2009-12-18 Daniel Marjamäki + + * lib/checkstl.cpp, test/teststl.cpp: Fixed #1107 (False positive: + Dangerous usage of erase, when using std::list) + +2009-12-18 Daniel Marjamäki + + * lib/filelister.cpp: lanurmi: Fixed #1016 (Patch: Refactor #ifdefs + in filelister.cpp) + +2009-12-18 Daniel Marjamäki + + * cli/cppcheck.vcproj, test/test.vcproj: Fixed #1101 (link error + with latest git in Visual Studio) + +2009-12-18 Daniel Marjamäki + + * cppcheck.cbproj: C++ Builder: updated project file + +2009-12-18 Daniel Marjamäki + + * lib/checkbufferoverrun.h: added error info about the strncpy check + +2009-12-18 Daniel Marjamäki + + * lib/checkbufferoverrun.cpp, lib/checkbufferoverrun.h, + test/testbufferoverrun.cpp: ericsesterhenn: Fixed #1106 (check if + buffer is zero terminated after a strncpy) + +2009-12-17 Kimmo Varis + + * cli/CMakeLists.txt, gui/CMakeLists.txt, test/CMakeLists.txt: CMake + - Fix Windows build. + +2009-12-17 Kimmo Varis + + * lib/CMakeLists.txt: CMake - add missing file in lib. + +2009-12-17 Kimmo Varis + + * lib/CMakeLists.txt: CMake - reorder files in lib's makefile. + +2009-12-14 Kimmo Varis + + * gui/CMakeLists.txt: CMake - build GUI translation files. + +2009-12-14 Kimmo Varis + + * CMakeLists.txt, gui/CMakeLists.txt: CMake GUI build - fix adding + resources to GUI. + +2009-12-14 Kimmo Varis + + * CMakeLists.txt, gui/CMakeLists.txt: Build GUI using CMake. This is a start for building GUI with CMake. It works but it is a + bit ugly. + +2009-12-14 Kimmo Varis + + * CMakeLists.txt, test/CMakeLists.txt: Add testsuite to CMake build + files. + +2009-12-12 Kimmo Varis + + * CMakeLists.txt, cli/CMakeLists.txt, lib/CMakeLists.txt: Add simple + CMake build files to build lib and cli. Apparently not everybody wants to use QMake to build cppcheck. Which + is understandable if you only want to hack on/build lib and cli. Qt + and QMake are pretty lot to install for just that. So lets start using CMake. It is widely used and is "just" build + system and not programming framework. CMake is also easy to use for + building Qt software too so it can replace QMake. This first commit only builds lib and cli for Linux. + +2009-12-15 Daniel Marjamäki + + * lib/tokenize.cpp, test/testpreprocessor.cpp: Fixed #1086 + (segmentation fault of cppcheck '#if + define(A)+define(B)+define(C)!=1') + +2009-12-15 Daniel Marjamäki + + * lib/checkother.cpp, test/testother.cpp: Fixed #1103 (false + positive: uninitialized variable when using references) + +2009-12-15 Daniel Marjamäki + + * lib/checkmemoryleak.cpp, test/testmemleak.cpp: TestLocalLeaks: + going out of scope + +2009-12-15 Henrik Nilsson + + * htmlreport/cppcheck-htmlreport: cppcheck doesn't always report a + filename for an error. Added some error checking so this tool doesn't crash. + +2009-12-15 Henrik Nilsson + + * htmlreport/setup.py: Added a installation script for the + cppcheck-htmlreport utility. The script uses distutils to install the script into /usr/bin/. The + following will install the script: sudo ./setup.py install + +2009-12-15 Reijo Tomperi + + * lib/checkmemoryleak.cpp: Fix compiler error: cast from + 'CheckLocalLeaks*' to 'int' loses precision + +2009-12-14 Daniel Marjamäki + + * lib/lib.pri: fixed #1099 (GUI: unable to build gui from current + git-head) + +2009-12-15 Reijo Tomperi + + * lib/preprocessor.cpp, test/testpreprocessor.cpp: Fix #1076 + (Invalid number of character ({). Can't process file.) + http://sourceforge.net/apps/trac/cppcheck/ticket/1076 + +2009-12-14 Daniel Marjamäki + + * Makefile, lib/checkmemoryleak.cpp, lib/checkmemoryleak.h, + lib/checkother.cpp, lib/executionpath.cpp, lib/executionpath.h, + test/testmemleak.cpp: Added TestLocalLeaks + +2009-12-13 Reijo Tomperi + + * test/testpreprocessor.cpp: Test case for #1076 (Invalid number of + character ({). Can't process file.) + +2009-12-13 Daniel Marjamäki + + * lib/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #1082 (False + positive: Resource leak in loop which exits only after releasing + resource) + +2009-12-13 Daniel Marjamäki + + * lib/preprocessor.cpp, lib/preprocessor.h, test/testcppcheck.cpp, + test/testpreprocessor.cpp, test/testsuite.cpp: Fixed #1084 (define + configuration lost) + +2009-12-13 Daniel Marjamäki + + * lib/preprocessor.cpp, test/testpreprocessor.cpp: Fixed #1058 + (Preprocessor: extracting configuration for '#if DEF == 1') + +2009-12-13 Daniel Marjamäki + + * lib/checkclass.cpp, test/testclass.cpp: Fixed #1072 (False + positive: class member initialization with '*p=0;') + +2009-12-12 Daniel Marjamäki + + * using_gcov.txt: removed deprecated file using_gcov.txt + +2009-12-12 Daniel Marjamäki + + * lib/tokenize.cpp, test/testtokenize.cpp: Fixed #1097 (Internal + error: When macro is not expanded 'ABC(for (i=0;i<10;i++) ..);') + +2009-12-12 Daniel Marjamäki + + * lib/checkexceptionsafety.cpp, test/testexceptionsafety.cpp: Fixed + #1074 (Exception safety: auto deallocated classes don't leak) + +2009-12-11 Daniel Marjamäki + + * lib/preprocessor.cpp, test/testpreprocessor.cpp: Preprocessor: + Fixed TODO_ASSERT_EQUALS + +2009-12-11 Daniel Marjamäki + + * lib/checkclass.cpp, test/testclass.cpp: Fixed #1080 (false + positive: member variable not initialized) + +2009-12-11 Daniel Marjamäki + + * lib/checkother.cpp, test/testother.cpp: Fixed #1075 (False + positive: uninitialized variable 'return bar(s);') + +2009-12-11 Daniel Marjamäki + + * lib/preprocessor.cpp, lib/tokenize.cpp, test/testpreprocessor.cpp: + Fixed #1060 (Preprocessor: wrong define handling) + +2009-12-11 Henrik Nilsson + + * htmlreport/cppcheck-htmlreport: index.html page is now complete + with a list of files and all errors found. Other changes: * added a stylesheet and made the html design much better. * contains links directly to the line in the source file. + +2009-12-09 Daniel Marjamäki + + * lib/checkother.cpp, test/testother.cpp: Fixed #1061 (false + positve: uninitialized variable) + +2009-12-09 Daniel Marjamäki + + * lib/tokenize.cpp, test/testpreprocessor.cpp: Fixed #1024 + (Preprocessor: doesn't expand macro in macro) + +2009-12-09 Daniel Marjamäki + + * lib/preprocessor.cpp, lib/preprocessor.h, + test/testpreprocessor.cpp: Preprocessor: Refactoring the + Preprocessor::expandMacros + +2009-12-08 Reijo Tomperi + + * lib/checkunusedfunctions.cpp, test/testunusedfunctions.cpp: Fix + #1071 ((style) The function 'throw' is never used) + http://sourceforge.net/apps/trac/cppcheck/ticket/1071 + +2009-12-08 Reijo Tomperi + + * lib/tokenize.cpp: Apply patch from #1066 (Speed up cppcheck) + http://sourceforge.net/apps/trac/cppcheck/ticket/1066 + +2009-12-08 Henrik Nilsson + + * htmlreport/README.txt, htmlreport/cppcheck-htmlreport: Added a + python script that takes the cppcheck output xml file and generates + a html report of it. The html report is complete with syntax + highlighted source code using the pygments module. This initial commit contains generation of html files but the actual + errors is missing from the html content and the index.html file. + +2009-12-08 Reijo Tomperi + + * lib/checkautovariables.cpp, test/testautovariables.cpp: Fix #1069 + (Minor spelling mistake across cppcheck) + http://sourceforge.net/apps/trac/cppcheck/ticket/1069 + +2009-12-08 Reijo Tomperi + + * test/testsimplifytokens.cpp: Added test case for else if + simplification + +2009-12-07 Reijo Tomperi + + * lib/tokenize.cpp, test/testsimplifytokens.cpp: Fix #1065 (Internal + error - incrementing single char in char array) + http://sourceforge.net/apps/trac/cppcheck/ticket/1065 + +2009-12-07 Daniel Marjamäki + + * lib/checkexceptionsafety.cpp, test/testexceptionsafety.cpp: Fixed + #1063 (False positive: deallocated memory doesn't leak upon + exception) + +2009-12-07 Reijo Tomperi + + * lib/tokenize.cpp, test/testtokenize.cpp: Fix #1057 (Tokenizer: + negative numbers are not tokenized correctly in switch-case) + http://sourceforge.net/apps/trac/cppcheck/ticket/1057 + +2009-12-06 Reijo Tomperi + + * lib/checkother.cpp: small fix to previous commit + +2009-12-06 Reijo Tomperi + + * lib/checkother.cpp: Minor refactoring for checkother.cpp + +2009-12-06 Daniel Marjamäki + + * lib/checkother.cpp: STL: fix iterator bug + +2009-12-06 Daniel Marjamäki + + * lib/checkother.cpp: Visual C++: Suppress compiler warnings + +2009-12-06 Daniel Marjamäki + + * lib/preprocessor.cpp, lib/preprocessor.h, + test/testpreprocessor.cpp: Preprocessor: Reverted refactoring + +2009-12-06 Daniel Marjamäki + + * lib/preprocessor.cpp, lib/preprocessor.h, + test/testpreprocessor.cpp: Preprocessor: Fix so the unit tests work + again + +2009-12-06 Daniel Marjamäki + + * lib/checkother.cpp, lib/cppcheck.cpp, lib/preprocessor.cpp, + lib/preprocessor.h, lib/settings.cpp, lib/settings.h: twistedwave: + Fixed #1055 (Support for inline suppressions) + +2009-12-06 Daniel Marjamäki + + * lib/preprocessor.cpp, lib/preprocessor.h, + test/testpreprocessor.cpp: Preprocessor: Refactoring to make it + simpler + +2009-12-06 Daniel Marjamäki + + * lib/checkother.cpp, lib/checkother.h, test/testother.cpp: + newcheck: added the 'newcheck' functionality. It's still in early + state so it needs refactoring + +2009-12-06 Daniel Marjamäki + + * lib/checkclass.cpp, lib/checkclass.h, test/testclass.cpp: class + checking: It's a 'possible style' error if a private constructor is + not initializing a member variable + +2009-12-06 Daniel Marjamäki + + * Makefile: Makefile: restored to debugging mode + +2009-12-06 Martin Ettl + + * gui/resultstree.cpp, gui/resultstree.h: gui:added an right-click + option "copy message" + +2009-12-06 Daniel Marjamäki + + * Changelog: Updated Changelog + 2009-12-06 Daniel Marjamäki * Makefile: update the Makefile for the release @@ -5146,10 +6481,9 @@ 2009-06-19 Kimmo Varis - * : commit d5d96d2535c6bcb0581e63818e0cbcf440e2d703 Merge: - 12f3ac5... e8d1905... Author: Daniel Marjamäki - Date: Thu Jun 18 23:10:16 2009 - +0200 + * : commit d5d96d2535c6bcb0581e63818e0cbcf440e2d703 Merge: 12f3ac5 + e8d1905 Author: Daniel Marjamäki + Date: Thu Jun 18 23:10:16 2009 +0200 2009-06-19 Kimmo Varis