Skip to content

Give each PSK thread its own heap copy of connfd#582

Merged
padelsbach merged 1 commit into
wolfSSL:masterfrom
night1rider:fenrir-issue-2894
Jul 10, 2026
Merged

Give each PSK thread its own heap copy of connfd#582
padelsbach merged 1 commit into
wolfSSL:masterfrom
night1rider:fenrir-issue-2894

Conversation

@night1rider

Copy link
Copy Markdown
Contributor

Pass a per-connection malloc'd descriptor instead of the address of the reused stack variable connfd, which the next accept() could overwrite before the thread dereferences it; the thread frees it after copying.

Pass a per-connection malloc'd descriptor instead of the address of the reused stack variable connfd, which the next accept() could overwrite before the thread dereferences it; the thread frees it after copying.
@night1rider night1rider self-assigned this Jun 30, 2026

@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 #582

Scan targets checked: wolfssl-examples-bugs, wolfssl-examples-src

No new issues found in the changed files. ✅

@padelsbach padelsbach merged commit 1ea8602 into wolfSSL:master Jul 10, 2026
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