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

Dávid Bolvanský via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 12 05:59:03 PDT 2022


xbolva00 added a comment.

>> While I agree with the security aspects of this in principle, it is not a conforming behavior in C and it runs significant risk of breaking existing code such that it introduces new security issues.

I agree strongly. This could happily can do more harm than good ("the road to hell is paved with good intentions"). Please leave it opt-in or introduce "modes" for this feature like -frandomize-struct=func-pointers | -frandomize-struct=xxx | -frandomize-struct=all.


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