[compiler-rt] -fsanitize=alignment: check memcpy/memmove arguments (PR #67766)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 29 13:21:39 PDT 2023
nikic wrote:
Uh, why are we allowed to assume that memcpy pointer arguments are aligned? This looks like a miscompile to me.
A plain `int *` pointer is not required to be aligned, and memcpy works on `void *` pointers, so I'm not sure where an alignment requirement would appear from.
https://github.com/llvm/llvm-project/pull/67766
More information about the llvm-commits
mailing list