[PATCH] D32066: [ubsan] Use the correct tool name in diagnostics

Vedant Kumar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 13 17:56:15 PDT 2017


vsk created this revision.
Herald added a subscriber: kubamracek.

When using ASan and UBSan together, the common sanitizer tool name is
set to "AddressSanitizer". That means that when a UBSan diagnostic is
printed out, it looks like this:

  SUMMARY: AddressSanitizer: ...

This can confuse users. Fix it so that we always use the correct tool
name when printing out UBSan diagnostics.


https://reviews.llvm.org/D32066

Files:
  lib/sanitizer_common/sanitizer_common.cc
  lib/sanitizer_common/sanitizer_common.h
  lib/sanitizer_common/sanitizer_common_libcdep.cc
  lib/ubsan/ubsan_diag.cc
  lib/ubsan/ubsan_init.cc
  lib/ubsan/ubsan_init.h
  test/ubsan/TestCases/Integer/summary.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32066.95253.patch
Type: text/x-patch
Size: 6189 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170414/f77685ef/attachment.bin>


More information about the llvm-commits mailing list