diff options
| author | Dan Liew <dan@su-root.co.uk> | 2018-04-20 06:46:14 +0000 |
|---|---|---|
| committer | Dan Liew <dan@su-root.co.uk> | 2018-04-20 06:46:14 +0000 |
| commit | 25d0c65ff301609c2ef6212962e68bdc81098e17 (patch) | |
| tree | aaac49fae9df1e7f96026e1edde731cee3a90c23 /compiler-rt | |
| parent | c8879c989e5cdd3999e6093371460b9c282be8f8 (diff) | |
| download | bcm5719-llvm-25d0c65ff301609c2ef6212962e68bdc81098e17.tar.gz bcm5719-llvm-25d0c65ff301609c2ef6212962e68bdc81098e17.zip | |
[LibFuzzer] Try to unbreak the `FuzzerMutate.ShuffleBytes1` unit test.
This test is failing on my Linux box. Just increasing the number of
iterations works around this. The divergence is likely due to
our reliance on `std::shuffle()` which is not guaranteed to have
the same behaviour across platforms.
This is a strong argument for us to implement our own shuffle
function to avoid divergence in behaviour across platforms.
Differential Revision: https://reviews.llvm.org/D45767
llvm-svn: 330390
Diffstat (limited to 'compiler-rt')
| -rw-r--r-- | compiler-rt/lib/fuzzer/tests/FuzzerUnittest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/fuzzer/tests/FuzzerUnittest.cpp b/compiler-rt/lib/fuzzer/tests/FuzzerUnittest.cpp index 97ec3b4bb6a..3f57a5d60c2 100644 --- a/compiler-rt/lib/fuzzer/tests/FuzzerUnittest.cpp +++ b/compiler-rt/lib/fuzzer/tests/FuzzerUnittest.cpp @@ -328,7 +328,7 @@ void TestShuffleBytes(Mutator M, int NumIter) { } TEST(FuzzerMutate, ShuffleBytes1) { - TestShuffleBytes(&MutationDispatcher::Mutate_ShuffleBytes, 1 << 16); + TestShuffleBytes(&MutationDispatcher::Mutate_ShuffleBytes, 1 << 17); } TEST(FuzzerMutate, ShuffleBytes2) { TestShuffleBytes(&MutationDispatcher::Mutate, 1 << 20); |

