diff --git a/compiler-rt/lib/scudo/standalone/fuzz/get_error_info_fuzzer.cpp b/compiler-rt/lib/scudo/standalone/fuzz/get_error_info_fuzzer.cpp --- a/compiler-rt/lib/scudo/standalone/fuzz/get_error_info_fuzzer.cpp +++ b/compiler-rt/lib/scudo/standalone/fuzz/get_error_info_fuzzer.cpp @@ -22,21 +22,25 @@ uintptr_t FaultAddr = FDP.ConsumeIntegral(); uintptr_t MemoryAddr = FDP.ConsumeIntegral(); - std::string MemoryAndTags = FDP.ConsumeRandomLengthString(FDP.remaining_bytes()); + std::string MemoryAndTags = + FDP.ConsumeRandomLengthString(FDP.remaining_bytes()); const char *Memory = MemoryAndTags.c_str(); // Assume 16-byte alignment. size_t MemorySize = (MemoryAndTags.length() / 17) * 16; const char *MemoryTags = Memory + MemorySize; - std::string StackDepotBytes = FDP.ConsumeRandomLengthString(FDP.remaining_bytes()); + std::string StackDepotBytes = + FDP.ConsumeRandomLengthString(FDP.remaining_bytes()); std::vector StackDepot(sizeof(scudo::StackDepot), 0); - for (size_t i = 0; i < StackDepotBytes.length() && i < StackDepot.size(); ++i) { + for (size_t i = 0; i < StackDepotBytes.length() && i < StackDepot.size(); + ++i) { StackDepot[i] = StackDepotBytes[i]; } std::string RegionInfoBytes = FDP.ConsumeRemainingBytesAsString(); std::vector RegionInfo(AllocatorT::getRegionInfoArraySize(), 0); - for (size_t i = 0; i < RegionInfoBytes.length() && i < RegionInfo.size(); ++i) { + for (size_t i = 0; i < RegionInfoBytes.length() && i < RegionInfo.size(); + ++i) { RegionInfo[i] = RegionInfoBytes[i]; } diff --git a/compiler-rt/lib/scudo/standalone/tools/compute_size_class_config.cpp b/compiler-rt/lib/scudo/standalone/tools/compute_size_class_config.cpp --- a/compiler-rt/lib/scudo/standalone/tools/compute_size_class_config.cpp +++ b/compiler-rt/lib/scudo/standalone/tools/compute_size_class_config.cpp @@ -19,9 +19,8 @@ }; size_t measureWastage(const std::vector &allocs, - const std::vector &classes, - size_t pageSize, - size_t headerSize) { + const std::vector &classes, size_t pageSize, + size_t headerSize) { size_t totalWastage = 0; for (auto &a : allocs) { size_t sizePlusHeader = a.size + headerSize; @@ -55,7 +54,8 @@ } Alloc a; - while (fscanf(f, "\n", &a.size, &a.count) == 2) + while (fscanf(f, "\n", &a.size, + &a.count) == 2) allocs.push_back(a); fclose(f); } @@ -157,5 +157,6 @@ }; static const uptr SizeDelta = %zu; }; -)", headerSize); +)", + headerSize); }