[all-commits] [llvm/llvm-project] 2ecf92: [lldb/DWARF] Fix a crash parsing invalid dwarf (pr...

Pavel Labath via All-commits all-commits at lists.llvm.org
Thu Apr 8 07:48:42 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2ecf928153fc56dcb6bb0bd910584eac86bc23bd
      https://github.com/llvm/llvm-project/commit/2ecf928153fc56dcb6bb0bd910584eac86bc23bd
  Author: Pavel Labath <pavel at labath.sk>
  Date:   2021-04-08 (Thu, 08 Apr 2021)

  Changed paths:
    M lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp
    M lldb/unittests/SymbolFile/DWARF/DWARFUnitTest.cpp

  Log Message:
  -----------
  [lldb/DWARF] Fix a crash parsing invalid dwarf (pr49678)

If the debug info is missing the terminating null die, we would crash
when trying to access the nonexisting children/siblings. This was
discovered because the test case for D98619 accidentaly produced such
input.




More information about the All-commits mailing list