RE: PATCH: fix uninitialized use of handle in struct policy_file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Todd Miller wrote:
> Joshua Brindle wrote:
>> Hrm. Why aren't we using an initializer for this struct so that this
>> sort of thing doesn't happen?
> 
> That's probably a nicer approach, I was going for a minimal change.
> I suppose at its simplest the initializer could just memset()
> the struct.  Alternately, it could take the values to set as
> parameters. 
> 

I prefer it to memset or set the values to null explicitly, the caller
can then set the members it wants to.


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@xxxxxxxxxxxxx with
the words "unsubscribe selinux" without quotes as the message.

[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux