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

Re: A repeating core, just sharing backtrace



On Tue, 10 Jul 2018 14:33:19 +0100
Peter Stephenson <p.stephenson@xxxxxxxxxxx> wrote:
> diff --git a/Src/exec.c b/Src/exec.c
> index 5864020..47a4567 100644
> --- a/Src/exec.c
> +++ b/Src/exec.c
> @@ -4418,7 +4418,9 @@ gethere(char **strp, int typ)
>  	while ((c = hgetc()) == '\t' && strip)
>  	    ;
>  	for (;;) {
> -	    if (bptr == buf + bsiz) {
> +	    if (bptr >= buf + bsiz - 1) {

... make that "-2", because we need to allow for two *more* updates.
The previous logic just allowed for where we'd already got to, because
it just needed to check one position.  That doesn't work any more.

pws



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