[Expat-discuss] Memory error while using expat

Karl Waclawek karl@waclawek.net
Sat Aug 10 18:28:03 2002


> 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 !

If this is *not* an issue with the HPUX-11 environment, then
maybe we can reproduce your problem if you give us a detailed
test case.

Karl