[PATCH] D54733: [ASan] Make asan report decoration more efficient
    Armando Montanez via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon Nov 19 16:11:20 PST 2018
    
    
  
amontanez created this revision.
amontanez added a reviewer: jakehehrlich.
Herald added subscribers: Sanitizers, llvm-commits, kubamracek.
ASan's report decoration doesn't maintain any state regarding terminal color output.  When printing shadow bytes, one printed byte involves two color changes, even if subsequent bytes are the same color. This patch ensures a decorator only changes the terminal output color when printing a byte of a different color. This significantly reduces the number of characters in the output when printing shadow bytes without changing how the output looks.
Repository:
  rCRT Compiler Runtime
https://reviews.llvm.org/D54733
Files:
  compiler-rt/lib/asan/asan_descriptions.cc
  compiler-rt/lib/asan/asan_descriptions.h
  compiler-rt/lib/asan/asan_errors.cc
  compiler-rt/lib/asan/asan_report.cc
  compiler-rt/lib/asan/asan_report.h
  compiler-rt/lib/sanitizer_common/sanitizer_report_decorator.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54733.174704.patch
Type: text/x-patch
Size: 15354 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181120/1b3dfe5d/attachment.bin>
    
    
More information about the llvm-commits
mailing list