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

Re: Cores almost on demand in patcompile()



On Thu, 20 Oct 2016 11:56:30 +0200
Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx> wrote:
> On 20 October 2016 at 11:32, Peter Stephenson <p.stephenson@xxxxxxxxxxx> wrote:
> > On Thu, 20 Oct 2016 07:55:13 +0200
> > See if this helps (I think next is the key one to update):
> >
> > diff --git a/Src/pattern.c b/Src/pattern.c
> 
> Still segfaults in the same place, and Valgrind reports two 8-byte reads.

Hmm... well, what I've posted fixes the pointers at line 650 of
pattern.c

		for (; pscan; pscan = next) {
		    next = PATNEXT(pscan);

where they would have been wrong before, so if you're *still* seeing
problems after the change, you've found something else.

pws



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