Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fixes and workarounds for
cppcheck
2.11 withuninitvar
checks reactivated, andlegacyUninitvar
suppressed globally (as before):src/internal.c:wolfSSL_DtlsUpdateWindow()
:shiftTooManyBitsSigned
andintegerOverflowCond
(true positive, fixed);src/ssl.c:wolfSSL_GetSessionFromCache()
:autoVariables
(true positive, intentional and now suppressed);wolfcrypt/src/asn.c
: severaluninitvars
inEccSpecifiedECDomainDecode()
,wc_EccPrivateKeyDecode()
,DecodeSingleResponse()
, andDecodeResponseData()
(false positives due to bug incppcheck
short circuit eval analysis, mitigated by refactoring&&
expressions to nested-if
constructs that are semantically identical);src/ssl.c:wolfSSL_GetSessionFromCache()
:nullPointer
(false positive due to bug incppcheck
value flow analysis, workarounded).tested with
wolfssl-multi-test.sh ... super-quick-check 'cppcheck-.*'
note, I'm opening tickets upstream with
cppcheck
around the bugs in short-circuit evaluation and ValueFlow.