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 overlapping memcpy #2344

Merged
merged 1 commit into from
Feb 2, 2024
Merged

Fix overlapping memcpy #2344

merged 1 commit into from
Feb 2, 2024

Commits on Feb 2, 2024

  1. Fix overlapping memcpy

    It's UB to use memcpy with overlapping source and destination. This
    might be causing crashes on 32 bit platforms and on OpenBSD. Use memmove
    instead. Add a bounds check while we're at it since it's unclear whether
    one-past-end pointer with n=0 is UB.
    XrXr committed Feb 2, 2024
    Configuration menu
    Copy the full SHA
    719f54f View commit details
    Browse the repository at this point in the history