From e0c58c044371f87a6e1dbdfad27aa6979f9b6807 Mon Sep 17 00:00:00 2001 From: Kostya Serebryany Date: Thu, 29 Sep 2016 17:43:24 +0000 Subject: [PATCH] [sanitizer-coverage/libFuzzer] make the guards for trace-pc 32-bit; create one array of guards per function, instead of one guard per BB. reorganize the code so that trace-pc-guard does not create unneeded globals git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@282735 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/SanitizerCoverage.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/SanitizerCoverage.rst b/docs/SanitizerCoverage.rst index decad72a14..0e0c568c58 100644 --- a/docs/SanitizerCoverage.rst +++ b/docs/SanitizerCoverage.rst @@ -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. -- 2.40.0