[PATCH] D27012: [asan] Provide bug descriptions for all reports (not just ErrorGeneric)

Kuba Brecka via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 22 16:33:52 PST 2016


kubabrecka created this revision.
kubabrecka added reviewers: kcc, filcab, rnk.
kubabrecka added subscribers: llvm-commits, zaks.anna.
kubabrecka set the repository for this revision to rL LLVM.
kubabrecka added a project: Sanitizers.

ErrorGeneric report type has a `const char *bug_descr`, which describes the type of bug that is detected.  Most non-generic bugs (e.g. double-free, null pointer dereference) also already have a short keyword used in printed reports (e.g. "double-free", "null-deref").  This patch moves the `bug_descr` field to `ErrorBase` and makes sure it's populated by all constructors.


Repository:
  rL LLVM

https://reviews.llvm.org/D27012

Files:
  lib/asan/asan_errors.cc
  lib/asan/asan_errors.h
  lib/asan/asan_report.cc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27012.78971.patch
Type: text/x-patch
Size: 15130 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161123/d13e9a67/attachment.bin>


More information about the llvm-commits mailing list