1567 Commits

Author SHA1 Message Date
Robert Reif
2d6dfa57e1 Variable usage: Better aliasing support (Ticket ) 2010-07-08 08:00:50 +02:00
Daniel Marjamäki
a1793edabe Fixed (*log(0) error) 2010-07-07 09:03:40 +02:00
Daniel Marjamäki
4ebf4caf66 Variable usage: only warn about variables that have variable id > 0 2010-07-07 08:50:34 +02:00
Daniel Marjamäki
2bb07a55bd Fixed (False positive: unused variable: this) 2010-07-07 08:39:18 +02:00
Daniel Marjamäki
a107cd1b59 Fixed (False positive: variable is assigned a value that is never used (pointer aliasing)) 2010-07-07 08:26:24 +02:00
Daniel Marjamäki
c811acaa50 Fixed (False positive: Dangerous usage of strncpy (copying a constant string)) 2010-07-05 12:45:39 +02:00
Zachary Blair
5ea28ccbba Fixed (Forgetting to put a break in a switch statement) 2010-06-30 00:10:30 -07:00
Daniel Marjamäki
c6888845a0 Fixed (False positive: uninitialized variable when using ? operator) 2010-06-30 08:28:34 +02:00
Robert Reif
4668359b51 Fixed (false positive: uninitialized variable with multiple assignment) 2010-06-29 08:38:24 +02:00
Daniel Marjamäki
ad0908cb3f Fixed (false positive: uninitialized variable with multiple assignment) 2010-06-25 19:39:30 +02:00
Robert Reif
2a1edff77f Fixed (false negative: functionVariableUsage doesn't support static variables) 2010-06-24 17:00:32 +02:00
Robert Reif
74e48d4bb1 Fixed (False positive: Variable not assigned a value (pointer to pointer)) 2010-06-23 06:54:14 +02:00
Robert Reif
a5b45a7f83 Fixed (false positive: Variable is not assigned a value (casting function parameters)) 2010-06-22 17:04:11 +02:00
Robert Reif
bdd28b47aa Fixed (false positive: Variable is assigned a value that is never used) 2010-06-21 18:12:01 +02:00
Daniel Marjamäki
4cd3e8fdc0 Refactoring: Reduced copy/pasted code 2010-06-20 19:03:59 +02:00
Nicolás Alvarez
df3d98a7c2 Fix typos in sizeofsizeof error message. 2010-06-19 17:16:14 -03:00
Daniel Marjamäki
82b63dd736 Fixed (tokenizer: simplifyKnownVariable: improved handling of arithmetic) 2010-06-19 14:00:45 +02:00
Robert Reif
7dba21858a simplify the alias handling in the checking of variable usage. Ticket: 2010-06-16 18:00:21 +02:00
Zachary Blair
ae2a02ad93 Applied review suggestions for Ticket 2010-06-15 22:03:38 -07:00
Zachary Blair
efefceabae Fixed (new style check: find empty catch blocks) 2010-06-14 23:45:46 -07:00
Robert Reif
98ae660260 Fixed (false positive: Variable 'test' is assigned a value that is never used) 2010-06-14 15:46:57 +02:00
Daniel Marjamäki
cb7e9fbec1 Fixed (False Negative: Unitialized array) 2010-06-14 08:36:34 +02:00
Robert Reif
3d2c28a524 Fixed (false positive: Variable is not assigned a value) 2010-06-10 07:21:47 +02:00
Robert Reif
00dcec47ac Variable usage: read variable when using syntax '..=*(p);' 2010-06-08 18:26:14 +02:00
Daniel Marjamäki
472bd9dabe Fixed (False negative: null pointer dereference in switch block) 2010-06-06 12:15:31 +02:00
Robert Reif
4c4844b722 Fixed (Variable assigned value which is never used but is thrown) 2010-06-03 07:05:57 +02:00
Daniel Marjamäki
cb43168d81 Fixed (segmentation fault of cppcheck) 2010-06-02 18:10:32 +02:00
Daniel Marjamäki
8ead23fc91 CheckOther::nullConstantDereference: Fixed cppcheck warning message - tok may become null 2010-06-02 18:06:37 +02:00
Daniel Marjamäki
28ad69e4b3 Refactoring of CheckOther::nullConstantDereference 2010-06-02 17:53:45 +02:00
Daniel Marjamäki
37ae4692bb Uninitialized variables: fixed false negative when using uninitialized variable inside malloc call 2010-05-30 10:30:51 +02:00
Daniel Marjamäki
1ec49430e3 Uninitialized variables: better handling when uninitialized variables are used in function calls 2010-05-30 09:31:10 +02:00
Daniel Marjamäki
d3ed1c8960 Refactoring uninitialized variables (checking variable declarations) 2010-05-30 08:02:39 +02:00
Daniel Marjamäki
406cbda563 Uninitialized variables: better handling of struct variables 2010-05-30 07:55:11 +02:00
Robert Reif
176b41caa5 Fixed (char buffer that is only accessed with pointers is marker not assigned) 2010-05-26 19:22:35 +02:00
Daniel Marjamäki
88e9a4ade6 Fixed (false negative: null pointer dereference) 2010-05-26 19:16:42 +02:00
Robert Reif
048733a15e false positive: Variable is assigned a value that is never used 2010-05-23 10:41:05 +02:00
Daniel Marjamäki
75c9355e9a Added some multipass checking for the uninitialized variables. It is still experimental. You can activate it with the '--test-2-pass' switch. Some more refactorings are needed to make it truly usable, the main thing is to make it thread safe. 2010-05-21 19:35:18 +02:00
firewave
2bced1d90c Avoid some Visual Studio warnings 2010-05-18 19:19:15 +02:00
Daniel Marjamäki
6edb2e77b4 Refactoring: Removed Severity::possibleStyle 2010-05-16 14:43:42 +02:00
Daniel Marjam�ki
972046c4bd Added test CheckOther::sizeofsizeof. Inspired by 2010-05-15 14:06:45 +02:00
Daniel Marjamäki
7c52c8683d Fixed (false positive: Data is allocated but not initialized, when using sprintf) 2010-05-09 07:48:52 +02:00
Robert Reif
be35b72c7e Fixed (false positive: Variable is assigned a value that is never used, when using cast) 2010-05-09 07:15:40 +02:00
Daniel Marjamäki
2901434773 Fixed (false negative: uninitialized pointer usage) 2010-05-08 19:23:46 +02:00
Daniel Marjamäki
bd22a18dc1 Refactoring: Changed 'possible style' to 'style' 2010-05-08 09:49:01 +02:00
Zachary Blair
21b7eb61f5 Fixed : (new check: wrong usage of fflush()) Simplified and set severity to error 2010-05-06 23:08:10 -07:00
Robert Reif
4c95264d29 Fixed (False positive: buffer is not assigned value (assigned through alias)) 2010-05-05 17:31:07 +02:00
Daniel Marjamäki
612be2557b Fixed (False positive: array access after return cannot have default loop value) 2010-05-04 20:02:47 +02:00
Robert Reif
7ce70777a4 Fixed (Variable usage (pointer is assigned but never used)) 2010-05-04 17:28:03 +02:00
Robert Reif
eb276346c5 Fixed (False positive: unused variable value (pointer aliasing)) 2010-05-04 17:26:09 +02:00
Zachary Blair
707d27f3d8 Fixed (new check: wrong usage of fflush()) 2010-05-03 23:14:45 -07:00