]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
From submitter:
authorMartin Cracauer <cracauer@FreeBSD.org>
Wed, 16 Aug 2000 10:39:43 +0000 (10:39 +0000)
committerMartin Cracauer <cracauer@FreeBSD.org>
Wed, 16 Aug 2000 10:39:43 +0000 (10:39 +0000)
commit84c3800cdcd0ca86a1c678a9eeb1adb3279550c4
tree85d61b5f5d4aca6f3733287a2abc91d067aa3b34
parent0150f3ec9b7c1f917c9322cddde710e131b5da88
From submitter:
growstackblock() sometimes relocates a stack_block considered empty
without properly relocating stack marks referencing that block.
The first call to popstackmark() with the unrelocated stack mark
as argument then causes sh to abort.

Relocating the relevant stack marks seems to solve this problem.

The patch changes the semantics of popstackmark() somewhat.  It can
only be called once after a call to setstackmark(), thus cmdloop() in
main.c needs an extra call to setstackmark().

PR: bin/19983
Submitted by: Tor.Egge@fast.no
Reviewed by: Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
bin/sh/main.c
bin/sh/memalloc.c
bin/sh/memalloc.h