From owner-freebsd-current Fri Jul 28 6:21:35 2000 Delivered-To: freebsd-current@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 542) id 865D237C1E3; Fri, 28 Jul 2000 06:21:33 -0700 (PDT) Date: Fri, 28 Jul 2000 06:21:33 -0700 From: "Andrey A. Chernov" To: Martin Cracauer Cc: Jun Kuriyama , cracauer@FreeBSD.ORG, Current Subject: Re: /bin/sh dumps core with here-document of 8bit text Message-ID: <20000728062133.B49657@freebsd.org> References: <7mr98fq7b4.wl@waterblue.imgsrc.co.jp> <20000728090349.A9976@cons.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: <20000728090349.A9976@cons.org>; from cracauer@cons.org on Fri, Jul 28, 2000 at 09:03:49AM +0200 Organization: Biomechanoid Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, Jul 28, 2000 at 09:03:49AM +0200, Martin Cracauer wrote: > 1) It seems that you can work around the coredump by looking at the > next char after \202. For real expansions of variables in > here-documents that is \201. Once can probably determine all > possible legal combinations and ignore others. However, that The problem is that all combinations are legal, there can be binary data passed. It means that all control chars must be double-escaped first just after data reading. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message