[all-commits] [llvm/llvm-project] 2d48b4: Fix UB in DIExpression::appendOffset()

Adrian Prantl via All-commits all-commits at lists.llvm.org
Fri Aug 19 09:17:35 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2d48b403f6e21dc09fadf3b490a860873b85a3ac
  Author: Adrian Prantl <aprantl at apple.com>
  Date:   2022-08-19 (Fri, 19 Aug 2022)

  Changed paths:
    M llvm/lib/IR/DebugInfoMetadata.cpp
    A llvm/test/DebugInfo/salvage-overflow.ll

  Log Message:
  Fix UB in DIExpression::appendOffset()

The absolute value of 0x8000000000000000 does not fit into an int64_t
and UBSan tells us that by crashing.


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

More information about the All-commits mailing list