Commit cebb4da
committed
fixes and workarounds for cppcheck 2.11 with uninitvar checks reactivated, and legacyUninitvar suppressed globally (as before):
src/internal.c:wolfSSL_DtlsUpdateWindow(): shiftTooManyBitsSigned and integerOverflowCond (true positive, fixed);
src/ssl.c:wolfSSL_GetSessionFromCache(): autoVariables (true positive, intentional and now suppressed);
wolfcrypt/src/asn.c: several uninitvars in EccSpecifiedECDomainDecode(), wc_EccPrivateKeyDecode(), DecodeSingleResponse(), and DecodeResponseData() (false positives due to bug in cppcheck 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 in cppcheck value flow analysis, workarounded).1 parent c0b4cde commit cebb4da
3 files changed
Lines changed: 31 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16823 | 16823 | | |
16824 | 16824 | | |
16825 | 16825 | | |
16826 | | - | |
| 16826 | + | |
16827 | 16827 | | |
16828 | 16828 | | |
16829 | 16829 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13684 | 13684 | | |
13685 | 13685 | | |
13686 | 13686 | | |
13687 | | - | |
| 13687 | + | |
| 13688 | + | |
13688 | 13689 | | |
13689 | 13690 | | |
13690 | 13691 | | |
| |||
13772 | 13773 | | |
13773 | 13774 | | |
13774 | 13775 | | |
| 13776 | + | |
| 13777 | + | |
| 13778 | + | |
| 13779 | + | |
13775 | 13780 | | |
13776 | 13781 | | |
13777 | 13782 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32124 | 32124 | | |
32125 | 32125 | | |
32126 | 32126 | | |
32127 | | - | |
| 32127 | + | |
| 32128 | + | |
32128 | 32129 | | |
32129 | | - | |
| 32130 | + | |
| 32131 | + | |
32130 | 32132 | | |
32131 | 32133 | | |
32132 | 32134 | | |
32133 | | - | |
| 32135 | + | |
| 32136 | + | |
32134 | 32137 | | |
32135 | | - | |
| 32138 | + | |
| 32139 | + | |
32136 | 32140 | | |
32137 | 32141 | | |
32138 | 32142 | | |
| |||
32447 | 32451 | | |
32448 | 32452 | | |
32449 | 32453 | | |
32450 | | - | |
32451 | | - | |
| 32454 | + | |
| 32455 | + | |
| 32456 | + | |
| 32457 | + | |
32452 | 32458 | | |
32453 | 32459 | | |
32454 | 32460 | | |
| |||
34416 | 34422 | | |
34417 | 34423 | | |
34418 | 34424 | | |
34419 | | - | |
34420 | | - | |
| 34425 | + | |
| 34426 | + | |
| 34427 | + | |
| 34428 | + | |
34421 | 34429 | | |
34422 | 34430 | | |
34423 | 34431 | | |
| |||
34804 | 34812 | | |
34805 | 34813 | | |
34806 | 34814 | | |
34807 | | - | |
34808 | | - | |
| 34815 | + | |
| 34816 | + | |
| 34817 | + | |
| 34818 | + | |
34809 | 34819 | | |
34810 | 34820 | | |
34811 | | - | |
34812 | | - | |
| 34821 | + | |
| 34822 | + | |
| 34823 | + | |
| 34824 | + | |
34813 | 34825 | | |
34814 | 34826 | | |
34815 | 34827 | | |
| |||
0 commit comments