This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Fix m_hwp_regs size for ppc64le
ClosedPublic

Authored by nikic on Oct 18 2022, 2:14 AM.

Details

Summary

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.

Diff Detail

Event Timeline

nikic created this revision.Oct 18 2022, 2:14 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 18 2022, 2:14 AM
nikic requested review of this revision.Oct 18 2022, 2:14 AM
labath accepted this revision.Oct 18 2022, 4:10 AM
This revision is now accepted and ready to land.Oct 18 2022, 4:10 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptOct 18 2022, 6:12 AM