Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unaligned reads and writes of the checksum (fixes #237) #238

Merged

Conversation

arvid-norlander
Copy link
Contributor

This fixes #237 (unaligned reads and writes of checksum).

See the issue for more details on the problem. The fix is simple, use memcpy instead of assignment, which is safe even if unaligned.

@lsalzman lsalzman merged commit c44b7d0 into lsalzman:master Mar 5, 2024
SirLynix pushed a commit to SirLynix/enet6 that referenced this pull request Mar 13, 2024
…salzman#238)

Co-authored-by: Arvid Norlander <arvid-norlander@users.noreply.github.com>
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.

Unaligned reads and writes of the checksum
2 participants