diff options
author | George Karpenkov <ekarpenkov@apple.com> | 2017-08-27 23:20:09 +0000 |
---|---|---|
committer | George Karpenkov <ekarpenkov@apple.com> | 2017-08-27 23:20:09 +0000 |
commit | fe253ee56618ac233dc0516daea8775b58f456d8 (patch) | |
tree | 404e175dfbce15ced937f1a39cd8c5d1c8f474c1 /lib/fuzzer/FuzzerIO.h | |
parent | cc44d7c1f1d3e45e338faf2ecc4fb43c58dda330 (diff) |
[libFuzzer] Use custom allocators for STL containers in libFuzzer.
Avoids ODR violations causing spurious ASAN warnings.
Differential Revision: https://reviews.llvm.org/D37086
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@311866 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/fuzzer/FuzzerIO.h')
-rw-r--r-- | lib/fuzzer/FuzzerIO.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/fuzzer/FuzzerIO.h b/lib/fuzzer/FuzzerIO.h index 3b66a52d1..8ed0e003d 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, 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); + Vector<std::string> *V, bool TopDir); char GetSeparator(); |