[SSSD] [PATCH] IPA: Fix SELinux mapping order memory hierarchy
Jakub Hrozek
jhrozek at redhat.com
Thu Apr 3 10:58:03 UTC 2014
On Thu, Apr 03, 2014 at 09:45:46AM +0200, Sumit Bose wrote:
> On Wed, Apr 02, 2014 at 10:29:15PM +0200, Jakub Hrozek wrote:
> > Hi,
> >
> > please see the attached patch that fixes a use-after-free bug in the
> > SELinux provider.
> >
> > Pair-Programmed-With: lslebodn at redhat.com
>
> The patch solves the issue, but I think the issue was there in the first
> place, because the 'order' string is somewhat hidden. I would suggest to
> use a struct like
>
> struct order_ctx {
> const char *order;
> char **order_array;
> size_t order_count;
> };
>
> It might be a bit overkill for this small usage, but I think it makes
> the intention and the relation between order and order_array more clear.
>
> bye,
> Sumit
Would you accept this small patch for 1.11 and your proposed (and
better, I agree) change for master?
More information about the sssd-devel
mailing list