emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Unicode Lisp reader escapes


From: Aidan Kehoe
Subject: Re: [PATCH] Unicode Lisp reader escapes
Date: Mon, 8 May 2006 16:24:40 +0200

 Ar an t-ochtú lá de mí Bealtaine, scríobh Stefan Monnier: 

 > > In the calling sequence of
 > > Fread-> read_internal_start->read0->read1, I see no place
 > > where the original `tem' is GCPROed.  Do I overlook
 > > something?
 > 
 > Why would it need to be protected? it's not used afterwards.

It can theoretically disappear in the middle of being used. With my patch,
if the string consisted of "\u20AC one two", Lisp will be called, the
garbage collector may be invoked, and the string overwritten, since to the
GC it’s not in use. Then the READCHAR -> retry loop may end up reading
incorrect data. 

-- 
Aidan Kehoe, http://www.parhasard.net/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]