Subject: Re: bug#11073: 24.0.94; BIDI-related crash in redisplay with certain byte sequences

From: Eli Zaretskii <[email-masked]>
Date: Fri, 23 Mar 2012 14:35:28 +0200

> Date: Fri, 23 Mar 2012 12:55:19 +0200
> From: Eli Zaretskii <[email-masked]>
> 
>  emacs -Q
>  C-x C-f bidicrash.txt RET
> 
> where the file bidicrash.txt was created with this shell command:
> 
>  echo -e "\0365\0205\0264\0225"
> 
> (On Windows, use the port of GNU `echo' rather than the built-in shell
> command.)
> 
> Emacs crashes; the backtrace is below.
> 
> I'm working on fixing this.

Fixed in revision 107665 on the trunk.  It was a pretty basic blunder.

(Repeat after me: FETCH_MULTIBYTE_CHAR followed by CHAR_BYTES is not
always equivalent to STRING_CHAR_AND_LENGTH.)