[all-commits] [llvm/llvm-project] df6d05: Fix a crash in DWARFUnit::getInlinedChainForAddres...

orlov-alex via All-commits all-commits at lists.llvm.org
Tue Mar 9 02:21:45 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: df6d0579e18e868ef4b6e97794eacd5af86e1b8a
      https://github.com/llvm/llvm-project/commit/df6d0579e18e868ef4b6e97794eacd5af86e1b8a
  Author: Alex Orlov <aorlov at accesssoftek.com>
  Date:   2021-03-09 (Tue, 09 Mar 2021)

  Changed paths:
    M llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp
    A llvm/test/DebugInfo/invalid-inlined-subroutine.s

  Log Message:
  -----------
  Fix a crash in DWARFUnit::getInlinedChainForAddress in case of unexpected DWARF information.

In some cases a broken or invalid debug info could cause a crash in DWARFUnit::getInlinedChainForAddress during parsing a chain of in-lined functions. This patch fixes this issue.

Reviewed By: dblaikie

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




More information about the All-commits mailing list