# HG changeset patch # User stephent # Date 1089165137 0 # Node ID 54e1ecdc5778cf87ef640bdba84fea7e9e02ad42 # Parent 88a1aad899aaf913bf5936bd5c1b33380ba1af2d [xemacs-hg @ 2004-07-07 01:52:14 by stephent] fix buffer overrun crash <87llhwr3e3.fsf@tleepslib.sk.tsukuba.ac.jp> diff -r 88a1aad899aa -r 54e1ecdc5778 src/ChangeLog --- 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 + + * syntax.c (setup_syntax_cache): Fix behavior for buffers + containing multibyte chars. + 2004-06-29 Jerry James * specifier.c (check_valid_inst_list): Change LIST_LOOP to diff -r 88a1aad899aa -r 54e1ecdc5778 src/syntax.c --- 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))