summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMatt Morehouse <mascasa@google.com>2018-07-17 16:12:00 +0000
committerMatt Morehouse <mascasa@google.com>2018-07-17 16:12:00 +0000
commit823b254fc6354740a99e824b7757c83668496918 (patch)
tree187080159b0a558afb27cdb1a51d7131ee794d6d /test
parent2dad1b7d1d75e6cf0d337744c6c133c821d3dcff (diff)
libFuzzer: prevent irrelevant strings from leaking into auto-dictionary
This is a fix for bug 37047. https://bugs.llvm.org/show_bug.cgi?id=37047 Implemented by basically reversing the logic. Previously all strings were considered, with some operations excluded. Now strings are excluded by default, and only strings during the CB considered. Patch By: pdknsk Differential Revision: https://reviews.llvm.org/D48800 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@337296 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/fuzzer/three-bytes.test4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/fuzzer/three-bytes.test b/test/fuzzer/three-bytes.test
index 242be49e4..0b2187552 100644
--- a/test/fuzzer/three-bytes.test
+++ b/test/fuzzer/three-bytes.test
@@ -1,8 +1,8 @@
Tests -use_value_profile=2 (alternative VP metric).
RUN: %cpp_compiler %S/ThreeBytes.cpp -o %t
-RUN: %run %t -seed=1 -runs=100000
-RUN: %run %t -seed=1 -runs=100000 -use_value_profile=1
+RUN: %run %t -seed=1 -runs=30000
+RUN: %run %t -seed=1 -runs=30000 -use_value_profile=1
RUN: not %run %t -seed=1 -runs=1000000 -use_value_profile=2 2>&1 | FileCheck %s
CHECK: Test unit written