On Tue, 2016-03-15 at 11:02 +0000, David Binderman wrote: > Hello there, > > [linux-4.5/security/apparmor/match.c:64]: (error) Uninitialized struct > member: th.td_hilen > [linux-4.5/security/apparmor/match.c:64]: (error) Uninitialized struct > member: th.td_data > > Source code is > > *table = th; > > It looks to me like local struct th has only been partly initialised. [...]
Yes, but:
- td_hilen is, AFAICS, completely unused in this version of AppArmor
(so should presumably be removed from the struct definition)
- td_data
has zero size, so this warning seems incorrect
Ben.
--
Ben Hutchings
Hoare's Law of Large Problems:
Inside every large problem is a small problem struggling to get out.
signature.asc
Description: This is a digitally signed message part
-- AppArmor mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/apparmor
