[Lldb-commits] [lldb] [lldb][Mach-O] Bound export-trie symbol name length (PR #202947)

via lldb-commits lldb-commits at lists.llvm.org
Wed Jun 10 12:57:58 PDT 2026


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 origin/main HEAD --extensions cpp -- lldb/source/Plugins/ObjectFile/Mach-O/MachOTrie.cpp lldb/unittests/ObjectFile/MachO/MachOTrieTest.cpp --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

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

``````````diff
diff --git a/lldb/source/Plugins/ObjectFile/Mach-O/MachOTrie.cpp b/lldb/source/Plugins/ObjectFile/Mach-O/MachOTrie.cpp
index c245b0ba1..6ccf917f2 100644
--- a/lldb/source/Plugins/ObjectFile/Mach-O/MachOTrie.cpp
+++ b/lldb/source/Plugins/ObjectFile/Mach-O/MachOTrie.cpp
@@ -21,9 +21,9 @@ using namespace lldb_private;
 using namespace llvm::MachO;
 
 /// Upper bound on the length of a symbol name assembled from export-trie edge
-/// labels.  A corrupt trie can encode an edge label whose terminator is far away
-/// in the trie data, so a single label is many megabytes long; appending it to
-/// the running name would otherwise request an unbounded allocation.  No
+/// labels.  A corrupt trie can encode an edge label whose terminator is far
+/// away in the trie data, so a single label is many megabytes long; appending
+/// it to the running name would otherwise request an unbounded allocation.  No
 /// legitimate symbol name comes close to this size.  Also 1 MiB is the
 /// symbol length limit in ld.
 static constexpr size_t kMaxTrieSymbolNameLength = 1 << 20; // 1 MiB

``````````

</details>


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


More information about the lldb-commits mailing list