MCPcopy Create free account
hub / github.com/HexHive/NASS / ClearExtraCounters

Function ClearExtraCounters

fuzz/libfuzzer/FuzzerExtraCounters.cpp:21–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19
20namespace fuzzer {
21ATTRIBUTE_NO_SANITIZE_ALL
22void ClearExtraCounters() { // hand-written memset, don't asan-ify.
23 extern uint8_t *ExtraCountersBegin(); //{ return &__start___libfuzzer_extra_counters; }
24 extern uint8_t *ExtraCountersEnd(); //{ return &__stop___libfuzzer_extra_counters; }
25 uintptr_t *Beg = reinterpret_cast<uintptr_t*>(ExtraCountersBegin());
26 uintptr_t *End = reinterpret_cast<uintptr_t*>(ExtraCountersEnd());
27 for (; Beg < End; Beg++) {
28 *Beg = 0;
29 __asm__ __volatile__("" : : : "memory");
30 }
31}
32
33} // namespace fuzzer
34

Callers 1

ResetMapsMethod · 0.70

Calls 2

ExtraCountersBeginFunction · 0.70
ExtraCountersEndFunction · 0.70

Tested by

no test coverage detected