Subject: Re: pkg/32097
To: None <gnats-bugs@netbsd.org>
From: grant beattie <grant@NetBSD.org>
List: pkgsrc-bugs
Date: 11/18/2005 14:32:18
On Fri, Nov 18, 2005 at 12:38:01AM +0000, segv@netctl.net 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.