[all-commits] [llvm/llvm-project] ecd478: [sanitizer] Skip /include/c++/ from summary (#78534)

Vitaly Buka via All-commits all-commits at lists.llvm.org
Thu Jan 18 12:25:43 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ecd47811b755d13357085bcd7519a66d6c4d8e5c
      https://github.com/llvm/llvm-project/commit/ecd47811b755d13357085bcd7519a66d6c4d8e5c
  Author: Vitaly Buka <vitalybuka at google.com>
  Date:   2024-01-18 (Thu, 18 Jan 2024)

  Changed paths:
    M compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_report.cpp
    M compiler-rt/test/sanitizer_common/TestCases/allocator_returns_null.cpp

  Log Message:
  -----------
  [sanitizer] Skip /include/c++/ from summary (#78534)

std:: usually is not a cause of the bug.

We now display 
```
SUMMARY: AddressSanitizer: allocation-size-too-big path/to/allocator_returns_null.cpp:92:7 in main
```
instead of 

```
SUMMARY: AddressSanitizer: allocation-size-too-big /usr/lib/../include/c++/13/bits/new_allocator.h:147:27 in std::__new_allocator<char>::allocate(unsigned long, void const*)
```

`/include/c++/` matches both libc++ and libstdc++ include paths.




More information about the All-commits mailing list