🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.bash.bug
Article #484

backquote dumps core on eof (bash-1.02)

#484
From: Scott Schwartz
Date: Mon, 21 Aug 1989 02:39
13 lines
775 bytes
psuvax1$ .  .profile `
>				# typed ctrl-D here
Unexpected EOF.  Looking for ``'.
Segmentation fault (core dumped)

It dies in yy_readline_get:  parse.y near line 440:
	``if (!current_readline_line[current_readline_line_index])''

No check is made that current_readline_line isn't EOF.
Should this be checked for on entry to yy_readline_get?

-- Scott
Technical Details
Message-ID: <8908210239.AA20448@shire.cs.psu.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!SHIRE.CS.PSU.EDU!schwartz

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!SHIRE.CS.PSU.EDU!schwartz
From: schwartz@SHIRE.CS.PSU.EDU (Scott Schwartz)
Newsgroups: gnu.bash.bug
Subject: backquote dumps core on eof (bash-1.02)
Message-ID: <8908210239.AA20448@shire.cs.psu.edu>
Date: 21 Aug 89 02:39:04 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 13