Skip to content

automatic structure layout randomization for all-function-pointer structs misses composite structs #138355

@kees

Description

@kees

With -frandomize-layout-seed-file=..., this structure will correctly automatically be randomized as if it was marked with the randomize_layout attribute:

struct inner {
  int (a*)(int);
  int (b*)(void);
};

However, this will not:

struct compositve {
  struct inner inner;
  void (c*)(int);
};

The checking needs to examine composite structures as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:frontendLanguage frontend issues, e.g. anything involving "Sema"

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions