Issue 64758
Summary UB in llvm-project/libc/src/string/memory_utils/utils.h:assume_aligned
Labels new issue
Assignees gchatelet
Reporter petrhosek
    UBSan running on RISC-V (Fuchsia) is reporting an undefined behavior at https://github.com/llvm/llvm-project/blob/e6cd409fc6396cb13c59b4a5190abc4b856f22a5/libc/src/string/memory_utils/utils.h#L87

```
assumption of 2 byte alignment for pointer of type 'const __llvm_libc::cpp::byte *' failed, address is 1 aligned
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to