[all-commits] [llvm/llvm-project] 6f59f3: [lldb] Fix m_hwp_regs size for ppc64le (PR54520)

Nikita Popov via All-commits all-commits at lists.llvm.org
Tue Oct 18 06:12:36 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6f59f302e4358b4dc869bc298c2b9c06aa716b60
      https://github.com/llvm/llvm-project/commit/6f59f302e4358b4dc869bc298c2b9c06aa716b60
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-10-18 (Tue, 18 Oct 2022)

  Changed paths:
    M lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_ppc64le.h

  Log Message:
  -----------
  [lldb] Fix m_hwp_regs size for ppc64le (PR54520)

The size of the m_hwp_regs array should match the default value of
m_max_hwp_supported. This ensures that no out-of-bounds accesses
occur, even if the array is accessed prior to a call to
ReadHardwareDebugInfo().

Fixes https://github.com/llvm/llvm-project/issues/54520, see also
there for additional background.

Differential Revision: https://reviews.llvm.org/D136144




More information about the All-commits mailing list