Skip to content

Fix DupSSL issue with Poly1305 auth#10337

Merged
dgarske merged 1 commit into
wolfSSL:masterfrom
embhorn:zd21709
May 5, 2026
Merged

Fix DupSSL issue with Poly1305 auth#10337
dgarske merged 1 commit into
wolfSSL:masterfrom
embhorn:zd21709

Conversation

@embhorn

@embhorn embhorn commented Apr 28, 2026

Copy link
Copy Markdown
Member

Description

Pre-allocate the Poly1305 buffer before clearing ssl->encrypt. On alloc failure, free the mutex and WriteDup, NULL out ssl->dupWrite, and return — leaving ssl in its pre-call state.

Fixes zd21709

Testing

Added test_write_dup_oom

Checklist

  • added tests
  • updated/added doxygen
  • updated appropriate READMEs
  • Updated manual and documentation

@embhorn embhorn self-assigned this Apr 28, 2026
Copilot AI review requested due to automatic review settings April 28, 2026 14:36

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@wolfSSL-Fenrir-bot wolfSSL-Fenrir-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fenrir Automated Review — PR #10337

Scan targets checked: wolfssl-bugs, wolfssl-src

No new issues found in the changed files. ✅

@github-actions

Copy link
Copy Markdown

MemBrowse Memory Report

No memory changes detected for:

@dgarske
dgarske merged commit c278b61 into wolfSSL:master May 5, 2026
466 checks passed
@embhorn
embhorn deleted the zd21709 branch May 8, 2026 20:28
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.

5 participants