Timeline


and .

09/01/12:

23:42 Ticket #4118 (False null-pointer warning when check is indirect) created by nyamatongwe
The following code produces a warning "Possible null pointer dereference: …
19:20 Ticket #4106 ((False negative) Buffer overrun, postfix/Prefix increment for loop counter ...) closed by deepak13
fixed
19:20 Ticket #4096 (Improve check: Buffer overrun in for loop, postfix increment in array ...) closed by deepak13
fixed: 4096 and 4106 tickets fixed and closed.
18:40 Ticket #3986 (Function parameter not a reference - sometimes a false positive) closed by danielmarjamaki
fixed: Please don't reopen a old ticket with a new code example. If you have a …
17:49 Ticket #3986 (Function parameter not a reference - sometimes a false positive) reopened by fraserross
Here is another case of a false positive. The message is "Parameter …
17:23 Ticket #4117 (Redundant condition message might be misleading) reopened by edward-san
We need to pass to the error function the redundant condition. Btw, why …
17:03 Milestone 1.56 completed
Commandline/Settings changes: * Code is considered to be C++11 or C11 …
16:17 Ticket #4117 (Redundant condition message might be misleading) closed by pkeus
invalid: Sorry, changed my mind after thinking about it. The message is correct. If …
15:56 WikiStart edited by danielmarjamaki
version 1.57 is planned to be released on November 3rd (diff)
13:43 Ticket #4117 (Redundant condition message might be misleading) created by kimmov
As seen in added testcase for commit …
11:41 Ticket #3997 (Improve check: logical conjunction 'x==1 && x!=2', second comparison is ...) closed by pkeus
fixed: I applied your patch with: …
09:13 Ticket #4116 (Analysis fails with combination of std::function and std::vector (c++11)) closed by pkeus
worksforme: This seems to be fixed in 1.56 (released today).
09:10 Ticket #4116 (Analysis fails with combination of std::function and std::vector (c++11)) created by redyeti
cppcheck 1.55 fails with the following message: […] when trying to …
08:25 Ticket #2076 (new check: Wrong usage of std::string (str = 1;)) closed by pkeus
invalid: Since strVal = 1; is valid code and no dead pointer dereference, we …
00:53 Ticket #4115 (Incorrect uninitialized variable error message with realloc macro) created by caryr
The following C code demonstrates a false positive in the latest cppcheck …

08/31/12:

19:02 Ticket #4114 (SymbolDatabase: Variable not created) created by danielmarjamaki
In the code example from #4073 : […] The --debug output is: […] …
13:54 Ticket #3626 (GUI exits on some Information) closed by danielmarjamaki
worksforme: I fail to reproduce. Checking the code below: […]
11:14 Ticket #4113 (Bug can't handle binary numbers) created by dp1111
in code : if ((v & 0b00000111) != 7u) come up as : The expression '(X & …
09:08 Ticket #4112 (ValueFlow: handle loop 'for (int i = 0; i < 20*2; i += 2)') created by bnagesh89
[…]

08/30/12:

18:24 Ticket #4111 (False positive: Possible null pointer dereference: ptr - otherwise it is ...) created by crumblingstatue
This check does not seem to take side effects of functions into …
17:56 Ticket #4110 (False positive: Variable is assigned a value that is never used - used in ...) created by pkeus
"Guest29387" reported in IRC that this code […] triggers a false …
14:11 Ticket #4108 (does not tokenize when variable is initialized at the time of declaration) closed by danielmarjamaki
worksforme: I don't see the problem. With your code example the output is: […]
14:08 Ticket #1573 (false negative: division by zero when using pow() function) closed by danielmarjamaki
worksforme: I agree with pkeus. This works.
13:07 Ticket #4109 (if (c == 1) c == 0; Isn't picked up) created by dp1111
I'm very new here, but should the above be at least be a warning ?
13:02 Ticket #4108 (does not tokenize when variable is initialized at the time of declaration) created by nilkumar
int i = 0, j = 1; cppcheck doesn't create a corresponding token for i or …
12:01 Ticket #3720 (Bug in Token::Match when modulo operator is used in connection with '|' ...) closed by ankita-gupta
fixed: https://github.com/danmar/cppcheck/commit/ff7373f46fd0a658b9592374f0cd6554a
10:30 Ticket #4107 (Invalid result for (inconclusive) check functionStatic) created by amaigil2
I get performance (functionStatic): Technically the member function …
06:05 Ticket #4106 ((False negative) Buffer overrun, postfix/Prefix increment for loop counter ...) created by deepak13
{ int main() { int array[] = {1,2}; int x = 0; for( int i = 0; …

08/29/12:

09:01 Ticket #3939 (New check: redundant * in statement '*p++') closed by anuraggarg011
fixed
08:11 Ticket #4105 (Implementing metrics in cppcheck) created by mmate
I think cppcheck should also report different metrics like : no of errors …
08:01 Ticket #4104 (comma separated statements in return statement from a function) created by abhics1002
int fun(int a) { if (a < 0) return a++ , 0; //<<--multiple …
06:32 Ticket #4103 (Comparing Boolean variables (> or <)) created by mmate
I think cppcheck should warn us if we are comparing(using >, <, >=, <=) …

08/28/12:

21:43 Ticket #4102 (analysis failed with nested templates) closed by msquared84
duplicate: duplicate of #3912 fixed with f72ddbb2e95f3297c50dddd7ba662a6a3906c32e
21:26 Ticket #4102 (analysis failed with nested templates) created by msquared84
Hi, the code snippet […] fails during analysis with error: "Analysis …
18:26 Ticket #4101 (Tokenizer::setVarId : inherited member variables don't get varid) created by danielmarjamaki
This was discovered by edward-san (after looking at our debug warnings). …
14:05 Ticket #4100 (Check arguments of abs() (be aware of several overloaded versions)) created by amaigil2
The given code is somewhat non-portable in C++. Using Visual Studio …
13:19 Ticket #4099 (False negative checkWrongPrintfScanfArguments ("%f")) created by amaigil2
While analyzing the sscanf() arguments, "%f" requires a float argument, …
12:01 Ticket #4097 (Standard functions declared as POSIX functions) closed by pkeus
invalid: I think this ticket is invalid: - I don't see any more functions which are …
11:56 Ticket #4098 (--inconclusive option inhibates -i exclusion option) created by regiskla
Hi, It seems that both options --inconclusive and -i can not be used …
11:45 Ticket #4097 (Standard functions declared as POSIX functions) created by regiskla
In a post on Mon Aug 27, 2012 6:19 am Daniel MARJAMAKI declared : "... I …
11:08 Ticket #3793 (improve check: calculation in sizeof) reopened by pkeus
11:07 Ticket #3793 (improve check: calculation in sizeof) closed by ankita-gupta
fixed: I've fixed the bug. can someone help me on how to make a patch for for …
11:01 Ticket #4087 (div by zero check is invalid for floats) reopened by amaigil2
Please don't close issues - unless they are resolved in the repository. …
10:59 Ticket #4087 (div by zero check is invalid for floats) closed by kbajaj91
fixed: Just add one more check checkZeroDivision() function in the checkother.cpp …
10:45 Ticket #4086 (Tokenizer::setVarId : varid not set properly for member variable in ...) closed by pkeus
fixed: Fixed by: …
09:58 Ticket #4096 (Improve check: Buffer overrun in for loop, postfix increment in array ...) created by phoenix1013
int main() { int array[] = {1,2}; int i = 0; int x = 0; for(; …
08:47 Ticket #4095 (False positive: Variable is assigned a value that is never used) created by sflot
The following code: -- cut here -- //#include "stdafx.h" #include …
04:39 Ticket #4034 (false positive:(error) Dereferencing 'cfileP' after it is deallocated / ...) closed by danielmarjamaki
fixed: Fixed by: …

08/27/12:

19:33 Ticket #3967 (Misdetection of double free calls for different pointers?) closed by danielmarjamaki
worksforme
19:31 Ticket #3967 (Misdetection of double free calls for different pointers?) reopened by danielmarjamaki
19:30 Ticket #3967 (Misdetection of double free calls for different pointers?) closed by danielmarjamaki
fixed: Please look in the log if you want to know. I think there was a similar …
13:51 Ticket #4040 (false positive: (error) Uninitialized variable: iter) closed by danielmarjamaki
fixed: Fixed by: …
13:33 Ticket #4094 (Missing includes incorrectly written in XML format) created by andmuell
When I check a file where cppcheck couldn't find all includes, I get the …
13:19 Ticket #3932 (std::string unused variables are detected, but std::wstring unused ...) closed by pkeus
fixed: This has been implemented some weeks ago. See test cases in …
12:28 Ticket #4093 (False positive: Return value of std::remove() ignored. Elements remain in ...) closed by pkeus
fixed: Fixed by: …
12:04 Ticket #4093 (False positive: Return value of std::remove() ignored. Elements remain in ...) created by sflot
The check for "std::remove" as STL function ignores the fact that there is …
10:36 Ticket #4092 (Be more strict when comparing char and string in C) created by kimmov
Commit …
10:03 Ticket #4091 (False positive: error (returnTempReference): Reference to temporary ...) created by amaigil2
I get this false positive with head of today. error …
09:44 Ticket #4090 (Simplify a[b] to *(a+b) for C code.) created by kimmov
Spin off from #4083. That ticket implemented simplification of 0[b] to …
09:42 Ticket #4089 (Show error id in description) closed by pkeus
duplicate: Duplicate of #3522. You can use cppcheck --errorlist to get all IDs.
09:41 Ticket #4089 (Show error id in description) created by phagos
As there's no full …

08/26/12:

18:54 Ticket #4088 (False positive with wcstombs()) closed by roflz
fixed: fixed 10 hours ago: …
18:42 Ticket #4088 (False positive with wcstombs()) created by jimp03
If the first argument of wcstombs is NULL, wcstombs returns the required …
18:23 Ticket #4087 (div by zero check is invalid for floats) created by roflz
long double f() { long double x = 0.0; return -1.0 / (x - x); } int …
17:12 Ticket #4053 (false positive: (style) Same expression on both sides of '&&'.) closed by danielmarjamaki
worksforme: I fail to reproduce with latest git head. The simplification does look …
15:46 Ticket #4086 (Tokenizer::setVarId : varid not set properly for member variable in ...) created by danielmarjamaki
Code example: […] The --debug output says: […] As you can see, the …
15:22 Ticket #3953 (Token::Match() segmentation fault) closed by danielmarjamaki
worksforme: Yes I get "Analysis failed" too. This is ok behaviour as far as I see.
15:07 Ticket #3967 (Misdetection of double free calls for different pointers?) reopened by elfring
Replying to danielmarjamaki: > Seems to be fixed in latest git …
15:07 Ticket #3955 ((error) Analysis failed. If the code is valid then please report this ...) closed by danielmarjamaki
worksforme: latest git head works.
14:57 Ticket #3967 (Misdetection of double free calls for different pointers?) closed by danielmarjamaki
worksforme: Seems to be fixed in latest git head: […]
14:53 Ticket #3936 (segmentation fault of cppcheck (unsigned int #include ||)) closed by danielmarjamaki
worksforme: This seems to be fixed in latest git head: […]
14:01 Ticket #4085 (tinyxml2 false positives) created by iobyte
tinyxml2 http://www.grinninglizard.com/tinyxml2/index.html has 2 new …
10:10 Ticket #4084 (New Check: Portability - mixed type (unsigned int)-1 comparison) created by tehuser
Machine 1: $ cat tmp.cpp […] $ g++ -Wall tmp.cpp -o tmp tmp.cpp: In …
09:50 Ticket #811 (Improve check: varscope doesn't detect limitable scope for pointer ...) closed by pkeus
worksforme: This works in current git head.
09:33 Ticket #404 (Memory leak not detected when result assigned to pointer to pointer) closed by pkeus
worksforme: A memory leak is reported in both cases in current git head.
09:11 Ticket #4023 (false positive: (style) Variable 'bucket' is assigned a value that is ...) closed by pkeus
worksforme: I can't reproduce with current git head. I assume this has been fixed.
08:57 Ticket #3729 (Passing c_str() to overloaded function, recommendation would cause ...) closed by pkeus
fixed: Fixed by: …
08:26 Ticket #4075 (Incorrectly detects false/true inside template instantiation as a boolen ...) closed by pkeus
fixed: Fixed by: …
08:06 Ticket #4083 (in C, a[0] == 0[a], and the latter is misdetected as null pointer deref) closed by pkeus
fixed: Fixed by: …
07:50 Ticket #3976 (varid 0 error when checking mesa) closed by pkeus
fixed: Fixed by: …
07:50 Ticket #3769 (Tokenizer::setVarId: no varid for templated variables like 'A<B<C>::D> e;') closed by pkeus
fixed: Fixed by: …

08/25/12:

20:39 Ticket #4083 (in C, a[0] == 0[a], and the latter is misdetected as null pointer deref) created by roflz
it should always reduce a[b] to *(a+b) before figuring out if it's an …
20:00 Ticket #4035 (False positive: Memory leak: pTempFile) closed by danielmarjamaki
fixed: See: …
11:25 Ticket #4036 (cppcheck hangs with 100% cpu load) closed by danielmarjamaki
fixed: Fixed by: …
11:09 Ticket #3980 (Variable not assigned a value) closed by danielmarjamaki
fixed: Fixed by: …
10:37 Ticket #4039 (Incorrect emptiness match/report (% binds tighter than == or !=)) closed by pkeus
fixed: Fixed by: …
08:48 Ticket #3943 (false positive: (error) Uninitialized variable: FD) closed by danielmarjamaki
worksforme: I fail to reproduce too.

08/24/12:

13:23 Ticket #4082 (Maybe false positive: memleak) created by amaigil2
It's possible to have memory leaks with the given code, but is the error …
11:23 Ticket #4081 (printf argument list checking fails on escaped char) created by mindwalker3
Sample: […] cppcheck reports only one error: [test.cpp:4]: …

08/22/12:

18:52 Ticket #4068 (Endless loop inside MathLib::add()) closed by danielmarjamaki
fixed: I fixed it by: …
17:49 Ticket #4020 (false positive: (style) Variable 'dst' is assigned a value that is never ...) closed by danielmarjamaki
fixed: Fixed by: …
17:17 Ticket #4076 (Returning reference to temporary not reported) closed by pkeus
fixed: Fixed by: …
17:04 Ticket #3786 (Analysis failed (simplifyEnum)) reopened by amaigil2
Unfortunately today I see the same problem again :-(
16:54 Ticket #4076 (Returning reference to temporary not reported) reopened by amaigil2
I have to reopen, since I think that one makes it crash on a yet to be …
15:28 Ticket #4071 (#if sizeof(..) is not evaluated) closed by pkeus
fixed: Thanks. I applied it in: …
15:25 Ticket #4080 (cppcheck hangs) closed by amaigil2
duplicate: That is a duplicate to ticket #4068
14:56 Ticket #1768 (Undefined Behavior: Shift by negative value) closed by pkeus
fixed: negShift2.patch does not contain any test cases. You probably forgot to …
14:53 Ticket #4066 (Buffer Out of bounds error not shown. PATCH attached.) closed by sahegde1
fixed
14:22 Ticket #4080 (cppcheck hangs) created by dpinol
cppcheck on the code below hangs forever thanks […]
13:42 Ticket #4079 (#if condition does not evaluate numbers with sign) created by michaeln123
[…] The code processed fine on Visual Studio 2008 & Embarcadero RAD …
12:50 Ticket #2628 (switch case fall through: detect redundant increment) closed by cpay
fixed
11:09 Ticket #4076 (Returning reference to temporary not reported) closed by pkeus
fixed: Implemented by: …
08:59 Ticket #4078 (False negative: call to free on pointer to string literal) created by amaigil2
In the given code example there should be a warning since the pointer does …
08:32 Ticket #4077 (False positive: error (invalidIterator1): Invalid iterator: it) created by amaigil2
Using current git-head I get a false positive error (invalidIterator1): …
08:12 Ticket #4076 (Returning reference to temporary not reported) created by dpinol
It would be nice if cppcheck could report that getRobotPosition is …
07:03 Ticket #4075 (Incorrectly detects false/true inside template instantiation as a boolen ...) created by jannicht
danmar-cppcheck-1.55-167-g2b5cd2e.tar.gz result in the following error on …
06:55 Ticket #4074 (Internal error. Token::Match called with varid 0) created by jannicht
danmar-cppcheck-1.55-167-g2b5cd2e.tar.gz result in internal error on line …

08/21/12:

18:19 Ticket #4073 (Crash on self assignment) closed by edward-san
fixed
17:08 Ticket #3716 (segmentation fault of cppcheck when scanning gcc-sources (syntax error)) closed by danielmarjamaki
worksforme: ok I close it.
16:50 Ticket #4073 (Crash on self assignment) created by chehrlic
The current version (41b624230fb270cc920c7ef071225ef3815d6700) is crashing …
15:28 Ticket #4072 (False positive: Structure is not initialized in the constructor (1.55)) created by mclock
Cppcheck 1.55 reports: Member variable 'A::B' is not initialized in the …
15:03 Ticket #3942 (false positive: (error) Memory leak: keyword) closed by danielmarjamaki
fixed: Fixed by: …
10:47 Ticket #4071 (#if sizeof(..) is not evaluated) created by michaeln123
#if sizeof(..) is not evaluated please review the fix attached
09:38 Ticket #4070 (New Check: Compare pointer with '\0') created by pkeus
Comparing a pointer with '\0' indicates that the intention of the code is …
04:04 Ticket #4066 (Buffer Out of bounds error not shown. PATCH attached.) reopened by sahegde1
Replying to danielmarjamaki: > if you really want to separate …

08/20/12:

16:12 Ticket #3964 (False positive: Expressions in array declarations are not simplified 'char ...) closed by danielmarjamaki
fixed: Fixed by: …
14:56 Ticket #1597 (Improve unused variable check to also detect class and structs) closed by pkeus
fixed: In my opinion this ticket can be closed. Support for {{{using namespace …
13:52 Ticket #4069 (type conversion leads to false positive bound check) closed by pkeus
duplicate: This seems to be a duplicate of #3935.
13:47 Ticket #4069 (type conversion leads to false positive bound check) created by davidvolgyes
In the below example, you can see that after type conversion the …
12:00 Ticket #4062 (False positive: error (iterators) Same iterator is used with both a and t) closed by pkeus
fixed: Fixed by: …
10:21 Ticket #4067 (Same iterator is used with both ...) closed by pkeus
duplicate: Yes.
09:20 Ticket #4068 (Endless loop inside MathLib::add()) created by amaigil2
It seems the fix for Ticket #4016 brought an endless loop inside the given …
07:23 Ticket #4067 (Same iterator is used with both ...) created by dpinol
Hi, why is it an error to reuse an iterator object for 2 different …
04:29 Ticket #4066 (Buffer Out of bounds error not shown. PATCH attached.) closed by danielmarjamaki
duplicate: I believe this is a duplicate of #2534.

08/19/12:

17:23 Ticket #4064 (Buffer Out of bounds error not shown. PATCH attached.) closed by pkeus
duplicate
17:23 Ticket #4065 (Buffer Out of bounds error not shown. PATCH attached.) closed by pkeus
duplicate
17:21 Ticket #4066 (Buffer Out of bounds error not shown. PATCH attached.) created by sahegde1
func() { char Buf1[8]; sprintf(Buf1,"0123456"); //OK …
17:19 Ticket #4065 (Buffer Out of bounds error not shown. PATCH attached.) created by sahegde1
func() { char Buf1[8]; sprintf(Buf1,"0123456"); //OK …
17:11 Ticket #4064 (Buffer Out of bounds error not shown. PATCH attached.) created by sahegde1
func() { char Buf1[8]; sprintf(Buf1,"0123456"); //OK …
17:05 Ticket #4063 (Improve error text: Casting between integer* and float*) created by aggro80
Following code: […] gives following warning (with …

08/18/12:

20:13 Ticket #3922 (false positive: (error) null pointer dereference) closed by danielmarjamaki
fixed: Fixed by: …
09:15 Ticket #4037 (False positive unusedStructMember when using C++ templates) closed by pkeus
fixed: This should be fixed in current git head.
08:42 Ticket #4059 (false alarm: sscanf() with %d or %u can crash with huge input data) closed by pkeus
fixed: I remember that I fixed that some times ago, and I don't get a message …

08/17/12:

15:59 Ticket #4062 (False positive: error (iterators) Same iterator is used with both a and t) created by amaigil2
The following error error (iterators): Same iterator is used with both a …
14:44 Ticket #3966 (Initialization of unions) closed by danielmarjamaki
worksforme: This has been fixed: […]
14:39 Ticket #4019 (false positive: (style) Variable 'dest' is assigned a value that is never ...) closed by danielmarjamaki
fixed: Fixed by: …

08/16/12:

10:45 Ticket #4061 (false alarm: Checking if unsigned variable is less than zero) closed by tzimmo
invalid: Replying to tzimmo: > False alarm about a signed variable …
10:30 Ticket #4061 (false alarm: Checking if unsigned variable is less than zero) created by tzimmo
False alarm about a signed variable being unsigned. The if condition will …
09:42 Ticket #4060 (Not detecting member variable not initialized in constructor) created by undergraver
In the constructor of a class a uninitialized member variable is not …
08:08 Ticket #4058 (Improve check: Detect logical disjunction when using expression) closed by danielmarjamaki
invalid: I saw that GCC warns about this when -Wlogical-op is used: […] …
07:15 Ticket #4027 (Support for Managed C++ "for each") closed by phagos
duplicate: Actually it's valid for native code too. Previous discussion is in #3690

08/15/12:

14:27 Ticket #4059 (false alarm: sscanf() with %d or %u can crash with huge input data) created by tzimmo
I think this is a false alarm, right? ---8<---8<--- cppcheck-1.55 -q …
13:15 Ticket #4058 (Improve check: Detect logical disjunction when using expression) created by danielmarjamaki
This condition is always false.. and Cppcheck reports a error message for …
09:48 Ticket #3396 (Tokenizer: known value in bitwise and not simplified '(4 == x & 15)') closed by danielmarjamaki
invalid: thank you neuschaefer for that info. Cppcheck writes this error: […] …
08:17 Ticket #4057 (False positive: Member variable not intialized in the constructor) created by henryl
When running cppcheck on […] Cppcheck incorrectly outputs …

08/14/12:

17:00 Ticket #3713 (improve check: uninitialized variable in C code (unknown type)) closed by danielmarjamaki
worksforme: worksforme.. I get this error: […]
16:02 Ticket #3226 (Incorrect template instantiation when nesting templates with default ...) closed by amaigil2
fixed: I think that is fixed. Probably while fixing Ticket #3818
14:18 Ticket #4016 (false positive: incorrectLogicOperator) closed by danielmarjamaki
fixed: Fixed by: …

08/13/12:

17:33 Ticket #4056 (New check: comparison against constant value is always true/false ...) created by danielmarjamaki
I saw such code: […] The constants were not magic numbers but #defines …
17:17 Ticket #4031 (False positive: Possible null pointer dereference) closed by danielmarjamaki
invalid: sorry.. when I look at it now it seems to be a correct message. The "he …
14:18 Ticket #3706 (cppcheck 1.53 hangs when processing a certain template with ...) closed by danielmarjamaki
fixed: Fixed by: …
13:19 Ticket #4055 (False positive: warning uninitMemberVar) created by amaigil2
The following code triggers a false positive uninitMemberVar warning. …
08:10 Ticket #4054 (Buffer access out-of-bounds not detected) created by amaigil2
Inspired by ticket #3931 I've found the following false negative: […]

08/12/12:

20:07 Ticket #4046 (False positive Duplicate if expressions) closed by serval2412
worksforme: I git updated cppcheck today and tested it again, it was ok with the file …
15:41 Ticket #4053 (false positive: (style) Same expression on both sides of '&&'.) created by kidkat
[…] reports […] I think the problem lies in the simplification: …
15:11 Ticket #4050 (false positive: buffer accesout-of-bounds) closed by danielmarjamaki
duplicate: thank you for reporting this. It seems to me this is a duplicate of #3931
15:08 Ticket #3979 (false positive: (error) Buffer is accessed out of bounds: buf) closed by danielmarjamaki
duplicate: Seems to be a duplicate of #3931
15:08 Ticket #3931 (FP: Buffer access out-of-bounds) closed by danielmarjamaki
fixed: Fixed by: …
15:07 Ticket #4052 (Show Cppcheck version in online demo) created by kimmov
The online demo at http://cppcheck.sourceforge.net/demo/ does not show …
14:19 Ticket #4018 (false positive: Dereferencing 'foo' after it is deallocated / released) closed by danielmarjamaki
fixed: Fixed by: …
12:20 Ticket #4000 ((error) Internal error. Token::Match called with varid 0. Please report ...) closed by pkeus
fixed: Fixed by: …

08/11/12:

16:46 Ticket #4051 (performance test idea: use `const basic_type` instead of `const ...) created by jk3064
Idea came up after this discussion: …

08/10/12:

22:08 Ticket #4050 (false positive: buffer accesout-of-bounds) created by geronimodeuno
Problem: (with non standard for-loop) array size is 3 (index from 0 to 2) …
22:02 Ticket #4049 (false negative: array access out of bounds (offset=know enum value)) created by iobyte
This code: […] gets tokenized to this: […] The array x is both …
21:04 Ticket #4048 (Tokenizer::simplifyVarDecl: Improve handling of 'a::b const * p = 0;') created by serval2412
Hello, With cppcheck git updated today, I've got false positive …
20:54 Ticket #4047 (False positive Memory leak) created by serval2412
Hello, With cppcheck git updated today, I've got a false positive "Memory …
20:49 Ticket #4046 (False positive Duplicate if expressions) created by serval2412
Hello, I git updated cppcheck today and in a LibreOffice? file, I've got a …
15:46 Ticket #4024 (Tokenizer::simplifyFlowControl removes pieces of code inside a class if ...) closed by edward-san
fixed: Really fixed in commit: …
14:18 Ticket #4045 (memory leak not reported after usage of " + p[]") created by undergraver
The memory leak is not reported. When I run debug I get the following: …
13:36 Ticket #4032 (CheckStl::uselessCalls() for 'substr' does not take variable scope into ...) closed by pkeus
fixed: Fixed by: …
12:55 Ticket #4044 (swtch-case fall-through detection) closed by danielmarjamaki
invalid: I don't like the idea to always warn about switch case fall through. …
12:16 Ticket #3950 (false positive: (error) Array 'Array[4]' accessed at index 4, which is ...) closed by danielmarjamaki
fixed: Fixed by: …
12:16 Ticket #3949 (false positive: (style) Variable 'B' hides enumerator with same name) closed by danielmarjamaki
fixed: Fixed by: …
12:14 Ticket #4025 (false positive: (error) Array 'x[1]' accessed at index 1, which is out of ...) closed by danielmarjamaki
fixed: Fixed by: …
11:37 Ticket #4044 (swtch-case fall-through detection) created by kidkat
In C# this behavior has already been disallowed and in C/C++ this might be …
11:16 Ticket #4043 (New check (C only): mismatching function parameters) created by danielmarjamaki
C is not as typesafe as C++. The code below is a syntax error in C++, but …
10:37 Ticket #4033 (segfault on formula.cxx (LibreOffice file)) closed by pkeus
fixed: Fixed by: …
09:12 Ticket #4002 (syntax error for 'X( typedef, Y)') reopened by danielmarjamaki
Yes. So far I think we have always managed to check code if it is …
08:31 Ticket #4042 (False Positive : Same expression on both sides of '&') created by tehuser
[…] commit 6ff1760c72412ae5193933faba1cc3055653ae68 Author: Daniel …
08:01 Ticket #4002 (syntax error for 'X( typedef, Y)') closed by danielmarjamaki
wontfix: Closing this as wontfix

08/09/12:

17:57 Ticket #4041 (Analysis failed (valid code)) created by amaigil2
The following is not valid C++ code (missing stuff), but the message is …
17:50 Ticket #4040 (false positive: (error) Uninitialized variable: iter) created by ettlmartin
[…] […]
16:59 Ticket #4039 (Incorrect emptiness match/report (% binds tighter than == or !=)) created by caryr
The following code shows two places where the current cppcheck from git …
15:21 Ticket #3818 (False "boolean result in bitwise" message in template class) closed by danielmarjamaki
fixed: I fixed the 3818a false positive with: …

08/08/12:

19:02 Ticket #4038 (FP: possible null pointer dereference) created by aggro80
Reporting on behalf of twied (in IRC) […]
11:31 Ticket #3818 (False "boolean result in bitwise" message in template class) reopened by amaigil2
> The location where it occured in th real world code is fixed, but now …
04:48 Ticket #3818 (False "boolean result in bitwise" message in template class) closed by danielmarjamaki
fixed: I fixed the templatesimplifier with: …

08/07/12:

21:58 Ticket #4024 (Tokenizer::simplifyFlowControl removes pieces of code inside a class if ...) reopened by edward-san
I believe the best convenient way to entirely fix this is to skip …
19:37 Ticket #4037 (False positive unusedStructMember when using C++ templates) created by jussilehtola
From Fedora bug 825161 https://bugzilla.redhat.com/show_bug.cgi?id=825161
14:56 Ticket #4036 (cppcheck hangs with 100% cpu load) created by ettlmartin
The following code causes cppcheck to hang forever […] […]
14:40 Ticket #3963 (segmentation fault of cppcheck (invalid typedef code)) closed by danielmarjamaki
fixed: Fixed by: …
09:04 Ticket #4024 (Tokenizer::simplifyFlowControl removes pieces of code inside a class if ...) closed by edward-san
fixed: Fixed in commit: …
05:17 Ticket #4035 (False positive: Memory leak: pTempFile) created by ml8
The original code stores the opened file handle in member variable of a …

08/06/12:

21:14 Ticket #4034 (false positive:(error) Dereferencing 'cfileP' after it is deallocated / ...) created by ettlmartin
[…] […]
18:53 Ticket #4033 (segfault on formula.cxx (LibreOffice file)) created by serval2412
Hi, I use git cppcheck sources, 5ee7758a83a4df4a57c2945174625f6b33017647, …
14:22 Ticket #4015 (segmentation fault of cppcheck (enum)) closed by danielmarjamaki
fixed: Fixed by: …
13:05 Ticket #4032 (CheckStl::uselessCalls() for 'substr' does not take variable scope into ...) created by comoran1970
Hi. Please find attached a minimal C++ programme that shows a false …
10:57 Ticket #4031 (False positive: Possible null pointer dereference) created by ml8
Summary: Possible null pointer dereference: he - otherwise it is redundant …
10:48 Ticket #4030 (false positive: redundantCopyLocalConst) created by amaigil2
The given example results in performance (redundantCopyLocalConst): …
06:47 Ticket #4029 (Suggest using std::for_each instead of for(...)) created by ml8
Lately, after our project started to shift to "modern c++" direction, i've …
06:40 Ticket #4028 (Enhance variable scope check: All STL classes) created by ml8
It seems that CppCheck? currently checks only primitive types (int, double …
06:31 Ticket #4027 (Support for Managed C++ "for each") created by ml8
We have many million lines of code and use CppCheck? regularly on it. The …

08/05/12:

18:08 Ticket #4026 (GUI: need to find source file that is causing header file errors) created by iobyte
I have a large project (30 apps and 20 libraries) and I am getting many …
15:18 Ticket #4010 (error (cppcheckError): Internal error. Token::Match called with varid 0) closed by danielmarjamaki
fixed: Fixed by: …
03:51 Ticket #4025 (false positive: (error) Array 'x[1]' accessed at index 1, which is out of ...) created by iobyte
This code: […] produces this: […]
00:15 Ticket #4024 (Tokenizer::simplifyFlowControl removes pieces of code inside a class if ...) created by iobyte
This code: […] produces this: […]

08/04/12:

12:11 Ticket #4023 (false positive: (style) Variable 'bucket' is assigned a value that is ...) created by kidkat
[…] reports […] When I replace "curline" with a digit the warning …
12:02 Ticket #4022 (false positive: (style) Variable 'sort_entry' is assigned a value that is ...) created by kidkat
[…] reports […]
11:53 Ticket #4021 (false positive: (style) Variable 'dest' is assigned a value that is never ...) created by kidkat
[…] reports […]
11:48 Ticket #4020 (false positive: (style) Variable 'dst' is assigned a value that is never ...) created by kidkat
[…] reports […] If I replace the "rdram" code as the value …
11:39 Ticket #4019 (false positive: (style) Variable 'dest' is assigned a value that is never ...) created by kidkat
[…] reports […] When I remove the "? :" code the warning …
09:36 Ticket #4018 (false positive: Dereferencing 'foo' after it is deallocated / released) created by crumblingstatue
No dereferencing takes place after the free, but cppcheck labels it as …

08/03/12:

16:36 Ticket #4017 (Hard to read (template) class names in error messages - no blanks) created by amaigil2
For the code sample below I get a message like warning …
10:20 Ticket #4016 (false positive: incorrectLogicOperator) created by amaigil2
I get a false positive warning (incorrectLogicOperator): Logical …

08/02/12:

21:31 Ticket #4015 (segmentation fault of cppcheck (enum)) created by ettlmartin
After updating today, i checked the sources of wxWidgets an got a …
15:27 Ticket #4009 (false positive: (style) Boolean result is used in bitwise operation. ...) closed by amaigil2
fixed: That seems to be fixed by …
13:31 Ticket #4014 (GUI: Some strings shouldn't be translated) created by pkeus
In contrast to #3647 which is about strings that should be translated but …
13:23 Ticket #3829 (Rename open xml to import xml) closed by pkeus
fixed: Thank you for the patch, it looks good, so I merged it.
11:09 Ticket #4008 (GUI: Polish translation does not translate and should be removed) closed by pkeus
fixed: I merged the pull request.
Note: See TracTimeline for information about the timeline view.