From 43a229697622b5933da1fdeb61d4eac2a2b7742c Mon Sep 17 00:00:00 2001 From: Matt Morehouse Date: Tue, 17 Jul 2018 16:12:00 +0000 Subject: 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 llvm-svn: 337296 --- compiler-rt/test/fuzzer/three-bytes.test | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compiler-rt/test/fuzzer/three-bytes.test') diff --git a/compiler-rt/test/fuzzer/three-bytes.test b/compiler-rt/test/fuzzer/three-bytes.test index 242be49e422..0b2187552cf 100644 --- a/compiler-rt/test/fuzzer/three-bytes.test +++ b/compiler-rt/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 -- cgit v1.2.3