summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Fuzzer/FuzzerInternal.h
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2016-01-13 23:02:30 +0000
committerKostya Serebryany <kcc@google.com>2016-01-13 23:02:30 +0000
commitd50a3eedb4df2298de19e94189559b85af0f5094 (patch)
treeff45de1ce4a0dfce6dd9a211888d0413b86fb472 /llvm/lib/Fuzzer/FuzzerInternal.h
parent9913322327833d25ad52528167208e282155e439 (diff)
downloadbcm5719-llvm-d50a3eedb4df2298de19e94189559b85af0f5094.tar.gz
bcm5719-llvm-d50a3eedb4df2298de19e94189559b85af0f5094.zip
[libFuzzer] make sure we find buffer overflow in the input buffer. Previously, re-using the same vector object was hiding buffer overflows (unless we used annotated vector)
llvm-svn: 257701
Diffstat (limited to 'llvm/lib/Fuzzer/FuzzerInternal.h')
-rw-r--r--llvm/lib/Fuzzer/FuzzerInternal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerInternal.h b/llvm/lib/Fuzzer/FuzzerInternal.h
index c1e9daac980..3ab43d2928b 100644
--- a/llvm/lib/Fuzzer/FuzzerInternal.h
+++ b/llvm/lib/Fuzzer/FuzzerInternal.h
@@ -106,6 +106,7 @@ class Fuzzer {
void Drill();
void ShuffleAndMinimize();
void InitializeTraceState();
+ void AssignTaintLabels(uint8_t *Data, size_t Size);
size_t CorpusSize() const { return Corpus.size(); }
void ReadDir(const std::string &Path, long *Epoch) {
Printf("Loading corpus: %s\n", Path.c_str());
OpenPOWER on IntegriCloud