Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information