Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Jul 2000 15:24:41 +0200
From:      Martin Cracauer <cracauer@cons.org>
To:        "Andrey A. Chernov" <ache@FreeBSD.ORG>
Cc:        Martin Cracauer <cracauer@cons.org>, 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:  <20000728152440.A14570@cons.org>
In-Reply-To: <20000728062133.B49657@freebsd.org>; from ache@FreeBSD.ORG on Fri, Jul 28, 2000 at 06:21:33AM -0700
References:  <7mr98fq7b4.wl@waterblue.imgsrc.co.jp> <20000728090349.A9976@cons.org> <20000728062133.B49657@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
In <20000728062133.B49657@freebsd.org>, Andrey A. Chernov wrote: 
> 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.

Exactly.  When I'm going to fix it, I will use the other solution (char*
-> int* for internal parsed buffers).

Martin
-- 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Martin Cracauer <cracauer@cons.org> http://www.cons.org/cracauer/
BSD User Group Hamburg, Germany     http://www.bsdhh.org/


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?20000728152440.A14570>