[all-commits] [llvm/llvm-project] 647900: [asan] Use InternalMmapVectorNoCtor for error_mess...

Enna1 via All-commits all-commits at lists.llvm.org
Sun Feb 18 18:28:06 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 64790064e82467b43c04a70b6e9873e6939be81f
      https://github.com/llvm/llvm-project/commit/64790064e82467b43c04a70b6e9873e6939be81f
  Author: Enna1 <xumingjie.enna1 at bytedance.com>
  Date:   2024-02-19 (Mon, 19 Feb 2024)

  Changed paths:
    M compiler-rt/lib/asan/asan_report.cpp
    M compiler-rt/lib/sanitizer_common/sanitizer_common.h
    M compiler-rt/lib/sanitizer_common/sanitizer_posix.cpp

  Log Message:
  -----------
  [asan] Use InternalMmapVectorNoCtor for error_message_buffer, reallocate if needed (#77488)

- Add a param `raw_report` which defaults to false for function
`UnmapOrDie()` like we do for `MmapOrDie()`
- Add a template param `raw_report` which defaults to false for class
`InternalMmapVectorNoCtor`. `raw_report` will be passed to `MmapOrDie()`
and `UnmapOrDie()` when they are called in class
`InternalMmapVectorNoCtor` member functions.
- Use `InternalMmapVectorNoCtor<char, true>` for `error_message_buffer`
and reallocate if needed.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list