Daniel Marjamäki
|
6edb2e77b4
|
Refactoring: Removed Severity::possibleStyle
|
2010-05-16 14:43:42 +02:00 |
Daniel Marjamki
|
14b27f97fa
|
Fixed #1212 (Allow giving used defines in command line)
|
2010-05-16 07:38:29 +02:00 |
Daniel Marjamki
|
d7b117402c
|
Code cleanup: Removed autodealloc handling
|
2010-05-16 07:15:31 +02:00 |
Daniel Marjamki
|
8e3c39ae5b
|
Fixed #1678 (false positive: Member variable not initialized in the constructor, for arrays of undefined type)
|
2010-05-15 20:24:11 +02:00 |
Erik Lax
|
c0149d3cd1
|
Fixed #1679 (Bad iterators checks fails to detect bugs with indent levels)
|
2010-05-15 20:00:41 +02:00 |
Erik Lax
|
0510d9a2b0
|
Fixed #1680 (Bad iterators checks fail to detect invalidation of iterator for deletion by value)
|
2010-05-15 19:46:42 +02:00 |
Daniel Marjamki
|
70d20ac544
|
Fixed #1681 (false negative: memory leak in operator =)
|
2010-05-15 19:40:32 +02:00 |
Daniel Marjamki
|
972046c4bd
|
Added test CheckOther::sizeofsizeof. Inspired by #1682
|
2010-05-15 14:06:45 +02:00 |
Daniel Marjamki
|
85afa86da3
|
astyle formatting
|
2010-05-14 18:40:37 +02:00 |
Daniel Marjamki
|
8b1ffefd74
|
Fixed #1682 (Internal error)
|
2010-05-14 18:40:15 +02:00 |
Konrad Windszus
|
c39f80d361
|
Ticket #1318: Make sure error ids are unique
|
2010-05-13 22:14:29 +02:00 |
Robert Reif
|
f8cceface5
|
Fixed #1677 (False positive: (style) Variable 'xxx' is assigned a value that is never used)
|
2010-05-13 13:59:41 +02:00 |
Martin Ettl
|
1382832bd0
|
mathlib:isInt() now handles calles of 'u' and 'l' correctly; testcases added
|
2010-05-12 23:49:09 +02:00 |
Robert Reif
|
963108d957
|
Fixed #1671 (simplifyTypedef: support for more typedefs)
|
2010-05-11 21:41:33 +02:00 |
Daniel Marjamäki
|
84c3ec9c4c
|
Fixed #1669 (Still seeing 'possible style' warnings in 1.43)
|
2010-05-10 21:22:59 +02:00 |
Daniel Marjamäki
|
5d01047ae4
|
Fixed #1665 ('If you see this, there is a bug': Token::Match('%var% ( %varid% [,)]', 0))
|
2010-05-10 18:11:02 +02:00 |
Robert Reif
|
a390f3c8f4
|
Better handling of function pointer typedef
|
2010-05-10 17:50:40 +02:00 |
Robert Reif
|
ac7515cdcc
|
Fixed #1666 (simplifyTypedef: add support for typedefs of functions)
|
2010-05-10 07:12:06 +02:00 |
Daniel Marjamäki
|
d7118c4d36
|
Fixed #1648 (mismatch allocate and deallocate calls.)
|
2010-05-09 13:46:13 +02:00 |
Daniel Marjamäki
|
7c52c8683d
|
Fixed #1662 (false positive: Data is allocated but not initialized, when using sprintf)
|
2010-05-09 07:48:52 +02:00 |
Robert Reif
|
be35b72c7e
|
Fixed #1660 (false positive: Variable is assigned a value that is never used, when using cast)
|
2010-05-09 07:15:40 +02:00 |
Robert Reif
|
87a54580a8
|
Added unit test for #5
|
2010-05-09 07:10:51 +02:00 |
Daniel Marjamäki
|
8971d697b2
|
Fixed #1656 (dangerous usage of erase not detected: for (; it != it2; ++it) ints.erase(it);)
|
2010-05-08 20:11:15 +02:00 |
Daniel Marjamäki
|
2901434773
|
Fixed #1658 (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 |
Daniel Marjamäki
|
d19dd2c61d
|
Fixed #1654 (False positive: Memory leak with: ( delete ( p ) , ( p ) = 0 );)
|
2010-05-07 18:37:50 +02:00 |
Zachary Blair
|
21b7eb61f5
|
Fixed #959: (new check: wrong usage of fflush()) Simplified and set severity to error
|
2010-05-06 23:08:10 -07:00 |
Daniel Marjamäki
|
c8c5f95721
|
Fixed #1651 (Tokenizer::setVarId wrong handling of return statement)
|
2010-05-06 18:40:52 +02:00 |
Daniel Marjamäki
|
95f3533252
|
Robert Reif <reif@earthlink.net>
refactoring chained assignments
|
2010-05-05 19:34:03 +02:00 |
Daniel Marjamäki
|
af4c4cef34
|
Fixed #1646 (False positive: array access after return cannot have default loop value)
|
2010-05-05 18:29:56 +02:00 |
Robert Reif
|
4c95264d29
|
Fixed #1647 (False positive: buffer is not assigned value (assigned through alias))
|
2010-05-05 17:31:07 +02:00 |
Daniel Marjamäki
|
612be2557b
|
Fixed #1646 (False positive: array access after return cannot have default loop value)
|
2010-05-04 20:02:47 +02:00 |
Robert Reif
|
7ce70777a4
|
Fixed #1643 (Variable usage (pointer is assigned but never used))
|
2010-05-04 17:28:03 +02:00 |
Robert Reif
|
eb276346c5
|
Fixed #1639 (False positive: unused variable value (pointer aliasing))
|
2010-05-04 17:26:09 +02:00 |
Zachary Blair
|
707d27f3d8
|
Fixed #959 (new check: wrong usage of fflush())
|
2010-05-03 23:14:45 -07:00 |
Daniel Marjamäki
|
804b2a0952
|
Fixed #1642 (Tokenizer::simplifyKnownVariables: simplify after loop)
|
2010-05-02 14:41:21 +02:00 |
Daniel Marjamäki
|
0415560912
|
refactoring: changed the severity for strncatUsage from possibleError to style
|
2010-05-02 09:54:08 +02:00 |
Daniel Marjamäki
|
883d462553
|
refactoring: Use style severity instead of possible error for the 'The size argument is given as a char constant'
|
2010-05-02 09:16:45 +02:00 |
Daniel Marjamäki
|
136b84eaf5
|
STL: added testcase for 'if (str.find(%any%)) ..'
|
2010-05-01 21:56:39 +02:00 |
Daniel Marjamäki
|
ae576be088
|
refactoring: enable the 'suspicious pointer subtraction' checking
|
2010-05-01 21:43:47 +02:00 |
Robert Reif
|
6eb16e0f16
|
Fixed #1640 (False negative: Unused value (variable is assigned but never read))
|
2010-05-01 21:15:14 +02:00 |
Daniel Marjamäki
|
dfde9772e2
|
astyle formatting
|
2010-05-01 11:54:04 +02:00 |
Slava Semushin
|
f50d182750
|
Fixed #1574 (chain assignments could be simplified)
http://sourceforge.net/apps/trac/cppcheck/ticket/1574
|
2010-05-01 15:28:35 +07:00 |
Daniel Marjamäki
|
080374dc04
|
Fixed #1638 (Tokenizer::simplifyKnownVariables: removing variable declaration)
|
2010-05-01 10:09:53 +02:00 |
Robert Reif
|
4014bd234f
|
Unit testing: Improved test coverage for variable usage checking
|
2010-05-01 09:26:47 +02:00 |
Robert Reif
|
1fa1ff8d14
|
Fixed #1636 (Fix false positive with strncpy termination check)
|
2010-04-30 21:36:48 +02:00 |
Robert Reif
|
5738f34872
|
Fixed #1622 (False positive: buf is not assigned a value (pointer aliasing))
|
2010-04-30 18:11:51 +02:00 |
Robert Reif
|
70d475f8c2
|
Fixed #1622 (False positive: buf is not assigned a value (pointer aliasing))
|
2010-04-29 07:10:50 +02:00 |
Daniel Marjamäki
|
cccccff96f
|
Fixed #1629 (False negative: null pointer derefence not detected 'c[0] = 0')
|
2010-04-28 22:07:39 +02:00 |
Daniel Marjamäki
|
2666aad207
|
Fixed #1632 (false positive: unintialized variable)
|
2010-04-28 21:33:11 +02:00 |
Daniel Marjamäki
|
d3b5c30c6c
|
Fixed #1628 (false negative: memory leak when using redundant braces)
|
2010-04-27 20:43:31 +02:00 |
Robert Reif
|
f0018100e1
|
Variable usage: Use variable id instead of variable name to identify variable
|
2010-04-27 05:05:32 +02:00 |
Daniel Marjamäki
|
0444ff5298
|
Fixed #1627 (###### If you see this, there is a bug ###### - Token::Match('%varid% [ %num% ]', 0))
|
2010-04-26 18:52:40 +02:00 |
Daniel Marjamäki
|
6bb93b5eb7
|
Fixed #943 (Tokenizer: improve handling of pointer aliasing)
|
2010-04-25 15:12:47 +02:00 |
Daniel Marjamäki
|
eb82a89758
|
ExecutionPath: Better handling of if
|
2010-04-25 11:55:57 +02:00 |
Daniel Marjamäki
|
1a34e7daf6
|
Fixed #948 (array index out of bound not detected 'a[i-1] = 0')
|
2010-04-25 07:34:50 +02:00 |
Daniel Marjamäki
|
e068979d62
|
Fixed #1440 (false negative: memory leak (function parameters))
|
2010-04-24 22:24:03 +02:00 |
Daniel Marjamäki
|
8ccd95a643
|
Fixed #836 (buffer overrun: memmove)
|
2010-04-24 21:48:58 +02:00 |
Daniel Marjamäki
|
5e5b8d3861
|
Fixed #1146 (improve check: memory leak not detected (allocation in subfunction))
|
2010-04-24 20:40:57 +02:00 |
Daniel Marjamäki
|
a15e25f9fe
|
Fixed #1571 ('C-style pointer casting' should not be reported for C files)
|
2010-04-24 16:46:09 +02:00 |
Daniel Marjamäki
|
6b52730d4e
|
Fixed #1616 (false positive - Upon exception there is a memory leak)
|
2010-04-24 14:51:10 +02:00 |
Daniel Marjamäki
|
f3bea249ac
|
Removed the check for unreachable code. The g++ warning -Wunreachable-code is recommended instead. This closes #1603 (break after a return or goto should not be an error in a switch statement).
|
2010-04-24 14:30:45 +02:00 |
Daniel Marjamäki
|
1eafe45c47
|
Redundant assignment: Added TODO testcase for detecting redundant assignment in inner scope
|
2010-04-24 12:21:26 +02:00 |
Daniel Marjamäki
|
e6f640d816
|
unit testing: Added TODO test case for unused variables when using pointer aliasing. Related with ticket #1622
|
2010-04-24 10:35:41 +02:00 |
Robert Reif
|
2bdcf3b5b2
|
variable usage: refactoring the checking
|
2010-04-24 09:45:03 +02:00 |
Robert Reif
|
99a7755218
|
tokenizer improvements: remove calling convention (#1619)
|
2010-04-24 09:40:05 +02:00 |
Zachary Blair
|
5835b2665b
|
Fixed #1169 (improve check: divsion by zero not detected when using the shift (>>) operator)
|
2010-04-23 22:59:53 -07:00 |
Martin Ettl
|
5eb9c78533
|
added further testcases to multidimensional out of bounds unit test
|
2010-04-23 22:04:49 +02:00 |
Martin Ettl
|
bd4bead561
|
update in todo testcase (line number was wrong)
|
2010-04-23 21:59:46 +02:00 |
Martin Ettl
|
572ae0c1b4
|
added todo testcases for multidimensional out of bounds checking
|
2010-04-23 21:56:35 +02:00 |
Daniel Marjamäki
|
a3b781a181
|
Fixed #819 (array index out of bounds not detected for multidimension arrays)
|
2010-04-23 16:26:40 +02:00 |
Robert Reif
|
f4ce5a37d7
|
Fixed #1615 (False positive - C-style pointer casting)
|
2010-04-22 20:08:29 +02:00 |
Daniel Marjamäki
|
b9d8f52cca
|
CheckBufferOverrun: Fixed false positives caused by refactorings
|
2010-04-22 19:22:23 +02:00 |
Zachary Blair
|
680a470741
|
Fixed #1564 (CppCheck does not recognise redundant IF)
|
2010-04-22 01:21:54 -07:00 |
Robert Reif
|
90541386da
|
Fixed #1619 (tokenizer: remove calling convention)
|
2010-04-21 21:08:47 +02:00 |
Daniel Marjamäki
|
f9f6927e63
|
CheckBufferOverrun: Don't give false positives when reading from array with strncpy/strncat
|
2010-04-21 20:02:58 +02:00 |
Daniel Marjamäki
|
f057e127a0
|
CheckBufferOverrun: Refactoring the checking of function calls
|
2010-04-21 19:27:28 +02:00 |
Daniel Marjamäki
|
798aa84151
|
Refactoring: CheckBufferOverrun refactorings. split up the checkScope into two separate functions. The ArrayInfo usage was improved. Also broke out for-loop handling into separate functions.
|
2010-04-21 18:33:21 +02:00 |
Zachary Blair
|
c26e619b23
|
Fixed #855 (Refactoring: move conditions into checks)
|
2010-04-20 23:38:25 -07:00 |
Reijo Tomperi
|
96d66af478
|
Change "Array index -1 corresponds with 4294967295..." error message into "Array index -1 is out of bounds"
|
2010-04-20 21:44:31 +03:00 |
Reijo Tomperi
|
47234e2dab
|
fileLister_win32.h -> filelister_win32.h
|
2010-04-20 21:31:38 +03:00 |
Daniel Marjamäki
|
7e2f39290d
|
Fixed #1614 (negative array index issues in latest from git)
|
2010-04-20 16:43:51 +02:00 |
Robert Reif
|
e8ac1f07d9
|
Unit Testing: Added TODO testcases for ticket #1593 (false negative: the function can be declared as const)
|
2010-04-19 21:18:53 +02:00 |
Reijo Tomperi
|
b11fc0a069
|
Fix one compiler warning
|
2010-04-18 22:14:25 +03:00 |
Daniel Marjamäki
|
8eff4fcbba
|
Buffer overruns: Added testcase for negative index when using 2-dimensional array
|
2010-04-18 21:07:21 +02:00 |
Daniel Marjamäki
|
b6ab419a06
|
Buffer Overrun: Broke out the checking for negative array index
|
2010-04-18 20:51:39 +02:00 |
Robert Reif
|
76a683a73a
|
Fixed #1602 (functions defined in header outside of class cannot be const)
|
2010-04-18 15:40:31 +02:00 |
Daniel Marjamäki
|
a473345f18
|
Buffer overruns: First change to detect overruns in multidimensional arrays (#819)
|
2010-04-18 11:08:29 +02:00 |
Robert Reif
|
bee4608b27
|
Fixed #1613 (False -s positive: Template instantiation hides typedef with same name)
|
2010-04-18 09:13:55 +02:00 |
Robert Reif
|
d90f59051c
|
Fixed #1612 (false positive: The function can be const)
|
2010-04-18 07:53:39 +02:00 |
Daniel Marjamäki
|
6db4ab68ef
|
Unit Testing: added assertions for todo testcases to detect changes
|
2010-04-17 15:01:18 +02:00 |
Robert Reif
|
d851b4a3d4
|
Fixed #1607 (false positive: variable is assigned a value that is never used)
|
2010-04-17 14:23:29 +02:00 |
Daniel Marjamäki
|
9cd8bd842e
|
STL: fixed false negative when erasing invalidated iterator
|
2010-04-17 13:37:04 +02:00 |
Daniel Marjamäki
|
6371327487
|
Unit Testing: Added assert for todo testcase to catch changes.
|
2010-04-17 12:51:59 +02:00 |
Daniel Marjamäki
|
e417d3080a
|
Unit Testing: Added assert for todo testcase to catch changes.
|
2010-04-17 12:49:27 +02:00 |
Daniel Marjamäki
|
b19113426f
|
Unused struct member: Fixed false positives
|
2010-04-17 11:16:05 +02:00 |
Daniel Marjamäki
|
c0e9a546f7
|
Refactoring: Refactoring the Settings class
|
2010-04-17 09:23:54 +02:00 |
Reijo Tomperi
|
1b8799e7ef
|
Add test cases for --template parsing
|
2010-04-16 18:28:00 +03:00 |
Daniel Marjamäki
|
c9fb5f87e0
|
Fixed #1600 (false positive: After insert, the iterator 'aI' may be invalid)
|
2010-04-16 16:56:55 +02:00 |
Robert Reif
|
61b5a21ac9
|
Fixed #1605 (false positive: uninitialized variable)
|
2010-04-16 16:25:57 +02:00 |