Daniel Marjamäki
|
24703418bd
|
Fixed #1715 (switch with fallthrough and 'return' confuses cppcheck)
|
2010-05-29 20:55:09 +02:00 |
Daniel Marjamäki
|
b702b8542d
|
Memory leaks: enabled the leaks checking when members are not deallocated in the destructor. This checking was previously an --all check so there could be false positives.
|
2010-05-29 19:29:59 +02:00 |
Daniel Marjamäki
|
5692e7a6f6
|
Fixed #1707 (false positive: Memory leak)
|
2010-05-24 19:28:27 +02:00 |
Daniel Marjamäki
|
1792395654
|
astyle formatting
|
2010-05-18 20:08:27 +02:00 |
Zachary Blair
|
1539c0b3d2
|
Fixed #1649 (add a warning for potential memory leaks when using realloc)
|
2010-05-17 22:46:48 -07:00 |
Daniel Marjamäki
|
d0e122079f
|
Refactoring: Removed possibleError messages from CheckMemoryLeaks
|
2010-05-16 19:55:16 +02:00 |
Daniel Marjamki
|
d7b117402c
|
Code cleanup: Removed autodealloc handling
|
2010-05-16 07:15:31 +02:00 |
Daniel Marjamki
|
70d20ac544
|
Fixed #1681 (false negative: memory leak in operator =)
|
2010-05-15 19:40:32 +02:00 |
Daniel Marjamäki
|
5d01047ae4
|
Fixed #1665 ('If you see this, there is a bug': Token::Match('%var% ( %varid% [,)]', 0))
|
2010-05-10 18:11:02 +02:00 |
Daniel Marjamäki
|
d7118c4d36
|
Fixed #1648 (mismatch allocate and deallocate calls.)
|
2010-05-09 13:46:13 +02:00 |
Daniel Marjamäki
|
d3b5c30c6c
|
Fixed #1628 (false negative: memory leak when using redundant braces)
|
2010-04-27 20:43:31 +02:00 |
Daniel Marjamäki
|
eb82a89758
|
ExecutionPath: Better handling of if
|
2010-04-25 11:55:57 +02:00 |
Daniel Marjamäki
|
e068979d62
|
Fixed #1440 (false negative: memory leak (function parameters))
|
2010-04-24 22:24:03 +02:00 |
Daniel Marjamäki
|
5e5b8d3861
|
Fixed #1146 (improve check: memory leak not detected (allocation in subfunction))
|
2010-04-24 20:40:57 +02:00 |
Reijo Tomperi
|
35d2a27b9c
|
Update copyright year in all source files
|
2010-04-13 22:23:17 +03:00 |
Daniel Marjamäki
|
e9b4ea44a2
|
Refactoring: Disable inconclusive checks. They can still be activated for debugging/testing purposes
|
2010-04-10 14:05:33 +02:00 |
Reijo Tomperi
|
fcf532ccaf
|
Fix some -Wshadow compile warnings
|
2010-04-06 23:17:23 +03:00 |
Daniel Marjamäki
|
cd2f8f6838
|
Merge branch 'master' of git://github.com/czw/cppcheck
|
2010-04-06 22:12:11 +02:00 |
Reijo Tomperi
|
5aa88ee5a2
|
Fix vs warnings. Apply patch from kidkat.
|
2010-04-06 21:35:21 +03:00 |
Jens Bäckman
|
9ae714661b
|
Fix a rare crash with oddly formatted source files
|
2010-04-06 14:23:17 +02:00 |
Daniel Marjamäki
|
b62ac149b5
|
Cleanup: Removed unused code from CheckMemoryLeak
|
2010-04-05 18:37:46 +02:00 |
Daniel Marjamäki
|
abceff497b
|
Refactoring: some refactoring of ExecutionPath. The foundError was removed. No automatic bailout of all checks are made when errors are found.
|
2010-04-04 11:24:52 +02:00 |
Daniel Marjamäki
|
a8f566bfcd
|
Cleanup: Removed redundant simplification in checkmemoryleak.cpp
|
2010-04-03 20:47:38 +02:00 |
Daniel Marjamäki
|
0cad22314e
|
Reverted 'astyle fix'. Those changes are not in sync with my astyle configuration/setup.
|
2010-04-02 07:30:58 +02:00 |
Martin Ettl
|
193aa7d1d3
|
astyle fix
|
2010-04-02 02:21:53 +02:00 |
Daniel Marjamäki
|
3d90559035
|
Fixed #1386 and #1387 (False positives given by CheckMemoryLeakInFunction when temporary and member variable don't have the same allocation and deallocation)
|
2010-03-20 07:50:52 +01:00 |
Daniel Marjamäki
|
54c5d53eac
|
Fixed #1428 (False positive: (possible error) Memory leak when memory deleted in destructor)
|
2010-03-19 16:57:23 +01:00 |
Daniel Marjamäki
|
30d3418b11
|
doxygen: added more comments for CheckNullPointer and CheckUninitVar
|
2010-03-13 21:42:59 +01:00 |
Daniel Marjamäki
|
65ae37de2f
|
Fixed #1460 (false positive: memory leak when using throw no_memory)
|
2010-03-13 17:11:48 +01:00 |
Daniel Marjamäki
|
a6c9a6fc54
|
Fixed #1407 (false positive memory leak when returning pointer to the allocated memory)
|
2010-02-20 10:17:45 +01:00 |
Daniel Marjamäki
|
57f63f65c2
|
Borland C++: Fixed compiler errors (operands must be same type)
|
2010-02-20 08:53:33 +01:00 |
Daniel Marjamäki
|
9394816fcf
|
Refactoring: Use std::string instead of const char *
|
2010-02-14 19:58:17 +01:00 |
Daniel Marjamäki
|
e1b54df368
|
Fixed #1346 (False positive: Memory leak when allocated memory is stored elsewhere inside a condition)
|
2010-02-06 22:35:36 +01:00 |
Daniel Marjamäki
|
71117378ef
|
Fixed #1363 (false positive: memory leak)
|
2010-02-06 21:47:52 +01:00 |
Monika Lukow
|
25822dff24
|
Fixed #1249 (false positive '(error) Resource leak: f' for 'popen' / 'if(pclose(f) < 0)' sequence)
|
2010-01-31 11:44:30 +01:00 |
Reijo Tomperi
|
1d5ba4e320
|
Improved updateClassList(), but not yet took it into use.
findClassFunction is now non-static.
updateClassList usage is currently commented out as it doesn't handle class inside a function
|
2010-01-29 23:22:18 +02:00 |
Daniel Marjamäki
|
9d11492845
|
Fixed #1286 (Memory leak not detected)
|
2010-01-27 22:05:04 +01:00 |
Daniel Marjamäki
|
e49f7bfa0e
|
Fixed #1315 (mismatched allocation and deallocaton not detected)
|
2010-01-27 21:02:13 +01:00 |
Daniel Marjamäki
|
fa305d70bc
|
Fixed #1302 (False positive: Confusion between POSIX open() and class member)
|
2010-01-26 20:10:52 +01:00 |
Daniel Marjamäki
|
724c55b32a
|
Memory leaks: some refactorings and minor improvements
|
2010-01-24 21:48:39 +01:00 |
Daniel Marjamäki
|
a6e81c2ee7
|
Fixed #1293 (Things to add to call_func_white_list)
|
2010-01-20 22:03:06 +01:00 |
Daniel Marjamäki
|
85fcd4c9a9
|
Fixed #1282 (False positive for a memory leak in a simple loop)
|
2010-01-19 19:08:03 +01:00 |
Daniel Marjamäki
|
f49cc7f0ff
|
CheckMemoryLeak: Added 'scanf' and 'sscanf' to the whitelist
|
2010-01-18 21:58:27 +01:00 |
Daniel Marjamäki
|
32604dd55e
|
Fixed #1266 ('qsort' missing in call_func_white_list)
|
2010-01-18 21:34:11 +01:00 |
Daniel Marjamäki
|
ac077d3160
|
Fixed #1264 (False positive: Resource leak with if-else in while)
|
2010-01-14 21:41:50 +01:00 |
Daniel Marjamäki
|
0638bc2112
|
CheckMemoryLeaks: Added 'strlen' to white list
|
2010-01-12 22:10:59 +01:00 |
Daniel Marjamäki
|
fd5e3e63b8
|
Fixed #1258 ('fscanf' missing in call_func_white_list)
|
2010-01-12 21:56:22 +01:00 |
Daniel Marjamäki
|
814eb6caee
|
Fixed #1257 (potential leaks not reported becauseof 'continue' in loop)
|
2010-01-12 19:12:08 +01:00 |
Daniel Marjamäki
|
3fb420cbf0
|
fixed unlogged errors from the tokenizer and also some errors reported by valgrind
|
2010-01-10 20:03:46 +01:00 |
Daniel Marjamäki
|
a50ec2eded
|
memory leaks: better handling of loops and switch
|
2010-01-10 15:40:50 +01:00 |
Daniel Marjamäki
|
f65bf6d565
|
Fixed #1220 (False memory leak when using while)
|
2010-01-10 14:00:32 +01:00 |
Daniel Marjamäki
|
3fabe53570
|
Memory leaks: Better handling of switch
|
2010-01-10 10:37:54 +01:00 |
Daniel Marjamäki
|
686137415f
|
Fixed #1235 (CheckMemoryLeakInFunction: Wrong handling of 'fcloseall')
|
2010-01-07 21:36:51 +01:00 |
Daniel Marjamäki
|
57d1da3910
|
Ticket #1228 : Handle tokensBack in the Token class. When adding&removing tokens the Token class can make sure that this pointer is updated accordingly. It is very important that the tokensBack has the same scope as the token list, otherwise there will be a dead pointer problem.
|
2010-01-06 20:19:27 +01:00 |
Daniel Marjamäki
|
6c0919d9bd
|
Fixed #1173 (Improve check: memory leak not detected in constructor)
|
2009-12-30 21:29:54 +01:00 |
Daniel Marjamäki
|
7bf0622ae0
|
ExecutionPath: Refactoring the interface
|
2009-12-25 20:12:06 +01:00 |
Daniel Marjamäki
|
d2dc5806cd
|
Borland C++: Fixed compiler error
|
2009-12-22 23:21:52 +01:00 |
Daniel Marjamäki
|
cd2e501794
|
Visual Studio: Fixed unittests
|
2009-12-22 21:56:00 +01:00 |
Daniel Marjamäki
|
b4b63789fc
|
Eric Sesterhenn: Fixed #1131 (descriptor leak false positive)
|
2009-12-22 19:13:46 +01:00 |
Daniel Marjamäki
|
763e3d9eb5
|
Execution Path: Refactoring
|
2009-12-21 18:17:35 +01:00 |
Daniel Marjamäki
|
368df4c083
|
TestLocalLeaks: going out of scope
|
2009-12-15 19:27:07 +01:00 |
Reijo Tomperi
|
64261e6909
|
Fix compiler error: cast from 'CheckLocalLeaks*' to 'int' loses precision
|
2009-12-15 00:57:32 +02:00 |
Daniel Marjamäki
|
0c13f9ba5c
|
Added TestLocalLeaks
|
2009-12-14 20:30:31 +01:00 |
Daniel Marjamäki
|
4dc8794c69
|
Fixed #1082 (False positive: Resource leak in loop which exits only after releasing resource)
|
2009-12-13 19:50:49 +01:00 |
Reijo Tomperi
|
2b980f9abe
|
astyle fix
|
2009-12-03 22:48:52 +02:00 |
Daniel Marjamäki
|
48bb1fdc83
|
Eric Sesterhenn: Fixed #1032 (False positive resource leak with exit at end of function)
|
2009-12-03 19:19:20 +01:00 |
Daniel Marjamäki
|
42ffea4f16
|
Fixed #968 (False positive when TEMP_FAILURE_RETRY used)
|
2009-11-18 17:17:37 +01:00 |
Daniel Marjamäki
|
b5cbc509f3
|
Fixed #483 (False positive: found leak when foreach for lists used)
|
2009-11-15 10:30:00 +01:00 |
Daniel Marjamäki
|
14fd0154d2
|
memory leaks: simple code cleanup
|
2009-11-15 09:53:38 +01:00 |
Daniel Marjamäki
|
fee96f3cd6
|
Fixed #944 (new false positives against Wine Git Tree)
|
2009-11-14 09:06:28 +01:00 |
Daniel Marjamäki
|
1187587521
|
Fixed #919 (possible memory leak not detected)
|
2009-11-13 20:22:28 +01:00 |
Daniel Marjamäki
|
2a6cde4369
|
Fixed #905 (memory leak not detected when using puts)
|
2009-11-07 07:21:39 +01:00 |
Daniel Marjamäki
|
0682db47a7
|
Memory leaks: Detect simple leak
|
2009-10-27 23:08:11 +01:00 |
Daniel Marjamäki
|
45b0758e71
|
Fixed #860 (Improve double delete detection)
|
2009-10-27 21:28:03 +01:00 |
Daniel Marjamäki
|
09859c1019
|
refactoring the folder structure
|
2009-10-25 12:49:06 +01:00 |