[PATCH] D38462: [DebugInfo] Replace unreachable with ReportError in debug frame parser.

Jonas Devlieghere via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 2 08:50:36 PDT 2017


JDevlieghere created this revision.
Herald added subscribers: aheejin, sbc100.

The parser should not rely on assertions or unreachables for invalid
input. This patch replaces calls to llvm::unreachable with calls to
ReportError in the debug frame parser.

This fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3519
Test case is taken from there.


Repository:
  rL LLVM

https://reviews.llvm.org/D38462

Files:
  lib/DebugInfo/DWARF/DWARFDebugFrame.cpp
  test/DebugInfo/Inputs/dwarfdump-invalid-extended-cfi-opcode.wasm
  test/DebugInfo/dwarfdump-invalid-extended-cfi-opcode.test

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38462.117358.patch
Type: text/x-patch
Size: 8149 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171002/651553ca/attachment.bin>


More information about the llvm-commits mailing list