[all-commits] [llvm/llvm-project] f05c3d: [lldb] Add a corefile fuzzer (#225103)

Yao Qi via All-commits all-commits at lists.llvm.org
Thu Sep 24 01:28:04 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f05c3d51c42b23f1684d74c9084537ac5ea7ca36
      https://github.com/llvm/llvm-project/commit/f05c3d51c42b23f1684d74c9084537ac5ea7ca36
  Author: Yao Qi <yao_qi at apple.com>
  Date:   2026-09-24 (Thu, 24 Sep 2026)

  Changed paths:
    M lldb/tools/lldb-fuzzer/CMakeLists.txt
    A lldb/tools/lldb-fuzzer/lldb-corefile-fuzzer/CMakeLists.txt
    A lldb/tools/lldb-fuzzer/lldb-corefile-fuzzer/corefile.dict
    A lldb/tools/lldb-fuzzer/lldb-corefile-fuzzer/lldb-corefile-fuzzer.cpp

  Log Message:
  -----------
  [lldb] Add a corefile fuzzer (#225103)

Fuzzes the metadata parser when LLDB opens a corefile for Mach-O
and ELF.

The fuzzer writes input data to a tempfile and loads it through
`Process::LoadCore()`, the same way `target create --core` does.
It initializes both the macOS and Linux host platforms so the
core-load path runs regardless of which of the two OSes the fuzzer
itself is built on.

`lldb-target-fuzzer` does not reach any of this. It only calls
`SBDebugger::CreateTarget`, which builds a Target and its executable
Module; identifying that module parses the Mach-O/ELF header and
load/section commands, but never calls `Process::LoadCore`.

---------

Co-authored-by: Jonas Devlieghere <jonas at devlieghere.com>



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