diff options
author | Pavel Labath <pavel@labath.sk> | 2020-03-20 15:27:37 +0100 |
---|---|---|
committer | Pavel Labath <pavel@labath.sk> | 2020-03-24 15:11:54 +0100 |
commit | d381b6a8d3e87d65f4ae9ca4d4333203e01825f5 (patch) | |
tree | 5a3d8e7c403421b76eba6362013b3b2926fbf7eb /lldb/source/Plugins/ScriptInterpreter/Python | |
parent | 7802be4a3d86743242273593d43a78df84ece8c1 (diff) | |
download | llvm-d381b6a8d3e87d65f4ae9ca4d4333203e01825f5.zip llvm-d381b6a8d3e87d65f4ae9ca4d4333203e01825f5.tar.gz llvm-d381b6a8d3e87d65f4ae9ca4d4333203e01825f5.tar.bz2 |
[DWARF] Fix v5 debug_line parsing of prologues with many files
Summary:
The directory_count and file_name_count fields are (section 6.2.4 of
DWARF5 spec) supposed to be uleb128s, not bytes. This bug meant that it
was not possible to correctly parse headers with more than 128 files or
directories.
I've found this bug by code inspection, though the limit is so small
someone would have run into it for real sooner or later. I've verified
that the producer side handles many files correctly, and that we are
able to parse such files after this fix.
Reviewers: dblaikie, jhenderson
Subscribers: aprantl, hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D76498
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python')
0 files changed, 0 insertions, 0 deletions