[Top][All Lists]
[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: |
Kenichi Handa |
Subject: |
Re: address@hidden (Pavel Janík)] Re: crash in emacs-21.1 |
Date: |
Wed, 31 Oct 2001 09:04:09 +0900 (JST) |
User-agent: |
SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.0.107 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI) |
address@hidden (Gerd Moellmann) writes:
> I guess I have it. It just occurred to me that for the worst case of
> having to add LEADING_CODE_8_BIT_CONTROL for every byte in its source
> string, str_as_multibyte needs a buffer that's somwhere twice as large
> as the input string. The function c-guess-basic-syntax has a large
> byte-code string of ~24K and that fits this observation nicely.
> When I make read_buffer at least 2 * nbytes large, things go well.
> I'll install that; issue settled.
As I wrote in the previous mail, the problem was that you
just doubled read_buffer_size, instead of setting it to
nbytes.
> It might be better to rewrite str_as_multibyte and maybe other similar
> functions in the future, or let them at least check for buffer
> overruns.
I agree.
---
Ken'ichi HANDA
address@hidden