Subject: Re: Bad pAUX_base
To: None <rmk@rmkhome.com>
From: Martin Husemann <martin@duskware.de>
List: port-sparc
Date: 04/21/2005 21:16:50
On Thu, Apr 21, 2005 at 01:01:23PM -0600, Rick Kelly wrote:
> I deleted /usr/src and did a cvs checkout the other day.

What branch did you check out?
I wonder if it is related to this change (pullup to the 2.x branch pending)

Martin


Module Name:	src
Committed By:	dsl
Date:		Mon Feb 14 20:46:26 UTC 2005

Modified Files:
	src/bin/sh: expand.c

Log Message:
expbackq() was incorrectly backing up a temporary buffer when removing \n
from the end of output of commands inside $(...) substitutions.
If the program output is n*128+1 bytes long (ending in a \n) then the code
checks buf[-1] for another \n - looking an uninitialised stack.
On a big-endian system an integer of value 10 will satisfy this (unlikely
on little endian) and can happen depending on the last code path to use
a lot of stack!
This caused the problem with newvers.sh on sparc64 after ', 2005' was
added to the date list.
Fixed PR/28852


To generate a diff of this commit:
cvs rdiff -r1.67 -r1.68 src/bin/sh/expand.c