summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Fuzzer/FuzzerInternal.h
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2015-08-01 01:42:51 +0000
committerKostya Serebryany <kcc@google.com>2015-08-01 01:42:51 +0000
commit8ce7424e9c3150385de060334e5f3c61518ce64e (patch)
tree934e190d50cd2166d4dabd416da3825ff84cb5c8 /llvm/lib/Fuzzer/FuzzerInternal.h
parent6e48a81309306c871a744c602bee74c9274f4b30 (diff)
downloadbcm5719-llvm-8ce7424e9c3150385de060334e5f3c61518ce64e.tar.gz
bcm5719-llvm-8ce7424e9c3150385de060334e5f3c61518ce64e.zip
[libFuzzer] start refactoring the Mutator and adding tests to it
llvm-svn: 243817
Diffstat (limited to 'llvm/lib/Fuzzer/FuzzerInternal.h')
-rw-r--r--llvm/lib/Fuzzer/FuzzerInternal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerInternal.h b/llvm/lib/Fuzzer/FuzzerInternal.h
index fe7869871f0..274fdf077a7 100644
--- a/llvm/lib/Fuzzer/FuzzerInternal.h
+++ b/llvm/lib/Fuzzer/FuzzerInternal.h
@@ -33,6 +33,8 @@ void CopyFileToErr(const std::string &Path);
std::string DirPlusFile(const std::string &DirPath,
const std::string &FileName);
+size_t Mutate_EraseByte(uint8_t *Data, size_t size, size_t MaxSize,
+ FuzzerRandomBase &Rand);
size_t Mutate(uint8_t *Data, size_t Size, size_t MaxSize,
FuzzerRandomBase &Rand);
OpenPOWER on IntegriCloud