[all-commits] [llvm/llvm-project] 5e7b35: [lldb] Fix infinite recursion in Mach-O export tri...

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Tue Jun 9 15:27:52 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5e7b35d31eea52d0db2313d38e166a29a6265436
      https://github.com/llvm/llvm-project/commit/5e7b35d31eea52d0db2313d38e166a29a6265436
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2026-06-09 (Tue, 09 Jun 2026)

  Changed paths:
    M lldb/source/Plugins/ObjectFile/Mach-O/MachOTrie.cpp
    M lldb/unittests/ObjectFile/MachO/MachOTrieTest.cpp

  Log Message:
  -----------
  [lldb] Fix infinite recursion in Mach-O export trie parsing (#202773)

A malformed (or hostile) export trie whose child offset points back to a
node already on the path from the root (a cycle) made ParseTrieEntries
recurse forever and overflow the stack.

Track the node offsets visited during the walk and reject any trie that
revisits one. Add unit tests for a self-cycle and a back-edge cycle.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list