[all-commits] [llvm/llvm-project] 370d7c: [Clang] Add pointer field protection feature.

Peter Collingbourne via All-commits all-commits at lists.llvm.org
Thu Feb 19 15:19:58 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 370d7ce58011eccfab8105eddbc028cc09c4c5e5
      https://github.com/llvm/llvm-project/commit/370d7ce58011eccfab8105eddbc028cc09c4c5e5
  Author: Peter Collingbourne <pcc at google.com>
  Date:   2026-02-19 (Thu, 19 Feb 2026)

  Changed paths:
    A clang/docs/StructureProtection.rst
    M clang/docs/index.rst
    M clang/include/clang/AST/ASTContext.h
    M clang/include/clang/AST/CXXRecordDeclDefinitionBits.def
    M clang/include/clang/AST/DeclCXX.h
    M clang/include/clang/Basic/Attr.td
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/include/clang/Basic/LangOptions.def
    M clang/include/clang/Options/Options.td
    M clang/lib/AST/ASTContext.cpp
    M clang/lib/AST/DeclCXX.cpp
    M clang/lib/AST/ExprConstant.cpp
    M clang/lib/AST/TypePrinter.cpp
    M clang/lib/CodeGen/CGCall.cpp
    M clang/lib/CodeGen/CGClass.cpp
    M clang/lib/CodeGen/CGExpr.cpp
    M clang/lib/CodeGen/CGExprAgg.cpp
    M clang/lib/CodeGen/CGExprConstant.cpp
    M clang/lib/CodeGen/CodeGenFunction.cpp
    M clang/lib/CodeGen/CodeGenFunction.h
    M clang/lib/CodeGen/CodeGenModule.cpp
    M clang/lib/CodeGen/CodeGenModule.h
    M clang/lib/CodeGen/ItaniumCXXABI.cpp
    M clang/lib/CodeGen/MicrosoftCXXABI.cpp
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/lib/Frontend/InitPreprocessor.cpp
    M clang/lib/Sema/SemaDeclAttr.cpp
    A clang/test/CodeGenCXX/pfp-attribute-disable.cpp
    A clang/test/CodeGenCXX/pfp-coerce.cpp
    A clang/test/CodeGenCXX/pfp-load-store.cpp
    A clang/test/CodeGenCXX/pfp-member-pointer-offsetof.cpp
    A clang/test/CodeGenCXX/pfp-memcpy.cpp
    A clang/test/CodeGenCXX/pfp-null-init.cpp
    A clang/test/CodeGenCXX/pfp-struct-gep.cpp
    M clang/test/Misc/pragma-attribute-supported-attributes-list.test
    A clang/test/Preprocessor/pfp-predefines.c
    A clang/test/SemaCXX/attr-pointer-field-protection.cpp

  Log Message:
  -----------
  [Clang] Add pointer field protection feature.

Pointer field protection is a use-after-free vulnerability
mitigation that works by changing how data structures' pointer
fields are stored in memory. For more information, see the RFC:
https://discourse.llvm.org/t/rfc-structure-protection-a-family-of-uaf-mitigation-techniques/85555

Reviewers: fmayer, ojhunt

Pull Request: https://github.com/llvm/llvm-project/pull/172119



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list