[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Major problems with string handling in expat

  • From: James Clark <jjc@j...>
  • To: XML-Dev Mailing list <xml-dev@x...>
  • Date: Sun, 02 Jul 2000 08:44:53 +0700

xml string handling
Try the version in:

  http://thaiopensource.com/dist/expat/test/

It fixes a bug that sounds like the one you're encountering.

Martin Gudgin wrote:
> 
> Hi Everyone,
> 
> In trying to use expat a lot recently we have found lots of problems with
> shallow copies of pointers into string pools in addition to a couple of
> wchar_t bugs.
> 
> We're especially interested to know if anyone has fixes for the string
> pointer bugs.
> 
> We think it's a couple of days work to fix the problems and none has fixes
> already we'll do the work and pass the resulting code on the jjc. We just
> want to avoid duplicating what someone has already done if possible.
> 
> When the PREFIX is added to the hash table the string is only a shallow copy
> and it doesn't take much for the pointers to get trashed when the buffers
> get reallocated in the pool. This means the pointer to the string containing
> the URI is pointing to garbage and consequently the URI never gets matched
> :-(
> 
> The problem is fairly random but we come across it when doing a lot of
> namespace work. One simple test case is;
> 
> <foo xmlns='http://marting.develop.com/foo' xml:lang='en-us'/>
> 
> where the nsuri for the xml namespace which expat pre-caches gets trashed
> and the attribute is fed to the application with the xml prefix instead of
> the nsuri.
> 
> We're using expat 1.1 ( latest source file date stamp 29th May 1999 )
> 
> Regards
> 
> Don Box and Martin Gudgin
> DevelopMentor
> 
> ***************************************************************************
> This is xml-dev, the mailing list for XML developers.
> To unsubscribe, mailto:majordomo@x...&BODY=unsubscribe%20xml-dev
> List archives are available at http://xml.org/archives/xml-dev/
> ***************************************************************************


***************************************************************************
This is xml-dev, the mailing list for XML developers.
To unsubscribe, mailto:majordomo@x...&BODY=unsubscribe%20xml-dev
List archives are available at http://xml.org/archives/xml-dev/
***************************************************************************

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.