Skip to content

Fix issues found in static analysis#9788

Merged
dgarske merged 1 commit intowolfSSL:masterfrom
LinuxJedi:static-fixes
Feb 17, 2026
Merged

Fix issues found in static analysis#9788
dgarske merged 1 commit intowolfSSL:masterfrom
LinuxJedi:static-fixes

Conversation

@LinuxJedi
Copy link
Copy Markdown
Member

  • Fix missing cleanup on error in wc_XChaCha20Poly1305_crypt_oneshot: change early return to goto out so ForceZero and free are called
  • Fix memory leak in wc_DeCompressDynamic: free tmp buffer before early return on avail_out size check failure
  • Fix unconditional mutex unlock in PQC sign functions (falcon, sphincs, dilithium): only call unlock when lock was acquired
  • Remove dead oqssig NULL checks in falcon sign/verify that are unreachable after the preceding SIG_TYPE_E assignment

- Fix missing cleanup on error in wc_XChaCha20Poly1305_crypt_oneshot:
  change early return to goto out so ForceZero and free are called
- Fix memory leak in wc_DeCompressDynamic: free tmp buffer before
  early return on avail_out size check failure
- Fix unconditional mutex unlock in PQC sign functions (falcon,
  sphincs, dilithium): only call unlock when lock was acquired
- Remove dead oqssig NULL checks in falcon sign/verify that are
  unreachable after the preceding SIG_TYPE_E assignment
@dgarske dgarske merged commit 90d0ea1 into wolfSSL:master Feb 17, 2026
437 of 440 checks passed
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.

3 participants