Skip to content

Conversation

@ejohnstown
Copy link
Contributor

@ejohnstown ejohnstown commented Jul 11, 2025

  1. Side effect in assertions: 537020 573008 573010 573011 573013 573014 573015 573016 573017 573018 573022 573023 573024
  2. Resource leak: 572856 572902* 573012 573019 573021 573076
  3. 'Constant' variable guards dead code: 572898

*: Most of the issue is fixed. One part still needs fixing.

@ejohnstown ejohnstown force-pushed the cov branch 3 times, most recently from db9a80d to fc68795 Compare July 11, 2025 19:03
1. Modify AssertNotNull() to use the same pattern as AssertNull(). The
   macro assigns the pointer to a local variable and that is checked.

Fixes CIDs:
  537020 573008 573010 573011 573013 573014 573015
  573016 573017 573018 573022 573023 573024
1. Fix some resource leaks during error conditions where a socket or a
   file descriptor doesn't get closed in all error cases.
2. In wolfSSH_SFTP_RecvOpen(), initialize the file descriptor.
3. For 572902, the error case resource leaks are fixed. There's still an
   issue to resolve for storing the FD for use later.

Fixes CIDs:
  572856 572902* 573012 573019 573021 573076
1. Remove the default password from the wolfSSH client app main
   function. It isn't set to anything. (It was originally an example
   client option.)
2. Remove handling the default password from the wolfSSH client app's
   user authentication callback.
3. Set the password size directly.
4. Changed a void typecast to WOLFSSH_UNUSED.

Fixes CID: 572898
@douzzer douzzer merged commit 0b451e5 into wolfSSL:master Jul 14, 2025
93 checks passed
@ejohnstown ejohnstown deleted the cov branch July 14, 2025 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants