Robert Reif
|
07f4067fa8
|
typedef: better handling of __typeof__
|
2010-11-11 17:02:04 +01:00 |
Robert Reif
|
a09c221014
|
typedefs: handle __typeof__
|
2010-11-11 06:40:49 +01:00 |
Daniel Marjamäki
|
624ce205b9
|
Fixed #2185 (False negative: when constant is undefined a 'dangerous usage of strncpy' is not found)
|
2010-11-10 20:20:05 +01:00 |
Daniel Marjamäki
|
41bbe5d0cf
|
Fixed #2182 (Context sensitive false positive)
|
2010-11-10 18:24:40 +01:00 |
Daniel Marjamäki
|
28c53cabea
|
Fixed #2184 (False Positive: memory leak)
|
2010-11-10 17:46:40 +01:00 |
Daniel Marjamäki
|
508c171945
|
Symbol database: add support for class inline functions with classes
|
2010-11-09 17:06:07 +01:00 |
Robert Reif
|
36b03bdd3e
|
Fixed #2179 (Segmentation fault in assignment operator)
|
2010-11-09 06:58:19 +01:00 |
Daniel Marjamäki
|
c2bf3647a4
|
Fixed #2178 (segmentation fault of cppcheck)
|
2010-11-08 19:47:19 +01:00 |
Daniel Marjamäki
|
586f4992d8
|
Tokenizer::simplifyKnownVariables: Fixed TODO test cases in TestBufferOverrun
|
2010-11-07 17:42:32 +01:00 |
Daniel Marjamäki
|
cd94fa89e0
|
Tokenizer: More specific bail outs in simplifyKnownVariables
|
2010-11-07 11:07:56 +01:00 |
Daniel Marjamäki
|
b881718d9f
|
Tokenizer: better bailout in simplifyKnownVariables when there is loop
|
2010-11-07 10:42:08 +01:00 |
Daniel Marjamäki
|
fb068a4e71
|
Fixed #2170 (false positive: After a strncpy() the buffer should be zero-terminated)
|
2010-11-07 09:37:45 +01:00 |
Daniel Marjamäki
|
bd2b1b2914
|
Tokenizer: better handling of const variables
|
2010-11-07 08:43:30 +01:00 |
Daniel Marjamäki
|
25391cb562
|
Tokenizer: Bailout simplifyKnownVariables for loop variables
|
2010-11-07 08:10:09 +01:00 |
Robert Reif
|
662cd27f87
|
Symbol database: fixed problem
|
2010-11-06 20:27:12 +01:00 |
Daniel Marjamäki
|
5be12a1d27
|
Tokenizer: improved simplifyKnownVariables
|
2010-11-06 19:43:32 +01:00 |
Robert Reif
|
8a379d4826
|
Fixed #2176 (Tokenizer::simplifyTypedef function pointer bug)
|
2010-11-06 15:15:50 +01:00 |
Robert Reif
|
c49a8a99a3
|
Fixed #2175 (Tokenizer::simplifyTypedef : wrong simplification of 'typedef float vec_t[3];')
|
2010-11-06 13:28:44 +01:00 |
Daniel Marjamäki
|
c39fbb86db
|
Tokenizer::simplifyKnownVariables : Fixed TODO test case when simplifying pointer alias in function call
|
2010-11-06 13:24:33 +01:00 |
Daniel Marjamäki
|
13c2a73d3f
|
Tokenizer::simplifyKnownVariables: Fixed TODO test case.
|
2010-11-06 11:38:58 +01:00 |
Daniel Marjamäki
|
694853249f
|
Refactoring: Added ASSERT_EQUALS above TODO_ASSERT_EQUALS to catch changes in the behaviour better
|
2010-11-06 11:08:05 +01:00 |
Daniel Marjamäki
|
e901ee2e68
|
Added TODO unit test for ticket #2175. simplify 'typedef float x[3];'
|
2010-11-06 09:31:43 +01:00 |
Daniel Marjamäki
|
dd41c74d7f
|
Fixed #2136 (false negative: array bounds)
|
2010-11-06 09:10:10 +01:00 |
Daniel Marjamäki
|
314e5b838b
|
Tokenizer: removed redundant assignments such as 'x+=0;'. Ticket: #2173
|
2010-11-06 07:23:35 +01:00 |
Robert Reif
|
431201dd67
|
Fixed #2174 (Tokenizer::simplifyFunctionReturn bug)
|
2010-11-06 06:53:09 +01:00 |
Daniel Marjamäki
|
52faadda89
|
Tokenizer: simplify calculations with zero better
|
2010-11-05 20:35:31 +01:00 |
Daniel Marjamäki
|
4fdb420454
|
Tokenizer: simplifyknownvariables, improved handling of string constant
|
2010-11-05 20:05:57 +01:00 |
Daniel Marjamäki
|
65c7b6eb8b
|
Uninitialized variables: better handling of for example 'a[1] = 1+a[2];'
|
2010-11-05 19:24:14 +01:00 |
Daniel Marjamäki
|
a90a7202cb
|
Uninitialized variables: detect usage of dead pointer: '*p += 10'
|
2010-11-05 17:04:41 +01:00 |
Daniel Marjamäki
|
95bfa50d7e
|
Null pointers: Fixed false negatives in the CheckAndDeRef checking
|
2010-11-04 21:22:29 +01:00 |
Daniel Marjamäki
|
f3bf14ba13
|
Fixed #2171 (false positive: possible nullpointer dereference)
|
2010-11-04 21:09:32 +01:00 |
Daniel Marjamäki
|
d21974777c
|
Fixed #2161 (false positive: assigned a value that is never used)
|
2010-11-04 20:16:17 +01:00 |
Daniel Marjamäki
|
fce6f11ed8
|
Tokenizer: simplify 'a[b-1]+=1' better
|
2010-11-04 19:02:54 +01:00 |
Daniel Marjamäki
|
c29940b114
|
Fixed #2166 (false positive: possible null pointer dereference)
|
2010-11-04 18:18:19 +01:00 |
Robert Reif
|
bc8ecf2aa7
|
Fixed #2168 (Segmentation fault of cppcheck)
|
2010-11-04 17:54:04 +01:00 |
Zachary Blair
|
10a4dde105
|
Fixed #2137 (Invalid mutual exclusion report)
|
2010-11-04 00:10:25 -07:00 |
Robert Reif
|
003f99da82
|
Symbol database: Fixed bug. Ticket: #2149
|
2010-11-04 06:58:37 +01:00 |
Robert Reif
|
cf0403434d
|
Symbol database: Bug fix
|
2010-11-03 20:33:07 +01:00 |
Daniel Marjamäki
|
c0100bac94
|
Tokenizer: Added TODO test case for better handling of function calls
|
2010-11-03 20:13:34 +01:00 |
Daniel Marjamäki
|
1323cbdb6d
|
Fixed #2160 (#2160 (Invalid unused variable report (style)))
|
2010-11-03 19:30:00 +01:00 |
Daniel Marjamäki
|
14803643ca
|
empty string test: Removed this check
|
2010-11-03 17:56:14 +01:00 |
Daniel Marjamäki
|
19f809c9b4
|
Unused variables: better handling of '= %var% ++'. Ticket: #2160
|
2010-11-02 20:01:12 +01:00 |
Daniel Marjamäki
|
dd4b2b8b46
|
Tokenizer: simplify 'x[0] += 1;'
|
2010-11-02 19:22:48 +01:00 |
Robert Reif
|
0fe72839d8
|
Symbol Database: Better handling of namespaces. Ticket: #2149
|
2010-11-02 18:30:57 +01:00 |
Daniel Marjamäki
|
c4452effa3
|
Tokenizer: simplify 'x.y += 1;'
|
2010-11-01 20:33:55 +01:00 |
Daniel Marjamäki
|
1b9de20f9b
|
Tokenizer: simplify 'case 0: x += y;'
|
2010-11-01 19:31:30 +01:00 |
Daniel Marjamäki
|
94fc13f0c4
|
Fixed #2159 (False positive: Null pointer dereference 'if (!x) return *y;')
|
2010-11-01 19:21:08 +01:00 |
Daniel Marjamäki
|
3fb17baa12
|
Fixed #2158 (False positive: value is not unused when using +=)
|
2010-11-01 17:36:54 +01:00 |
Kimmo Varis
|
7e33b8fb9f
|
Update VS2010 project files.
|
2010-10-31 22:59:44 +02:00 |
Daniel Marjamäki
|
285d76a413
|
Null pointers: Fixed false positive for 'x && x->y'
|
2010-10-31 19:48:58 +01:00 |
Daniel Marjamäki
|
75776b86a3
|
Visual Studio 2008: added nullpointer and uninitvar files
|
2010-10-31 11:52:55 +01:00 |
Daniel Marjamäki
|
bc283d8b99
|
Uninitialized variables: Broke out the checking into separate file
|
2010-10-31 12:31:11 +01:00 |
Daniel Marjamäki
|
df8a93bf97
|
Null pointers: Broke out the checking into separate file
|
2010-10-31 11:51:25 +01:00 |
Daniel Marjamäki
|
558899dc74
|
Variable usage: Fixed false negative that I introduced when simplifying compound assignments
|
2010-10-31 09:34:25 +01:00 |
Daniel Marjamäki
|
23d3fd3a5a
|
Fixed #2147 (uninitialized variable: false negative for 'x += y;')
|
2010-10-31 08:47:13 +01:00 |
Daniel Marjamäki
|
b55f6458a2
|
Fixed #2120 (False positive: array index out of bounds (unknown type in struct, sub function))
|
2010-10-30 12:32:43 +02:00 |
Daniel Marjamäki
|
7b630cc581
|
Fixed #2154 (false positive: The loop might unintentionally skip an element in the container)
|
2010-10-30 11:22:30 +02:00 |
Kimmo Varis
|
2d32ce3140
|
Update VS2010 project files.
|
2010-10-29 22:48:46 +03:00 |
Kimmo Varis
|
aea0cb5f28
|
Update tests after moving simplifyPath method to Path class.
|
2010-10-29 22:45:47 +03:00 |
Daniel Marjamäki
|
fee20bafa0
|
Java: Removed bailout added in 120073f000
|
2010-10-28 18:01:51 +02:00 |
Daniel Marjamäki
|
995e39200b
|
Fixed #2130 (Invalid possible NULL pointer dereference, etc.)
|
2010-10-27 20:20:10 +02:00 |
Daniel Marjamäki
|
fc98bcdcb2
|
Fixed #2141 (false positive: possible null pointer dereference)
|
2010-10-27 19:42:47 +02:00 |
Daniel Marjamäki
|
fd153eac02
|
Fixed #2142 (false positive: null pointer dereference (throw))
|
2010-10-27 19:38:42 +02:00 |
Robert Reif
|
b6aca47e11
|
Fixed #1195 (Uninitialized member variable not detected 'std::vector<int> *ints;')
|
2010-10-27 19:28:15 +02:00 |
Robert Reif
|
5a8f490f07
|
Fixed #2135 (False positive 'Can be const')
|
2010-10-27 19:25:34 +02:00 |
Pete Johns
|
6649e31514
|
Fixed test case so that it would compile.
|
2010-10-27 21:14:40 +11:00 |
Daniel Marjamäki
|
a38b14d582
|
Tokenizer: Remove redundant semi colons
|
2010-10-26 21:05:20 +02:00 |
Daniel Marjamäki
|
79583ee45d
|
#2133 (cppcheck: floating point exception)
|
2010-10-26 20:05:34 +02:00 |
Daniel Marjamäki
|
6200d4505a
|
Fixed #2118 (Invalid syntax error report.)
|
2010-10-26 19:39:48 +02:00 |
Kimmo Varis
|
59752f19d6
|
Add 64-bit targets for VS2008 project/solution files.
Since VS2008 Express does not support x64 platform we must create new
configurations named Debug-x64 and Release-x64.
|
2010-10-26 19:32:07 +03:00 |
Kimmo Varis
|
2301b40433
|
Add x64 build targets for VS 2010.
This commit adds new x64-Debug and x64-Release -targets for VS 2010.
To use those targets you need Windows SDK with x64 compiler.
|
2010-10-26 19:32:07 +03:00 |
Daniel Marjamäki
|
9370f552ac
|
Fixed #2134 (sizeof(*list) complains of null pointer dereference)
|
2010-10-26 18:26:02 +02:00 |
Daniel Marjamäki
|
27235f27ae
|
Fixed #2129 (Invalid dereference after release report)
|
2010-10-26 17:49:48 +02:00 |
Daniel Marjamäki
|
893f7fa347
|
Fixed #2130 (Invalid possible NULL pointer dereference, etc.)
|
2010-10-26 17:40:30 +02:00 |
Daniel Marjamäki
|
bdd6d6d53d
|
null pointer: use simplified token list in the 'check and deref' checking
|
2010-10-25 21:05:43 +02:00 |
Daniel Marjamäki
|
132aa8d0c4
|
uninitialized variables: fixed fp when analysing loops
|
2010-10-25 20:56:15 +02:00 |
Daniel Marjamäki
|
026514db1a
|
Fixed #2127 (null pointer dereference after condition (SRD nr 522))
|
2010-10-25 19:43:54 +02:00 |
Daniel Marjamäki
|
41a06a21d9
|
using deallocated pointer: detect first problem reported in ticket #2090
|
2010-10-25 17:36:46 +02:00 |
Zachary Blair
|
26afb04dc5
|
Fixed #2105 (Incorrect operator: mutual exclusion over ||)
|
2010-10-24 18:14:21 -07:00 |
Daniel Marjamäki
|
24a2def3ad
|
Execution Path: Fixed FP in improved handling of loop bodies
|
2010-10-24 19:14:40 +02:00 |
Daniel Marjamäki
|
8f707e5e46
|
Null pointers: Better handling of loops
|
2010-10-24 18:51:14 +02:00 |
Daniel Marjamäki
|
6601de7681
|
uninitialized variables: refactoring handling of loop bodies
|
2010-10-24 18:26:59 +02:00 |
Daniel Marjamäki
|
b66d3c8858
|
Fixed #2125 (uninitialized variable: better handling of for loops)
|
2010-10-24 18:12:48 +02:00 |
Daniel Marjamäki
|
cf86e11d05
|
Fixed #2111 (Class methods writing to a union are detected as 'can be const')
|
2010-10-24 16:43:10 +02:00 |
Kimmo Varis
|
d605239735
|
Add missing files to VS2010 project/solution files.
|
2010-10-24 15:55:36 +03:00 |
Daniel Marjamäki
|
306587b1d0
|
Buffer overruns: Fixed TODO test case
|
2010-10-24 11:32:27 +02:00 |
Daniel Marjamäki
|
381260dfe9
|
fixed 'deprecated conversion' compiler warning
|
2010-10-23 16:15:27 +02:00 |
Daniel Marjamäki
|
f3c6c64e9a
|
Fixed #2121 (False positive: Buffer access out-of-bounds when using uint32_t)
|
2010-10-23 13:12:17 +02:00 |
Daniel Marjamäki
|
120073f000
|
Java: fixed false positives about uninitialized variable
|
2010-10-23 10:56:30 +02:00 |
Daniel Marjamäki
|
5deb046ac5
|
Fixed #2120 (False positive: array index out of bounds (unknown type in struct, sub function))
|
2010-10-23 08:49:03 +02:00 |
Daniel Marjamäki
|
c907acf767
|
Fixed #1819 (False positive: auto variable assignment (unseen typedef))
|
2010-10-22 21:12:56 +02:00 |
Daniel Marjamäki
|
9fdc03fc1d
|
Fixed #2117 (false positive: buffer access out of bounds)
|
2010-10-22 20:15:51 +02:00 |
Lauri Nurmi
|
91e66e74d0
|
Fixed #2099 (Show an error if none of the given paths was found)
|
2010-10-22 17:09:50 +02:00 |
Daniel Marjamäki
|
5ef02b6c0a
|
memleak: activated todo test case. ticket: #1401
|
2010-10-21 22:33:40 +02:00 |
Daniel Marjamäki
|
eba827bc4b
|
Fixed #2112 (Crash scanning qtcreator sources)
|
2010-10-21 19:42:09 +02:00 |
Daniel Marjamäki
|
6a66d32871
|
JAVA: better handling of java code
|
2010-10-20 22:15:35 +02:00 |
Daniel Marjamäki
|
8b866178ff
|
Fixed #2103 (false positive when variable is checked to NULL and not freed)
|
2010-10-20 20:38:37 +02:00 |
Daniel Marjamäki
|
68dd2f8378
|
Fixed #2113 (False positive: Memory leak where a pointer is passed in a struct to another function to be freed)
|
2010-10-20 18:39:40 +02:00 |
Daniel Marjamäki
|
02ba2b202e
|
Fixed #2110 (Tokenizer::simplifyTypedef: regression - wrong simplification of 'typedef char TString[256];')
|
2010-10-20 06:09:29 +02:00 |
Daniel Marjamäki
|
f8c02718a5
|
Activated checking of .java and .cs files
|
2010-10-19 21:54:15 +02:00 |