Daniel Marjamäki
|
ba463295c2
|
Uninitialized variables: improved check to detect more errors. Ticket: #3369
|
2011-12-14 06:00:17 +01:00 |
Daniel Marjamäki
|
c7ce87d060
|
Uninitialized variables: Fixed false positives for break/continue/throw
|
2011-12-14 05:45:52 +01:00 |
Daniel Marjamäki
|
458fa0874a
|
Uninitialized variables: Started writing a new check. Ticket: #3369
|
2011-12-13 21:57:27 +01:00 |
PKEuS
|
c9f5117cf5
|
Fixed #3407 (False positive: (inconclusive) Found duplicate branches for if and else. (inline assembler))
|
2011-12-13 21:42:38 +01:00 |
Edoardo Prezioso
|
767413adad
|
1)internal check found a 'findmatch' with simple string argument;
2)Style: uniform 'while (...)' when inside it there's an assignment;
3)Replace '0' with 'NULL' where there's comparison with a pointer.
|
2011-12-01 12:04:47 +01:00 |
Daniel Marjamäki
|
414e0ecc3c
|
Uninitvar: Reactivated the checking
|
2011-11-30 18:57:52 +01:00 |
Daniel Marjamäki
|
b92959809c
|
Uninitvar: Made checking experimental
|
2011-11-20 15:19:56 +01:00 |
Edoardo Prezioso
|
42e369a4b4
|
Change every 'tokAt(..)->link()' to 'linkAt(..)'.
|
2011-11-20 14:24:27 +01:00 |
Edoardo Prezioso
|
2c64d299ca
|
Change every 'tokAt(...)->str()' to 'strAt(...)'.
|
2011-11-13 13:10:59 +01:00 |
Daniel Marjamäki
|
f7fe665b00
|
Fixed #3231 (False positive: uninitialized variable '({...})')
|
2011-10-30 18:19:09 +01:00 |
Daniel Marjamäki
|
7035d4cdd2
|
astyle formatting
|
2011-10-30 17:41:05 +01:00 |
Daniel Marjamaki
|
71f08d0a66
|
Fixed #3222 (false positive: Uninitialized variable with function pointer)
|
2011-10-30 17:22:30 +01:00 |
Daniel Marjamäki
|
0d1046eeeb
|
Merge pull request #51 from richq/explicit
Explicit constructors
|
2011-10-30 01:38:26 -07:00 |
Daniel Marjamäki
|
316aa920eb
|
Fixed #3245 (False positive: Dangerous usage of 'string' (strncpy doesn't always 0-terminate it))
|
2011-10-29 19:11:42 +02:00 |
Richard Quirk
|
a0a5b36667
|
Ensure single-argument constructors are explicit
|
2011-10-29 18:24:30 +02:00 |
Daniel Marjamäki
|
6f8e42a5af
|
changed the astyle formatting flags
|
2011-10-13 20:53:06 +02:00 |
Daniel Marjamäki
|
417dc1ff2a
|
Fixed #3159 (Uninitialized variable false positive)
|
2011-10-02 20:38:58 +02:00 |
Reijo Tomperi
|
236d0eb178
|
Fix #2813 (False negative: Uninitialized variable not found for realloc)
http://sourceforge.net/apps/trac/cppcheck/ticket/2813
Patch provided by: marekzmyslowski
|
2011-09-28 21:46:09 +03:00 |
Daniel Marjamäki
|
1a7511ed48
|
Fixed #3106 (False positive: Uninitialized variable check has inconsistent behavior with ternary operator)
|
2011-09-20 21:00:05 +02:00 |
Daniel Marjamäki
|
c7d0beefa8
|
uninitstring: fix false negatives when non-zero memset is used. Ticket: #3050
|
2011-09-05 19:42:48 +02:00 |
Daniel Marjamäki
|
85d83d86ac
|
Fixed #3060 (False positive: Uninitialized variable: fresh)
|
2011-09-04 12:53:53 +02:00 |
Daniel Marjamäki
|
c7886ca1c4
|
Fixed #3058 (False positive: Uninitialized variable: data)
|
2011-09-03 18:53:14 +02:00 |
Daniel Marjamäki
|
dc629b4c39
|
Fixed 'possible null pointer dereference' warning messages
|
2011-07-28 08:12:21 +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
|
9a3f95613a
|
Uninitialized variables: Fixed false positive if there is assignment in return statement
|
2011-07-24 22:41:40 +02:00 |
Daniel Marjamäki
|
1bb7a1c23c
|
Fixed #2938 (Uninitialized variable not detected when part of expression)
|
2011-07-24 22:26:11 +02:00 |
Daniel Marjamäki
|
982b645ff4
|
Fixed #2775 (Uninitialized variable: Not detected when uninitialized struct pointer is dereferenced in sub function)
|
2011-07-04 21:04:32 +02:00 |
Daniel Marjamäki
|
b9ee867344
|
Fixed #2764 (False positive: Uninitialized variable '&(x[0])')
|
2011-05-05 21:26:18 +02:00 |
Daniel Marjamäki
|
e22f69daf4
|
Fixed #2753 (False negative: dereference uninitialized pointer 'buf[0] = 0;')
|
2011-04-26 20:26:09 +02:00 |
Daniel Marjamäki
|
ad8fb37fb0
|
CheckUninitVar: Use %op%
|
2011-04-10 11:28:18 +02:00 |
Daniel Marjamäki
|
92ab1ef8e7
|
fix
|
2011-02-26 20:08:37 +01:00 |
Daniel Marjamäki
|
b5020468f6
|
Fixed #2467 (false positive: possible nullptr dereference)
|
2011-01-17 19:23:00 +01:00 |
Reijo Tomperi
|
226b605774
|
Change year 2010 -> 2011 in license texts.
|
2011-01-09 21:33:36 +02:00 |
Daniel Marjamäki
|
21af64049c
|
Fixed #2401 (false positive: Uninitialized variable: result)
|
2011-01-05 20:44:04 +01:00 |
Daniel Marjamäki
|
c8775344d6
|
uninitialized variables: Added some comments
|
2011-01-01 18:24:27 +01:00 |
Daniel Marjamäki
|
d8f241e033
|
gcc: fixed -Wconversion errors
|
2010-12-31 09:51:27 +01:00 |
Daniel Marjamäki
|
8bdb05da6e
|
Uninitialized variables: typeof doesn't dereference. Ticket: #2367
|
2010-12-30 21:30:46 +01:00 |
Daniel Marjamäki
|
d4e3e7e201
|
Fixed #2367 (false positive: (error) Uninitialized variable: s)
|
2010-12-27 21:19:10 +01:00 |
Daniel Marjamäki
|
448c03c6e6
|
Fixed #2367 (false positive: (error) Uninitialized variable: s)
|
2010-12-27 21:05:33 +01:00 |
Daniel Marjamäki
|
aff3623fec
|
Fixed #2345 (False positive: uninitialized variable (in sub-condition in if inside a loop))
|
2010-12-23 09:16:29 +01:00 |
Daniel Marjamäki
|
fc9c450eed
|
Fixed #2320 (false positive: Uninitialized variable: kbuf)
|
2010-12-18 10:06:21 +01:00 |
Daniel Marjamäki
|
c2335f845e
|
Fixed #2306 (False positive: array of std::string is reported as uninitialized)
|
2010-12-17 21:20:04 +01:00 |
Daniel Marjamäki
|
b4be71aa4e
|
checkuninitvar: fixed possible null-pointer dereference. thanks orbitcowboy for spotting it.
|
2010-12-01 18:05:57 +01:00 |
Daniel Marjamäki
|
234b1e0098
|
Fixed #2265 (False positive: Uninitialized variable: path)
|
2010-11-30 18:40:36 +01:00 |
Daniel Marjamäki
|
095f725b3c
|
Fixed #2218 (False positive: Data is allocated but not initialized)
|
2010-11-27 17:34:54 +01:00 |
Daniel Marjamäki
|
fc57e06cdd
|
Fixed #2226 (segmentation fault of cppcheck)
|
2010-11-24 18:08:21 +01:00 |
Daniel Marjamäki
|
e8ca76e02e
|
Fixed #2200 (MathLib: Calculation overflow)
|
2010-11-20 10:05:33 +01:00 |
Daniel Marjamäki
|
aa653fe42b
|
Uninitialized variables: Fixed simple undetected case for '= %var% |' and '| %var% ;'
|
2010-11-16 20:16:44 +01:00 |
Daniel Marjamäki
|
eb54be2b2a
|
Uninitialized variables: Cleanup '+=' handling. This is simplified in the Tokenizer now.
|
2010-11-16 20:09:23 +01:00 |
Daniel Marjamäki
|
35c72db251
|
Uninitialized variables: Fixed simple undetected case for '= %var% -'
|
2010-11-16 20:07:41 +01:00 |
Daniel Marjamäki
|
cbdae275ed
|
Uninitialized variables: Fixed false negative. Ticket: #2207
|
2010-11-16 20:01:57 +01:00 |
Daniel Marjamäki
|
6d1c0687c9
|
Fixed #2202 (false postive: Data is allocated but not initialized: rbdc)
|
2010-11-15 17:11:08 +01:00 |
Daniel Marjamäki
|
47d37e7a05
|
Uninitialized variables: Fixed false negatives when calling unknown function with uninitialized variable by value: 'f(a+1)'
|
2010-11-13 15:10:17 +01:00 |
Daniel Marjamäki
|
bf15236b9e
|
Fixed #2196 (False positive: Invalid data is allocated but not initialized (initialization in loop))
|
2010-11-13 10:33:35 +01:00 |
Daniel Marjamäki
|
3303c40879
|
uninitialized variables: fixed problem when parsing loop bodies
|
2010-11-13 08:03:59 +01:00 |
Daniel Marjamäki
|
9d7a623985
|
Uninitialized variables: Passing uninitialized array as parameter to function. Ticket: #2188
|
2010-11-12 17:38:25 +01:00 |
Daniel Marjamäki
|
e523d5a3a3
|
Fixed #914 (improve check: usage of uninitialized variable)
|
2010-11-12 17:14:37 +01:00 |
Daniel Marjamäki
|
1204043556
|
Fixed #2148 (uninitialized variable: false negative, function parameter that is passed by value)
|
2010-11-12 17:06:14 +01:00 |
Daniel Marjamäki
|
6b489230e8
|
Fixed #2188 (Does not detect initialization)
|
2010-11-12 16:11:44 +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
|
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
|
bc283d8b99
|
Uninitialized variables: Broke out the checking into separate file
|
2010-10-31 12:31:11 +01:00 |