summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMatt Morehouse <mascasa@google.com>2018-06-27 18:24:46 +0000
committerMatt Morehouse <mascasa@google.com>2018-06-27 18:24:46 +0000
commit8821a24acbcc05574ab65f3a49200d8f8b67f43b (patch)
treec0e13a8266706f4e636dc7387fc24b45a9b99656 /docs
parentbaa2648969e9ae86ed2b15fbd636e84454ee02ab (diff)
downloadclang-8821a24acbcc05574ab65f3a49200d8f8b67f43b.tar.gz
[UBSan] Add silence_unsigned_overflow flag.
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
Diffstat (limited to 'docs')
-rw-r--r--docs/UndefinedBehaviorSanitizer.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/UndefinedBehaviorSanitizer.rst b/docs/UndefinedBehaviorSanitizer.rst
index e9f85c24dd..8dd9157e81 100644
--- a/docs/UndefinedBehaviorSanitizer.rst
+++ b/docs/UndefinedBehaviorSanitizer.rst
@@ -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
=================