Re: [PATCH 2/2] randstruct: remove dead code in is_pure_ops_struct()

2019-08-01 Thread Joonwon Kang
On Wed, Jul 31, 2019 at 12:59:30PM -0700, Kees Cook wrote: > On Thu, Aug 01, 2019 at 03:01:49AM +0900, Joonwon Kang wrote: > > Recursive declaration for struct which has member of the same struct > > type, for example, > > > > struct foo { > > struct foo f; > > ... > > }; > > > > is not a

Re: [PATCH 2/2] randstruct: remove dead code in is_pure_ops_struct()

2019-07-31 Thread Kees Cook
On Thu, Aug 01, 2019 at 03:01:49AM +0900, Joonwon Kang wrote: > Recursive declaration for struct which has member of the same struct > type, for example, > > struct foo { > struct foo f; > ... > }; > > is not allowed. So, it is unnecessary to check if a struct has this > kind of member.

[PATCH 2/2] randstruct: remove dead code in is_pure_ops_struct()

2019-07-31 Thread Joonwon Kang
Recursive declaration for struct which has member of the same struct type, for example, struct foo { struct foo f; ... }; is not allowed. So, it is unnecessary to check if a struct has this kind of member. Signed-off-by: Joonwon Kang --- scripts/gcc-plugins/randomize_layout_plugin.c |