summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2016-09-18 04:52:23 +0000
committerKostya Serebryany <kcc@google.com>2016-09-18 04:52:23 +0000
commitbaa899667effc68f7e29c22d82f23ae2d42f8ee0 (patch)
tree18d2bf1c729e16dd7efc172ab998a20865e7b40f /docs
parent18e5245c5a5ae0867d04257b4b56540ac38aad24 (diff)
[libFuzzer] use 'if guard' instead of 'if guard >= 0' with trace-pc; change the guard type to intptr_t; use separate array for 8-bit counters
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@281845 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs')
-rw-r--r--docs/SanitizerCoverage.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/SanitizerCoverage.rst b/docs/SanitizerCoverage.rst
index a4693fe2c3..decad72a14 100644
--- a/docs/SanitizerCoverage.rst
+++ b/docs/SanitizerCoverage.rst
@@ -331,10 +331,10 @@ on every edge:
.. code-block:: none
- if (guard_variable >= 0)
+ if (guard_variable)
__sanitizer_cov_trace_pc_guard(&guard_variable)
-Every edge will have its own 8-byte `guard_variable`.
+Every edge will have its own `guard_variable` (uintptr_t).
The compler will also insert a module constructor that will call
@@ -342,7 +342,7 @@ The compler will also insert a module constructor that will call
// The guards are [start, stop).
// This function may be called multiple times with the same values of start/stop.
- __sanitizer_cov_trace_pc_guard_init(uint64_t *start, uint64_t *stop);
+ __sanitizer_cov_trace_pc_guard_init(uintptr_t *start, uintptr_t *stop);
Similarly to `trace-pc,indirect-calls`, with `trace-pc-guards,indirect-calls`
``__sanitizer_cov_trace_pc_indirect(void *callee)`` will be inserted on every indirect call.