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 
correctrly.

	Just my 2 cents.
-- 
	Alberto González Palomo
	Toledo, Spain
	matmota@linuxfreak.com
	agp@diskobolo.mat.ucm.es
Received on Thursday, 9 September 1999 19:15:21 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 April 2014 11:01:33 UTC