Re: PATCH: libsepol use correct pointer type in sizeof()

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

 



On Tue, 2008-02-12 at 15:59 -0500, Todd C. Miller wrote:
> This looks to be a cut & pasto from the chunk above it.  It won't change
> the code generated since sizeof(foo *) == sizeof(bar *) but it should
> probably be fixed anyway.
> 
> Signed-off-by: Todd C. Miller <tmiller@xxxxxxxxxx>
Acked-by:  Stephen Smalley <sds@xxxxxxxxxxxxx>

Merge at will.

> 
> Index: trunk/libsepol/src/users.c
> ===================================================================
> --- trunk/libsepol/src/users.c	(revision 2802)
> +++ trunk/libsepol/src/users.c	(working copy)
> @@ -237,7 +237,7 @@
>  
>  		tmp_ptr = realloc(policydb->sym_val_to_name[SYM_USERS],
>  				  (policydb->p_users.nprim +
> -				   1) * sizeof(user_datum_t *));
> +				   1) * sizeof(char *));
>  		if (!tmp_ptr)
>  			goto omem;
>  		policydb->sym_val_to_name[SYM_USERS] = tmp_ptr;
> 
> --
> 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.
-- 
Stephen Smalley
National Security Agency


--
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