[all-commits] [llvm/llvm-project] 1e820e: [DebugInfo/DWARF] - Do not hang when CFI are trunc...

Georgii Rymar via All-commits all-commits at lists.llvm.org
Tue Jun 23 04:52:42 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 1e820e82b1438a52124512175a0e7c6f8d23e158
      https://github.com/llvm/llvm-project/commit/1e820e82b1438a52124512175a0e7c6f8d23e158
  Author: Georgii Rymar <grimar at accesssoftek.com>
  Date:   2020-06-23 (Tue, 23 Jun 2020)

  Changed paths:
    M llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp
    M llvm/unittests/DebugInfo/DWARF/DWARFDebugFrameTest.cpp

  Log Message:
  -----------
  [DebugInfo/DWARF] - Do not hang when CFI are truncated.

Currently when the .eh_frame section is truncated so that
CFI instructions can't be read, it is possible to enter
an infinite loop.

It happens because `CFIProgram::parse` does not handle errors properly.
This patch fixes the issue.

Differential revision: https://reviews.llvm.org/D82017




More information about the All-commits mailing list