llvm-mirror/test/tools/llvm-dwarfdump
Pavel Labath 58fd4ef93a [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
2020-03-24 15:11:54 +01:00
..
AArch64 [llvm/dwarfdump] Use the architecture string to filter. 2019-12-09 17:17:01 -08:00
RISCV [DWARF][RISCV] Test resolving of RISC-V relocations 2019-12-10 14:02:07 +00:00
X86 [DWARF] Fix v5 debug_line parsing of prologues with many files 2020-03-24 15:11:54 +01:00
cmdline.test [binutils] Add response file option to help and docs 2019-06-21 11:49:20 +00:00
coff-arm64.yaml [Object] Implement relocation resolver for COFF ARM/ARM64 2019-09-10 12:31:40 +00:00
coff-arm.yaml [Object] Implement relocation resolver for COFF ARM/ARM64 2019-09-10 12:31:40 +00:00
coff-i386.yaml [Object] Implement relocation resolver for COFF ARM/ARM64 2019-09-10 12:31:40 +00:00
coff-x86_64.yaml [Object] Implement relocation resolver for COFF ARM/ARM64 2019-09-10 12:31:40 +00:00
debug-frame-dumps-eh-frame-and-debug-frame.yaml [test][llvm-dwarfdump] Add missing testing for some --debug-* options 2019-12-11 13:42:54 +00:00
debug-str.yaml [test][llvm-dwarfdump] Add missing testing for some --debug-* options 2019-12-11 13:42:54 +00:00
elf-broken-reloc-target.yaml [llvm/Object] - Make ELFObjectFile::getRelocatedSection return Expected<section_iterator> 2019-10-21 11:06:38 +00:00
filter.test [llvm/dwarfdump] Use the architecture string to filter. 2019-12-09 17:17:01 -08:00
lit.local.cfg llvm-dwarfdump: support dumping UUIDs of Mach-O binaries. 2017-09-13 18:22:59 +00:00
uuid32.yaml dwarfdump: Match the --uuid output with that of Darwin dwarfdump. 2018-01-05 21:44:17 +00:00
uuid.yaml dwarfdump: Match the --uuid output with that of Darwin dwarfdump. 2018-01-05 21:44:17 +00:00