Subject: bug#16457: 24.3.50; crash rendering Arabic Uthmani script

From: Dmitry Antipov <[email-masked]>
Date: Sun, 19 Jan 2014 20:00:46 +0400

On 01/19/2014 05:45 PM, K. Handa wrote:

> But, by checking my latest change again, I noticed a silly
> mistake :-(, and just installed the following patch.
>
> === modified file 'src/composite.c'
> --- src/composite.c	2014-01-12 23:23:55 +0000
> +++ src/composite.c	2014-01-19 13:24:59 +0000
> @@ -1412,7 +1412,7 @@
>         cmp_it->width = 0;
>         for (i = cmp_it->nchars - 1; i >= 0; i--)
>   	{
> -	  c = XINT (LGSTRING_CHAR (gstring, cmp_it->from + i));
> +	  c = XINT (LGSTRING_CHAR (gstring, from + i));
>   	  cmp_it->nbytes += CHAR_BYTES (c);
>   	  cmp_it->width += CHAR_WIDTH (c);
>   	}
>
> Coud you please try agian with the latest trunk code?

Now it doesn't crash, and column number looks correct. Thanks.

Dmitry