1. Summary
  2. Files
  3. Support
  4. Report Spam
  5. Create account
  6. Log in

Timeline


and .

01/14/13:

14:55 Ticket #4488 (cppcheck crashed when processing a compilable file (external xerxes source ...) created by sjpmorris
Attached file, which is part of Xerces 3.1.1, causes cppcheck to crash.
12:19 WikiStart edited by ettlmartin
fixed typo (diff)

01/13/13:

19:54 Ticket #4481 (Simplify %str% [ %num% ]) closed by danielmarjamaki
fixed: I applied simplifyCharAt_3.patch with: …
16:56 Ticket #4487 (False positive: variable is not assigned a value (pointer alias)) created by danielmarjamaki
Example code: […] False positive: Variable 'q' is not assigned a …
16:13 Ticket #4486 (False positive: Return of address from function with integer return type ...) created by danielmarjamaki
Example code: […] False positive: Returning an address value in a …
15:34 Ticket #4485 (False positive: Same expression of '-' when checking if float is inf) created by danielmarjamaki
Example code: […] Output: […]
11:03 Ticket #4482 (add test for UB due to usage of NULL in variadic functions) closed by danielmarjamaki
fixed: Fixed by: …
07:00 Ticket #4484 (1.58: new crash for linux kernel code) closed by danielmarjamaki
fixed: Thanks! I applied that patch with: …

01/12/13:

18:26 Ticket #4484 (1.58: new crash for linux kernel code) created by dcb314
I just tried out the new 1.58 with linux kernel 3.8-rc3 cppcheck said …
15:43 WikiStart edited by danielmarjamaki
Version 1.59 is planned to be released on Mars 29th (diff)
15:27 Milestone 1.58 completed
Commandline/Settings changes: * Added --include to the cppcheck command …
13:40 Ticket #4483 (Inconclusive false positive: Null pointer dereference. Otherwise NULL ...) created by danielmarjamaki
When checking lib/templatesimplifier we get this false positive: …
09:46 Ticket #4479 (GUI tests fail) closed by danielmarjamaki
fixed: Fixed by: …
01:38 Ticket #4482 (add test for UB due to usage of NULL in variadic functions) created by roflz
(copied from …
00:54 Ticket #4481 (Simplify %str% [ %num% ]) created by eriklax
I think it could make sense to simplify "foo"[0] to 'f' early in the …

01/11/13:

15:56 Ticket #4480 (False positive : Inefficient usage of string::find) created by dpinol
I get […] I guess it's a false positive thanks! […]
15:36 Ticket #4479 (GUI tests fail) created by kimmov
This was submitted for my Python test running script …

01/10/13:

18:55 Ticket #4476 (Tokenizer: wrong simplification of static anonymous-type struct array ...) closed by danielmarjamaki
fixed: Fixed by: …
07:29 Ticket #4389 (False positive: Possible null pointer dereference if the default parameter ...) closed by zacblair
fixed: Thanks for the tip! Fixed by, …

01/09/13:

23:00 Ticket #4478 (cppcheck should warn about the ineficient: std::string s = "";) created by dominikoeo
Initializing a string with... std::string s = ""; ... is …
18:08 Ticket #4477 (Add %type% support to Token::multiCompare()) created by tjarosch
Hi, it turned out that our code base actually uses %type% in a …
16:16 Ticket #4476 (Tokenizer: wrong simplification of static anonymous-type struct array ...) created by danielmarjamaki
This code is not simplified correctly: […] The current --debug output …
11:17 Ticket #4475 (New check: struct member is assigned a value that is not read) created by danielmarjamaki
Example code: […] I'd like Cppcheck to write a warning that foo.x is …
10:00 Ticket #4474 (Warn about undefined shift behavior) closed by danielmarjamaki
duplicate
08:59 Ticket #4474 (Warn about undefined shift behavior) created by kidkat
While debugging a program I came across the issue, that a value, that was …

01/08/13:

15:56 Ticket #4473 (extend bounds check about std::string::substr function) created by ettlmartin
cppcheck does not recognize, if the starting ( or end ) -index of the …
15:21 Ticket #4472 (simplify boolians better) created by ettlmartin
cppcheck could simplify boolian expressions, like in function f(), …
12:05 Ticket #4471 (Should check for virtual destructor in base classes) created by edmundv
Please add a check for a virtual destructors in base classes. The …
07:55 Ticket #4470 (New check: redundant bitand 'x&=1; x&=2;' can be simplified to 'x=0;') created by danielmarjamaki
No error is reported for this code: […] The code x&=1;x&=2; is …

01/07/13:

20:01 Ticket #4385 (lock_guard RAII throws unreadVariable) closed by zingsheim
fixed: Quick fixed by …
18:22 Ticket #4381 (Inline type declaration on statics causes warning) closed by danielmarjamaki
fixed: Fixed by: …
13:17 Ticket #4469 (New check: track maximum possible value of variables, alert when ...) created by danielmarjamaki
Perhaps we could create a check that tracks the maximum possible value for …
08:09 Ticket #4468 ((error) Uninitialized variable: on pass by reference argument) created by jannicht
Using the latest 1.58 dev version, I get a false positive error on line 20 …

01/06/13:

17:20 Ticket #4467 (false positive: (error) Using 'memset' on class that contains a virtual ...) created by kidkat
This code […] reports (with -x c++) […]
17:05 Ticket #4466 (false positive: (error) Used file that is not opened.) created by kidkat
The code […] reports […]
14:46 Ticket #4465 (syntax error on valid C++ source file) created by tbilles
Let's say I have a file named cppcheck.cpp with the following contents: …
13:02 Ticket #4464 (false negative: (error) Resource leak - several return statements) created by kidkat
[…] Disabling the code at line 34 makes the leak show up […] but …
03:07 Ticket #4405 (False positive: Memory is freed twice (throw)) closed by zacblair
fixed: Good idea, thanks! I have pushed those changes with: …

01/05/13:

20:28 Ticket #4460 (false positive: (error) Using 'memset'/'memcpy' on class that contains a ...) closed by pkeus
fixed: Fixed by: …
20:16 Ticket #4462 (Warn about memset/memcpy on class with non-POD members) closed by pkeus
worksforme: This check is implemented for some STL classes and for types we recognize …
12:16 Ticket #4463 (false positive: (style) Variable 'CHDERR_NOT_OPEN' hides enumerator with ...) created by kidkat
This code […] reports (with -x c++) […]
12:11 Ticket #4462 (Warn about memset/memcpy on class with non-POD members) created by kidkat
[…]
12:10 Ticket #4461 (Warn about memset/memcpy on class with references as members) created by kidkat
[…]
11:53 Ticket #4460 (false positive: (error) Using 'memset'/'memcpy' on class that contains a ...) created by kidkat
This code […] reports (with -x c++) […] This appears to be …

01/04/13:

09:36 Ticket #4458 (False positive: (warning) Member variable 'Vector::_M_finish' is not ...) closed by danielmarjamaki
fixed: Thanks! I applied 4458.2.diff with: …

01/03/13:

18:16 Ticket #4409 (Cppcheck 1.58 dev hangs when checking mhz.c of lmbench3 (attached code)) closed by danielmarjamaki
fixed: Fixed by: …
16:08 Ticket #4459 (False positive: (error) Uninitialized variable: len (with overloaded ...) created by edward-san
With this code example: […]
09:28 Ticket #4458 (False positive: (warning) Member variable 'Vector::_M_finish' is not ...) created by amaigil2
Current head version produces a false positive style …
07:46 Ticket #4456 (std::string::compare(char const*) crash) closed by danielmarjamaki
fixed: Fixed by: …

01/02/13:

15:17 Ticket #4457 (Use compiled matching code in GUI) created by edward-san
Actually, from what I see, gui.pro doesn't have nothing similar to a …
13:59 Ticket #4456 (std::string::compare(char const*) crash) created by fredmour
on ubuntu 12.04 64 bits with cppcheck 1.57 I see this crash gdb info : …
13:48 Ticket #4455 (redundantCopy when precleaning with memset) created by dpinol
Hi, do we really want to show a warning for the code bellow? I think it's …
13:01 Ticket #4454 (False positive: class member (POD) not initialized (when initialized to 0 ...) closed by danielmarjamaki
fixed: Sorry this was my fault. It was my suggestion to warn about this in #4383. …
12:50 Ticket #4383 (Improve check: uninitialized member variable not detected when ...) closed by danielmarjamaki
invalid
12:50 Ticket #4383 (Improve check: uninitialized member variable not detected when ...) reopened by danielmarjamaki
Sorry.. it seems that POD variables are initialized to 0 when doing this. …
12:21 Ticket #4454 (False positive: class member (POD) not initialized (when initialized to 0 ...) created by amaigil2
The following example results in an undeserved warning …
11:06 Ticket #4410 (Internal error. Token::linkAt called with index outside the tokens range.) closed by danielmarjamaki
invalid: > So out of curiosity, is cppcheck supposed to check for valid code, or am …

01/01/13:

18:45 Ticket #4453 (Name resolution chooses wrong name) closed by ghewgill
duplicate: My apologies, I was going through some old notes and had accidentally …
08:54 Ticket #4302 (Member variable not initialized in public delegate constructor) closed by danielmarjamaki
fixed: Thanks! I applied delegate.2.diff with: …
04:39 Ticket #4453 (Name resolution chooses wrong name) created by ghewgill
The following code is a simplified example of a real situation I …

12/31/12:

13:54 Ticket #4451 (Match compiler: Speed up Token comparison with string literals) closed by tjarosch
fixed
10:25 Ticket #4452 (Improve --showtime for multithreading) created by pkeus
When using --showtime=summary together with -j 4, I get 4 time …
00:49 Ticket #4451 (Match compiler: Speed up Token comparison with string literals) created by tjarosch
Hi, attached patch enhances the match compiler a bit further: It looks …

12/29/12:

20:09 Ticket #4372 (Tokenizer misidentifying which function a variable belongs to) closed by danielmarjamaki
fixed: Fixed by: …
16:14 Ticket #4316 (False positive: (constStatement) Redundant code) closed by danielmarjamaki
fixed: Fixed by: …
15:45 Ticket #4401 (False positive when flag is reset during loop) closed by danielmarjamaki
worksforme: I can reproduce with 1.57 but I can't reproduce with latest git head
15:29 Ticket #4393 (FP: Variable 'data' is assigned a value that is never used) closed by danielmarjamaki
worksforme: I can reproduce with 1.57 but I can't reproduce with latest git head.
15:17 Ticket #4340 (unreadVariable with Qt foreach) closed by danielmarjamaki
worksforme: This is fixed in latest git head
15:15 Ticket #4360 (False positive: Assignment is never used.) closed by danielmarjamaki
worksforme: it works for me with latest git head
15:04 Ticket #4341 (false positives in 1.57 with unreadVariable) closed by danielmarjamaki
worksforme: I can't reproduce any unreadVariable false positives with latest git head. …
14:46 Ticket #4450 (Internal error. Token::Match called with varid 0) created by tjarosch
Hi, I've found another internal error: [falcon.c] -> [falcon.c:19]: …
11:46 Ticket #4411 (Variable is assigned a value that is never used.) closed by danielmarjamaki
fixed: Fixed by: …
08:12 Ticket #4114 (SymbolDatabase: Variable not created) closed by danielmarjamaki
invalid: It was recently said in another ticket (I don't know which) that variables …
07:56 Ticket #4444 (Crash on parsing kernel code) closed by danielmarjamaki
fixed: I fixed the Tokenizer::setVarId problem for 'void f(struct foobar[5])' …
07:35 Ticket #4449 (segfault in CheckClass::initializeVarList()) closed by danielmarjamaki
fixed: Fixed by: …

12/28/12:

19:48 Ticket #4449 (segfault in CheckClass::initializeVarList()) created by tjarosch
This code segfaults cppcheck: ----------------------------- class …
18:05 Ticket #4448 (New check: Duplicate condition, first condition returns => second ...) created by danielmarjamaki
Inspired by this: …
17:19 Ticket #4022 (false positive: (style) Variable 'sort_entry' is assigned a value that is ...) closed by danielmarjamaki
fixed: Fixed by: …
17:18 Ticket #4447 (false positive: (style) Variable 'X' is assigned a value that is never ...) created by ettlmartin
[…] […]
16:30 Ticket #4445 (Token::Match called with varid 0) closed by tjarosch
fixed: Thanks for reporting. Seems fine with the latest git version: $ …
16:21 Ticket #4446 (Crash on complex C++ template) created by tjarosch
Hi, I've discovered a crash on this code: …
14:08 Ticket #4445 (Token::Match called with varid 0) created by dcb314
The attached source code produces an internal error [dcb@dhcppc0 SPECS]$ …
11:33 Ticket #4426 (False positive: Unitialized variable warning when comparing addresses) closed by danielmarjamaki
fixed: Fixed by: …
10:13 Ticket #4444 (Crash on parsing kernel code) created by tjarosch
Hi, cppcheck crashed on parsing fs/udf/inode.c in the linux kernel. I've …
07:37 Ticket #4442 (crash of cppcheck while scanning gcc-testsuite (invalid code)) closed by danielmarjamaki
fixed: Fixed by: …
07:04 Ticket #4443 (Preprocessor: Incorrect #if #error #endif in header processing) created by phagos
If the following construction […] is used in header the check fails …
02:20 Ticket #4442 (crash of cppcheck while scanning gcc-testsuite (invalid code)) created by ettlmartin
cppcheck crashes when GCC-testsuite is scanned. The crash happens, when …
01:49 Ticket #4441 (false negative: unitialized variable within array allocated by new) created by ettlmartin
cppcheck fails to detect the usage of an uninitialized variable […] …

12/27/12:

23:25 Ticket #4440 ('Never used assigned value' check too strong.) closed by aggro80
worksforme: I can see the warning with 1.57, but not with latest trunk, so this seem …
23:19 Ticket #4440 ('Never used assigned value' check too strong.) created by nyamatongwe
This code produces a style warning: "Variable 'prevLevel' is assigned a …
18:42 Ticket #4439 (False positive: Uninitialized variable (casting address)) created by danielmarjamaki
There is a false positive when checking wine/programs/winefile/winefile.c. …
17:16 Ticket #4436 (FP: Member variable is not initialized in the constructor. (with two ...) closed by danielmarjamaki
fixed: I fixed the varId problem with: …
16:22 Ticket #4419 (False positive: Class does not have a constructor) closed by danielmarjamaki
fixed: Thanks! I applied cpp11-1.diff with: …
16:13 Ticket #4437 ([PATCH] cppcheck support for Sun Studio C++ compiler) closed by danielmarjamaki
fixed: ok I close it then
15:55 Ticket #4408 (Force inclusion of files (a la -include /.../ in GCC)) closed by danielmarjamaki
fixed: Thank you this looks good now. I applied your patches with: …
14:45 Ticket #4434 (false positive: (style) Mismatching assignment and comparison, comparison ...) closed by danielmarjamaki
fixed: Fixed by: …
13:15 Ticket #4438 (Check for modification in assert statement) created by amaigil2
There is already a check assignmentInAssert which warns about direct …

12/26/12:

23:17 Ticket #4437 ([PATCH] cppcheck support for Sun Studio C++ compiler) created by acm4me
The attached patch file modifies …
20:44 Ticket #4436 (FP: Member variable is not initialized in the constructor. (with two ...) created by aggro80
[…] […] This is almost identical to #4430
12:53 Ticket #4435 (false positive: (performance) Variable 's_lock_alloc' is reassigned a ...) created by kidkat
This code […] reports […] This code makes no more sense since …
12:48 Ticket #4434 (false positive: (style) Mismatching assignment and comparison, comparison ...) created by kidkat
This code […] reports […] If I remove the "& 1" from the first …
11:13 Ticket #4433 (Wrong array size for string with \0) closed by danielmarjamaki
fixed: Fixed by: …
07:31 Ticket #4432 (Crash on parsing PHP interpreter) closed by danielmarjamaki
fixed: I applied 4432.diff with: …

12/25/12:

18:04 Ticket #4433 (Wrong array size for string with \0) created by tjarosch
Hi, consider the following example code: …
17:27 Ticket #4432 (Crash on parsing PHP interpreter) created by tjarosch
Hi, I've discovered a segfault while checking the PHP interpreter source …
12:21 Ticket #4431 (FP: Erroneous "Ineffective call of function 'empty()'" in "?:" test) closed by danielmarjamaki
fixed: Fixed by: …

12/24/12:

06:50 Ticket #4419 (False positive: Class does not have a constructor) reopened by danielmarjamaki
Travis failed. And when I looked into it, I got segmentation fault for …
06:28 Ticket #4334 (cppcheckError sometimes not supressed) closed by danielmarjamaki
worksforme: I can reproduce the internal error with 1.56 but not with 1.57 nor latest …
05:48 Ticket #4419 (False positive: Class does not have a constructor) closed by danielmarjamaki
fixed: I had forgot about that 4419.diff patch. :-( If you have some more open …

12/23/12:

07:10 Ticket #4430 (FP: Member variable is not initialized in the constructor.) closed by danielmarjamaki
fixed: I applied 4430.diff with: …
04:22 Ticket #4431 (FP: Erroneous "Ineffective call of function 'empty()'" in "?:" test) created by anon3654
[…] If s.exists==false, this code returns true if expected_value=="". …

12/22/12:

21:42 Ticket #4430 (FP: Member variable is not initialized in the constructor.) created by aggro80
Following code gives false positive: […] […] This warning did not …
21:15 Ticket #4429 (unused functions: handle function declarations better) created by aggro80
"The function 'f' is never used" warning is not provided from the code …
18:11 Ticket #4428 (New check: Wrong type in sizeof in malloc) created by dcb314
[…] cppcheck-1.57 doesn't detect that the type in the sizeof in the …
18:06 Ticket #4427 (Improve check: Handle expressions (!expression == number) in 'Comparison ...) created by dcb314
Given the following source code […] then cppcheck-1.57 can find the …
08:26 Ticket #4262 (Small Request/Suggestion for checks on array size of args (bounty offer)) closed by danielmarjamaki
fixed: Fixed by: …
07:03 Ticket #4398 (False negative: out of bounds (for loop)) closed by danielmarjamaki
fixed: Fixed by: …

12/21/12:

18:38 Ticket #4383 (Improve check: uninitialized member variable not detected when ...) closed by danielmarjamaki
fixed: I applied 4383.diff with: …
01:49 Ticket #4392 (false positive noConstructor with forward declared classes and ...) closed by iobyte
fixed: Replying to stefanrohleder: > seems to be fixed I'll close …

12/20/12:

19:51 Ticket #4403 (False positive 'Conversion of string literal <string> to bool always ...) closed by danielmarjamaki
fixed: I fixed this with: …
14:16 Ticket #4426 (False positive: Unitialized variable warning when comparing addresses) created by simonkagstrom
The Linux kernel uses a macro to detect that valid types are passed to …
12:43 Ticket #4425 (False positive: reassigned a value before the old one has been used in ...) created by serval2412
Hello, Here's a cppcheck (git updated yesterday) report: …
12:13 Ticket #4418 (False Positive : Assignment is never used.) closed by pkeus
fixed: This is already fixed in current git head.
12:11 Ticket #4422 (Variable is assigned to a value that is never used.) closed by pkeus
duplicate: This has already been fixed in current git head. Duplicate of #4180, …
12:06 Ticket #4421 (Variable reassigned before the old value is used.) closed by pkeus
duplicate: This is already fixed in current git head.
10:23 Ticket #4424 (Preprocessor: #include MACRO) created by comoran1970
Please find attached a code sample that exhibits a bug in cppcheck 1.57, …
09:58 Ticket #4423 (Variable is assigned a value that is never used.) created by comoran1970
The following code exhibits a bug in cppcheck 1.57 where it incorrectly …
09:46 Ticket #4422 (Variable is assigned to a value that is never used.) created by comoran1970
The following code exhibits a bug in cppcheck 1.57 where it incorrectly …
09:33 Ticket #4421 (Variable reassigned before the old value is used.) created by comoran1970
The following code exhibits a bug in cppcheck 1.57 where it incorrectly …
09:13 Ticket #4420 (False positive: Unused assignment after variable was pre-incremented) created by comoran1970
The following code demonstrates a bug in cppcheck 1.57, where it …
09:03 Ticket #4419 (False positive: Class does not have a constructor) created by comoran1970
The following code exhibits a bug in cppcheck 1.57 where it incorrectly …
08:52 Ticket #4418 (False Positive : Assignment is never used.) created by comoran1970
The following code exhibits a bug in cppcheck 1.57 where it incorrectly …

12/19/12:

20:01 Ticket #4417 (New check: Const for pass-by-reference) created by tehuser
Code example: […]
17:46 Ticket #4416 (new check: conditional assignments and matching/mismatching condition ...) created by danielmarjamaki
Here is a condition that is always true: […] I think this check should …
17:34 Ticket #4415 (new check: the comparisons 'a==0' and 'a>0' are mutually exclusive if a is ...) created by danielmarjamaki
I saw such code today: […] In that code, the second condition will …
16:39 Ticket #4414 (The cppcheck GUI can't save the editor settings any more) closed by pkeus
duplicate: This is already fixed in current git head. (duplicate of #4357)
16:32 Ticket #4414 (The cppcheck GUI can't save the editor settings any more) created by sinigersky
I downloaded and installed Version 1.57 of the tool, and I immediately …

12/18/12:

19:13 Ticket #4413 (suggested new test: detect if const locals can be made static) created by csaundersi
Example print.cpp […] ...an example where the const local "prefix" …
18:37 Ticket #4412 (Several checks don't understand "using namespace" statement.) created by fj_
stlSize, passedByValue and probably other rules fail to recognize stl …
18:04 Ticket #4320 (False positives 'unassignedVariable' and 'uninitvar') closed by danielmarjamaki
fixed: Fixed by: …
15:35 Ticket #4411 (Variable is assigned a value that is never used.) created by jannicht
Latest 1.58 dev fail with "assigned value never used" false positive in …
15:32 Ticket #4410 (Internal error. Token::linkAt called with index outside the tokens range.) created by jannicht
Latest 1.58 dev fail with internal error on this small node snippet. Note …

12/17/12:

21:35 Ticket #4409 (Cppcheck 1.58 dev hangs when checking mhz.c of lmbench3 (attached code)) created by liquiz
Just added lmbench3 to my CI server where on a daily basis I download …
16:08 Ticket #4155 (false positive: Variable is assigned a value that is never used (inside ...) closed by danielmarjamaki
fixed: Fixed by: …
14:12 Ticket #4408 (Force inclusion of files (a la -include /.../ in GCC)) created by simonkagstrom
I'm running cppcheck on code which executes in the Linux kernel, and …
10:41 Ticket #4407 (False positive nullPointer (default parameter value = NULL)) created by dpinol
Hi, I get the following warning when I run cppcheck on the code below. I …
06:26 Ticket #4324 (False positive: Variable is assigned a value that is never used ...) closed by danielmarjamaki
duplicate: Thanks! This seems to be a duplicate of #4155. I prefer if you inline the …
01:22 Ticket #4406 (--inconclusive suggests function can be made const when it cannot) created by dylanryan
I found that when running "cppcheck --enable=all --inconclusive" on the …

12/16/12:

20:07 Ticket #4402 (False positive 'value never used' message in BOOST_FOREACH loop) closed by danielmarjamaki
duplicate: This seems to be a duplicate of #4155.
17:45 Ticket #4359 (False negative: Possible NULL pointer dereference.) closed by danielmarjamaki
worksforme: Thanks for your suggestion! I am not sure but it seems we have a bailout …
16:16 Ticket #4249 (cppcheck doesn't work with Visual Studio 11.0) closed by danielmarjamaki
worksforme: I can't reproduce. I believe some header is also needed. if you can …
06:26 Ticket #4404 (Forward declared class cause false style warning about missing constructor) closed by danielmarjamaki
fixed: I applied 4404.diff with: …

12/15/12:

13:00 Ticket #4405 (False positive: Memory is freed twice (throw)) created by asharudeen
Hi, In my code, cppcheck reports the memory is freed twice, but actually …
12:54 Ticket #4404 (Forward declared class cause false style warning about missing constructor) created by jannicht
Using the latest 1.58dev downloaded today, cppcheck show the following …
Note: See TracTimeline for information about the timeline view.