diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-12-24 01:00:33 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-12-24 01:00:33 +0000 |
commit | 46d7550315cd1db7e0cdf313e2702222751d8a24 (patch) | |
tree | 7c8ad1d503cf19120d55ce098d2f8bd1534fa721 /lib/fuzzer | |
parent | cdf4f3055e964bb585f294cf77cb549ead82783f (diff) | |
download | src-46d7550315cd1db7e0cdf313e2702222751d8a24.tar.gz src-46d7550315cd1db7e0cdf313e2702222751d8a24.zip |
Vendor import of compiler-rt trunk r321414:vendor/compiler-rt/compiler-rt-trunk-r321426vendor/compiler-rt/compiler-rt-trunk-r321414
Notes
Notes:
svn path=/vendor/compiler-rt/dist/; revision=327126
svn path=/vendor/compiler-rt/compiler-rt-trunk-r321426/; revision=327156; tag=vendor/compiler-rt/compiler-rt-trunk-r321426
Diffstat (limited to 'lib/fuzzer')
-rw-r--r-- | lib/fuzzer/FuzzerTracePC.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/fuzzer/FuzzerTracePC.h b/lib/fuzzer/FuzzerTracePC.h index dc65cd72091a..c3f241b905b1 100644 --- a/lib/fuzzer/FuzzerTracePC.h +++ b/lib/fuzzer/FuzzerTracePC.h @@ -276,6 +276,7 @@ void TracePC::CollectFeatures(Callback HandleFeature) const { // Step function, grows similar to 8 * Log_2(A). auto StackDepthStepFunction = [](uint32_t A) -> uint32_t { + if (!A) return A; uint32_t Log2 = Log(A); if (Log2 < 3) return A; Log2 -= 3; |