Skip to content

Conversation

@bagder
Copy link
Member

@bagder bagder commented Oct 1, 2025

By checking the size of the actual buffer and using that as memcpy target instead of another union member, this helps readers and static code analyzers to determine that this is not a buffer overflow.

Ref: #18677

@bagder

This comment was marked as resolved.

bagder added 2 commits October 1, 2025 09:05
By checking the size of the actual buffer and using that as memcpy
target instead of another union member, this helps readers and static
code analyzers to determine that this is not a buffer overflow.

Ref: #18677
@bagder bagder force-pushed the bagder/cf-socket-memcpy branch from 0ac95ab to 32ec702 Compare October 1, 2025 07:05
Copy link
Contributor

@kdudka kdudka left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@bagder bagder requested a review from icing October 1, 2025 11:17
@bagder bagder closed this in e891b41 Oct 1, 2025
@bagder bagder deleted the bagder/cf-socket-memcpy branch October 1, 2025 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants