[PATCH] D123544: [randstruct] Automatically randomize a structure of function pointers

Dávid Bolvanský via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 11 13:56:45 PDT 2022


xbolva00 added inline comments.


================
Comment at: clang/lib/Sema/SemaDecl.cpp:17982
+
+    // Maybe randomize the field order. We automatically randomize a structure
+    // of function pointers, unless it has the "no_randomize_layout" attribute.
----------------
Is this allowed by C standard?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D123544/new/

https://reviews.llvm.org/D123544



More information about the cfe-commits mailing list