Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Jul 2000 06:21:33 -0700
From:      "Andrey A. Chernov" <ache@freebsd.org>
To:        Martin Cracauer <cracauer@cons.org>
Cc:        Jun Kuriyama <kuriyama@FreeBSD.ORG>, cracauer@FreeBSD.ORG, Current <FreeBSD-current@FreeBSD.ORG>
Subject:   Re: /bin/sh dumps core with here-document of 8bit text
Message-ID:  <20000728062133.B49657@freebsd.org>
In-Reply-To: <20000728090349.A9976@cons.org>; from cracauer@cons.org on Fri, Jul 28, 2000 at 09:03:49AM %2B0200
References:  <7mr98fq7b4.wl@waterblue.imgsrc.co.jp> <20000728090349.A9976@cons.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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
<ache@nagual.pp.ru>
http://ache.pp.ru/


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000728062133.B49657>