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
|
58e26ab1fc
|
Fixed Cppcheck warning about possible null pointer dereference
|
2010-05-01 11:55:26 +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 |
Eric Sesterhenn
|
344b6bf434
|
Fixed #1636 (Fix false positive with strncpy termination check)
|
2010-04-30 18:08:32 +02:00 |
Eric Sesterhenn
|
b261e5df25
|
Fixed #1634 (Null character not correctly tokenized)
|
2010-04-29 18:30:23 +02:00 |
Robert Reif
|
c79b9a8aac
|
Fixed #1631 (Tokenizer: remove register keyword)
|
2010-04-29 07:17:38 +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
|
9430089532
|
Fixed #1626 ('Unusual pointer arithmetic' false positive)
|
2010-04-26 21:43:01 +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
|
cda6fdb73d
|
astyle formatting
|
2010-04-25 14:56:04 +02:00 |
Martin Ettl
|
ec935178fc
|
reduced compiler warning of gcc-4.4 about initialization order in Ctor list of executionpath.h
|
2010-04-25 13:14:58 +02:00 |
firewave
|
52b84963e6
|
Fixed Access Violation with --enable=style when no tokens exist
|
2010-04-25 12:35:09 +02:00 |
firewave
|
f1d1d60924
|
Added missing include
|
2010-04-25 12:10:50 +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
|
5b99f2cef1
|
--errorlist : don't show inconclusive messages in the output because those are disabled
|
2010-04-24 19:40:48 +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 |
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 |
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
|
7d391b37c9
|
astyle formatting
|
2010-04-22 20:07:41 +02:00 |
Daniel Marjamäki
|
eda18004bd
|
Cleanup CheckBufferOverrun
|
2010-04-22 19:58:44 +02:00 |
Daniel Marjamäki
|
e28dbda5fa
|
Refactoring: Improved the checkFunctionCalls, warning when size argument is given through char constant
|
2010-04-22 19:55:07 +02:00 |
Daniel Marjamäki
|
c0d0b0f63f
|
Refactoring: Moved function call check to checkFunctionCalls
|
2010-04-22 19:49:02 +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
|
f378b382a0
|
CheckBufferOverrun: simplify checking of read|write problems
|
2010-04-21 20:06:59 +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 |