Daniel Marjamäki
|
825dce5c4e
|
Fixed #2954 (False negative: Null pointer dereference not detected '*p=4; if (p) { }')
|
2011-08-02 11:20:09 +02:00 |
Daniel Marjamäki
|
5fc2a55bac
|
Fixed #2900 (found memory leak in kernel p54usb and a false positive reported)
|
2011-08-02 09:04:13 +02:00 |
Daniel Marjamäki
|
0c2f2e1c38
|
Null pointers: Fixed false negative when struct is dereferenced in condition
|
2011-08-01 21:57:23 +02:00 |
Robert Reif
|
9b9a0de777
|
add test for #2937 (Scope::checkVariable found variable 'sMMF' with varid 0.)
|
2011-08-01 06:45:06 -04:00 |
Daniel Marjamäki
|
207038a087
|
AssignIf: detect more problems for 'if' and 'else if' conditions
|
2011-08-01 11:33:09 +02:00 |
Daniel Marjamäki
|
103542bb15
|
Fixed #2908 (common logic when using bitwise and)
|
2011-08-01 09:36:12 +02:00 |
Daniel Marjamäki
|
a6c7ae8d51
|
Fixed #2789 (null pointer: problems not detected when pointer is assigned and checked if it's null in a if statement)
|
2011-08-01 07:51:32 +02:00 |
Daniel Marjamäki
|
8e888a0dfb
|
astyle formatting
|
2011-08-01 07:48:18 +02:00 |
Daniel Marjamäki
|
880e0e3b5f
|
AssignIf: Improved the error message for mismatching comparison
|
2011-08-01 07:13:47 +02:00 |
Robert Reif
|
bc4db75aa9
|
fix #2146 (uninitialized variable: false negative for 'return x ? 1 : y;')
|
2011-07-31 21:33:43 -04:00 |
Daniel Marjamäki
|
69c3287e31
|
Memory leaks: fix endless loop for 'if )'. the check assumed that the link after the 'if' pointed forwards. Ticket: #2404
|
2011-07-31 19:38:39 +02:00 |
Robert Reif
|
daf0c71f77
|
fix #2911 (Token::Match(tok, %oror%|&&) doesn't match &&)
|
2011-07-31 13:26:26 -04:00 |
Moritz Lipp
|
8d68981119
|
Fixed #2793 (SIGABRT on filenames without file extension)
|
2011-07-31 18:35:28 +02:00 |
Daniel Marjamäki
|
4433e621f8
|
removed the unused function CheckMemoryLeakInFunction::matchFunctionsThatReturnArg
|
2011-07-31 17:36:56 +02:00 |
Daniel Marjamäki
|
1640f3d1ca
|
Null pointer: fix false negatives when unknown function is called and pointer is local/argument
|
2011-07-31 17:32:25 +02:00 |
Daniel Marjamäki
|
cc89687e8c
|
Null pointer: better handling when calling standard functions with possible null pointer
|
2011-07-31 17:19:23 +02:00 |
Daniel Marjamäki
|
afc825da68
|
AssignIf: handle parantheses. ticket: #2909
|
2011-07-31 17:09:53 +02:00 |
Daniel Marjamäki
|
dd6982a616
|
Fixed #2935 (possible null pointer dereference when using strcpy etc)
|
2011-07-31 14:07:35 +02:00 |
Daniel Marjamäki
|
ad166d3a54
|
astyle formatting
|
2011-07-31 14:05:06 +02:00 |
Daniel Marjamäki
|
00e28f5c4e
|
AssignIf: Match lhs and rhs for comparisons. Ticket: #2909
|
2011-07-31 11:23:38 +02:00 |
Daniel Marjamäki
|
e47aac2501
|
AssignIf: Detect problem for 'y=x&4; if(y!=3)..'. Ticket: #2909
|
2011-07-31 10:48:31 +02:00 |
Daniel Marjamäki
|
47f13860b7
|
AssignIf: Added new check. Ticket: #2909
|
2011-07-30 21:43:21 +02:00 |
Daniel Marjamäki
|
7f193fb7a1
|
Fixed #2788 (null pointer: dereference and then check 'if (abc->a == 3) { } if (!abc) ..')
|
2011-07-30 19:51:06 +02:00 |
Robert Reif
|
e687ee9a9a
|
assume all std::*::size() and std::*::empty() are const in CheckClass::checkConstFunc()
|
2011-07-30 10:30:31 -04:00 |
Robert Reif
|
addcec704f
|
fix cppcheck warning in Tokenizer::duplicateTypedef()
|
2011-07-30 10:12:35 -04:00 |
Robert Reif
|
c6a804d306
|
add std::*.empty() to possible const functions in CheckClass::checkConstFunc
|
2011-07-30 09:44:20 -04:00 |
Robert Reif
|
74c1bdde77
|
fix #1593 (false negative: the function can be declared as const)
|
2011-07-30 08:48:11 -04:00 |
Robert Reif
|
2f4aee2923
|
fix missing else in patch that added support for unused const local variables
|
2011-07-30 07:16:59 -04:00 |
Simon Martin
|
50f78ce329
|
Fixed #2951 (Small code factorization in checkmemoryleak.cpp)
|
2011-07-30 13:10:44 +02:00 |
Ettl Martin
|
c00a1526bd
|
nonreentrant-functions: added more functions to check
|
2011-07-30 11:15:51 +02:00 |
Robert Reif
|
cb4282d69a
|
use simpleMatch where possible in checkother.cpp
|
2011-07-29 22:37:05 -04:00 |
Ettl Martin
|
2aec4577c0
|
Merge branch 'master' of github.com:danmar/cppcheck
|
2011-07-29 23:38:02 +02:00 |
Ettl Martin
|
f441a958cd
|
mathlib: fixed #2950: comparison of floating point values
|
2011-07-29 23:37:40 +02:00 |
Kimmo Varis
|
335b52653e
|
Tests: add semicolons after TEST_CASE()
|
2011-07-29 22:00:24 +03:00 |
Kimmo Varis
|
a50f75ef86
|
Add --posix CLI option.
Part of ticket #2949 (new check: (style) finding non-reentrant functions)
|
2011-07-29 20:17:02 +03:00 |
Ettl Martin
|
6b23dd9928
|
added a check to detect nonreentrant functions and a --posix switch
|
2011-07-29 18:27:01 +02:00 |
Ettl Martin
|
35bb5dffa4
|
Added a new check for finding non-reentrant functions
|
2011-07-28 23:29:16 +02:00 |
Zachary Blair
|
d2f4b8e3de
|
Fixed 2915 (GUI: Show files checked in progress bar)
|
2011-07-27 23:30:45 -07:00 |
Daniel Marjamäki
|
dc629b4c39
|
Fixed 'possible null pointer dereference' warning messages
|
2011-07-28 08:12:21 +02:00 |
Daniel Marjamäki
|
d2c0e5e7e6
|
Fixed #2821 (New Check : bool pointer null truth assignment)
|
2011-07-28 07:28:24 +02:00 |
Daniel Marjamäki
|
4258705ce3
|
removed the 'scripts' folder. I don't think it belongs in the cppcheck repo.
|
2011-07-28 06:56:55 +02:00 |
Robert Reif
|
ca2e8b057b
|
fix #2947 (False positive: member variable is not initialized (a[x::y] = 0;))
|
2011-07-27 12:03:44 -04:00 |
Robert Reif
|
54141f2e7f
|
fix #2943 (Symbol database: Wrong parsing of std::vector as base class.)
|
2011-07-27 11:23:22 -04:00 |
Daniel Marjamäki
|
2b48c7624c
|
Auto Variables: Reverted fix for #1514 because my idea was wrong. See ticket: #2944
|
2011-07-27 10:43:44 +02:00 |
Daniel Marjamäki
|
5cb701d3c1
|
Fixed #2946 (False positive: Uninitialized buffer variable (init in subfunction))
|
2011-07-27 10:34:12 +02:00 |
Daniel Marjamäki
|
4e55fb604c
|
Fixed #2945 (False positive: Uninitialized variable reading from stream)
|
2011-07-26 21:30:58 +02:00 |
Daniel Marjamäki
|
a6740200cf
|
Null pointer: Added check for 'if (fred); return fred->a;'
|
2011-07-25 21:58:00 +02:00 |
Daniel Marjamäki
|
6e14da7eba
|
Fixed #2812 (false negative: null pointer dereference when returning struct member)
|
2011-07-25 21:40:32 +02:00 |
Daniel Marjamäki
|
63a0c6ad4a
|
Fixed #2796 (uninitialized and leaving scope)
|
2011-07-25 16:35:30 +02:00 |
Daniel Marjamäki
|
2c6e4c423a
|
Fixed #2681 (False negative: Possible null pointer dereference)
|
2011-07-25 15:45:00 +02:00 |