Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!bloom-beacon!shelby!mcnc!rti!xyzzy!dg-rtp.dg.com!meissner From: meissner@dg-rtp.dg.com (Michael Meissner) Newsgroups: gnu.bash.bug Subject: Bug in bash 1.02 Message-ID: <7605@xyzzy.UUCP> Date: 10 Jul 89 13:06:14 GMT Sender: usenet@xyzzy.UUCP Reply-To: meissner@dg-rtp.dg.com (Michael Meissner) Distribution: gnu Organization: Data General (Languages @ Research Triangle Park, NC.) Lines: 10 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?