diff options
author | Fangrui Song <maskray@google.com> | 2018-09-07 00:18:07 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2018-09-07 00:18:07 +0000 |
commit | 1fe3e8b26fffe117a66e7accb413da627740abee (patch) | |
tree | 94c1b8eb173fd0b3a9b40dfd66c357f5b6d30399 /llvm/tools/llvm-objcopy/llvm-objcopy.cpp | |
parent | f9ec62cb3acd62a089f71eab4185ba1310296ea1 (diff) | |
download | llvm-1fe3e8b26fffe117a66e7accb413da627740abee.zip llvm-1fe3e8b26fffe117a66e7accb413da627740abee.tar.gz llvm-1fe3e8b26fffe117a66e7accb413da627740abee.tar.bz2 |
[ELF] Check if LinkSec is nullptr when initializing SHF_LINK_ORDER sections
Summary: This protects lld from a null pointer dereference when a faulty input file has such invalid sh_link fields.
Reviewers: ruiu, espindola
Reviewed By: ruiu
Subscribers: emaste, arichardson, llvm-commits
Differential Revision: https://reviews.llvm.org/D51743
llvm-svn: 341611
Diffstat (limited to 'llvm/tools/llvm-objcopy/llvm-objcopy.cpp')
0 files changed, 0 insertions, 0 deletions