r281845 - [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
Kostya Serebryany via cfe-commits
cfe-commits at lists.llvm.org
Sat Sep 17 21:52:23 PDT 2016
Author: kcc
Date: Sat Sep 17 23:52:23 2016
New Revision: 281845
URL: http://llvm.org/viewvc/llvm-project?rev=281845&view=rev
Log:
[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
Modified:
cfe/trunk/docs/SanitizerCoverage.rst
Modified: cfe/trunk/docs/SanitizerCoverage.rst
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/SanitizerCoverage.rst?rev=281845&r1=281844&r2=281845&view=diff
==============================================================================
--- cfe/trunk/docs/SanitizerCoverage.rst (original)
+++ cfe/trunk/docs/SanitizerCoverage.rst Sat Sep 17 23:52:23 2016
@@ -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 co
// 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.
More information about the cfe-commits
mailing list