changeset 2167:54e1ecdc5778

[xemacs-hg @ 2004-07-07 01:52:14 by stephent] fix buffer overrun crash <87llhwr3e3.fsf@tleepslib.sk.tsukuba.ac.jp>
author stephent
date Wed, 07 Jul 2004 01:52:17 +0000
parents 88a1aad899aa
children 95fee4a1420e
files src/ChangeLog src/syntax.c
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Tue Jul 06 21:50:23 2004 +0000
+++ b/src/ChangeLog	Wed Jul 07 01:52:17 2004 +0000
@@ -1,3 +1,8 @@
+2004-07-06  Lutz Euler  <lutz.euler@freenet.de>
+
+	* syntax.c (setup_syntax_cache): Fix behavior for buffers
+	containing multibyte chars.
+
 2004-06-29  Jerry James  <james@xemacs.org>
 
 	* specifier.c (check_valid_inst_list): Change LIST_LOOP to
--- a/src/syntax.c	Tue Jul 06 21:50:23 2004 +0000
+++ b/src/syntax.c	Wed Jul 07 01:52:17 2004 +0000
@@ -307,7 +307,7 @@
       if (count <= 0)
 	{
 	  from--;
-	  from = buffer_or_string_clip_to_accessible_byte (cache->object,
+	  from = buffer_or_string_clip_to_accessible_char (cache->object,
 							   from);
 	}
       if (!(from >= cache->prev_change && from < cache->next_change))