[compiler-rt] [compiler-rt][ASan] Remove alignment checks in ASan error reporting (PR #94103)

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 23 12:36:59 PDT 2024


vitalybuka wrote:

> ```c++
> #include <sanitizer/asan_interface.h>
> #include <iostream>
> 
> constexpr size_t N = 64;
> constexpr size_t off = 1;
> 
> int main() {
> 
>     char buffer[N + off];
>     char *beg = buffer + off;
>     char *end = beg + N;
> 
>     __sanitizer_annotate_contiguous_container(beg, end, end, beg);
> }
> ```

Just add above as a test,  it should exit with 0?

https://github.com/llvm/llvm-project/pull/94103


More information about the llvm-commits mailing list