[LLVMdev] [PATCH] ubsan: label messages as coming from ubsan

Ben Boeckel mathstuf at gmail.com
Mon Oct 6 11:33:34 PDT 2014


I've been working on adding UBSan support to CMake (so that errors found
by it can be uploaded to CDash for viewing). One problem is that the
message is very generic. The patch here addes
'UndefinedBehaviorSanitizer' to the message so that they may be detected
more easily.

If something else is wanted (such as the '===' lines from ASan or TSan
to cope with things like printing the backtrace, that would be possible
as well. It would also be nice if there were a blurb on what the error
was rather than just freeform text (similar to heap-use-after-free and
heap-buffer-overflow) to categorize messages.

Thanks,

--Ben

Ben Boeckel (1):
  ubsan: add 'UndefinedBehaviorSanitizer' to messages

 lib/ubsan/ubsan_diag.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

-- 
2.1.0




More information about the llvm-dev mailing list