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

Re: PATCH: 3.1.6-test-3: core dump on parameter completion



Peter Stephenson wrote:

> Got it!  There's a missing dupstring(); the cline struct is an invalid
> pointer (it's the positional parameter list from the function redefining
> compadd, which will be freed before the line is inserted), even though the
> returned completion r is correctly duplicated.  The only thing I can't
> answer is whether r is really supposed to be different from w at this
> point, but let's assume so until proved otherwise.

Yes, that's correct. Other parts of the code may shorten the strings
in the cline lists (my last matching-code overhaul may have changed
the code so that the strings aren't really modified any more, but it's 
still safer).

Bye
 Sven


--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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