Thread View: gnu.bash.bug
1 messages
1 total messages
Started by Tony Schene
Tue, 25 Jul 1989 23:06
bash bug report
Author: Tony Schene
Date: Tue, 25 Jul 1989 23:06
Date: Tue, 25 Jul 1989 23:06
18 lines
975 bytes
975 bytes
Version: #define VERSION 1.02 Hardware: Sun 4/280 OS: SunOS 4.0.2 with Prisma enhancements and bug fixes Compiler: Sun cc with Prisma bug fixes and enhancements Bug: bash crashes if ^D is input Repeat by: 1) Start up bash 2) Type ^D Comments: The problem is in yy_readline_get() in line 430 of parse.y, on the call to readline(). Readline() returns -1 on EOF, but this is not checked for, and the -1 is later passed to strlen() on line 435. Instant death. I don't have a clue as to how to propagate this back up gracefully, but I'm sure you do. Hope this helps.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads