From aa747f1aee2772e7a3253b1ecbb3fab3330e1dc8 Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Tue, 16 Jan 2024 16:52:13 -0800 Subject: [PATCH] Clang format #213 --- src/libfuzzer/libfuzzer_mutator.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/libfuzzer/libfuzzer_mutator.cc b/src/libfuzzer/libfuzzer_mutator.cc index d2502ed..dbf78f5 100644 --- a/src/libfuzzer/libfuzzer_mutator.cc +++ b/src/libfuzzer/libfuzzer_mutator.cc @@ -15,9 +15,9 @@ #include "src/libfuzzer/libfuzzer_mutator.h" #if defined(__has_feature) -# if __has_feature(memory_sanitizer) +#if __has_feature(memory_sanitizer) #include -# endif +#endif #endif #include @@ -72,9 +72,9 @@ T MutateValue(T v) { memset(reinterpret_cast(&v) + size, 0, sizeof(v) - size); // The value from LLVMFuzzerMutate needs to be treated as initialized. #if defined(__has_feature) -# if __has_feature(memory_sanitizer) +#if __has_feature(memory_sanitizer) __msan_unpoison(&v, sizeof(v)); -# endif +#endif #endif return v; } @@ -106,9 +106,9 @@ std::string Mutator::MutateString(const std::string& value, value.size(), result.size())); // The value from LLVMFuzzerMutate needs to be treated as initialized. #if defined(__has_feature) -# if __has_feature(memory_sanitizer) +#if __has_feature(memory_sanitizer) __msan_unpoison(&result[0], result.size()); -# endif +#endif #endif return result; }