diff options
author | Kostya Serebryany <kcc@google.com> | 2016-01-13 23:02:30 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2016-01-13 23:02:30 +0000 |
commit | d50a3eedb4df2298de19e94189559b85af0f5094 (patch) | |
tree | ff45de1ce4a0dfce6dd9a211888d0413b86fb472 /llvm/lib/Fuzzer/FuzzerInternal.h | |
parent | 9913322327833d25ad52528167208e282155e439 (diff) | |
download | bcm5719-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.h | 1 |
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()); |