GNU bug report logs - #1864
23.0.60; detect attached file coding system, make emacs crash.

Previous Next

Package: emacs;

Reported by: Wang Diancheng <dianchengwang <at> gmail.com>

Date: Mon, 12 Jan 2009 03:00:03 UTC

Severity: normal

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: "Juanma Barranquero" <lekktu <at> gmail.com>
To: "Chong Yidong" <cyd <at> stupidchicken.com>
Cc: 1864 <at> debbugs.gnu.org, "Kenichi Handa" <handa <at> m17n.org>,
        "Wang Diancheng" <dianchengwang <at> gmail.com>
Subject: bug#1864: 23.0.60; detect attached file coding system, make emacs crash.
Date: Wed, 14 Jan 2009 09:44:34 +0100
On Wed, Jan 14, 2009 at 04:54, Chong Yidong <cyd <at> stupidchicken.com> wrote:

> *** 1612,1617 ****
> --- 1612,1621 ----
>        {
>          ONE_MORE_BYTE (c1);
>          ONE_MORE_BYTE (c2);
> +
> +         if (c1 < 0 || c2 < 0)
> +           break;
> +
>          if (! e[c1])
>            {
>              e[c1] = 1;

Don't you need a test also before lines 1605-1606, where c1 and c2 are
used as array indexes?

  Juanma




This bug report was last modified 16 years and 133 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.