Skip to content

TCP input: fix memory access issue#109

Merged
sedmicha merged 1 commit intomasterfrom
tcp-input-fix
Mar 19, 2025
Merged

TCP input: fix memory access issue#109
sedmicha merged 1 commit intomasterfrom
tcp-input-fix

Conversation

@sedmicha
Copy link
Copy Markdown
Collaborator

Fixes issue #107

The address was improperly stored in a sockaddr type, which was then access as
a sockaddr_in6, even though sizeof(sockaddr) < sizeof(sockaddr_in6). This
resulted in stack smashing. The proper type to use that can contain all
addresses is sockaddr_storage.

Fixes issue #107
@sedmicha sedmicha merged commit 32fab99 into master Mar 19, 2025
34 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.

1 participant