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

Re: Bugs with exclusion using file paths.



Peter Stephenson wrote:

> ...
> @@ -1810,8 +1814,11 @@
>  				     */
>  				    parsfound = savparsfound;
>  				}
> -				if (buf)
> +				if (buf) {
>  				    zfree(buf, pathpos + patinlen);
> +				    patinstart = savpatinstart;
> +				    patinlen = savpatinlen;
> +				}
>  				if (!ret)
>  				    break;
>  				next = PATNEXT(next);

With something like **/_*~*~ I now get lots of:

  BUG: attempt to free more than allocated.

warnings. I haven't grokked all this pattern.c stuff, so I can't send
a patch (I don't even know if the problem is just with the second arg
to zfree() or if this shows a real bug).

Bye
 Sven


--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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