[PATCH] D38428: Add FileVerifier::isCFIProtected().

Mitch Phillips via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 9 12:45:55 PDT 2017


hctim added inline comments.


================
Comment at: tools/llvm-cfi-verify/FileAnalysis.h:72
+  // otherwise.
+  bool isCFIProtected(uint64_t Address) const;
+
----------------
vlad.tsyrklevich wrote:
> `isCFIProtectedIndirectBranch` ?
Related to https://reviews.llvm.org/D38379#inline-337653.

Covers indirect calls as well, LMK if you want this change.


================
Comment at: tools/llvm-cfi-verify/llvm-cfi-verify.cpp:46
     outs() << "\n";
+    outs() << "  Protected? " << Verifier.isCFIProtected(Address) << "\n";
   }
----------------
vlad.tsyrklevich wrote:
> Only print this line for indirect branches?
Related to https://reviews.llvm.org/D38379#inline-337653.

This currently only prints indirect calls + jumps. Should this be changed?


https://reviews.llvm.org/D38428





More information about the llvm-commits mailing list