mirror of https://github.com/wolfSSL/wolfssh.git
Four sites re-tested an unchanged ret after a WOLFSSH_SMALL_STACK allocation, which cppcheck reports as identicalInnerCondition because the allocation that can change ret is compiled out in the default build. Test the allocated pointer instead; that is what the check is guarding. - certman.c, keygen.c and wolfsshd/auth.c: check the DecodedCert, MlDsaKey and DecodedCert pointers. - internal.c CompositeEccSign: give the fixed-buffer build pointer aliases so both builds have the same shape, then check the r/s pointers. - port.c: initialize fileHandle, which is only assigned when mbstowcs_s succeeds. - wolfsftp.c: zero localTime before WLOCALTIME, which is a per-port macro. |
||
|---|---|---|
| .. | ||
| wolfssh | ||
| wolfsshd | ||
| include.am | ||
| wolfssh-options.c | ||