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

Re: [BUG] sigsegv



> On 03/05/2023 16:35 Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx> wrote:
> The error occurs with patch. I've played around in gdb:
> 
> (gdb) p (int)(e-hstr)
> $65 = -31903
> 
> This should be positive – e points to a \0 inserted in hstr. That's
> why printing e shows unexpected values. How come wend became negative?

Very good question --- I'll add the test for that as a first step but
there shouldn't be too many places in the code where that can come from.

I wonder if it's interpreting a bad status return as a length.

pws




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