From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 125 invoked from network); 25 Nov 2008 18:41:48 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 25 Nov 2008 18:41:48 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 21856 invoked from network); 25 Nov 2008 18:41:15 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 25 Nov 2008 18:41:14 -0000 Received: (qmail 19026 invoked by alias); 25 Nov 2008 18:41:07 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 26092 Received: (qmail 18905 invoked from network); 25 Nov 2008 18:41:03 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 25 Nov 2008 18:41:03 -0000 Received: from cluster-g.mailcontrol.com (cluster-g.mailcontrol.com [208.87.233.190]) by bifrost.dotsrc.org (Postfix) with ESMTPS id DC8A780525B4 for ; Tue, 25 Nov 2008 19:41:00 +0100 (CET) Received: from cameurexb01.EUROPE.ROOT.PRI ([193.128.72.68]) by rly26g.srv.mailcontrol.com (MailControl) with ESMTP id mAPIecJH023274 for ; Tue, 25 Nov 2008 18:40:55 GMT Received: from news01.csr.com ([10.103.143.38]) by cameurexb01.EUROPE.ROOT.PRI with Microsoft SMTPSVC(6.0.3790.3959); Tue, 25 Nov 2008 18:40:49 +0000 Received: from news01.csr.com (localhost.localdomain [127.0.0.1]) by news01.csr.com (8.14.2/8.13.4) with ESMTP id mAPIenhf031091 for ; Tue, 25 Nov 2008 18:40:49 GMT Received: from csr.com (pws@localhost) by news01.csr.com (8.14.2/8.14.2/Submit) with ESMTP id mAPIemEA031087 for ; Tue, 25 Nov 2008 18:40:49 GMT Message-Id: <200811251840.mAPIemEA031087@news01.csr.com> X-Authentication-Warning: news01.csr.com: pws owned process doing -bs To: zsh-workers@sunsite.dk Subject: Re: Seg. Fault when calling "cd" with set "chpwd" hook from a widget In-reply-to: <20081125183628.5194962b@news01> References: <20081125000535.GC30055@unknown> <20081125183628.5194962b@news01> Comments: In-reply-to Peter Stephenson message dated "Tue, 25 Nov 2008 18:36:28 +0000." Date: Tue, 25 Nov 2008 18:40:48 +0000 From: Peter Stephenson X-OriginalArrivalTime: 25 Nov 2008 18:40:49.0979 (UTC) FILETIME=[567AF0B0:01C94F2D] X-Scanned-By: MailControl A_08_51_00 (www.mailcontrol.com) on 10.71.0.136 X-Virus-Scanned: ClamAV 0.92.1/8679/Tue Nov 25 14:08:31 2008 on bifrost X-Virus-Status: Clean Peter Stephenson wrote: > Actually, I think that's the right fix: I recently moved the *hptr = '\0' > up to that point because in some cases chline gets accessed quite early, > but I didn't do the checks that are usually done before accessing it. Hmm... actually, I'm not so sure on reinspection. Probably needs deeper investigation. -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070