OSDN Git Service

Add FileVerifier::isCFIProtected().
authorMitch Phillips <mitchphillips@outlook.com>
Wed, 25 Oct 2017 21:21:16 +0000 (21:21 +0000)
committerMitch Phillips <mitchphillips@outlook.com>
Wed, 25 Oct 2017 21:21:16 +0000 (21:21 +0000)
commit46254ad82346c14682f5f827c5bb77d3c2cdefff
tree4a125540d2db99ac182b26f7475d448d3b2c0114
parent3498a4cb172deb13502233da11b6af817af51f21
Add FileVerifier::isCFIProtected().

Add a CFI protection check that is implemented by building a graph and inspecting the output to deduce if the indirect CF instruction is CFI protected. Also added the output of this instruction to printIndirectInstructions().

Reviewers: vlad.tsyrklevich

Subscribers: llvm-commits, kcc, pcc, mgorny

Differential Revision: https://reviews.llvm.org/D38428

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@316610 91177308-0d34-0410-b5e6-96231b3b80d8
tools/llvm-cfi-verify/lib/FileAnalysis.cpp
tools/llvm-cfi-verify/lib/FileAnalysis.h
tools/llvm-cfi-verify/llvm-cfi-verify.cpp
unittests/tools/llvm-cfi-verify/FileAnalysis.cpp