Daniel Marjamäki
|
b5f2fd3c55
|
Fixed #7738 (False positive deallocret - delete and return NULL pointer)
|
2017-03-03 18:36:06 +01:00 |
Daniel Marjamäki
|
99544069d1
|
CheckLeakAutoVar: better handling of noreturn functions. Partial fix for #7918.
|
2017-02-25 11:36:48 +01:00 |
Simon Martin
|
f43431408b
|
Ticket #7685: Properly handle function calls as argument to a dealloc function. (#853)
Add an optional extended description…
|
2016-12-29 13:17:46 +01:00 |
PKEuS
|
2f6350a0d0
|
Refactorized Library
|
2016-12-06 14:09:28 +01:00 |
PKEuS
|
54959d1932
|
CheckLeakAutoVar: Distinguish between new and new[] (#888)
|
2016-10-09 10:28:19 +02:00 |
Daniel Marjamäki
|
4b903a838f
|
Fixed #5522 (CheckLeakAutoVar: Don't treat 'x==p' as dereference of p)
|
2016-05-26 19:22:38 +02:00 |
Daniel Marjamäki
|
54be403f64
|
Fixed #7026 (Cppcheck does not recognizes the use of a variabile inside lambda function)
|
2016-05-26 18:07:56 +02:00 |
Daniel Marjamäki
|
38741868b5
|
Fixed #3989 (false positive: memory leak (inline function))
|
2016-05-26 17:42:27 +02:00 |
PKEuS
|
64d2fd2f57
|
Added new attribute "arg" to <alloc> and <dealloc> to specify the argument that is allocated/deallocated.
This fixes several issues with allocation functions in windows.cfg, such as HeapAlloc() and VirtualAllocEx() (#7503)
|
2016-05-22 17:19:14 +02:00 |
Daniel Marjamäki
|
c23c1f245c
|
Fixed #6989 (incorrect memleak error)
|
2016-05-21 14:03:28 +02:00 |
Daniel Marjamäki
|
a5dc76d50c
|
Refactoring, use ast instead of token list to find if variable is used in rhs
|
2016-05-21 13:45:08 +02:00 |
Daniel Marjamäki
|
2668cee3cf
|
Fixed #6397 (FP deallocuse - conditional deallocation and conditional return)
|
2016-05-15 20:27:44 +02:00 |
Kamil Dudka
|
efe98883ab
|
checkleakautovar: do not miss 'throw' followed by ::
|
2016-05-13 21:37:49 +02:00 |
PKEuS
|
f23668dfcc
|
Fixed false positive doubleFree (#7401)
|
2016-05-04 12:14:42 +02:00 |
Daniel Marjamäki
|
3da997e163
|
astyle formatting
[ci skip]
|
2016-02-08 10:44:04 +01:00 |
Daniel Marjamäki
|
a361f0192d
|
More CheckLeakAutoVar debug output
|
2016-02-07 19:53:55 +01:00 |
Daniel Marjamäki
|
5e10e680da
|
CWE: refactoring. use constants instead of magic numbers.
|
2016-01-25 20:01:48 +01:00 |
Roberto Martelloni
|
5ce69da02d
|
Mapped 26 errors to their CWEs ID.
|
2016-01-24 20:53:05 +00:00 |
Lauri Nurmi
|
996c9244d8
|
Update copyright year to 2007-2016.
|
2016-01-01 15:34:45 +02:00 |
Daniel Marjamäki
|
0f9d90d2be
|
Changed Copyrights. Removed my name.
|
2015-11-18 20:04:50 +01:00 |
Daniel Marjamäki
|
501ab0b6da
|
CheckLeakAutoVar: updated handling of unknown types in C++
|
2015-08-11 12:41:42 +02:00 |
Daniel Marjamäki
|
57aec12f34
|
Fixed #5622 (Allow class methods to be referenced in library XML configuration files)
|
2015-08-10 18:51:51 +02:00 |
Daniel Marjamäki
|
e598b07a6d
|
Moved functions to astutils
|
2015-08-03 09:20:50 +02:00 |
Daniel Marjamäki
|
e5151a13ab
|
Fixed #6867 (False positive memleak)
|
2015-07-25 11:37:03 +02:00 |
Daniel Marjamäki
|
b2b4bb49fa
|
Refactoring handling of comparisons
|
2015-07-22 12:31:18 +02:00 |
Daniel Marjamäki
|
c67776c04d
|
Testing: extract testcases, edit comparisons, run cppcheck, compare results
|
2015-07-22 09:52:24 +02:00 |
Daniel Marjamäki
|
6313304f77
|
Fix Travis build
|
2015-07-22 01:52:24 +02:00 |
Daniel Marjamäki
|
c6cadf5252
|
Fix Travis build
|
2015-07-22 01:41:01 +02:00 |
Daniel Marjamäki
|
350cba1c59
|
CheckLeakAutoVar: updated handling of comparisons after Tokenizer::simplifyIfNot was removed
|
2015-07-22 01:24:07 +02:00 |
Simon Martin
|
fa94f2e0f4
|
Ticket #6648: Properly handle variables that have been deallocated and whose _address_ is taken after in CheckLeakAutoVar.
|
2015-07-19 17:37:50 +02:00 |
amai2012
|
4a47b8b3ae
|
Refactoring: Better distinguish between C and C++ in a few checks.
|
2015-06-28 16:49:16 +02:00 |
Alexander Mai
|
70ba6c4340
|
#6767 False positive: memory leak when variable name is 'new'. Fix handling of new in C code. Move some tests for TokenList to new testtokenlist.cpp
|
2015-06-14 15:49:49 +02:00 |
Simon Martin
|
27e88fdc47
|
Ticket #6666: Don't crash upon garbage code in CheckLeakAutoVar::checkScope.
|
2015-05-10 11:35:33 +02:00 |
Daniel Marjamäki
|
5888b65bd4
|
fixed --check-library information message
|
2015-02-03 17:50:32 +01:00 |
PKEuS
|
b2835051df
|
Refactorization: Renamed Token::Match pattern %var% to %name%, implement new pattern %var% which is true if varId > 0.
|
2015-01-31 12:32:04 +01:00 |
PKEuS
|
80feb8697d
|
Fixed false positives #6473 and #6469
|
2015-01-29 21:26:06 +01:00 |
PKEuS
|
71379616e7
|
Fixed false positive #6467
|
2015-01-29 10:18:21 +01:00 |
PKEuS
|
9ada111045
|
Fixed false positive #6466
|
2015-01-29 09:50:48 +01:00 |
PKEuS
|
8225b12763
|
Fixed some cppcheck messages
|
2015-01-28 22:29:07 +01:00 |
PKEuS
|
21bd1d080e
|
Refactorization: Rearranged some code in checkleakautovar.cpp
|
2015-01-28 19:44:59 +01:00 |
PKEuS
|
0488f45a5f
|
Removed standalone check CheckOther::checkDoubleFree(), integrated (most of) the functionality into CheckLeakAutoVar. Added support for new/delete to checkLeakAutoVar.
|
2015-01-28 17:38:43 +01:00 |
PKEuS
|
bdae9064ea
|
Support throw in checkleakautovar.cpp
|
2015-01-22 11:12:26 +01:00 |
Thomas Jarosch
|
059f9d056c
|
Move to global variables to file scope
Putting them in the anonymous namespace
is the same effect as making them "static".
|
2015-01-11 12:37:11 +01:00 |
Daniel Marjamäki
|
ff11ba9847
|
Updated copyright year to 2015
|
2015-01-03 12:14:58 +01:00 |
Daniel Marjamäki
|
24ecaf8b0a
|
leakautovar: handling of unknown/non-pod types in c++
|
2014-10-14 16:40:30 +02:00 |
PKEuS
|
ccb5384645
|
Fixed false positive memoryLeak #6013
|
2014-09-30 13:02:02 +02:00 |
Jonathan Thackray
|
2b3ef83f26
|
Fixed #5747 (When socket() returns -1 on error, this shouldn't be marked as a resource leak)
|
2014-09-17 18:37:41 +02:00 |
Dmitry-Me
|
ba3757dfd3
|
Bring variables decalaration to where they are really needed.
|
2014-07-10 11:23:14 +04:00 |
Daniel Marjamäki
|
1ae6531c4c
|
Fixed #5923 (false positive: (error) Resource leak: fp (static file pointer))
|
2014-06-23 16:05:28 +02:00 |
PKEuS
|
dcc646735d
|
Made static local variable non-static (thread-safety, #5934)
|
2014-06-18 17:57:31 +02:00 |