pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/32097
The following reply was made to PR pkg/32097; it has been noted by GNATS.
From: grant beattie <grant%NetBSD.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: pkg-manager%netbsd.org@localhost, gnats-admin%netbsd.org@localhost,
pkgsrc-bugs%netbsd.org@localhost
Subject: Re: pkg/32097
Date: Fri, 18 Nov 2005 14:32:18 +1100
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