Current-Users archive

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

Re: ipfstat dumps core on sparc - unaligned read?



On Fri 06 Mar 2009 at 13:20:51 -0500, Greg Troxel wrote:
> +     /* XXX Why is this size ok? */
> +     u_long *array = calloc(sizeof(u_long), 1000);
>  
>       if (use_inet6 == 1)
>               fb.fr_v = 6;
> @@ -819,8 +821,6 @@ char *group, *comment;
>       obj.ipfo_ptr = &rule;
>  
>       do {
> -             u_long array[1000];
> -
>               memset(array, 0xff, sizeof(array));

sizeof(array) is now not what you want.

-Olaf.
-- 
___ Olaf 'Rhialto' Seibert    -- You author it, and I'll reader it.
\X/ rhialto/at/xs4all.nl      -- Cetero censeo "authored" delendum esse.


Home | Main Index | Thread Index | Old Index