[libcxx-commits] [libcxx] [ASan][libc++] Turn on ASan annotations for short strings (PR #75882)
via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Jan 18 15:14:44 PST 2024
AdvenamTacet wrote:
That one is confusing, seems to be slightly different than previous ones.
```
AddressSanitizer: container-overflow /b/sanitizer-aarch64-linux-bootstrap-asan/build/libcxx_build_asan/include/c++/v1/string:924:9 in basic_string
```
[This line was problematic earlier.](https://github.com/llvm/llvm-project/pull/77394) But I'm not sure if it's related and it's not just a coincidence.
```cpp
if(!__s.__is_long()) __s.__annotate_delete();
```
Memory should be unpoisoned, if the string is short, but shadow memory looks like it's not.
I don't know where a bug may be.
What allocator is used here?
https://github.com/llvm/llvm-project/pull/75882
More information about the libcxx-commits
mailing list