[Expat-discuss] Memory error while using expat
roel.dijkema@philips.com
roel.dijkema@philips.com
Thu Aug 8 02:28:09 2002
This is a multipart message in MIME format.
---------------------- multipart/alternative attachment
Hello,
I am using expat to parse XML-files in an ansi- C-application on HPUX-11
machine en GCC built. All XML-files are automatically generated.
With some files my application core-dumps (crash): memory error. I traced
it back to the function lookup just prior to calling the function hash.
The pointer to the
string which is argument for hash points to an illegal address (totally
out of range with respect to the previous addresses used). I have no idea
why this happens.
I was able to find a containment: increment INIT_SIZE from 64 to 128, but
I have no guarantee this will work in any future file.
Any suggestion how to prevent this or why this is happening is welcome !
Kind Regards
Roel
_
Ing Roel Dijkema
senior ICT engineer
PHILIPS Semiconductors - ATO Nijmegen
Information & Automation Group
Gerstweg 2, 6534 AE Nijmegen, The Netherlands
bld: AO-1.108
pho: +31 24 353 4041
fax : +31 24 353 2123
---------------------- multipart/alternative attachment
An HTML attachment was scrubbed...
URL: http://mail.libexpat.org/pipermail-21/expat-discuss/attachments/20020808/89d39653/attachment.html
---------------------- multipart/alternative attachment--