Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Purified zsh-3.0.1



Hrvoje Niksic wrote:
:I have run a purified version of zsh-3.0.1 on solaris2.5, and here is
:what I got:
:ABR: Array bounds read
:This is in refreshline [zle_refresh.c:583]:
:               /* 3: main display loop - write out the buffer using whatever tricks we can */
:                   for (;;) {
:            =>         if (*nl && nl[1] == ol[1])      /* skip only if second chars match */
:I hope this will help debugging...  Those ABR-s in line editor could
:be the cause of coredumps seen on Ultrix, that are quite hard to
:repeat.

This is a patch (on top of 2351 and its predecessor though it'll patch without
them)
I believe it will fix said problem.  It doesn't seem likely to me that it
would be the cause of any coredumps.

*** zle_refresh.c.~2~	Sat Nov  9 21:08:12 1996
--- zle_refresh.c	Sun Nov 10 16:01:03 1996
***************
*** 615,621 ****
  /* 3: main display loop - write out the buffer using whatever tricks we can */
  
      for (;;) {
! 	if (*nl && nl[1] == ol[1])	/* skip only if second chars match */
  	/* skip past all matching characters */
  	    for (; *nl && (*nl == *ol); nl++, ol++, ccs++) ;
  
--- 615,621 ----
  /* 3: main display loop - write out the buffer using whatever tricks we can */
  
      for (;;) {
! 	if (*nl && *ol && nl[1] == ol[1]) /* skip only if second chars match */
  	/* skip past all matching characters */
  	    for (; *nl && (*nl == *ol); nl++, ol++, ccs++) ;
  

-- 
Geoff Wing [gwing@xxxxxxxxxxxxxxx]   Technical Manager
  Phone    : +61-3-9818 2977	     PrimeNet - Internet Consultancy
  Facsimile: +61-3-9819 3788	     Web : <URL:http://www.primenet.com.au/>
  Mobile   : 0412 162 441



Messages sorted by: Reverse Date, Date, Thread, Author