christos
8e2797bc1e
PR/11283: Hubert Feyrer: random memory corruption executing commands:
...
Fix from FreeBSD:
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().
2000-11-01 19:56:01 +00:00
mycroft
8f48358936
Wrap malloc() calls with an INTOFF/INTON pair. Fixes PR 8414.
2000-10-21 04:37:17 +00:00
christos
7faabd5800
Include our local includes after the system's ones.
1998-01-31 12:36:16 +00:00
christos
cd799663e4
Fix compiler warnings.
1997-07-04 21:01:48 +00:00
tls
48250187e6
kill 'register'
1997-01-11 02:04:27 +00:00
christos
bc73cf950a
PR/2808: Remove trailing whitespace (from FreeBSD)
1996-10-16 15:45:03 +00:00
cgd
edc0ef345c
Fix growstackblock() 'newlen' calculations:
...
(1) it needs to be ALIGNed for both halves of the 'if,' and
(2) if you're going to claim that you now have ALIGN(newlen)
bytes left, you should have actually allocated
ALIGN(newlen), rather than just 'newlen' bytes.
1996-05-20 14:49:32 +00:00
christos
07bae7eddd
Merge in my changes from vangogh, and fix the x=false
; echo $? == 0
...
bug.
1995-05-11 21:28:33 +00:00
cgd
49f0ad8601
convert to new RCS id conventions.
1995-03-21 09:01:59 +00:00
mycroft
e848bd4fb5
Fix that last bug in a less expensive way.
1994-12-31 23:56:54 +00:00
cgd
809218efc4
take two: make grabstackstr() work correctly, in the face of strange filling.
1994-12-31 01:56:16 +00:00
mycroft
1c21834ccb
Remove previous misguided change.
1994-12-30 06:33:59 +00:00
cgd
e9aebcc9d8
don't play fast and loose with memory block allcation. try to allocate
...
in more-round sizes, but realize that not everybody will fill them up
exactly.
1994-12-23 13:21:01 +00:00
cgd
5dad143982
from James Jegers <jimj@miller.cs.uwm.edu>: quiet -Wall, and squelch
...
some of the worst style errors.
1994-12-04 07:11:37 +00:00
mycroft
06f53b6838
Eliminate uses of some obsolete functions.
1994-09-23 11:28:39 +00:00
mycroft
cafd1f7e9f
Add RCS ids.
1994-06-11 16:11:35 +00:00
jtc
98d2c75927
use prototypes provided by header files instead of our own
1994-05-12 17:08:55 +00:00
jtc
a81e412494
Include appropriate header files to bring function prototypes into scope.
1994-05-12 17:03:32 +00:00
jtc
37ed7877b2
sync with 4.4lite
1994-05-11 17:09:42 +00:00
mycroft
8542364e07
Add RCS identifiers.
1993-08-01 18:49:50 +00:00
cgd
06be60083d
changed "Id" to "Header" for rcsids
1993-03-23 00:22:59 +00:00
cgd
346aa5dd48
added rcs ids to all files
1993-03-22 08:04:00 +00:00
cgd
61f282557f
initial import of 386bsd-0.1 sources
1993-03-21 09:45:37 +00:00