[PATCH] D72154: [DebugInfo] Make debug line address size mismatch non-fatal to parsing

Igor Kudrin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 30 00:17:51 PST 2020


ikudrin added inline comments.


================
Comment at: llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp:621
+          // address size.
           DebugLineData.setAddressSize(Len - 1);
+          State.Row.Address.Address = DebugLineData.getRelocatedAddress(
----------------
@jhenderson, it looks like that an incorrect `Len` value, i. e. not `1`, `2`, `4` or `8`, eventually leads to a crash in `DataExtractor::getUnsigned()`. Please add a patch to check that case.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D72154/new/

https://reviews.llvm.org/D72154





More information about the llvm-commits mailing list