emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: address@hidden (Pavel Janík)] Re: crash in emacs-21.1


From: Eli Zaretskii
Subject: Re: address@hidden (Pavel Janík)] Re: crash in emacs-21.1
Date: Tue, 30 Oct 2001 18:50:56 +0200

> From: address@hidden (Gerd Moellmann)
> Date: 30 Oct 2001 14:19:00 +0100
> 
> Kenichi Handa <address@hidden> writes:
> 
> > Thank you!  With this, I found a bug in read1 (in lread.c).
> > It was me who introduced this bug.  :-(
> 
> The only way not to make mistakes is to do nothing at all :-).

Indeed.

> I think this copes with the buffer reallocation, but the reallocation
> isn't triggered with the elc files, and the result is identical to
> what it was before (same backtrace etc.).
[...]
> + static void
> + to_multibyte (p, end, nchars)
> +      char **p, **end;
> +      int *nchars;
> + {
> +   int nbytes;
> + 
> +   parse_str_as_multibyte (read_buffer, *p - read_buffer, &nbytes, nchars);
> +   if (nbytes > read_buffer_size)

Shouldn't the last line be sonmething like

  if (nbytes > nchars)

?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]