]> granicus.if.org Git - llvm/commit
[dsymutil] Don't resolve DIE reference to NULL DIE.
authorJonas Devlieghere <jonas@devlieghere.com>
Thu, 21 Sep 2017 10:28:33 +0000 (10:28 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Thu, 21 Sep 2017 10:28:33 +0000 (10:28 +0000)
commit28b2d0c96f2277b87f50dde6e3e9d6273617b1e6
tree1a16e44eed187aa68f5a621dd7ff69cbcecbde43
parente6b7c56b2ee013be90efbdf61d4989c9b36c63cf
[dsymutil] Don't resolve DIE reference to NULL DIE.

This patch prevents dsymutil from resolving a reference to a NULL DIE
when a bogus reference happens to be coincidentally referencing a NULL
DIE. Now this is detected as an invalid reference and a warning is
printed.

Fixes: https://bugs.llvm.org/show_bug.cgi?id=33873
Differential revision: https://reviews.llvm.org/D38078

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313872 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/dsymutil/Inputs/null_die.o [new file with mode: 0644]
test/tools/dsymutil/null-die.test [new file with mode: 0644]
tools/dsymutil/DwarfLinker.cpp