[compiler-rt] [scudo] do not store size inside ring buffer (PR #74541)

via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 5 16:55:08 PST 2023


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 8f9aac44279dbc1e7fdc5e4263da2b237db0cfc1 a74e81ea3bd2cc8576d5e513080b61deb1743c14 -- compiler-rt/lib/scudo/standalone/combined.h compiler-rt/lib/scudo/standalone/fuzz/get_error_info_fuzzer.cpp compiler-rt/lib/scudo/standalone/wrappers_c_bionic.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/compiler-rt/lib/scudo/standalone/combined.h b/compiler-rt/lib/scudo/standalone/combined.h
index a44e27b4b5..65ddc48837 100644
--- a/compiler-rt/lib/scudo/standalone/combined.h
+++ b/compiler-rt/lib/scudo/standalone/combined.h
@@ -1522,7 +1522,8 @@ private:
   void unmapRingBuffer() {
     auto *RingBuffer = getRingBuffer();
     if (RingBuffer != nullptr) {
-      RawRingBufferMap.unmap(RawRingBufferMap.getBase(), RawRingBufferMap.getCapacity());
+      RawRingBufferMap.unmap(RawRingBufferMap.getBase(),
+                             RawRingBufferMap.getCapacity());
     }
     RawRingBuffer = nullptr;
   }

``````````

</details>


https://github.com/llvm/llvm-project/pull/74541


More information about the llvm-commits mailing list