79668321

Date: 2025-06-16 23:02:40
Score: 2
Natty:
Report link

There are compiler plugins for gcc and clang that randomize struct layouts (Randstruct). This is primarily used in the Linux Kernel: https://lwn.net/Articles/722293/

The clang PR: https://reviews.llvm.org/D121556

I'm unsure if these plugins have support for C++ structs/classes but it might be possible.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Lars Wrenger