Skip to content

Commit

Permalink
Clang format #213
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalybuka committed Jan 17, 2024
1 parent e49cb00 commit 1f95f80
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/libfuzzer/libfuzzer_mutator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 <sanitizer/msan_interface.h>
# endif
#endif
#endif
#include <string.h>

Expand Down Expand Up @@ -72,9 +72,9 @@ T MutateValue(T v) {
memset(reinterpret_cast<uint8_t*>(&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;
}
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 1f95f80

Please sign in to comment.