Timeline


and .

04/20/14: Yesterday

22:22 Ticket #5697 (Check for throw in __attribute__((nothrow)) function) reopened by iobyte
Here is a patch that fixes a crash when a function is missing a function …
20:02 Ticket #5699 (STL check for usage of std::string::find result) created by lucasmrod
Hello everybody, Everytime you want to do some raw text processing with …
18:41 Ticket #5697 (Check for throw in __attribute__((nothrow)) function) closed by danielmarjamaki
fixed: I applied nothrow.diff with: …
17:54 Ticket #5698 (Improve check: Divide by sizeof() instead of multiplying) created by pkeus
We already have several checks related to incorrect sizeof usage, …
14:14 Ticket #5697 (Check for throw in __attribute__((nothrow)) function) created by iobyte
The following code should generate a message. […] Here is a patch that …
13:00 Ticket #5508 (False positive : local function is not library function) closed by danielmarjamaki
fixed: The false positive is not shown for the given code example anymore. Fixed …
08:51 Ticket #1416 (false negative resource leak when calling fdopen) closed by danielmarjamaki
fixed: Fixed by: …
06:59 Ticket #4800 (Check unhandled exceptions) closed by danielmarjamaki
fixed: I applied 4800.2.diff with: …

04/19/14:

18:49 Ticket #5696 (cppcheck can't handle large arrays defined within .h files) created by hardtobugreport
Having .cpp file with several includes like: #include "file1.h" #include …
11:15 Ticket #5512 (library (memory): extending standard free deallocator with allocators in ...) closed by danielmarjamaki
fixed: Fixed by: …
08:08 Ticket #5695 (FP: Mismatching assignment and comparison) created by rolandschulz
The code: […] run with --enable-style gives: [test_cppcheck1.c:5] -> …

04/18/14:

22:58 Ticket #5694 (Defect: False positive due to ignoring cast of bracketed expression) created by mavik1
In the code below, cppcheck incorrectly reports a divide by zero. This …
22:23 Ticket #5693 (varid0: Torque3D/testAsyncPacketQueue.cpp) created by matthiaskrgr
file: …
19:46 Ticket #5692 (cppcheckError in code from tortoisesvn) created by amai
The following C code inspired by tortoisesvn triggers (error) Analysis …
19:33 Ticket #5691 (False positive: autovarInvalidDeallocation - function name 'delete' in C ...) created by amai
The following C code taken from tortoisesvn shows a false positive …
19:24 Ticket #5690 (False positive nullPointer - nullpointer check in for-clause) created by amai
The following example taken from tortoisesvn shows a false positive …
18:44 Ticket #5593 (hang or --report-progress broken (does not report progress)) closed by amai
fixed: As of …
17:53 Ticket #5545 (Cppcheck interface application for Visual Studio) closed by amai
wontfix: Thanks for the contribution. I've added link to this ticket in our …
17:43 Ticket #5071 (Analysis failed on wine dlls/kernel32/tests/debugger.c:838 - unknown macro ...) closed by amai
fixed: That seems to work with 1.65dev (a9943fe6d05acd5510ef2e75de2a8bbd05b42147)
17:34 Ticket #4438 (Check for modification in assert statement) closed by amai
wontfix: That might cause "no false positives"
16:19 Ticket #5576 (false positive: (POSIX) (error) Resource leak: sockfd) closed by danielmarjamaki
fixed: Fixed by: …
15:06 Ticket #5525 (Closing a socket file descriptor gives an error: Mismatching allocation ...) closed by danielmarjamaki
fixed: Fixed by: …
14:30 Ticket #5689 (Defect: False positive due to missing strncpy configuration information) created by mavik1
In the code below, cppcheck incorrectly reports that buf1 is being written …
14:13 Ticket #5656 (false positive: (error) Possible null pointer dereference: f) closed by danielmarjamaki
fixed: Fixed by: …
12:08 Ticket #5688 (Defect: False positive due to ignoring duplicate file includes) created by mavik1
In the code below, cppcheck incorrectly reports that array2 is accessed …
11:43 Ticket #5687 (false negative: (error) uninitialized variable not detected) created by ettlmartin
Cppcheck fails to detect the usage of an uninitialized variable: […]
09:39 Ticket #5686 (False negatives about improper scanf() arguments) created by amai
Within the following code snippet I'd expect a couple of warnings about …

04/17/14:

20:14 Ticket #5341 (value-flow: varid0, blender: unknown macros) closed by amai
fixed: That got fixed, I cannot reproduce with 1.65 dev …
19:52 Ticket #1206 (style check: reuse of local variables) closed by amai
wontfix: No feedback since 4 years, and style checks are a bit out of scope …
19:50 Ticket #3147 (false negative: buffer access out of bounds) closed by amai
duplicate: Duplicate to #1317
19:33 Ticket #5684 ("The scope of the variable 'p' can be reduced" - But it can not.) closed by amai
fixed: Fixed as of …

04/16/14:

15:00 Ticket #5683 (false positive: (style) Same expression on both sides of '|'.) closed by danielmarjamaki
duplicate: Fixed by the #5682 fix
14:06 Ticket #5682 (False positive: (style) Same expression on both sides of '&&') closed by danielmarjamaki
fixed: Fixed by: …

04/15/14:

14:55 Ticket #5685 (false negative: (error) buffer access out of bounds) created by ettlmartin
[…] […]
11:43 Ticket #5684 ("The scope of the variable 'p' can be reduced" - But it can not.) created by dobiasd
The following code […] results in: […] This is a false positive. On …
11:36 Ticket #5683 (false positive: (style) Same expression on both sides of '|'.) created by ettlmartin
[…] […]
11:26 Ticket #5682 (False positive: (style) Same expression on both sides of '&&') created by ettlmartin
[…] […]
10:47 Ticket #5681 (False positive: out of bounds array) created by ignas2526
cppcheck 1.64, complains that Array 'arr[6]' accessed at index 6. But arr …
07:39 Ticket #5680 (Broken Visual Studio 2012 compilation) closed by amaigil2
fixed

04/14/14:

15:19 Ticket #5680 (Broken Visual Studio 2012 compilation) created by cassandrad
I don't know what's happened at this time, but I got several errors about …
14:11 Ticket #5596 (False positive: out-of-bounds on 2D array) closed by danielmarjamaki
fixed: I believe I fixed this when fixing #5602. I can't reproduce on latest git …
08:37 Ticket #5679 (false negative: (error) buffer access out of bounds (std::vector)) created by ettlmartin
No warning is printed for […] […]
07:48 Ticket #5678 (False negative: destructor with no definition hide mismatching allocation ...) created by lefreut
cppcheck does not find the error in this code because the destructor is …

04/13/14:

17:05 Ticket #5677 ([PATCH] Fix overzealous substr() warning) closed by danielmarjamaki
fixed: Thanks! I applied your patch with: …
16:02 Ticket #3788 (uselessCallsCompare,uselessCallsSubstr not for STL) closed by amai
duplicate: Closed in favour of duplicate ticket #5677 - since that one contains a …
15:54 Ticket #5677 ([PATCH] Fix overzealous substr() warning) created by mordante
The substr() test emits warnings like: »(performance) Ineffective call of …
15:48 Ticket #5676 (Token::printValueFlow: comparision between int and unsigned int) closed by xypron
invalid
15:25 Ticket #5546 (FP: nullPointer - variable of unknown template type) closed by amai
invalid: I can't reproduce anymore - neither with 1.64 nor 1.65 dev …
15:21 Ticket #5477 (Multiple false positives in MathGeoLib source code.) closed by amai
fixed: In my understanding the involved issues are either fixed or addressed in …
15:19 Ticket #5325 (false positive: (error) Uninitialized variable: i) closed by amai
duplicate: It was a duplicate to #5658 (or vice versa...)
15:14 Ticket #5676 (Token::printValueFlow: comparision between int and unsigned int) created by xypron
Token::printValueFlow int and uint are compared. […] Patch as follows: …
14:43 Ticket #5419 (Cppcheck occasionally crashes when checking with multiple threads) closed by pkeus
fixed: I was able to reproduce a similar issue today. I fixed it in: …
11:07 Ticket #5602 (false positive on std::vector - after unknown macro around the function ...) closed by danielmarjamaki
fixed: I made a fix with: …
10:49 Ticket #5592 (crash: gcc: testsuit: gcc.c-torture/compile/limits-declparen.c) closed by amai
fixed: Should be fixed as of …
07:57 Ticket #5672 (False positive: scope of variable) closed by amai
invalid: Reducing the scope means moving the variable inwards to a smaller scope. …
07:52 Ticket #5300 (Invalid encoding in XML output) closed by amai
fixed: https://github.com/danmar/cppcheck/commit/73fc3d6a13b89c1dd4f6d6178d6485926
07:27 Ticket #5674 (FP, invalid iterator in servicemanager.cxx (LibreOffice source)) closed by serval2412
fixed: Indeed it works now (71b306ff64ef030c3f7c7df42f5290404a0aafa2). I must …

04/12/14:

22:41 Ticket #5675 (FP: multicondition Expression is always false because 'else if' in ...) created by serval2412
Hello, Cppcheck (git updated today) reported this: …
18:37 Ticket #5674 (FP, invalid iterator in servicemanager.cxx (LibreOffice source)) created by serval2412
Hello, Cppcheck git updated today reported this with the file attached: …
18:11 Ticket #5669 (False positive invalidIterator1 after calling erase (*it)) closed by pkeus
fixed: Fixed by: …
17:33 Ticket #5673 (New check: Use make_shared / make_unique) created by danielmarjamaki
Suggested by z33ky on the chat: Example code: […] Should be written: …
17:27 Ticket #5242 (Error - detecting operator=() as a variable) closed by amai
fixed: There have been similar patches on 1.65dev. I cannot reproduce anymore …
17:25 Ticket #5336 (Analysis failed: unknown macro hiding function header) closed by amai
fixed: I think that has been fixed with 1.65. No error with …
17:22 Ticket #5316 (libsynthesis: Analysis failed.) closed by amai
worksforme: I assume this has been fixed. Also in current daca2-head there is no …
17:17 Ticket #5163 (False positive: uselessAssignmentPtrArg for "unknown"/non-pointer type) closed by amai
fixed: Actually the last version that was triggering this problem seems to be …
17:06 Ticket #5672 (False positive: scope of variable) created by ignas2526
[…] cppcheck keeps suggesting that scope of varaible t2 can be reduced: …
14:22 Ticket #5671 (unusedScopedObject should not be reported as an error if ctor has ...) created by amai
The following example triggers (error) Instance of 'TblWait' object is …
14:09 Ticket #5397 (False positive: Same expression on both sides of '&') closed by danielmarjamaki
fixed: Fixed by: …
13:58 Ticket #5670 (FP negativeIndex - incrementing index in while() -clause) created by amai
The following code triggers a false positive negativeIndex message …
13:35 Ticket #5669 (False positive invalidIterator1 after calling erase (*it)) created by amai
The following code triggers a false positive invalidIterator1 warning for …
13:28 Ticket #5668 (Detect exceptThrowInNoexecptFunction if exception is thrown in nested ...) created by amai
This is a follow-up to #5638. The following example should trigger a …
13:24 Ticket #5667 (FP uninitvar for pointer to member variable) created by amai
Since commit around …
12:41 Ticket #5580 (syntax error on typedef pointer to function pointer) closed by amai
duplicate: I think that is a duplicate to #5191
11:23 Ticket #5322 (False Positives if class and forward declaration in same header) closed by pkeus
wontfix: .h Headers are checked as C code (when checking .h directly; Not if used …
11:06 Ticket #5322 (False Positives if class and forward declaration in same header) reopened by pkeus
Sorry, I can reproduce now. The most important word was "header". If the …
11:04 Ticket #5322 (False Positives if class and forward declaration in same header) closed by pkeus
worksforme: I cannot reproduce with neither 1.62, 1.64 nor git head. If you can …
10:26 Ticket #2862 (False positive (inconclusive): method can be const. Call through pointer ...) closed by amai
duplicate: Fixed as of #3503.
10:07 Ticket #4890 (false positive Same expression on both sides of '&&' (. and ->)) closed by pkeus
fixed: Fixed by: …
10:07 Ticket #4577 (False Positive: Inconclusive - function can be static) closed by pkeus
fixed: Fixed by: …
10:06 Ticket #3503 (False positive (inconclusive): function can be const (namespace, function ...) closed by pkeus
fixed: Fixed by: …
09:37 Ticket #5666 (False positive when modifiying std::string by pointer) created by nyamatongwe
This code produces a "Null pointer dereference" warning on the line that …

04/11/14:

20:29 Ticket #5130 (Fixes for Makefile and dmake) closed by amai
fixed: Reduce now depends on $(LIBOBJ) : …
15:25 Ticket #5665 (False memleak when using FreeBSD's malloc) created by rshivji
This is part false positive part new check request. cppcheck gives a …
08:40 Ticket #5664 (false positive: (error) Uninitialized variable: j (Comma operator in for ...) created by ettlmartin
[…] […]
03:42 Ticket #5659 (False negative: mismatching allocation / deallocation whith using ...) closed by danielmarjamaki
fixed: Thanks! I applied 5659.1.diff with: …

04/10/14:

20:29 Ticket #5640 (False positive: Consider performing initialization in initialization list) closed by pkeus
fixed: Fixed by: …
20:09 Ticket #5659 (False negative: mismatching allocation / deallocation whith using ...) reopened by lefreut
The test case fails if fct takes one or more parameters like this: […]
19:57 Ticket #5568 (False positive: redundantAssignment when using () operator with multiple ...) closed by pkeus
fixed: Fixed by: …
19:45 Ticket #5612 (false positive: [a.cpp:14]: (error) Invalid iterator: i) closed by pkeus
fixed: Works in current git head.
19:29 Ticket #5655 (Wrong detection of possibly const method) closed by pkeus
fixed: Already fixed in current git head for almost a month by: …
19:22 Ticket #5653 (Local variable `hides` enum class enumerator) closed by pkeus
duplicate: Already fixed in current git head for almost a month by: …
19:22 Ticket #5652 (Class member function `hides` enum class enumerator) closed by pkeus
duplicate: Already fixed in current git head for almost a month by: …
19:21 Ticket #5651 (Class member `hides` enum class enumerator) closed by pkeus
duplicate: Already fixed in current git head for almost a month by: …
18:14 Ticket #5663 (crash: kdelibs khtml/css/tokenizer.cpp) closed by pkeus
fixed: There seems to be no better solution than throwing a syntaxError. Crash …
17:51 Ticket #5643 (Crash in drawview.cxx (LibreOffice file)) closed by pkeus
fixed: Fixed by: …
17:23 Ticket #4724 (Error in calculation shift operation: wrong sign: 1UL << 63) closed by amai
fixed: Should be fixed as of …
15:44 Ticket #5663 (crash: kdelibs khtml/css/tokenizer.cpp) created by matthiaskrgr
file attached. […] […]
15:25 Ticket #5486 (false positive: (warning) %zd in format string (no. 1) requires 'ssize_t' ...) closed by danielmarjamaki
fixed: Thanks! I applied 5486.diff with: …
14:17 Ticket #5638 (is there any plan to check noexcept correctness?) closed by danielmarjamaki
fixed
14:12 Ticket #5659 (False negative: mismatching allocation / deallocation whith using ...) closed by danielmarjamaki
fixed: Thanks! I applied 5659.diff with …
14:00 Ticket #5658 (false positive: (error) Uninitialized variable: s) closed by danielmarjamaki
fixed: Fixed by: …
11:55 Ticket #5662 (GUI - Save results missing some entries) created by arm_in
I'm using cppcheck 1.64 GUI on windows. There are some entries missing …
10:37 Ticket #5661 (--suppress=missingInclude has no effect) created by violetgiraffe
It seems that --suppress=missingInclude is broken. This is a test file: …
04:42 Ticket #5660 (false positive: (error) Uninitialized variable: result) closed by danielmarjamaki
fixed: Fixed by: …

04/09/14:

13:16 Ticket #5660 (false positive: (error) Uninitialized variable: result) created by ettlmartin
[…] […]
12:07 Ticket #5659 (False negative: mismatching allocation / deallocation whith using ...) created by lefreut
cppcheck does not report the mismatching allocation and deallocation in …
09:41 Ticket #5658 (false positive: (error) Uninitialized variable: s) created by ettlmartin
[…] […]
09:17 Ticket #5657 (false positive: (error) Possible null pointer dereference: p) created by ettlmartin
[…] […]
08:58 Ticket #5656 (false positive: (error) Possible null pointer dereference: f) created by ettlmartin
[…] […]
08:49 Ticket #5467 (False positive incorrectly claiming use after erase) closed by danielmarjamaki
fixed: Fixed by: …
05:58 Ticket #5520 (Readme.txt say any C++ compiler, but c++11 required) closed by amai
duplicate: I think we should cover that issue within #5482.

04/08/14:

18:26 Ticket #5631 (Typo and misleading error message in negativeMemoryAllocationSize) closed by amai
fixed: Should be fixed as of …
18:09 Ticket #5608 (false positive: (POSIX) (error) Resource leak: fd) closed by amai
duplicate
12:59 Ticket #5655 (Wrong detection of possibly const method) created by constructor7
Cppcheck gives recommendation that class member function can be const when …
12:48 Ticket #5654 (Wrong detection of possibly static method) created by constructor7
Code example: […] Cppcheck 1.64 output (with --enable=all …
11:58 Ticket #5653 (Local variable `hides` enum class enumerator) created by constructor7
Code example: […] Cppcheck 1.64 output: […] Possibly this is the …
11:50 Ticket #5652 (Class member function `hides` enum class enumerator) created by constructor7
Code example: […] Cppcheck 1.64 output: […] x is not a variable, …
11:40 Ticket #5651 (Class member `hides` enum class enumerator) created by constructor7
Code example: […] Cppcheck 1.64 output: […]
05:49 Ticket #5650 (Warn about multiple consecutive casts) created by kimmov
Inspired by #911. Over the years I've seen lots of creativity when people …

04/07/14:

20:07 Ticket #5649 (scanf message doesn't mention which scanf) created by dcb314
I think it would be an improvement if the scanf message mentioned if the …
19:46 Ticket #5216 (False negative: calculating out-of-bounds pointer) closed by amai
fixed: Since at least 1.64 there is a warning: [tickets/5216.c:3]: …
19:41 Ticket #4678 (false negative: buffer access out of bounds) closed by amai
duplicate: Duplicate to #3763
19:33 Ticket #2775 (Uninitialized variable: Not detected when uninitialized struct pointer is ...) closed by amai
fixed: 1,64+ shows: [tickets/2775.cpp:7]: (error) Uninitialized variable: p
11:21 Ticket #5648 (Suggestion: Distinguish between decimal and hexadecimal numbers) created by sreejeshs
It would be nice if adding a pattern like %hex% for Token::Match() …
10:25 Ticket #5647 (FP: Resource leak on freopen) created by dpinol
Hi, I've seen many places that std files are redirected to /dev/null when …
10:09 Ticket #5645 (FP: Null pointer dereference in fputc argument) closed by amaigil2
fixed: Should be fixed as of …
10:04 Ticket #5646 (FP: pointer to array is not assigned a value.) created by dpinol
Hi, I get this error […] on this code […] thanks
09:09 Ticket #5645 (FP: Null pointer dereference in fputc argument) created by dpinol
Hi, I get this error when passing 0 character to fputc. […] thanks …

04/06/14:

16:46 Ticket #5502 (FP: Dereferencing 'b' after it is deallocated / released) closed by danielmarjamaki
fixed: Fixed by: …

04/05/14:

18:53 Ticket #5644 (Compilation failure on Cygwin - related to tinyxml2) created by amai
Currently compilation of cppcheck fails on cygwin. For more details, see …
09:53 Ticket #5643 (Crash in drawview.cxx (LibreOffice file)) created by serval2412
Hello, With cppcheck git updated today, I get a crash on the file …

04/04/14:

20:15 Ticket #5641 (Regression. Crash for 'C() _STLP_NOTHROW {}') closed by amai
fixed: Should be fixed as of …
15:49 Ticket #5642 (Very simple out of bounds case not detected) created by edmundv
Cppcheck 1.64 does not find this rather simple out of bounds case: […] …
11:04 Ticket #963 ('return realloc()' mishandled) closed by amaigil2
fixed: 1.65 dev reports a memleak for this code.

04/03/14:

18:17 Ticket #5641 (Regression. Crash for 'C() _STLP_NOTHROW {}') created by danielmarjamaki
With latest git head we get a crash for this code: […] The crash is a …
08:02 Ticket #5640 (False positive: Consider performing initialization in initialization list) created by burnus
cppcheck -f --enable=all shows […] However, for obvious reasons the …

04/02/14:

15:06 Ticket #5635 (New check: std::abs(bool)) closed by ettlmartin
fixed
12:08 Ticket #5639 (String literal compared with char buffer in a struct) created by funnysquirrel
Hello CppCheck?-Team, the following code: […] leads to the following …
10:49 Ticket #5638 (is there any plan to check noexcept correctness?) created by dpinol
It would be nice to detect situations like this one […] but specially …
09:26 Ticket #5637 (FP: Use const reference for '' to avoid unnecessary data copying.) created by dpinol
I understand it may be difficult to check automatically, but I if a …
09:21 Ticket #5636 (FP: matrix out of bounds) created by dpinol
Hi, in the code below I check that ptr is within matrix. I don't see …
09:19 Ticket #5635 (New check: std::abs(bool)) created by amaigil2
Calling std::abs() (and similar abs() implementations) with a bool …
08:38 Ticket #5634 (FP: Division by zero when function denominator in loop) created by dpinol
Hi, this causes this error […] thanks […]
08:23 Ticket #5633 (false positive: (error) Deallocating a deallocated pointer: dev) created by ettlmartin
Checking the linux kernel (linux-3.14/arch/alpha/boot/tools/mkbb.c) …

04/01/14:

16:24 Ticket #5632 (crash: boost: common.ipp) closed by matthiaskrgr
fixed: Seems to be fixed by now…
05:46 Ticket #5510 (FP: nullPointer - variable initialized in function call) closed by danielmarjamaki
fixed: Fixed by: …

03/31/14:

22:57 Ticket #5632 (crash: boost: common.ipp) created by matthiaskrgr
file: …
20:52 Ticket #5631 (Typo and misleading error message in negativeMemoryAllocationSize) created by aggro80
In lib/checkbufferoverrun.cpp […] 1) speficied -> specified 2) have -> …
19:20 Ticket #5621 (Analysis failed vbavalidation.cxx (LibreOffice code)) closed by serval2412
fixed: It worked indeed for this and for others. I haven't tested all the files …
18:33 Ticket #5056 (SymbolDatabase typeStartToken and typeEndToken bug) closed by pkeus
fixed: Fixed by: …
15:20 Ticket #5630 (false positive: (error) Possible null pointer dereference: index) closed by danielmarjamaki
fixed: This was a AST bug. It was fixed by: …
13:58 Ticket #5627 (False positive assignBoolToPointer) closed by danielmarjamaki
fixed: Fixed by: …
13:14 Ticket #5630 (false positive: (error) Possible null pointer dereference: index) created by ettlmartin
[…] […]
09:16 Ticket #5629 (Wrong line number (CLI, GUI) and missing macro name (GUI) for error: ...) created by dodecaedre
Consider the C++ code below. It has a mistake, because the #endif is not …

03/30/14:

16:00 Ticket #5628 (Corrupt symboldatabase: inner type with same name) created by danielmarjamaki
Inspired by #5611. The symboldatabase is wrong for this code: […] The …
15:52 Ticket #5611 (segfault when checking pcsc-cyberjack. either symboldatabase or ...) closed by danielmarjamaki
fixed: Fixed checkMemset handling of circular type info with: …
10:57 Ticket #5627 (False positive assignBoolToPointer) created by amai
There is a false positive [sw/source/core/access/accmap.cxx:3]: (error) …
09:38 Ticket #5604 (segmentation fault (invalid code) in Tokenizer::simplifyEnum) closed by pkeus
fixed: Fixed by: …
09:13 Ticket #5626 (crash: dynare: pyramid_prod2.cpp) created by matthiaskrgr
package: …
07:17 Ticket #5625 (Simplify known numerical arguments to template class/function) created by amai
This ticket is a follow-up to #4343: known numerical arguments to a …
06:32 Ticket #5606 (crash: iceowl: functionTest.cc - Endless recursion in ...) closed by amai
fixed: Well, I saw the basic problem, however it tends to show up often. Actually …
02:09 Ticket #5606 (crash: iceowl: functionTest.cc - Endless recursion in ...) reopened by matthiaskrgr
Hmm I can still reproduce the crash with 1.64.257.g348c26f-1. […] …
00:25 Ticket #5624 (False positive when using swap 'trick') created by nyamatongwe
Scott Meyers' book Effective STL, Item 17 explains how to use swap to …
00:20 Ticket #5623 (improvement: support fast types like uint_fast8_t) created by ettlmartin
Cppcheck does not know fast types from stdint.h: Scanning this in debug …

03/29/14:

20:12 Ticket #5622 (Allow class methods to be referenced in library XML configuration files) created by bubaflub
I'd like to be able to write a library XML configuration file to describe …
17:46 Ticket #4613 (False Positive: Uninitialized Variable - struct member initialized via ...) reopened by pkeus
That seems to be true.
16:37 Ticket #5621 (Analysis failed vbavalidation.cxx (LibreOffice code)) created by serval2412
Hello, With cppcheck git updated today, I got this: …
12:07 Ticket #5179 (give internal warnings id "internal" (but still print by default)) closed by matthiaskrgr
worksforme: Ok, actually we can close this. When I use xml report, there is a category …
11:22 Ticket #5606 (crash: iceowl: functionTest.cc - Endless recursion in ...) closed by amai
fixed: #5590 and #5289 exhibited similar problems about loops within the class …
09:44 Ticket #480 (Tokenizer: set varId for reference to a function) closed by amai
fixed: That got fixed for 1.65 within another ticket.
09:08 Ticket #4731 ((debug) Function::addArguments found argument 'd' with varid 0.) closed by pkeus
fixed: This has been fixed recently.

03/28/14:

19:30 Ticket #4296 (operatorEq: Improve message text (-> effective C++)) closed by amai
fixed: 34d1f885a3f2487554f6f5f56fd369fb99ecabf3 implements suggestion as of …
19:10 Ticket #3322 (false positive: style (inconclusive): Technically the member function ...) closed by amai
fixed: Test cases got applied as of d6888410ece2223e0398e9eb131e5c298f9ca617
19:02 Ticket #5243 ((debug) Scope::checkVariable found variable 'pNewSeries' with varid 0.) closed by amai
fixed: I cannot reproduce as of 4ad7ef69c6698debfb8119c8936ce9c599dce360
17:28 Ticket #3301 (Extend standard type list in Token::isStandardType) closed by pkeus
fixed: This is not the kind of type that can (currently) be put to libraries. …
17:03 Ticket #1939 (new check: don't use redundant else encapsulation after return path) closed by danielmarjamaki
wontfix: I close as wontfix. I do personally think it's much better to skip the …
16:58 Ticket #2106 (More severities and new xml format) closed by danielmarjamaki
fixed: I close this now since it was fixed a long time ago.
16:44 Ticket #2872 (function pointers and pointer arrays not supported properly) closed by pkeus
fixed: Fixed by: …
15:11 Ticket #2645 (Tokenizer::setVarid: no varid is given for variables of type ...) closed by pkeus
fixed: Fixed by: …
13:56 Ticket #3645 (nested ifs with opposite tests leading to dead code) closed by pkeus
fixed: Fixed by: …
13:14 Ticket #5620 (varid 0: iceowl nsDOMClassInfo.cpp) created by matthiaskrgr
File: …
12:08 Ticket #3515 (Add samples/id/good|bad.cpp) closed by pkeus
fixed: Implemented in: …
10:44 Ticket #1289 (sizeof(x) where Foo& x = y; should be handled as sizeof(Foo)) closed by pkeus
fixed: Nowadays I see […]
10:43 Ticket #2436 (Improvements for a data template hierarchy) closed by pkeus
duplicate: Either pointless or duplicate of #1310.
10:42 Ticket #1349 (mismatched allocation and deallocation with typedef not detected) closed by pkeus
fixed: […]
10:40 Ticket #4371 (new check: detect duplicate branches in tenary operator (?:)) closed by pkeus
duplicate: Duplicate of #1381
10:38 Ticket #1413 (Improve check: Function parameter is assigned a value that is never used) closed by pkeus
fixed: I see: […]
10:37 Ticket #1420 (new check: identify conditions that allways false) closed by pkeus
fixed: Fixed: […]
10:34 Ticket #1473 (New check: while(fclose(a)) causes undefined behavior) closed by pkeus
fixed: Added unit test in: …
10:28 Ticket #1554 (Redundant check for NULL before delete not detected when pointer is from ...) closed by pkeus
wontfix: This check has been removed long time ago.
10:20 Ticket #1641 (Array index out of bounds (N-dim array, 1 counter variable)) closed by pkeus
fixed: Fixed in current git head.
10:14 Ticket #1733 (False negative: Memory leak not detected when variable is 'used' by ...) closed by pkeus
fixed: I get […]
09:59 Ticket #5619 (false positive: (style) Unused variable: line0) created by ettlmartin
[…] […]
09:53 Ticket #4443 (Preprocessor: Incorrect #if #error #endif in header processing) closed by pkeus
duplicate: Duplicate of #1983.
09:52 Ticket #322 (defines from includes are not used for checks) closed by pkeus
duplicate: Duplicate of #1983
09:50 Ticket #2019 (ValueFlow: loop counter value not set in nested for loop) closed by pkeus
fixed: Both small and complex example work in current git head.
09:34 Ticket #2408 (Improve check: passing dead pointer to subfunction that dereference the ...) closed by pkeus
fixed: This seems to work in git head: […]
09:29 Ticket #2444 (Use TinyThread++ for CLI threading) closed by pkeus
wontfix: Since we now have a multithreading implementation for Windows as well, I …
09:27 Ticket #2456 (False negative: Division by zero not detected 'for (i=0;;) j = 10 / i;') closed by pkeus
fixed: This message is shown in current git head.
09:06 Ticket #2626 (switch case fall through: null pointer dereference) closed by pkeus
fixed: I see: […] Added a unit test in: …
08:54 Ticket #2699 (False negative: function can be const, can't resolve base template class) closed by pkeus
fixed: apparently it works today: […]
08:53 Ticket #2710 (False negative on uninitialized member variable in a ctor.) closed by pkeus
fixed: I get: […]
08:42 Ticket #2914 (conditions that are always true/false: doesn't detect subconditions) closed by pkeus
fixed: Works: […]
08:41 Ticket #2934 (improve unsigned division: check if svar is negative and then divide it ...) closed by pkeus
fixed: Works in current git head: […]
07:15 Ticket #3474 (Tokenizer::simplifyKnownVariables: better handling of inner scopes that ...) closed by danielmarjamaki
invalid: I close this. I'd nowadays like that …

03/27/14:

20:48 Ticket #940 (nullpointer dereference not detected when using struct) closed by pkeus
fixed: I get: […]
20:13 Ticket #3244 (Get include pathes from file) closed by pkeus
fixed: The command is available and documented.
20:01 Ticket #3056 (Improve check: possible null pointer dereference (check if pointer is null ...) closed by pkeus
fixed: […]
19:59 Ticket #3551 (Check for invalid usage of alloca() results) closed by pkeus
duplicate: This is a duplicate of #3071.
19:55 Ticket #3103 (Struct member set multiple times) closed by pkeus
fixed: This works in current git head.
19:53 Ticket #3105 (Take into account the types defined in stdint.h) closed by pkeus
fixed: From what I see, this can be closed. There is also #3301 which is about …
19:28 Ticket #3374 (improve check: null pointer check and dereference 'if (a); else if (b); ...) closed by pkeus
fixed: We do as well: […]
19:24 Ticket #3391 (Improve checking: Create utility function that determines if function is ...) closed by pkeus
fixed: We have Tokenizer::IsScopeNoReturn?() nowadays, as well as the option to …
19:22 Ticket #3393 (False negative: Possible null pointer dereference in condition not ...) closed by pkeus
fixed: […]
19:19 Ticket #3409 (False positive: [inconclusive] (error) Possible null pointer dereference) closed by pkeus
fixed: Me neither.
19:13 Ticket #3456 (Boolean comparison with string literal intended) closed by pkeus
fixed: Yes.
19:11 Ticket #3462 (No warning about missed class members in copy operator of derived class) closed by pkeus
fixed: I get such a message in current git head.
18:29 Ticket #4054 (Buffer access out-of-bounds not detected) closed by danielmarjamaki
fixed: > It seems like it is solved. Yes I've added more generic handling of for …
18:17 Ticket #3589 (False positive (somehow): Possible null pointer dereference) closed by pkeus
fixed: Added unit test in …
18:12 Ticket #4665 (False positive: nullPointer within ternary operator) closed by pkeus
fixed: Actually, there is already a unit test referring to this ticket.
18:06 Ticket #5572 (Segmentation fault - incomplete class declaration causes corrupt ...) closed by pkeus
fixed: Fixed by: …
18:04 Ticket #4427 (Improve check: Handle expressions (!expression == number) in 'Comparison ...) closed by danielmarjamaki
fixed: I rewrote the check so it uses the AST functionality: …
17:50 Ticket #4268 ('Tokenizer::syntaxError' should be replaced with an opportune throwing ...) closed by pkeus
fixed
17:22 Ticket #4870 (new check (STL): using a reference or an iterator as value parameter of ...) closed by danielmarjamaki
invalid: ok thanks! I close it then.
17:18 Ticket #4688 (Variable scope can be reduced) closed by danielmarjamaki
invalid: I do believe a code example is needed. feel free to reopen if a short code …
17:14 Ticket #4500 (false negative: buffer access out of bounds (only reports one error at a ...) closed by danielmarjamaki
fixed: > I see: Yes this is fixed by the ValueFlow?. Probably recently as I've …
17:11 Ticket #4413 (suggested new test: detect if const locals can be made static) closed by danielmarjamaki
wontfix: yes I close this as wontfix.
14:42 Ticket #5618 (False positive: (performance) Use const reference for 'temp' to avoid ...) created by pkeus
Commit …
14:19 Ticket #5617 (precache files for faster checking) created by matthiaskrgr
When there are a lot of small files checked, I noticed that cppcheck would …
13:33 Ticket #3495 (Improve check: Detect buffer overflow when format string field width is ...) closed by pkeus
fixed: The original issue is fixed; The enhancement is also discussed in #3494.
13:12 Ticket #4424 (Preprocessor: #include MACRO) closed by pkeus
duplicate: Duplicate of #3654.
13:09 Ticket #3681 (Possible null pointer dereference not marked as inconclusive in GUI) closed by pkeus
invalid: Without any code we cannot reproduce. Feel free to reopen if you can …
13:04 Ticket #3704 (False negative: No "Null pointer dereference" error after try{}catch(...) ...) closed by pkeus
fixed: I get: […]
12:57 Ticket #3789 (Improve local scope assigned but not used check) closed by pkeus
fixed: I get: […]
12:36 Ticket #3975 (Mismatching allocation and deallocation not detected when declaration ...) closed by pkeus
fixed: I get: […]
11:50 Ticket #5616 (improve performance/efficiency when several jobs are used) created by matthiaskrgr
I wonder if this can be made more efficient. […] For using 100% more …
11:36 Ticket #5615 (CheckBufferOverrun::checkGlobalAndLocalVariable() very slow for (flite:) ...) created by matthiaskrgr
I think this file …
10:41 Ticket #3970 (Index out of bounds not detected when access to an array by augument) closed by danielmarjamaki
fixed
10:41 Ticket #3970 (Index out of bounds not detected when access to an array by augument) reopened by danielmarjamaki
10:41 Ticket #3970 (Index out of bounds not detected when access to an array by augument) closed by danielmarjamaki
worksforme: > Thus it seems to be fixed. Is this also covered in test suite? It is …
10:27 Ticket #4813 (complain of const literals passed by reference) closed by pkeus
duplicate: Duplicate of #4051.
10:15 Ticket #4331 (redundantCopyLocalConst not reported for builtin types) closed by pkeus
fixed: Fixed by: …
10:07 Ticket #4376 (False negative: function can be static when using 'return "";' (Fixed unit ...) closed by pkeus
fixed: Fixed by: …
10:00 Ticket #4230 (Enhancement: "Suppress reassigned a value before..." in #ifdef cascade) closed by danielmarjamaki
worksforme: yes in my opinion we can close this now. if anybody has problems with such …
09:59 Ticket #4112 (ValueFlow: handle loop 'for (int i = 0; i < 20*2; i += 2)') closed by danielmarjamaki
fixed: thanks! I close this.
09:48 Ticket #5176 (analysis failed, reactos reactos/subsystems/win/basesrv/dosdev.c:218) closed by matthiaskrgr
fixed: Fixed in cppcheck 1.64.222.gf71a4ad-1
09:37 Ticket #5614 (Incorrect syntax error with function pointer typedef and dependent ...) created by acecil
Please find attached a header containing a simple class that exhibits a …
09:29 Ticket #4416 (new check: conditional assignments and matching/mismatching condition ...) closed by pkeus
duplicate: And this is itself a duplicate of #4056.
09:24 Ticket #4307 (New check: free() pointer to string literal on stack) closed by pkeus
duplicate: Duplicate of #4078.
09:10 Ticket #4235 (false negative: Uninitialized variable (self initialization)) closed by pkeus
fixed: This seems to work in current git head.
09:08 Ticket #5225 (Detect when strcat() is used to append a character (not null-terminated) ...) closed by pkeus
duplicate: Duplicate of #4241
08:57 Ticket #4312 (Support -isystem, turning off warnings in third-party headers) closed by pkeus
duplicate: Either duplicate of #2724 or of #3563.
08:47 Ticket #4590 (deteted duplicate values for conditional operator) closed by pkeus
duplicate: Duplicate of #4371.
08:37 Ticket #4469 (New check: track maximum possible value of variables, alert when ...) closed by pkeus
duplicate: Duplicate of #4416
08:30 Ticket #4458 (False positive: (warning) Member variable 'Vector::_M_finish' is not ...) closed by pkeus
fixed: I consider this to be fixed.
07:48 Ticket #426 (Unused private functions not detected when the class is declared in header) closed by pkeus
fixed: The message is shown nowadays.

03/26/14:

20:03 Ticket #5613 (new check: (style) conditional expression with side effect) created by ettlmartin
I found following statement in cppchecks code (lib/cppcheck.cpp line 205): …
19:56 Ticket #5612 (false positive: [a.cpp:14]: (error) Invalid iterator: i) created by soyersoyer
[…]
19:41 Ticket #5611 (segfault when checking pcsc-cyberjack. either symboldatabase or ...) created by danielmarjamaki
We get segfault when daca2 checks the pcsc-cyberjack package. I have …
16:48 Ticket #5490 (false positive for (warning) Member variable 'Example::AccountingRecord' ...) closed by gahanr
invalid: Yes .. this can be closed .. sorry !
16:10 Ticket #4533 (false negative: (style) Operator precedence) closed by pkeus
wontfix: +1. I close this as wontfix, it seems to be consensus. If there is further …
16:00 Ticket #4559 (Improve check: Uninitialized variable not detected in do/while) closed by pkeus
fixed: I see: […] using current git head.
15:46 Ticket #4613 (False Positive: Uninitialized Variable - struct member initialized via ...) closed by pkeus
fixed: That means that this is fixed.
15:33 Ticket #4660 (False positive: Function never used even though used in constructor ...) closed by pkeus
duplicate: Duplicate of #5358.
15:30 Ticket #4671 (Improve check: Same expression on both sides) closed by pkeus
worksforme: First: foo() might have side effects -> no message Second: Message shown …
15:29 Ticket #4673 (false negative: usage of uninitialized variable declared before, used ...) closed by pkeus
fixed: I get: […]
15:24 Ticket #4687 (Missing performance warning 'variable x is reassigned a value before the ...) closed by pkeus
wontfix: The problems in #4604 have been solved. This one, however, will not be …
14:22 Ticket #4772 (Request: amend cppcheck's default include directories (was: <iostream> not ...) closed by pkeus
fixed: Fixed by: …
13:55 Ticket #4757 (Improve check: pointer dereference before null check 'if (*p<15); if (p);') closed by pkeus
fixed: Works in current git head: […]
13:37 Ticket #4780 (Tokenizer::simplifyKnownVariables: pointer in condition) closed by pkeus
fixed: This is simplified and the bug detected in current git head.
13:27 Ticket #4804 (Improve check for 'std::string::data()' - identical to ...) closed by pkeus
fixed
12:58 Ticket #5589 (False positive with own SmartPointer class) closed by pkeus
duplicate: This is a duplicate of #4890.
12:50 Ticket #4886 (False positive: Invalid number of character ({) when these macros are ...) closed by pkeus
worksforme: Me neither. Feel free to reopen if you can provide additional information …
12:47 Ticket #4916 (False unused function in inline initialization) closed by pkeus
duplicate: This is a duplicate of #5358 and fixed in current git head.
12:36 Ticket #4918 (Syntax error with C++11's trailing-return-type) closed by pkeus
duplicate: Duplicate of #4348.
11:46 Ticket #5606 (crash: iceowl: functionTest.cc - Endless recursion in ...) reopened by matthiaskrgr
11:34 Ticket #5113 (false postive: pointer to member method - method not used) closed by pkeus
fixed: Fixed by: …
11:24 Ticket #5087 (man and --help out of sync) closed by pkeus
fixed: Fixed by: …
11:17 Ticket #5061 (false negative: (error) Null pointer dereference) closed by pkeus
fixed: Done in: …
11:12 Ticket #5288 (#error causes cppcheck to quit silently) closed by pkeus
duplicate: A proper solution was suggested in #5053.
11:09 Ticket #5556 (new check: Unconditional break in for loop) closed by pkeus
duplicate: Duplicate of: #5036
10:55 Ticket #5096 (Improve check: Logical disjunction not found (x>1 && x<=1)) closed by pkeus
worksforme: I see: […]
10:51 Ticket #5110 (Possible false positive: static array is not initialized in the ...) closed by pkeus
wontfix: You could use a suppression to kill such messages. I do not think that we …
10:40 Ticket #5610 (Check usage of removed elements after std::remove and std::remove_if) created by edmundv
After using std::remove or std::remove_if the elements past the …
10:18 Ticket #5239 (Improve check: Null pointer dereference not found) closed by pkeus
fixed: I get […] In current git head
10:04 Ticket #3247 (False negative: Null pointer dereference not found) closed by pkeus
fixed
09:52 Ticket #5609 (Wrong warning: %zu requires 'size_t' - but type is 'std::size_t') created by burnus
Using cppcheck, I get the following bogus warning: (warning) %zu in …
09:01 Ticket #5353 (FP: Uninitialized variable when casting a double pointer) closed by pkeus
fixed: I cannot reproduce with current git head but with the online demo. So I …
08:58 Ticket #5565 (false-positive: "unused function" warning for function used to assign ...) closed by pkeus
duplicate: Duplicate of #5358. Fixed in current git head.
08:34 Ticket #4748 (False positive: Unused static template function (1.59)) closed by pkeus
fixed: This was fixed by: …
08:13 Ticket #5358 (false positive: "function is never used", if function is only used in the ...) closed by pkeus
fixed: Fixed by: …
05:08 Ticket #5606 (crash: iceowl: functionTest.cc - Endless recursion in ...) closed by danielmarjamaki
invalid: I close this. Feel free to reopen if some code can be provided that …
05:06 Ticket #4819 (two types of leak ?) closed by danielmarjamaki
wontfix: yes I close this as wontfix.

03/25/14:

21:45 Ticket #5410 (Integrate new version of tinyxml) closed by pkeus
fixed: Done for a while already.
21:38 Ticket #5429 (Buffer overrun in memcpy in 2nd argument) closed by pkeus
invalid: There is no buffer overrun (memcpy copies 20 bytes, not 20 ints), but …
20:57 Ticket #5507 (New С++11 strings with R prefix) closed by pkeus
duplicate: It is.
20:22 Ticket #5541 (Internal error. Token::Match called with varid 0. - struct declaration ...) closed by pkeus
duplicate: This is a duplicate of #5293 that has been fixed recently: …
19:32 Ticket #3983 (State of cout/cerr should not change.) closed by pkeus
wontfix: The idea sounds nice. However, to reduce the number of false positives to …
19:17 Ticket #4161 (Warning not printed when using parameters) closed by pkeus
duplicate: This is alledgedly a duplicate of #4158.
19:13 Ticket #4177 (Improve enum handling) closed by pkeus
fixed: I get this line in debug output: […] Thus, I think this is fixed.
19:09 Ticket #4107 (Invalid result for (inconclusive) check functionStatic) closed by pkeus
worksforme: This does not happen in current git head.
15:33 Ticket #4856 (detect usage of uninitialized members in constructor) closed by amaigil2
duplicate: I think that is a duplicate to #220
10:09 Ticket #5608 (false positive: (POSIX) (error) Resource leak: fd) created by ettlmartin
[…] […]

03/24/14:

18:45 Ticket #5607 (allow regex to exclude file etc..) created by matthiaskrgr
currently, cppcheck . "-icli/cmd.*" does not seem to work as intended. …
18:35 Ticket #5606 (crash: iceowl: functionTest.cc - Endless recursion in ...) created by matthiaskrgr
Crash occurs in …
18:33 Ticket #5220 (New portability check : C code that won't build if compiled as C++ code) closed by pkeus
wontfix
17:47 Ticket #5543 (Library: allow configuring a custom allocation function that uses "free" ...) closed by pkeus
duplicate: I think, this is a duplicate of #5512.
10:16 Ticket #5488 (false positive: Mismatching allocation and deallocation) closed by assourceforge
fixed: The error occurs in version 1.54 (which is the only stable version on …
05:17 Ticket #5498 (C++0x11 default values for class fields and missing constructor) closed by danielmarjamaki
fixed: Fixed by: …

03/23/14:

19:30 Ticket #5605 (segmentation fault (invalid code) in Token::eraseTokens) created by ettlmartin
[…] gdb backtrace […]
19:14 Ticket #5604 (segmentation fault (invalid code) in Tokenizer::simplifyEnum) created by ettlmartin
[…] […]
19:08 Ticket #5603 (segmentation fault (invalid code) in SymbolDatabase::SymbolDatabase) closed by pkeus
fixed: Fixed by: …
19:02 Ticket #5603 (segmentation fault (invalid code) in SymbolDatabase::SymbolDatabase) created by ettlmartin
[…] gdb backtrace […]
16:57 Ticket #5549 (ValueFlow: Handle static variables better in valueFlowAfterAssign) closed by danielmarjamaki
fixed: Fixed by: …
10:16 Ticket #5318 (Windows installer allows de-selecting default configurations) closed by pkeus
fixed: Fixed by: …
10:00 Ticket #4940 (Tokenizer: 'do { exit(1); } while (true);' is simplified wrong to 'do { ...) closed by pkeus
fixed: Fixed by: …
09:06 Ticket #5059 (False positive with custom operator new().) closed by pkeus
fixed: Fixed by: …
07:00 Ticket #5495 (Cppcheck does not work on Android) closed by anton-smirnov
wontfix: Yes, you can close the ticket as it relates to glob.c/h and not to …

03/22/14:

23:25 Ticket #5602 (false positive on std::vector - after unknown macro around the function ...) created by ujos
cppcheck generates false warning on following code: [ttt\1.cpp:10]: …
21:36 Ticket #5601 (False positive: Statements following return, break, continue, goto or ...) closed by pkeus
fixed: Fixed by: …
20:23 Ticket #5601 (False positive: Statements following return, break, continue, goto or ...) reopened by serval2412
18:57 Ticket #5601 (False positive: Statements following return, break, continue, goto or ...) closed by pkeus
fixed: Anyway, now it should really be fixed: …
18:31 Ticket #5600 (crash: jq: execute.c) closed by pkeus
fixed: Fixed by: …
18:28 Ticket #5601 (False positive: Statements following return, break, continue, goto or ...) reopened by serval2412
I just git updated cppcheck but had the same pb :-( $ git log -1 commit …
17:58 Ticket #5601 (False positive: Statements following return, break, continue, goto or ...) closed by pkeus
fixed: Fixed by: …
16:58 Ticket #5601 (False positive: Statements following return, break, continue, goto or ...) created by serval2412
Hello, Cppcheck reported this with the file attached: …
12:34 Ticket #5150 (False positive (warning): Comparison of a boolean value using relational ...) closed by pkeus
fixed: Fixed by: …
10:15 Ticket #5599 (crash: jana: ./tests/test-jana-ecal-store-view.c) closed by amai
fixed: Fixed as of …
10:00 Ticket #5600 (crash: jq: execute.c) created by matthiaskrgr
This crash does not seem to be related to a single file, at least when I …
09:51 Ticket #5599 (crash: jana: ./tests/test-jana-ecal-store-view.c) created by matthiaskrgr
crashes with --enable=style file: …
09:33 Ticket #5598 (segmentation fault (invalid code) in CheckStl::iterators) closed by amai
fixed: Fixed as of …
Note: See TracTimeline for information about the timeline view.