[PATCH] D85707: [DWARFYAML] Let the address size of line tables inferred from the object file.
Xing GUO via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 10 23:06:25 PDT 2020
Higuoxing created this revision.
Higuoxing added reviewers: jhenderson, grimar, MaskRay.
Herald added subscribers: llvm-commits, hiraditya, emaste.
Herald added a reviewer: espindola.
Herald added a project: LLVM.
Higuoxing requested review of this revision.
Currently, the line table uses the first compilation unit's address size
as its address size. There's a potential of accessing array out of
bounds. This patch helps resolve this issue. If the line table doesn't
have an associated compilation unit, yaml2obj will infer it from the
object file.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D85707
Files:
llvm/lib/ObjectYAML/DWARFEmitter.cpp
llvm/test/tools/yaml2obj/ELF/DWARF/debug-line.yaml
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85707.284582.patch
Type: text/x-patch
Size: 6421 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200811/627c3f27/attachment.bin>
More information about the llvm-commits
mailing list