[llvm-bugs] [Bug 42735] New: Properly handle 640-bit DWARF .debug_line sections

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jul 24 02:26:11 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=42735

            Bug ID: 42735
           Summary: Properly handle 640-bit DWARF .debug_line sections
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: DebugInfo
          Assignee: unassignedbugs at nondot.org
          Reporter: jh7370.2008 at my.bristol.ac.uk
                CC: jdevlieghere at apple.com, keith.walker at arm.com,
                    llvm-bugs at lists.llvm.org,
                    paul_robinson at playstation.sony.com

The DWARFDebugLine LineTable parse functionality is decidedly mixed as to its
support for 64-bit line tables. The prologue parser understands DWARF64, and
the prologue's fields are appropriately uint64_t in size. However, the offset
pointer passed around is only a uint32_t one, as are various related variables
e.g. EndOffset and DebugLineOffset in LineTable::parse, which means that you'll
get weird behaviour if we ever actually exercise the parser on a large section.

We should fix this by updating the DataExtractor class to work with uint64_t
sizes, and updating all our offset variables in this file (including the PRIx32
printing of them).

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190724/1b09f483/attachment.html>


More information about the llvm-bugs mailing list