[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: potential bug in display_mode_element?
From: |
Kenichi Handa |
Subject: |
Re: potential bug in display_mode_element? |
Date: |
Mon, 12 Sep 2005 20:54:47 +0900 |
User-agent: |
SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/22.0.50 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI) |
In article <address@hidden>, address@hidden (Kim F. Storm) writes:
> Kenichi Handa <address@hidden> writes:
>> I got a bug report for emacs-unicode-2, and it seems that
>> the same bug exists in HEAD too. The backtrace is this:
>> and never changed in the while loop. So the only reason I
>> can think of why the address pointed by list_string becomes
>> out of bound is that the string data of ELT was relocated in
>> the loop and the original address was returned to OS.
>> Actually, display_string is called in the loop, and it will
>> run Lisp code.
>>
>> So, I think we meed this change. What do you think?
> Bravo!! We definitely need this patch.
I forgot to update lisp_string in that patch. So the
attached one is better (and simpler). I've just installed
it.
---
Kenichi Handa
address@hidden
2005-09-12 Kenichi Handa <address@hidden>
* xdisp.c (display_mode_element): Be sure to make variables THIS
and LISP_STRING point into a string data of ELT.
*** xdisp.c 10 Sep 2005 09:35:12 +0900 1.1050
--- xdisp.c 12 Sep 2005 20:47:28 +0900
***************
*** 16171,16176 ****
--- 16171,16178 ----
else /* c == 0 */
break;
}
+ this += SDATA (elt) - lisp_string;
+ lisp_string = SDATA (elt);
}
}
break;
- potential bug in display_mode_element?, Kenichi Handa, 2005/09/11
- Re: potential bug in display_mode_element?, Kim F. Storm, 2005/09/12
- Re: potential bug in display_mode_element?,
Kenichi Handa <=
- Potential GC-related problems in compose_chars_in_text, Kim F. Storm, 2005/09/12
- Re: Potential GC-related problems in compose_chars_in_text, Kenichi Handa, 2005/09/12
- Re: Potential GC-related problems in compose_chars_in_text, Richard M. Stallman, 2005/09/13
- Re: Potential GC-related problems in compose_chars_in_text, Kenichi Handa, 2005/09/14
- Re: Potential GC-related problems in compose_chars_in_text, Richard M. Stallman, 2005/09/14
- Re: Potential GC-related problems in compose_chars_in_text, Kenichi Handa, 2005/09/15
- Re: Potential GC-related problems in compose_chars_in_text, Richard M. Stallman, 2005/09/15
- Re: Potential GC-related problems in compose_chars_in_text, Stefan Monnier, 2005/09/16
- Re: Potential GC-related problems in compose_chars_in_text, Richard M. Stallman, 2005/09/17
- Re: Potential GC-related problems in compose_chars_in_text, Stefan Monnier, 2005/09/19