Daniel Marjamäki
|
75b0430ba5
|
Token::strValue: fixed handling of backslash
|
2015-06-07 11:25:33 +02:00 |
Alexander Mai
|
b6264e4a00
|
#6759 segmentation fault (invalid code) in Tokenizer::simplifyTokenList2. #6760 segmentation fault (invalid code) in Tokenizer::simplifyTypedef. Fix crashes
|
2015-06-06 13:11:32 +02:00 |
Daniel Marjamäki
|
d208e763df
|
astyle formatting
|
2015-06-05 14:34:53 +02:00 |
Daniel Marjamäki
|
e36cc9f6d9
|
stringLiteralWrite: Updated error message
|
2015-06-05 14:34:13 +02:00 |
amai
|
5fd9dd04fa
|
#6757 segmentation fault (invalid code) in Tokenizer::simplifyTypedef. Fix crash
|
2015-06-04 19:00:35 +02:00 |
Alexander Mai
|
5f4902c613
|
6755 segmentation fault (invalid code) in Token::isAssignmentOp. #6756 segmentation fault (invalid code) in Tokenizer::simplifyTypedef. Fix two crashes.
|
2015-06-04 17:46:52 +02:00 |
amai2012
|
f2d397882f
|
#6753 segmentation fault (invalid code) in CheckMemoryLeakStructMember::checkStructVariable. #6754 segmentation fault (invalid code) in CheckUnusedVar::checkFunctionVariableUsage_iterateScopes. Trivial fixes to avoid null pointer access
|
2015-06-03 17:17:53 +02:00 |
amai2012
|
87bf09c0ae
|
#6751 segmentation fault (invalid code) in Tokenizer::simplifyTypedef.
|
2015-06-03 11:39:30 +02:00 |
amai2012
|
ed5a4127e8
|
#6749 segmentation fault (invalid code) in Tokenizer::copyTokens. #6750 segmentation fault (invalid code) in Tokenizer::simplifyTypedef.
|
2015-06-03 10:39:19 +02:00 |
amai2012
|
d36c84553f
|
#6748 segmentation fault (invalid code) in Tokenizer::simplifyTypedef. Throw error from now (member-function) Tokenizer::processFunc
|
2015-06-03 08:59:38 +02:00 |
Alexander Mai
|
d86ac9e3ed
|
#6747 segmentation fault (invalid code) in Token::isAttributeConstructor
|
2015-06-02 22:26:17 +02:00 |
Alexander Mai
|
09f2cff519
|
#6746 segmentation fault (invalid code) in Tokenizer::simplifyTypedef
|
2015-06-02 21:52:08 +02:00 |
Alexander Mai
|
6e1b5a0a53
|
#6744 segmentation fault (invalid code) in Tokenizer::simplifyPointerToStandardType. #6745 segmentation fault (invalid code) in Tokenizer::simplifyTypedef
|
2015-06-02 21:20:41 +02:00 |
Alexander Mai
|
454d4573b4
|
#6742 segmentation fault (invalid code) in SymbolDatabase::SymbolDatabase. Fix in Type::initBaseInfo()
|
2015-06-02 20:15:21 +02:00 |
Alexander Mai
|
f348c8eebe
|
#6741 segmentation fault (invalid code) in Tokenizer::simplifyTypedef.
|
2015-06-02 20:09:12 +02:00 |
Alexander Mai
|
7fc9930b38
|
#6740 segmentation fault (invalid code) in Tokenizer::simplifyFunctionPointers. Throw syntaxError instead
|
2015-06-02 19:48:20 +02:00 |
Alexander Mai
|
a3bdd90df5
|
#6739 segmentation fault (invalid code) in Tokenizer::simplifyTypedef. Fix segfault in the specified method
|
2015-06-02 19:40:20 +02:00 |
Alexander Mai
|
be3690920a
|
#6738 Avoid segfault on garbage code in Tokenizer::simplifyTypedef()
|
2015-06-02 19:07:26 +02:00 |
amai2012
|
7895f1c2bb
|
#6737 Avoid segfault on garbage code inside Type::initBaseInfo. Disable test TestGarbage::garbageCode58() for #6732 since it triggers memory corruption still
|
2015-06-02 18:28:43 +02:00 |
Martin Ettl
|
0a148a9433
|
Running astyle, no functional changes.
|
2015-06-01 22:09:56 +02:00 |
amai2012
|
4b2fb4b76c
|
#6735, #6735 Fix segfault on garbage code
Throw syntax error instead
|
2015-06-01 21:47:06 +02:00 |
Daniel Marjamäki
|
4bde4d5a4a
|
updated style messages
|
2015-06-01 21:22:47 +02:00 |
Alexander Mai
|
fb2bd978ad
|
#6732 segmentation fault (invalid code) in Tokenizer::simplifyEmptyNamespaces. Add testcase, segfault seems to have been fixed by previous commit. Run astyle
|
2015-06-01 13:46:13 +02:00 |
amai2012
|
b81e82d462
|
#6733 segmentation fault (invalid code) in Tokenizer::simplifyAddBracesPair
Avoid access to NULL-token by throwing an InternalError
|
2015-06-01 13:27:32 +02:00 |
Frank Zingsheim
|
6857dbe864
|
#6729 Simplification reference to constants.
|
2015-06-01 10:00:03 +02:00 |
Simon Martin
|
519bd7007a
|
Ticket #6588: Properly detect whether the condition in a ternary operator is constant on C input.
|
2015-05-31 22:40:13 +02:00 |
Simon Martin
|
85b47636dc
|
Simplify known variableswhen they are at the end of a statement.
|
2015-05-30 23:34:50 +02:00 |
orbitcowboy
|
9c6ce2b06b
|
Merge pull request #605 from simartin/no_space_in_decl
Removed useless space in the declaration for Tokenizer::Simplifyfunctionpointers
|
2015-05-30 21:22:14 +02:00 |
Simon Martin
|
c73876b3a8
|
Removed useless space in the declaration for Tokenizer::Simplifyfunctionpointers.
|
2015-05-30 21:00:41 +02:00 |
Simon Martin
|
98e6dca4f2
|
Ticket #6713: Properly detect ternary operator in valueFlowForward.
|
2015-05-30 20:55:36 +02:00 |
Alexander Mai
|
ddc80246c2
|
#6724 segmentation fault (invalid code) Token::isAttributeConstructor. Local fix to avoid access to NULL-token
|
2015-05-30 19:15:53 +02:00 |
Alexander Mai
|
4050d56169
|
#6722 segmentation fault (invalid code) in Tokenizer::simplifyTypedef
|
2015-05-29 21:44:00 +02:00 |
Martin Ettl
|
d5d6d7fbb8
|
Running astyle, no functional changes.
|
2015-05-29 20:20:05 +02:00 |
amai2012
|
5b347c537b
|
Fix #6720 and #6721 (Crashes on garbage code)
Local fixes to avoid access to NULL-token
|
2015-05-29 19:30:55 +02:00 |
Martin Ettl
|
9236ea4a20
|
Running astyle, no functional changes.
|
2015-05-29 19:15:41 +02:00 |
amai2012
|
e41beb4f8d
|
Fix #6718 and #6719 (crashes on garbage code).
Local fixes avoiding access to NULL-token. Also minor correction to
TemplateSimplifier::hasComplicatedSyntaxErrorsInTemplates()
|
2015-05-29 18:34:00 +02:00 |
Alexander Mai
|
098391ee32
|
#6715 segmentation fault (invalid code) in TemplateSimplifier::hasComplicatedSyntaxErrorsInTemplates. Harden TemplateSimplifier::hasComplicatedSyntaxErrorsInTemplates()
|
2015-05-28 21:38:20 +02:00 |
Alexander Mai
|
8adff0a31b
|
#6712 segmentation fault (invalid code) in CheckExceptionSafety::checkRethrowCopy. Local fix to avoid accessing NULL-token
|
2015-05-28 21:12:02 +02:00 |
Alexander Mai
|
133d8f9a91
|
#6706 segmentation fault (invalid code) in tokenlist::compilePrecedence3. Local fix to prevent acess to NULL-token
|
2015-05-27 21:39:31 +02:00 |
Alexander Mai
|
94d376e228
|
Merge branch 'master' of https://github.com/danmar/cppcheck
|
2015-05-27 21:13:18 +02:00 |
Alexander Mai
|
e498f8493e
|
#6705 segmentation fault (invalid code) in CheckVaarg::va_list_usage. Local fix i nchecker preventing SIGSEGV on NULL-token
|
2015-05-27 21:12:33 +02:00 |
Daniel Marjamäki
|
22c608dd2c
|
Reverted fix for #6710. It didnt work as I wanted.
|
2015-05-27 20:50:03 +02:00 |
Daniel Marjamäki
|
0836bf3d33
|
astyle formatting
|
2015-05-27 20:26:26 +02:00 |
Daniel Marjamäki
|
152ea116fa
|
Fixed #6710 (valueFlowBeforeCondition: function call in loop seems to cause FN)
|
2015-05-27 20:25:58 +02:00 |
Simon Martin
|
50e5595845
|
Ticket #6708: Check that a function name is not a reserved keyword in SymbolDatabase::isFunction instead of later.
|
2015-05-26 00:28:08 +02:00 |
amai2012
|
729b240d9c
|
Refactoring (compiler warnings and a typo)
|
2015-05-25 23:15:59 +02:00 |
Alexander Mai
|
d4550c763d
|
Exit code shall indicate that an internal error (syntax error) has been found. Add some const. Run astyle
|
2015-05-25 21:15:55 +02:00 |
amai2012
|
f1c4cc6d55
|
Merge pull request #598 from simartin/useless_str_check
Removed unnecessary string comparison in Tokenizer::simplifyKnownVariablesSimplify
|
2015-05-25 19:13:33 +02:00 |
Daniel Marjamäki
|
a8d7897471
|
Fixed travis failure
|
2015-05-25 18:19:40 +02:00 |
Daniel Marjamäki
|
a9db06c641
|
longCast: Only warn when original name is 'long'. avoids some FPs when typedef types are used.
|
2015-05-25 18:06:20 +02:00 |
Daniel Marjamäki
|
c0b33d2fef
|
Fixed #6707 (new check: possible truncation when assigning int result to long)
|
2015-05-25 10:02:17 +02:00 |
Alexander Mai
|
e28e9be82f
|
Add TODO testcase for #5738. Refactoring: add some const
|
2015-05-25 08:20:14 +02:00 |
Daniel Marjamäki
|
eb0db322eb
|
Fixed #6560 (ValueFlow: handling ternary operator better in valueFlowSubFunction)
|
2015-05-24 17:02:00 +02:00 |
Simon Martin
|
c58fab07d6
|
Removed unnecessary string comparison in Tokenizer::simplifyKnownVariablesSimplify.
|
2015-05-24 13:13:46 +02:00 |
Alexander Mai
|
7f15873759
|
Refactoring in tokenize.cpp: Fix cppcheck warning, add some const, fix typo from previous refactoring
|
2015-05-24 11:43:46 +02:00 |
Alexander Mai
|
7002f9df35
|
Merge branch 'master' of https://github.com/danmar/cppcheck
|
2015-05-24 09:43:52 +02:00 |
Alexander Mai
|
394160184a
|
Refactoring: Replace complex if/else cascade by search in a container. Remove redundant plain arrays (in favour of container)
|
2015-05-24 09:43:17 +02:00 |
Simon Martin
|
26f244e638
|
Ticket #6704: Tighten pattern skipping base class declarations and fix crash upon garbage code.
|
2015-05-24 08:16:34 +02:00 |
Simon Martin
|
898ba783bf
|
Ticket #6703: Rewrite pattern in SymbolDatabase to avoid crash upon garbage code.
|
2015-05-23 23:18:59 +02:00 |
Alexander Mai
|
7416d6add9
|
Another fix for handling of final/override specifiers in Tokenizer::simplifyKeyword() including a testcase. Ran astyle
|
2015-05-23 20:51:15 +02:00 |
amai2012
|
7c23f4e611
|
Merge pull request #596 from simartin/ticket_6620-6685
Ticket #6620, #6685: Reserved keywords cannot be function names.
|
2015-05-23 13:47:07 +02:00 |
Alexander Mai
|
e8d84bc6b4
|
#6700 const vs non-const inside assert() statement. Function matching in symboldatabase did not honor const'ness of a class instance variable
|
2015-05-23 11:56:11 +02:00 |
Simon Martin
|
67eab0cd7c
|
Ticket #6620, #6685: Reserved keywords cannot be function names.
|
2015-05-23 11:29:58 +02:00 |
Alexander Mai
|
f0bc300198
|
#6510 False positive performance warning for std::list::size(). Fix this and other similar false positives. Refactoring of Variable::isStlType(), use fail-safe std::set instead of plain array. Run astyle
|
2015-05-17 20:02:41 +02:00 |
amai2012
|
20842fb1fc
|
#6690 override and final qualifiers plus less than operator results in a syntax error
Tokenizer::simplifyKeyword() is now able to handle all combinations out
of const|final|override
|
2015-05-17 13:02:13 +02:00 |
PKEuS
|
3ce4e68ca6
|
Refactorization: Make use of do-loops to avoid redundant Token::Match() calls
|
2015-05-13 13:40:40 +02:00 |
PKEuS
|
b946b74e09
|
Fixed crash #6686
|
2015-05-13 13:02:33 +02:00 |
PKEuS
|
4f00189ee1
|
Fixed crash #6684
|
2015-05-12 14:00:43 +02:00 |
PKEuS
|
1b6e4589da
|
Implemented array size calculation for n-dimensional arrays with arbitrary dereferencing (#6657)
|
2015-05-11 17:30:11 +02:00 |
PKEuS
|
33277c6110
|
Fixed false positive #6679, fixed unit test for #6663.
|
2015-05-11 13:10:11 +02:00 |
PKEuS
|
d5302953c7
|
Merge pull request #594 from simartin/ticket_6680
Ticket #6680: Members can be initialized by operator>>.
|
2015-05-10 22:53:26 +02:00 |
PKEuS
|
8bbf8f1b50
|
Merge pull request #593 from simartin/ticket_6675
Ticket #6675: Fixed pattern detecting C++ 11 delegated constructors.
|
2015-05-10 22:50:49 +02:00 |
PKEuS
|
f8d8856d09
|
Merge pull request #592 from simartin/ticket_6666
Ticket #6666: Don't crash upon garbage code in CheckLeakAutoVar::checkScope
|
2015-05-10 22:49:25 +02:00 |
Simon Martin
|
da302b3912
|
Ticket #6680: Members can be initialized by operator>>.
|
2015-05-10 14:27:15 +02:00 |
PKEuS
|
77c5381612
|
Support C++14 [[deprecated]]
|
2015-05-10 12:36:28 +02:00 |
Simon Martin
|
27e88fdc47
|
Ticket #6666: Don't crash upon garbage code in CheckLeakAutoVar::checkScope.
|
2015-05-10 11:35:33 +02:00 |
Simon Martin
|
25aff001e0
|
Ticket #6675: Fixed pattern detecting C++ 11 delegated constructors.
|
2015-05-10 11:27:47 +02:00 |
Daniel Marjamäki
|
075b07fb6c
|
stringLiteralWrite: only check in function scopes
|
2015-05-10 10:34:13 +02:00 |
Alexander Mai
|
96891dface
|
#6276 clang: -fsanitize=integer warnings. Fix remaining issues in preprocessor.cpp.
|
2015-05-09 19:26:31 +02:00 |
PKEuS
|
22fbc18fb7
|
Fixed false positive for *a++ in for-loop condition
Moved unit test to testgarbage.cpp
|
2015-05-07 20:34:57 +02:00 |
Alexander Mai
|
1c5e9e47c5
|
#6671 false positive: incorrect sizeofwithsilentarraypointer with reference to array.
|
2015-05-06 07:38:26 +02:00 |
Alexander Mai
|
6f96634759
|
#6276 clang: -fsanitize=integer warnings. Fix unwanted integer overflow in TemplateSimplifier::useDefaultArgumentValues() and Tokenizer::simplifyQtSignalsSlots()
|
2015-05-03 15:21:58 +02:00 |
Daniel Marjamäki
|
71cb8e9f64
|
Fixed --errorlist output for new checker stringLiteralWrite
|
2015-05-03 15:02:34 +02:00 |
Daniel Marjamäki
|
baa1ae079d
|
New check: negative size in array declaration. Ticket #1760
|
2015-05-03 15:00:47 +02:00 |
Daniel Marjamäki
|
e837bad01d
|
Fixed false positive in new stringLiteralWrite checker
|
2015-05-03 12:34:27 +02:00 |
Matthias Krüger
|
6b80e61934
|
fix internal warning; was
[lib/checkstring.cpp:43]: (warning) Found simple pattern inside Token::Match() call: "] ="
|
2015-05-03 10:59:58 +02:00 |
Daniel Marjamäki
|
666377da1c
|
Updated error message for stringLiteralWrite
|
2015-05-03 10:48:28 +02:00 |
Daniel Marjamäki
|
9d31afb663
|
Fixed #1748 (Undefined Behavior: Modification of string literal)
|
2015-05-03 10:44:40 +02:00 |
PKEuS
|
70a1e11ada
|
Set version to 1.69.99/1.70 dev
|
2015-05-03 08:15:13 +02:00 |
Daniel Marjamäki
|
ca1f19b6d4
|
Fixed #6378 (valueFlowForward: decrement not handled)
|
2015-05-02 17:30:09 +02:00 |
Daniel Marjamäki
|
aab1d83075
|
Updated error message. write variable name.
|
2015-05-02 16:55:17 +02:00 |
PKEuS
|
4cbbd44d49
|
Fixed false positive #6663: Better support for loops in CheckStl::readingEmptyStlContainer()
|
2015-05-02 14:09:48 +02:00 |
Daniel Marjamäki
|
dc54676289
|
Reverted my changes I made by mistake in previous commit
|
2015-05-02 14:01:31 +02:00 |
Daniel Marjamäki
|
28985d1baa
|
manual: Document the cwe attribute
|
2015-05-02 11:43:42 +02:00 |
Daniel Marjamäki
|
a79791cb81
|
1.69: Set versions
|
2015-05-01 18:51:33 +02:00 |
Frank Zingsheim
|
9bea7bec92
|
Fixed #6659 (heap user after free: kernel: sm750_accel.c)
|
2015-05-01 18:28:00 +02:00 |
Frank Zingsheim
|
4ceed51bfb
|
Fixed #6607 (Crash triggered by TemplateSimplifier::useDefaultArgumentValues)
|
2015-05-01 17:13:02 +02:00 |
Alexander Mai
|
fa42f554a8
|
cppcheck compilation fails with g++4.6.3 (#5929). Patch supplied by mavik1
|
2015-05-01 16:25:27 +02:00 |
orbitcowboy
|
785df82513
|
#6660: Fixed crash in Tokenize::SetVarid().
|
2015-04-29 09:18:54 +02:00 |
Daniel Marjamäki
|
88f59ad7e8
|
Partial fix for #6656 (Allow that CWE is mapped for error message)
|
2015-04-25 17:48:11 +02:00 |