[randstruct] Automatically randomize a structure of function pointers
authorBill Wendling <isanbard@gmail.com>
Fri, 29 Apr 2022 18:04:58 +0000 (11:04 -0700)
committerBill Wendling <isanbard@gmail.com>
Fri, 29 Apr 2022 18:05:09 +0000 (11:05 -0700)
commit6f79700830292d86afec5f3cf5143b00e6f3f1fd
treef67b864045426b804df67fd356363fb0b774771d
parentec6d1a0278dd22606f085c3584e8d3a26a4478c1
[randstruct] Automatically randomize a structure of function pointers

Strutures of function pointers are a good surface area for attacks. We
should therefore randomize them unless explicitly told not to.

Reviewed By: aaron.ballman, MaskRay

Differential Revision: https://reviews.llvm.org/D123544
clang/lib/Sema/SemaDecl.cpp
clang/unittests/AST/RandstructTest.cpp