summaryrefslogtreecommitdiff
path: root/lib/fuzzer/FuzzerIO.h
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2017-08-29 20:51:24 +0000
committerKostya Serebryany <kcc@google.com>2017-08-29 20:51:24 +0000
commit04d0769c4c9fe8e3204424cfc5368b4a78006d03 (patch)
treee9b3183e57698fc206a88e2d2fc3cac5325a1ba9 /lib/fuzzer/FuzzerIO.h
parent21ee37b2d0d672da99b525418598056ed6a7ba79 (diff)
[libFUzzer] change the way we load the seed corpora: instead of loading all files and these executing all files, load and execute them one-by-one. This should reduce the memory usage in many cases
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@312033 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/fuzzer/FuzzerIO.h')
-rw-r--r--lib/fuzzer/FuzzerIO.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/fuzzer/FuzzerIO.h b/lib/fuzzer/FuzzerIO.h
index 8ed0e003d..5059c11ac 100644
--- a/lib/fuzzer/FuzzerIO.h
+++ b/lib/fuzzer/FuzzerIO.h
@@ -53,6 +53,7 @@ void RawPrint(const char *Str);
// Platform specific functions:
bool IsFile(const std::string &Path);
+size_t FileSize(const std::string &Path);
void ListFilesInDirRecursive(const std::string &Dir, long *Epoch,
Vector<std::string> *V, bool TopDir);