Re: Amaya crashes with past-end-of-document text/plain fragment identifier

Irene Vatton <[email protected]> Mon, 9 Jul 2007 14:31:46 +0200
Newsgroups gmane.comp.web.amaya.devel
Organization INRIA
Message-ID <[email protected]>
On Saturday 07 July 2007 07:46, Martin Duerst wrote:
> Hello Yusuke,
>
> I tried out the text/plain fragment identifers in Amaya 9.55.
> For some examples, it works very well, e.g.:
> http://www.ietf.org/internet-drafts/draft-wilde-text-fragment-07.txt#char=2
>0090,20109
>
> But a character count past the end of the document crashes
> Amaya:
> http://www.ietf.org/internet-drafts/draft-wilde-text-fragment-07.txt#char=2
>0090,201090 The spec says that it should be interpreted as a fragment that
> does up to the end of the document.
>
> Can you check/fix this?
>
> Thanks,    Martin.
>
>
> #-#-#  Martin J. Du"rst, Assoc. Professor, Aoyama Gakuin University
> #-#-#  http://www.sw.it.aoyama.ac.jp       mailto:[email protected]

I added some check of initial values according to the spec and a new 
implementation (#ifndef IV)
The previous code is still there with some minor changes (#else /* IV */)

I hope the new code is okay.
     Irène.
-----
Irène Vatton                     INRIA Rhône-Alpes
INRIA                               ZIRST
e-mail: [email protected]       655 avenue de l'Europe
Tel.: +33 4 76 61 53 61             Montbonnot
Fax:  +33 4 76 61 52 07             38334 Saint Ismier Cedex - France