Paul Fultz II
2ee880752f
Fix 10410: FP nullPointerRedundantCheck on if (a || b ) followed by if ( b ) ( #3427 )
2021-08-29 15:39:41 +02:00
Daniel Marjamäki
06249c08f3
argumentSize: Clarify error message
2021-08-29 15:38:58 +02:00
Daniel Marjamäki
0d31486264
Fixed #10403 (Wrong AST for destructor call)
2021-08-28 22:11:30 +02:00
Daniel Marjamäki
43fa7d2ebe
misra; Robustness. Fix AttributeErrors. getEssentialType might return None.
2021-08-28 15:27:35 +02:00
Daniel Marjamäki
ca047e57bf
Switch from http to https on our sourceforge webpage
2021-08-28 12:46:54 +02:00
Daniel Marjamäki
08d02432a4
removed old daca2 script
2021-08-28 12:11:14 +02:00
Paul Fultz II
c0765c451d
Fix 10139: AST broken; std::enable_if_t<> ( #3424 )
2021-08-28 09:28:56 +02:00
Paul Fultz II
4566e0e439
Fix 10148: False positive: knownConditionTrueFalse in for loop due to &= ( #3425 )
2021-08-28 09:28:29 +02:00
Daniel Marjamäki
6541efdb9a
fix selfcheck warning
2021-08-27 22:33:03 +02:00
Daniel Marjamäki
a55b0c332a
Fixed #10095 (False positive: unreadVariable)
2021-08-27 17:37:42 +02:00
orbitcowboy
58dad23444
windows.cfg: Added support for more constants 'Winerror.h: COM Error Codes (XACT, SCHED, OLE)', taken from https://docs.microsoft.com/en-us/windows/win32/com/com-error-codes-2
2021-08-27 08:57:56 +02:00
orbitcowboy
f027124756
windows.cfg: Added constants from Winerror.h: Winerror.h: COM Error Codes (Generic), taken from https://docs.microsoft.com/en-us/windows/win32/com/com-error-codes-1
2021-08-27 08:51:21 +02:00
orbitcowboy
54523e0d4f
windows.cfg: Added constants from Winerror.h: COM Error Codes (Security and Setup), taken from https://docs.microsoft.com/en-us/windows/win32/com/com-error-codes-4?redirectedfrom=MSDN
2021-08-27 08:45:30 +02:00
Paul Fultz II
740becbddf
Fix 10348: FP knownConditionTrueFalse with condition variable in do ... while loop ( #3422 )
2021-08-27 05:46:57 +02:00
Paul Fultz II
712ff1c073
Fix 10436: hang: valueFlowSubFunction 'ispunct(c)..' ( #3423 )
2021-08-27 05:46:33 +02:00
chrchr-github
f77d9db852
Add test case for #10383 ( #3421 )
2021-08-26 19:37:29 +02:00
chrchr-github
b2852de456
Amend test cases for #10215 ( #3420 )
2021-08-26 19:37:04 +02:00
chrchr-github
d9b6940070
Cleanup: unnecessary includes, fix include order, fix unreferenced va… ( #3418 )
2021-08-26 19:36:31 +02:00
Daniel Marjamäki
f31fbba54a
Token::typeDecl: Fix endless recursion for code:
...
void f()
{
auto val = val;
}
I did not manage to pinpoint a good location to put a unit test. However this will be tested when daca@home runs the package gcc-avr.
2021-08-26 19:03:35 +02:00
Paul Fultz II
1cd9d0479d
Fix 10433: assertion failure in ValueFlow (Interval::fromValues) ( #3419 )
2021-08-26 07:46:40 +02:00
orbitcowboy
b0407ea6b4
Added comment to ticket number, there are no real changes [ci skip]
2021-08-25 21:14:19 +02:00
Paul Fultz II
8aa37218c2
Fix 10400: FP nullPointer - for loop condition ( #3417 )
2021-08-25 20:33:41 +02:00
Daniel Marjamäki
11916171fe
Fix crash in programmemory, crash found in daca@home package system-root
2021-08-25 06:56:19 +02:00
Paul Fultz II
f7ddd7a35d
Fix 10430: FP knownConditionTrueFalse with bool from unsigned char ( #3416 )
2021-08-25 04:51:54 +02:00
Paul Fultz II
8ddc5764f8
Fix 10425: False positive: returnDanglingLifetime when taking address of captured variable ( #3415 )
2021-08-25 04:06:03 +02:00
chrchr-github
5868d01e80
THREADING_MODEL_WIN: replace Win32 API calls with std::async, std::mutex ( #3408 )
2021-08-24 20:39:43 +02:00
Daniel Marjamäki
37ef29889b
Fix 10424: ExpressionAnalyzer assertion failure in librevisa
2021-08-24 16:06:51 +02:00
orbitcowboy
7d14f461f0
#8860 : Added regression test
2021-08-24 14:36:13 +02:00
Paul Fultz II
524db1c756
Fix 10420: assertion error when analysing juce ( #3413 )
2021-08-23 11:12:42 +02:00
Paul Fultz II
865163b2ba
Add library configurations for free functions like std::size, std::empty, etc ( #3410 )
2021-08-23 09:03:48 +02:00
orbitcowboy
4ff0db1ec4
#8631 : Added regression test
2021-08-23 08:51:54 +02:00
Daniel Marjamäki
e1d0db38ee
Fixed #10380 (FP: misra-c2012-20.9)
2021-08-22 21:13:27 +02:00
orbitcowboy
7fc145d076
#7802 : Added a regression test
2021-08-22 20:17:18 +02:00
orbitcowboy
98a84b62a3
#2019 : Added regression test
2021-08-22 20:01:25 +02:00
Daniel Marjamäki
165d48c846
fix gcc compiler warnings
2021-08-22 18:06:54 +02:00
Daniel Marjamäki
ac662ec07d
misra: map cppcheck errors
2021-08-22 17:02:37 +02:00
Daniel Marjamäki
db57efa486
CheckBufferOverrun: Reimplement CheckBufferOverrun::argumentSize check
2021-08-22 16:37:41 +02:00
Daniel Marjamäki
0662c94d83
misra: implement rule 21.20
2021-08-22 07:38:07 +02:00
Daniel Marjamäki
ec301b2447
cppcheckdata.py: fixed Value::tokvalue
2021-08-22 05:56:16 +02:00
PeterSchops
7199dde161
Fix issue in misra 9 x ( #3409 )
2021-08-21 22:01:24 +02:00
chrchr-github
ee4d90b4fa
Refactor: fix member shadowing, return by const ref ( #3407 )
2021-08-21 22:00:45 +02:00
Paul Fultz II
a0c37ceba2
Fix FP: Set correct bounds for interval ( #3411 )
2021-08-21 21:17:05 +02:00
Paul Fultz II
d30f42e0da
Fix FP when calling a function in a condition ( #3412 )
2021-08-21 18:52:11 +02:00
Daniel Marjamäki
e4f0096255
TestSimplifyUsing; code cleanup
2021-08-21 10:39:53 +02:00
Daniel Marjamäki
ca50dea97d
Fix in Tokenizer::simplifyUsing for non-scopes
2021-08-21 10:10:40 +02:00
Daniel Marjamäki
96196875b4
Temporary suppression simplifyUsingUnmatchedBodyEnd
2021-08-20 17:16:02 +02:00
Daniel Marjamäki
d73ab0ad96
Tokenizer::simplifyUsing; Fixed bug when enum class is used
2021-08-20 16:08:01 +02:00
Paul Fultz II
e62cdbb664
Deduce symbolic values from conditions ( #3406 )
2021-08-19 22:01:55 +02:00
Daniel Marjamäki
6e4acbd3bc
misra: implement rule 21.19
2021-08-19 06:58:49 +02:00
chrchr-github
187d45a8df
THREADING_MODEL_WIN: Create a new CppCheck object for every file to be analysed in multi-thread mode. This fixes existing .a1 files not getting used due to changing hashes (caused by suppressions from previous files) and matches the behavior in THREADING_MODEL_FORK. ( #3405 )
2021-08-17 20:51:31 +02:00