Skip to content

Fix DupSSL issue with Poly1305 auth#10337

Open
embhorn wants to merge 1 commit intowolfSSL:masterfrom
embhorn:zd21709
Open

Fix DupSSL issue with Poly1305 auth#10337
embhorn wants to merge 1 commit intowolfSSL:masterfrom
embhorn:zd21709

Conversation

@embhorn
Copy link
Copy Markdown
Member

@embhorn embhorn commented Apr 28, 2026

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
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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.

Copy link
Copy Markdown

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

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:

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