// For cmp instructions the interesting value is a XOR of the parameters.
// The interesting value is mixed up with the PC and is then added to the map.
+#ifdef __clang__ // avoid gcc warning.
+__attribute__((no_sanitize("memory")))
+#endif
void TracePC::AddValueForMemcmp(void *caller_pc, const void *s1, const void *s2,
size_t n) {
if (!n) return;
};
Module Modules[4096];
- size_t NumModules = 0;
- size_t NumGuards = 0;
+ size_t NumModules; // linker-initialized.
+ size_t NumGuards; // linker-initialized.
static const size_t kNumCounters = 1 << 14;
alignas(8) uint8_t Counters[kNumCounters];