[all-commits] [llvm/llvm-project] 7e8ce3: [lldb] Bound JSON object file text by buffer size ...

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Mon Sep 14 20:24:06 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7e8ce3bd5b7460685e060a3b86d054cfdc22f2bf
      https://github.com/llvm/llvm-project/commit/7e8ce3bd5b7460685e060a3b86d054cfdc22f2bf
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2026-09-14 (Mon, 14 Sep 2026)

  Changed paths:
    M lldb/source/Plugins/ObjectFile/JSON/ObjectFileJSON.cpp
    M lldb/test/API/functionalities/json/object-file/TestObjectFileJSON.py

  Log Message:
  -----------
  [lldb] Bound JSON object file text by buffer size (#223575)

ObjectFileJSON created a StringRef from a bare pointer without a length.
Mapped buffers lack a NULL terminator, causing strlen to read past
page-aligned mappings.

Pass the buffer size and stop at the first NULL to handle unterminated
mappings and zero-padded probe reads.

rdar://186899370



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