]> granicus.if.org Git - clang/commitdiff
[UBSan] Add silence_unsigned_overflow flag.
authorMatt Morehouse <mascasa@google.com>
Wed, 27 Jun 2018 18:24:46 +0000 (18:24 +0000)
committerMatt Morehouse <mascasa@google.com>
Wed, 27 Jun 2018 18:24:46 +0000 (18:24 +0000)
Summary:
Setting UBSAN_OPTIONS=silence_unsigned_overflow=1 will silence all UIO
reports.  This feature, combined with
-fsanitize-recover=unsigned-integer-overflow, is useful for providing
fuzzing signal without the excessive log output.

Helps with https://github.com/google/oss-fuzz/issues/910.

Reviewers: kcc, vsk

Reviewed By: vsk

Subscribers: vsk, kubamracek, Dor1s, llvm-commits

Differential Revision: https://reviews.llvm.org/D48660

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@335762 91177308-0d34-0410-b5e6-96231b3b80d8

docs/UndefinedBehaviorSanitizer.rst

index e9f85c24dde0ec56b4630d6a0e8df1d3495390bf..8dd9157e81fbb8aee19d3ac43538619065a7bd61 100644 (file)
@@ -180,6 +180,13 @@ will need to:
    ``UBSAN_OPTIONS=print_stacktrace=1``.
 #. Make sure ``llvm-symbolizer`` binary is in ``PATH``.
 
+Silencing Unsigned Integer Overflow
+===================================
+To silence reports from unsigned integer overflow, you can set
+``UBSAN_OPTIONS=silence_unsigned_overflow=1``.  This feature, combined with
+``-fsanitize-recover=unsigned-integer-overflow``, is particularly useful for
+providing fuzzing signal without blowing up logs.
+
 Issue Suppression
 =================