Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix crash on MacOS/amd64 due to undefined behaviour of strlcpy.
strlcpy has undefined behaviour in case the copied string regions overlap. On platforms with a vector optimized memcpy implementation, overlapping regions may crash the process e.g. with Child process pid=0 terminated abnormally: Illegal instruction: 4 At this call-site the strlcpy parameters almost certainly overlap. Refactor the code to do the intended functionality in-place.
- Loading branch information