Subject: Re: bug#1864: 23.0.60; detect attached file coding system, make emacs crash.

From: "Juanma Barranquero" <[email-masked]>
Date: Wed, 14 Jan 2009 09:44:34 +0100

On Wed, Jan 14, 2009 at 04:54, Chong Yidong <[email-masked]> 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