Date: Sun, 30 May 2010 14:20:32 +0000 (UTC) From: Jilles Tjoelker <jilles@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/bin/sh parser.c src/tools/regression/bin/sh/parser heredoc6.0 Message-ID: <201005301422.o4UEMAls055766@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jilles 2010-05-30 14:20:32 UTC FreeBSD src repository Modified files: bin/sh parser.c Added files: tools/regression/bin/sh/parser heredoc6.0 Log: SVN rev 208656 on 2010-05-30 14:20:32Z by jilles sh: Fix a crash if a heredoc was not properly ended and parsing continued. Example (in interactive mode): cat <<EOF && ) The next command typed caused sh to segfault, because the state for the here document was not reset. Like parser_temp, this uses the fact that the parser is not re-entered. Revision Changes Path 1.80 +1 -0 src/bin/sh/parser.c 1.1 +5 -0 src/tools/regression/bin/sh/parser/heredoc6.0 (new)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201005301422.o4UEMAls055766>