Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bugs with exclusion using file paths.
- X-seq: zsh-workers 10320
- From: Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: Bugs with exclusion using file paths.
- Date: Tue, 28 Mar 2000 21:48:30 +0100
- In-reply-to: "Sven Wischnowsky"'s message of "Wed, 29 Mar 2000 10:26:47 +0200." <200003290826.KAA21838@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Sven Wischnowsky wrote:
> > + if (buf) {
> > zfree(buf, pathpos + patinlen);
> > + patinstart = savpatinstart;
> > + patinlen = savpatinlen;
>
> With something like **/_*~*~ I now get lots of:
>
> BUG: attempt to free more than allocated.
>
> warnings.
Very stupid, sorry; use the original pattern length, not the temporrary
one. For boring technical reasons due to the way my front-end to configure
is run, I didn't have Zsh memory allocation on, or I would presumably have
picked it up.
Let me know if there is still a problem after this. I tried **/*~(.)# in
my home directory, with zsh-mem turned on, which ought to have tickled any
bug of this kind.
Index: Src/pattern.c
===================================================================
RCS file: /home/pws/CVSROOT/projects/zsh/Src/pattern.c,v
retrieving revision 1.7
diff -u -r1.7 pattern.c
--- Src/pattern.c 2000/03/27 21:40:57 1.7
+++ Src/pattern.c 2000/03/28 20:16:50
@@ -1815,9 +1815,9 @@
parsfound = savparsfound;
}
if (buf) {
- zfree(buf, pathpos + patinlen);
patinstart = savpatinstart;
patinlen = savpatinlen;
+ zfree(buf, pathpos + patinlen);
}
if (!ret)
break;
--
Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxx>
Work: pws@xxxxxxxxxxxxxxxxxxxxxxxxx
Web: http://www.pwstephenson.fsnet.co.uk
Messages sorted by:
Reverse Date,
Date,
Thread,
Author