[PATCH] D141698: doc: Rewrite opening paragraph of CFI Design Doc

Bastian Kersting via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 13 08:17:40 PST 2023


1c3t3a created this revision.
Herald added a project: All.
1c3t3a requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D141698

Files:
  clang/docs/ControlFlowIntegrityDesign.rst


Index: clang/docs/ControlFlowIntegrityDesign.rst
===================================================================
--- clang/docs/ControlFlowIntegrityDesign.rst
+++ clang/docs/ControlFlowIntegrityDesign.rst
@@ -8,11 +8,12 @@
 Forward-Edge CFI for Virtual Calls
 ==================================
 
-This scheme works by allocating, for each static type used to make a virtual
-call, a region of read-only storage in the object file holding a bit vector
-that maps onto to the region of storage used for those virtual tables. Each
-set bit in the bit vector corresponds to the `address point`_ for a virtual
-table compatible with the static type for which the bit vector is being built.
+This scheme works by allocating a region of read-only storage in the object
+file that holds a bit vector which maps onto the region of storage used for
+the virtual tables. This is done for each static type that is used to make a
+virtual call. Each set bit in the bit vector corresponds to the `address point`_
+for a virtual table compatible with the static type for which the bit vector is
+being built.
 
 For example, consider the following three C++ classes:
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141698.489023.patch
Type: text/x-patch
Size: 1159 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230113/905c9534/attachment.bin>


More information about the cfe-commits mailing list