This will ensure that nothing can ever start parsing data from a future sequence and part-read data will be returned as 0 instead.
Depends on D80795.
Paths
| Differential D80796
[DebugInfo] Add use of truncating data extractor to debug line parsing ClosedPublic Authored by jhenderson on May 29 2020, 6:32 AM.
Details Summary This will ensure that nothing can ever start parsing data from a future sequence and part-read data will be returned as 0 instead. Depends on D80795.
Diff Detail
Event Timelinejhenderson added a child revision: D80797: [DebugInfo] Check for errors when reading data for extended opcode.May 29 2020, 6:45 AM This revision is now accepted and ready to land.May 29 2020, 11:42 AM Comment Actions Looks good too. (and reminds me I should really get back to finishing my patch for parsing the prologue).
jhenderson added inline comments.
Comment Actions
By the way, could you refresh me on what that patch will be doing? I've got a few more patches in related areas I want to work on, but I don't want to tread on your toes, if you are already part way through doing one or more of these changes! Closed by commit rGe8bcf4ef07cc: [DebugInfo] Add use of truncating data extractor to debug line parsing (authored by jhenderson). · Explain WhyJun 1 2020, 4:46 AM This revision was automatically updated to reflect the committed changes. Comment Actions
It's D77557 -- it does something similar to this patch, but handles the line table prologue. The patch had a bunch of dependencies, and was never my top priority so it got buried on my stack.. I have a bit of time now, so let me see what it takes to revive it...
Revision Contents
Diff 267586 llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp
llvm/test/tools/llvm-dwarfdump/X86/Inputs/debug_line_malformed.s
llvm/test/tools/llvm-dwarfdump/X86/debug_line_invalid.test
|
Ideally, I think we should not print this opcode, as we weren't able to read all of it, but I think this is an improvement nonetheless.