W3C home > Mailing lists > Public > www-amaya@w3.org > July to September 1999

MathML parser bug fix.

From: <matmota@linuxfreak.com>
Date: Thu, 09 Sep 1999 23:43:20 +0200
Message-Id: <m11PByT-0008f0C@matmota>
To: www-amaya@w3.org

	This bug causes Amaya to be unable to recognize the 
"&DoubleLeftRightArrow;" entity when loading a file.
	The cause is in the file "Amaya/amaya/MathMLbuilder.c", in line 
30 (for Amaya 2.1), which is:

typedef UCHAR_T  MathEntityName[20];

	The longest entity name, precisely "DoubleLeftRightArrow", is 
20 *plus 1* (the ending null) characters long, so this table entry gets 
corrupted on initialization.
	A solution is to make it larger, i.e. 30 characters:

typedef UCHAR_T  MathEntityName[30];

	Whith this change, the above mentioned entity is handled 

	Just my 2 cents.
	Alberto González Palomo
	Toledo, Spain
Received on Thursday, 9 September 1999 19:15:21 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:53:20 UTC