Subject: bin/13850: /bin/sh coredumps if fed too many tildes
To: None <gnats-bugs@gnats.netbsd.org>
From: Ben Harris <bjh21@netbsd.org>
List: netbsd-bugs
Date: 09/01/2001 23:11:11
>Number: 13850
>Category: bin
>Synopsis: /bin/sh coredumps if fed many tildes
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Sep 01 15:07:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Ben Harris
>Release: 2001-02-20
>Organization:
>Environment:
Both macppc 1.5 and arm26 -current.
>Description:
If it gets a very long string of tildes on stdin (either from the keyboard
or a pipe) /bin/sh segfaults.
>How-To-Repeat:
viking:~$ perl -e 'print "~" x 3000' | sh
Segmentation fault (core dumped)
It may be necessary to increase 3000.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: