]> granicus.if.org Git - clang/commitdiff
[sanitizer-coverage/libFuzzer] make the guards for trace-pc 32-bit; create one array...
authorKostya Serebryany <kcc@google.com>
Thu, 29 Sep 2016 17:43:24 +0000 (17:43 +0000)
committerKostya Serebryany <kcc@google.com>
Thu, 29 Sep 2016 17:43:24 +0000 (17:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@282735 91177308-0d34-0410-b5e6-96231b3b80d8

docs/SanitizerCoverage.rst

index decad72a14f5f2040b68aa418a916ebfa5943d8f..0e0c568c589b6ddb6d438a9ca697be816aa13b0e 100644 (file)
@@ -334,7 +334,7 @@ on every edge:
    if (guard_variable)
      __sanitizer_cov_trace_pc_guard(&guard_variable)
 
-Every edge will have its own `guard_variable` (uintptr_t).
+Every edge will have its own `guard_variable` (uint32_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(uintptr_t *start, uintptr_t *stop);
+   __sanitizer_cov_trace_pc_guard_init(uint32_t_t *start, uint32_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.