[llvm] r297690 - [libFuzzer] Fix compilation of CustomCrossOverAndMutateTest on Windows
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 13 16:46:30 PDT 2017
Author: vitalybuka
Date: Mon Mar 13 18:46:30 2017
New Revision: 297690
URL: http://llvm.org/viewvc/llvm-project?rev=297690&view=rev
Log:
[libFuzzer] Fix compilation of CustomCrossOverAndMutateTest on Windows
Modified:
llvm/trunk/lib/Fuzzer/test/CustomCrossOverAndMutateTest.cpp
Modified: llvm/trunk/lib/Fuzzer/test/CustomCrossOverAndMutateTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Fuzzer/test/CustomCrossOverAndMutateTest.cpp?rev=297690&r1=297689&r2=297690&view=diff
==============================================================================
--- llvm/trunk/lib/Fuzzer/test/CustomCrossOverAndMutateTest.cpp (original)
+++ llvm/trunk/lib/Fuzzer/test/CustomCrossOverAndMutateTest.cpp Mon Mar 13 18:46:30 2017
@@ -9,6 +9,7 @@
#include <string>
#include <string.h>
#include <vector>
+#include <algorithm>
#include "FuzzerInterface.h"
@@ -27,7 +28,7 @@ extern "C" size_t LLVMFuzzerCustomCrossO
unsigned int Seed) {
std::vector<uint8_t> Buffer(MaxOutSize * 10);
LLVMFuzzerMutate(Buffer.data(), Buffer.size(), Buffer.size());
- size_t Size = std::min<size_t>(Size1, MaxOutSize);
+ size_t Size = std::min(Size1, MaxOutSize);
memcpy(Out, Data1, Size);
return Size;
}
More information about the llvm-commits
mailing list