[all-commits] [llvm/llvm-project] 1cbddc: [DebugInfo] Use DW_OP_deref_size for DW_OP_LLVM_ex...

John Brawn via All-commits all-commits at lists.llvm.org
Thu Jul 11 09:02:51 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1cbddcebb9a9f97ed04f35a859e31d55f6b9b824
      https://github.com/llvm/llvm-project/commit/1cbddcebb9a9f97ed04f35a859e31d55f6b9b824
  Author: John Brawn <john.brawn at arm.com>
  Date:   2024-07-11 (Thu, 11 Jul 2024)

  Changed paths:
    M llvm/lib/CodeGen/AsmPrinter/DwarfExpression.cpp
    M llvm/test/DebugInfo/X86/DW_OP_LLVM_extract_bits.ll

  Log Message:
  -----------
  [DebugInfo] Use DW_OP_deref_size for DW_OP_LLVM_extract_bits (#97609)

Using DW_OP_deref can result in the debugger reading past the end of an
object into inaccessible memory, causing an error. Instead use
DW_OP_deref_size to make sure we don't read any bytes beyond what we
need to.



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