pkgsrc-Bugs archive

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

Re: pkg/32097



On Fri, Nov 18, 2005 at 12:38:01AM +0000, segv%netctl.net@localhost wrote:

>  and then later in the file the macro is called in the following way:
>  
>  MAKEEXTRALIST(flag, extra, "");
>  
>  the third argument to the macro causes problems, because it expands to empty
>  string constants, which are stored at different addresses, so on a big-endian
>  sparc machine:
>  
>  extra = alloca((size_t)((o - orig) + MAXEXTRAS));
>  
>  calls alloca() funcation, passing it a huge number, which overruns the stack
>  and crashes the program.

excellent! thanks for tracking this down, I have committed your fix to
vis.c.

grant.




Home | Main Index | Thread Index | Old Index