summaryrefslogtreecommitdiff
path: root/lib/fuzzer/FuzzerIO.h
diff options
context:
space:
mode:
authorGeorge Karpenkov <ekarpenkov@apple.com>2017-08-26 17:17:37 +0000
committerGeorge Karpenkov <ekarpenkov@apple.com>2017-08-26 17:17:37 +0000
commit740573d1259e500ea7f323d213d476784c305372 (patch)
treee61e170796894865237d24a8a1f98cfa249892a8 /lib/fuzzer/FuzzerIO.h
parent27fb0f25514625a8adb42338015e635bd6ef0626 (diff)
[libFuzzer] Use custom allocators for STL containers in libFuzzer
Avoids ODR violations causing spurious ASAN container overflow warnings. Differential Revision: https://reviews.llvm.org/D37086 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@311830 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/fuzzer/FuzzerIO.h')
-rw-r--r--lib/fuzzer/FuzzerIO.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/fuzzer/FuzzerIO.h b/lib/fuzzer/FuzzerIO.h
index 3b66a52d1..a404dffc4 100644
--- a/lib/fuzzer/FuzzerIO.h
+++ b/lib/fuzzer/FuzzerIO.h
@@ -27,7 +27,7 @@ void CopyFileToErr(const std::string &Path);
void WriteToFile(const Unit &U, const std::string &Path);
-void ReadDirToVectorOfUnits(const char *Path, std::vector<Unit> *V,
+void ReadDirToVectorOfUnits(const char *Path, fuzzer::vector<Unit> *V,
long *Epoch, size_t MaxSize, bool ExitOnError);
// Returns "Dir/FileName" or equivalent for the current OS.
@@ -55,7 +55,7 @@ void RawPrint(const char *Str);
bool IsFile(const std::string &Path);
void ListFilesInDirRecursive(const std::string &Dir, long *Epoch,
- std::vector<std::string> *V, bool TopDir);
+ fuzzer::vector<std::string> *V, bool TopDir);
char GetSeparator();