PKEuS
|
54de731cac
|
Refactorized CheckUninitVar::checkScope(), fixed false negative
|
2015-01-21 12:20:03 +01:00 |
Robert Reif
|
3b8540fdc0
|
Fixed #6424 (false negative: Use of 'class Ns::C' silence Cppcheck)
|
2015-01-19 06:38:54 +01:00 |
Daniel Marjamäki
|
a87fb96eaf
|
Uninitialized variables: fix fp when 'a=((b)=c)' is used
|
2015-01-06 18:03:40 +01:00 |
Daniel Marjamäki
|
f2e5fbd30d
|
Uninitialized variables: bailout when ({..}) are used to avoid fp. it can be handled better.
|
2015-01-06 07:44:04 +01:00 |
Daniel Marjamäki
|
b3c2ea2c4f
|
CheckUninitVar: Fix fp for 'int x=2+x();' when x() is an unseen preprocessor macro
|
2015-01-04 11:13:20 +01:00 |
Daniel Marjamäki
|
ff11ba9847
|
Updated copyright year to 2015
|
2015-01-03 12:14:58 +01:00 |
Daniel Marjamäki
|
b8371ebd87
|
Revert 2e45df3b . Because there are FP.
|
2014-12-18 06:37:15 +01:00 |
orbitcowboy
|
2e45df3b72
|
Fixed #6341: false negative uninitvar pattern "return foo ( %var%"
|
2014-12-17 17:43:31 +01:00 |
orbitcowboy
|
f13475ceb2
|
Refactoring of testuninitvar: Splitted large test functions into smaller pieces.
|
2014-12-16 22:02:03 +01:00 |
orbitcowboy
|
ade7365cc0
|
testuninitvar: moved more tests to checkUninitVar2, which does not rely on ExecutionPath.
|
2014-12-15 19:47:20 +01:00 |
orbitcowboy
|
bf4b6dfd19
|
testuninitvar: changed test cases to do not rely on ExecutionPath.
|
2014-12-15 15:41:03 +01:00 |
orbitcowboy
|
32cd7d727d
|
Fixed #6325: false negative: uninitialized variable usage (write, posix).
|
2014-12-15 10:05:44 +01:00 |
Daniel Marjamäki
|
051d42ae6b
|
astyle formatting
|
2014-11-20 14:20:09 +01:00 |
orbitcowboy
|
f5d804f71a
|
running astyle
|
2014-11-20 10:13:03 +01:00 |
Robert Reif
|
c5e15950df
|
Fixed #6230 (SymbolDatabase: Wrong function() is set for token)
|
2014-11-17 16:04:44 +01:00 |
Daniel Marjamäki
|
de7e9223b8
|
Fixed #6272 (Improve check: multifile checking in checkbufferoverrun)
|
2014-11-15 10:43:49 +01:00 |
Daniel Marjamäki
|
b766071272
|
Fixed #4970 (false positive: conditionally initialized variable used in if-clause (git/notes.c))
|
2014-11-01 14:03:02 +01:00 |
Frank Zingsheim
|
41a54fceba
|
Fixed false positives about uninitialized member variables if variable has a default value (#5500)
|
2014-10-16 21:57:43 +02:00 |
PKEuS
|
6955e719cf
|
Collected garbage code tests and moved them to testgarbage.cpp
|
2014-10-16 10:59:46 +02:00 |
Alexander Mai
|
b0c34390cd
|
Fix FP: tmpnam() expects a valid pointer, an uninitialized array (of conforming size) is fine
|
2014-09-27 20:29:54 +02:00 |
Daniel Marjamäki
|
bbbe2c1b94
|
Fixed #6169 (False positive: passing uninitialized struct buffer member to strncpy)
|
2014-09-15 15:58:21 +02:00 |
Daniel Marjamäki
|
865a252c89
|
astyle formatting
[ci skip]
|
2014-09-14 10:29:12 +02:00 |
Dmitry-Me
|
1e298a31cf
|
Refactoring tests. Use utility function to warn about unsimplified code in tests.
|
2014-09-13 12:59:32 +02:00 |
Dmitry-Me
|
a2b30c7801
|
Detect -> accesses on uninitialized pointers
|
2014-09-12 10:19:00 +04:00 |
Dmitry-Me
|
f7824bfd00
|
CheckNullPointer::isPointerDeRef: Improve handling of static member variables and functions
|
2014-09-09 05:36:09 +02:00 |
Alexander Mai
|
f94e208862
|
#6116 False positive uninitvar - first argument to wcstombs(). Correct stf.cfg
|
2014-09-01 19:53:24 +02:00 |
Daniel Marjamäki
|
b8e356462a
|
Dead pointer: Fixed FP for subfunction pointer argument
|
2014-08-14 06:47:19 +02:00 |
PKEuS
|
8130fda4ae
|
Implemented support for C++11 uniform initialization in several checks.
|
2014-08-05 16:11:42 +02:00 |
Daniel Marjamäki
|
a2f776b1b7
|
Dead pointer: Added checking for dead pointer usage when pointer alias local variable that has gone out of scope.
|
2014-08-05 06:24:23 +02:00 |
Daniel Marjamäki
|
3169a2d215
|
astyle formatting
[ci skip]
|
2014-07-06 17:50:21 +02:00 |
amai2012
|
0ddd7752b5
|
Avoid crash reported in #5943 (using the example from duplicate ticket #5971)
Replace a few size_t/unsigned int by std::size_t
|
2014-07-06 14:48:24 +02:00 |
Daniel Marjamäki
|
a4a6f3e1be
|
Tokenizer: Removed Tokenizer::simplifyConditionOperator(). Using the AST and ValueFlow, it should be much easier to parse ?: than before.
|
2014-06-10 19:30:13 +02:00 |
Daniel Marjamäki
|
8cc1f664d8
|
Uninitialized member variable: Fixed false negative when struct is read
|
2014-05-10 20:20:55 +02:00 |
Daniel Marjamäki
|
4c344adcf1
|
Uninitialized struct member: fixed false negative when struct assignment is seen
|
2014-05-10 19:56:44 +02:00 |
Daniel Marjamäki
|
04cd261ee2
|
Fixed #5664 (false positive: (error) Uninitialized variable: j (Comma operator in for loop))
|
2014-04-21 10:32:29 +02:00 |
Daniel Marjamäki
|
c8ae1e4751
|
Fixed #5658 (false positive: (error) Uninitialized variable: s)
|
2014-04-10 15:59:37 +02:00 |
Daniel Marjamäki
|
9b1d058410
|
Fixed #5660 (false positive: (error) Uninitialized variable: result)
|
2014-04-10 06:40:53 +02:00 |
Daniel Marjamäki
|
71fda0ea0c
|
Fixed GCC warning about shadowed variable settings
|
2014-04-04 07:02:36 +02:00 |
PKEuS
|
7e4081f7f5
|
Treat syntaxError and cppcheckError as InternalErrors (throw as exception, #4268)
|
2014-03-27 13:15:21 +01:00 |
PKEuS
|
9b4b90f6a0
|
Avoid loading libraries multiple times in test suite
-> Massive speedup for test suite (especially on slow systems)
|
2014-03-24 09:59:05 +01:00 |
PKEuS
|
5f2067e401
|
Refactorized dead code elimination:
- Use library to get noreturn functions
- Fixed do-while simplification (#4940)
|
2014-03-23 10:59:41 +01:00 |
orbitcowboy
|
6507824a34
|
Added support for putchar() to std.cfg.
|
2014-03-20 05:49:38 +01:00 |
orbitcowboy
|
80e3b49cfc
|
Added support for ftell() and puts() to std.cfg.
|
2014-03-20 04:10:41 +01:00 |
orbitcowboy
|
30006cf06f
|
Added support for fputs() to std.cfg.
|
2014-03-20 02:13:41 +01:00 |
orbitcowboy
|
b37e9601c1
|
Added support for fgetc() to std.cfg.
|
2014-03-20 00:59:52 +01:00 |
Daniel Marjamäki
|
8de4246713
|
Uninitialized variables: Improved handling of function calls when struct members are checked
|
2014-03-20 06:48:17 +01:00 |
Martin Ettl
|
fe1b46c174
|
Extended std.cfg
|
2014-03-19 21:08:48 +01:00 |
Alexander Mai
|
29d401ff38
|
Fixed #3098 (false negative: unitialized variable being passed to strcoll())
|
2014-03-06 16:31:31 +01:00 |
Daniel Marjamäki
|
fd3a8a2a18
|
Update copyright
|
2014-02-15 07:45:39 +01:00 |
Daniel Marjamäki
|
0c47555423
|
CheckNullPointer: use library instead of hard coded info
|
2014-01-26 16:19:49 +01:00 |
Daniel Marjamäki
|
bc9ad08831
|
Fixed #5245 (false positive: Uninitialized variable (assignment inside ternary operator))
|
2014-01-25 10:12:50 +01:00 |
Daniel Marjamäki
|
30cae358d8
|
Removed the --value-flow flag. ValueFlow analysis will always be enabled from now on.
|
2014-01-17 18:07:05 +01:00 |
Daniel Marjamäki
|
e45a2e2c61
|
Fixed #5347 (False positive: uninitialized variable (try catch))
|
2014-01-14 06:24:09 +01:00 |
PKEuS
|
4f0121ee2f
|
Splitted simplification out of tokenize()
|
2013-12-30 17:45:28 +01:00 |
Daniel Marjamäki
|
6182394966
|
Uninitialized variables: Fixed false positive taking value of pointer that is allocated but not initialized
|
2013-12-25 14:00:27 +01:00 |
Daniel Marjamäki
|
26dfddac6b
|
UninitVar: Fixed false positive when checking if allocated pointer is null
|
2013-12-24 12:48:17 +01:00 |
Daniel Marjamäki
|
753559fff3
|
Uninitialized variables: Don't warn about try/catch exception variables
|
2013-12-24 07:39:15 +01:00 |
Daniel Marjamäki
|
661784a170
|
Fixed #5255 (False positive (error) Uninitialized variable: ptr2 - calling a static member function)
|
2013-12-23 16:50:27 +01:00 |
Daniel Marjamäki
|
e2fa6a291c
|
Uninitialized variables: Fixed false negatives for loop variables / pointer dereference
|
2013-12-23 12:27:00 +01:00 |
Daniel Marjamäki
|
80dec5a976
|
Uninitialized variables: Fixed FP when taking address of uninitialized variable
|
2013-12-13 20:10:22 +01:00 |
Daniel Marjamäki
|
7fe923bfc5
|
Uninitialized variables: Fixed FP when the variable is initialized in do-while condition
|
2013-12-13 13:27:01 +01:00 |
Daniel Marjamäki
|
3e6fbc6517
|
Fixed uninitialized variable FP after realloc if it fails. Related with ticket: #5240
|
2013-12-13 07:15:59 +01:00 |
Daniel Marjamäki
|
35189e80f2
|
Uninitialized variables: Fixed false positive for '*p=..'
|
2013-12-12 15:33:31 +01:00 |
Daniel Marjamäki
|
1b86615a69
|
Uninitialized variables: Fixed false positive for 'p=malloc; if (p) {}'
|
2013-12-12 11:44:07 +01:00 |
Daniel Marjamäki
|
4e7594748d
|
Uninitialized variables: Fixed false positive for 'p=malloc; if (python tools/daca2.py b)'
|
2013-12-12 09:17:41 +01:00 |
Daniel Marjamäki
|
9f62740e1d
|
Fixed #5236 (varid 0: vlc: src/misc/objects.c:126)
|
2013-12-12 08:44:00 +01:00 |
Daniel Marjamäki
|
a4f9cb78d5
|
Uninitialized variables: Fixed false positives when passing allocated pointer to function
|
2013-12-11 05:54:42 +01:00 |
Daniel Marjamäki
|
ef15e40de5
|
Uninitialized variables: error when passing uninit pointer to function
|
2013-12-10 18:36:16 +01:00 |
Daniel Marjamäki
|
be5c00d215
|
Uninitialized variables: check function arguments
|
2013-12-09 15:58:42 +01:00 |
Daniel Marjamäki
|
14a00046a3
|
Fixed #5207 (Struct uninitialized members useage is not giving error (malloc).)
|
2013-12-04 20:32:20 +01:00 |
Daniel Marjamäki
|
d8b25da73c
|
Fixed #4740 (False Positive: Uninitialised variable 'int *a[2][19]; int **b = a[0];')
|
2013-11-25 06:38:23 +01:00 |
Daniel Marjamäki
|
7fc07989a7
|
UninitVar: Fixed false positive 'data is allocated but not initialized' when there is assignment
|
2013-11-23 10:24:29 +01:00 |
Daniel Marjamäki
|
71e61fb1ed
|
Uninitialized variables: Fixed false positive when using ?:
|
2013-11-17 12:42:53 +01:00 |
Daniel Marjamäki
|
77e09d72a1
|
Uninitialized variables: Fixed false negatives when using ({})
|
2013-11-17 12:11:18 +01:00 |
Daniel Marjamäki
|
d342387b95
|
Uninitialized var: Fixed false negatives for self assignment
|
2013-11-16 18:07:33 +01:00 |
Daniel Marjamäki
|
cfd6b0c384
|
UninitVar: fixed false negatives for function calls
|
2013-11-16 12:02:21 +01:00 |
Simon Martin
|
185b88c6e3
|
Ticket #5073: Don't crash upon invalid do-while loop.
|
2013-11-08 23:13:21 +01:00 |
Daniel Marjamäki
|
7996d609be
|
Fixed #5108 (false positive: uninitialized variable (assignment in function parameter))
|
2013-11-04 23:09:15 +01:00 |
Daniel Marjamäki
|
51ad9ab6ac
|
Fixed #4896 (FP Uninitialized variable on template function)
|
2013-10-26 18:39:40 +02:00 |
Felipe Pena
|
c37ba4cbcf
|
- Fixed false positive when using typeof/__alignof__
|
2013-10-12 13:46:14 -03:00 |
Daniel Marjamäki
|
e3b7bce72b
|
Fixed #4907 (False positive 'uninitStructMember' on structs with unions)
|
2013-09-30 06:35:31 +02:00 |
Daniel Marjamäki
|
698e9e2b59
|
reverted ee14ea4f . I think this fix was too generic. If there is a union in the struct then only the union members should be skipped.
|
2013-09-23 17:52:42 +02:00 |
Daniel Marjamäki
|
ee14ea4fc2
|
Fixed #4907 (False positive "uninitStructMember" on structs with unions)
|
2013-09-23 07:20:20 +02:00 |
Daniel Marjamäki
|
64454068ec
|
Fixed #4934 (false positive: Uninitialized variable (loop with inner condition '(x=1)'))
|
2013-09-23 06:07:01 +02:00 |
Lucas Manuel Rodriguez
|
acd65a6829
|
Fixed #4991: False Positive - Dangerous usage of 'arr' (not null-terminated)
|
2013-08-29 08:12:05 -03:00 |
PKEuS
|
a9a5dc0354
|
Updated to AStyle 2.03, require this version
|
2013-08-07 16:27:37 +02:00 |
Daniel Marjamäki
|
2a1af1acda
|
CheckUninitVar: Assertion for '} while (' after 'do {..' in debug builds. Bail out in release builds to avoid segfaults.
|
2013-07-28 12:41:38 +02:00 |
Daniel Marjamäki
|
8f332af849
|
Uninitialized variables: Avoid FP when using '?:'
|
2013-07-10 16:44:35 +02:00 |
Daniel Marjamäki
|
2ef0a40aec
|
Fixed #4893 (FP Uninitialized variable on sizeof of itself)
|
2013-07-06 08:52:47 +02:00 |
Daniel Marjamäki
|
ba23b65179
|
Fixed #4885 (FP Uninitialized variable when using comma)
|
2013-06-29 09:33:51 +02:00 |
Daniel Marjamäki
|
6997d38881
|
Uninitialized variables: fixed false positive in while loop
|
2013-06-27 18:28:00 +02:00 |
Daniel Marjamäki
|
6b01d2d5a8
|
Fixed #4747 (Can not find uninitialized variable (variable used in rhs in assignment))
|
2013-06-27 16:53:15 +02:00 |
Daniel Marjamäki
|
2265c61734
|
Fixed #4879 (false positive: uninitialized variable in inner for inside while (regression))
|
2013-06-26 17:02:57 +02:00 |
Daniel Marjamäki
|
cfd960d794
|
Fixed #3765 (false negative: unitialized variable)
|
2013-06-25 18:40:41 +02:00 |
Daniel Marjamäki
|
ae36472a1b
|
Fixed #4778 (FP: Uninitialized variable: av)
|
2013-06-14 07:21:53 +02:00 |
Daniel Marjamäki
|
2d955bb9a6
|
Uninitvar: Added TODO test case for false negatives. Related with #4652
|
2013-06-02 18:26:03 +02:00 |
Daniel Marjamäki
|
065853a59a
|
Fixed #4652 (False positive: variable value tracking into loop body)
|
2013-05-29 16:16:12 +02:00 |
Frank Zingsheim
|
bca751b9f4
|
Fixed #4773 (Regression: wrong detection of unitialized variable)
|
2013-05-06 18:45:00 +02:00 |
Daniel Marjamäki
|
bfb1bc50e3
|
Fixed #4760 (false negative: (error) usage of uninitialized variable (struct member))
|
2013-05-02 20:34:15 +02:00 |
Daniel Marjamäki
|
44cb070e13
|
Fixed #4737 (False positive: Uninitialized variable 'do_something(&((char*)&var)[0],1);')
|
2013-05-01 13:52:28 +02:00 |