Daniel Marjamäki
|
f86d8244fa
|
Fixed #8022 (DacaWrongData: checkIgnoredReturnValue, hana)
|
2017-06-10 08:23:26 +02:00 |
Daniel Marjamäki
|
3b805e7001
|
fix testrunner (WRONG_DATA usage)
|
2017-06-05 18:49:20 +02:00 |
Daniel Marjamäki
|
150d2aa902
|
Refactor and rename CHECK_WRONG_DATA
|
2017-06-05 18:41:15 +02:00 |
Daniel Marjamäki
|
20b27cfd51
|
avoid some WrongData warnings
|
2017-06-04 18:27:42 +02:00 |
Daniel Marjamäki
|
1439b08fbd
|
Fixed -DDACA2 compiler errors
|
2017-06-04 14:14:42 +02:00 |
Ayaz Salikhov
|
28aa939d69
|
iwyu - include what you use
|
2017-05-27 04:33:47 +02:00 |
Daniel Marjamäki
|
d3d3d31613
|
Clarify 'invalidFunctionArg' messages
|
2017-05-23 11:57:25 +02:00 |
Daniel Marjamäki
|
9cdda53fb9
|
CheckFunctions::memsetZeroBytes: Add CHECK_WRONG_DATA to avoid crashes
|
2017-04-30 18:58:51 +02:00 |
Daniel Marjamäki
|
3f069d9e44
|
Write two FIXME comments, create library configuration to replace hardcoded checks
|
2017-04-23 15:34:45 +02:00 |
Daniel Marjamäki
|
101dc28afa
|
Refactoring: Moved checkMemset.. from CheckOther to CheckFunctions
|
2017-04-23 07:53:41 +02:00 |
Daniel Marjamäki
|
f601a6903f
|
Updated comment
|
2017-04-23 06:44:38 +02:00 |
Matthias Krüger
|
2744a9456f
|
fix [lib/checkfunctions.cpp:300]: (warning) Found simple pattern inside Token::Match() call: "new"
|
2017-04-22 21:53:31 +02:00 |
Daniel Marjamäki
|
e5b9e2a898
|
--check-library: less warnings
|
2017-04-22 21:23:46 +02:00 |
Daniel Marjamäki
|
f8e9071de1
|
CheckFunction: In the <valid> check handle possible/conditional/inconclusive values better
|
2017-04-20 22:14:54 +02:00 |
Daniel Marjamäki
|
3fbcc0cd3b
|
Refactor CheckFunctions::invalidFunctionUsage
|
2017-04-20 19:57:39 +02:00 |
Daniel Marjamäki
|
e43c078c5e
|
checkfunctions: code cleanup
|
2017-04-20 17:42:25 +02:00 |
Daniel Marjamäki
|
d252a64ec8
|
Cleanup CheckFunctions::checkIgnoredReturnValue
|
2017-04-12 10:44:08 +02:00 |
Daniel Marjamäki
|
41a64f6d1f
|
Fix crash
|
2017-04-11 20:16:33 +02:00 |
PKEuS
|
b1f4bd7504
|
Refactorization: Reimplemented Settings::_enabled as a bitfeld instead of std::set (#7995)
|
2017-04-11 11:49:26 +02:00 |
Daniel Marjamäki
|
f5f141ff42
|
astyle formatting
[ci skip]
|
2017-04-07 19:19:41 +02:00 |
Daniel Marjamäki
|
7d8af7bdca
|
Fixed #7979 (crash (nr 2): CheckFunctions::checkIgnoredReturnValue())
|
2017-04-07 13:18:53 +02:00 |
Daniel Marjamäki
|
de80d41ef4
|
CheckFunctions::checkIgnoredReturnValue: Dont warn in C++11 initializer lists in function arguments
|
2017-04-02 19:44:27 +02:00 |
Daniel Marjamäki
|
6874f27e73
|
Added CHECK_WRONG_DATA() that can be used to avoid crashes/hangs in release binaries
|
2017-03-26 11:23:39 +02:00 |
Daniel Marjamäki
|
5d7fa590af
|
Don't check ignored function return value in ({..}). Ticket: #7934
|
2017-03-08 10:23:38 +01:00 |
Daniel Marjamäki
|
5ea9519586
|
UseRetVal: Fix FN for methods
|
2017-03-05 22:23:16 +01:00 |
Daniel Marjamäki
|
ecc59859e1
|
Don't simplify _Bool in TokenList
|
2017-03-04 11:13:28 +01:00 |
Daniel Marjamäki
|
774a8979a3
|
Fixed #7095 (False positive: (warning) Return value of function to_string() is not used.)
|
2017-02-12 16:50:45 +01:00 |
Daniel Marjamäki
|
7c800d6ed7
|
Fixed #7447 (FP: ignoredReturnValue on C++11 uniform initialization)
|
2017-02-12 16:33:28 +01:00 |
amai2012
|
0bec604627
|
Repair CWE mapping for calling obsolete functions
|
2016-08-04 13:55:38 +02:00 |
PKEuS
|
dde6f5eaea
|
Do not warn about alloca() in C89 mode (#7558)
|
2016-06-20 09:30:41 +02:00 |
Roberto Martelloni
|
dce7128f30
|
CWE mapping of duplicateExpression, duplicateBreak (CWE561), unreachableCode, unsignedLessThanZero, unsignedPositive, pointerLessThanZero, pointerPositive, varFuncNullUB, nanInArithmeticExpression, commaSeparatedReturn, (#797)
ignoredReturnValue
|
2016-05-22 13:17:38 +02:00 |
Roberto Martelloni
|
afa8ad0ebe
|
CWE mapping of selfAssignment, wrongmathcall, unpreciseMathCall, memsetZeroBytes, memsetFloat, memsetValueOutOfRange, clarifyCalculation, clarifyStatement
|
2016-05-14 10:13:33 +01:00 |
amai2012
|
f5e8a72dc2
|
#7438 Incorrect alloca() avoidance suggestion
|
2016-04-08 11:21:53 +02:00 |
Daniel Marjamäki
|
5e10e680da
|
CWE: refactoring. use constants instead of magic numbers.
|
2016-01-25 20:01:48 +01:00 |
Roberto Martelloni
|
5ce69da02d
|
Mapped 26 errors to their CWEs ID.
|
2016-01-24 20:53:05 +00:00 |
Lauri Nurmi
|
996c9244d8
|
Update copyright year to 2007-2016.
|
2016-01-01 15:34:45 +02:00 |
Daniel Marjamäki
|
34449ae857
|
Use simpleMatch instead of Match for simple pattern, hope this makes Travis happy
|
2015-12-26 02:21:52 +01:00 |
Daniel Marjamäki
|
cea40168e0
|
Code fix. Used wrong variable in condition, leading to segfaults.
|
2015-12-26 01:52:43 +01:00 |
Daniel Marjamäki
|
293bd2eead
|
Fixed #6990 (false negative: Invalid abs() argument nr 1. A non-boolean value is required.)
|
2015-12-26 01:38:41 +01:00 |
PKEuS
|
940d569980
|
Refactorization: Removed redundant %any% patterns.
|
2015-12-24 14:40:48 +01:00 |
Dmitry-Me
|
7303790a73
|
Pre-check to reduce number of match checks
|
2015-12-24 13:07:47 +03:00 |
Matthias Krüger
|
87ce88d6ab
|
CheckFunctions::checkProhibitedFunctions(): don't warn about alloca when --enable=warning is not given.
|
2015-11-25 22:05:51 +01:00 |
Benjamin Bannier
|
e84fe33ad0
|
Include cmath for std::fabs
|
2015-11-25 10:16:41 +01:00 |
Alexander Mai
|
b7030fcfa1
|
Fix compiler error (VS2010) and warning
|
2015-11-22 16:56:44 +01:00 |
PKEuS
|
f516de8633
|
Moved a few checks from CheckOther to CheckFunctions
|
2015-11-22 13:49:10 +01:00 |
Matthias Krüger
|
a610ef9ce8
|
fix internal warning:
[lib/checkfunctions.cpp:44]: (warning) Found simple pattern inside Token::Match() call: "alloca ("
|
2015-11-22 11:00:36 +01:00 |
PKEuS
|
57d1196386
|
Replaced CheckNonReentrantFunctions and CheckObsoleteFunctions by generic CheckFunctions which is based on Library (#6529)
|
2015-11-22 09:18:07 +01:00 |