[gnu.bash.bug] bug in bash 1.02

meissner@dg-rtp.dg.com (Michael Meissner) (07/10/89)

I just noticed a new tar (1.02) on prep.ai.mit.edu, and built it
locally.  It appears that this version of bash has a serious flaw in
it.  If you type ^D instead of exit or bye, bash will core dump.  The
reason is readline returns (char *)EOF on end of file (why not
(char *)0, which is required to be supported, wheras (char *)-1 is
not).  The function yy_readline_get does a xrealloc on this pointer.
--
Michael Meissner, Data General.
Uucp:		...!mcnc!rti!xyzzy!meissner		If compiles were much
Internet:	meissner@dg-rtp.DG.COM			faster, when would we
Old Internet:	meissner%dg-rtp.DG.COM@relay.cs.net	have time for netnews?

jbayer@ispi.UUCP (Jonathan Bayer) (08/28/89)

I have just gotten bash 1.02 compiled on my system.  I have a small
bug:

when typing a ctrl-D bash dies with a "Memory fault - core dump".  However,
typing exit or bye does work.  

This is running on an SCO Xenix 2.3.2 system with the 2.3 development system.

Please e-mail as my feed for this group is erratic presently.

Thanks.


JB
-- 
Jonathan Bayer		Intelligent Software Products, Inc.
(201) 245-5922		500 Oakwood Ave.
jbayer@ispi.COM		Roselle Park, NJ   07204