Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug#367823: zsh: segfault when completing arrays
- X-seq: zsh-workers 22448
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx, Frank Terbeck <frank.terbeck@xxxxxxxxxxxxxx>, 367823-forwarded@xxxxxxxxxxxxxxx
- Subject: Re: Bug#367823: zsh: segfault when completing arrays
- Date: Fri, 19 May 2006 11:05:55 +0100
- In-reply-to: <20060518131226.GA19838@xxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20060518120635.11242.54875.reportbug@xxxxxxxxxxxxxxx> <20060518131226.GA19838@xxxxxxxxxxx>
Clint Adams wrote:
> > Howdy.
> > zsh 4.3.2 crashes with sig11 when doing the following:
> >
> > [snip]
> > % zsh -f
> > % autoload compinit; compinit
> > % array=( 5 4 3 2 1 )
> > % print $array[4]
> > ^- place your cursor here and hit <TAB>
> > [snap]
> >
> > I've tested this on a sarge system with zsh 4.2.5 and that version is
> > not affected by this problem.
>
> Should zlemetaline be 0 or should zleline + zlemetacs be non-zero?
I suspect it's just a typo...
Index: Src/Zle/zle_params.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/zle_params.c,v
retrieving revision 1.28
diff -u -r1.28 zle_params.c
--- Src/Zle/zle_params.c 7 Mar 2006 21:31:43 -0000 1.28
+++ Src/Zle/zle_params.c 19 May 2006 10:04:48 -0000
@@ -300,7 +300,8 @@
get_rbuffer(UNUSED(Param pm))
{
if (zlemetaline != NULL)
- return dupstrpfx((char *)zleline + zlemetacs, zlemetall - zlemetacs);
+ return dupstrpfx((char *)zlemetaline + zlemetacs,
+ zlemetall - zlemetacs);
return zlelineasstring(zleline + zlecs, zlell - zlecs, 0, NULL, NULL, 1);
}
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
To access the latest news from CSR copy this link into a web browser: http://www.csr.com/email_sig.php
Messages sorted by:
Reverse Date,
Date,
Thread,
Author