Re: [xml] hexBinary type implementation in xmlschemastypes.c



On Fri, Jul 11, 2003 at 09:07:28AM -0500, cbozeman hiwaay net wrote:
I was able to reproduce the segmentation fault by modifying the item_0.
[xsd|xml] schema tests so that USPrice is hexBinary datatype and then set the 
USPrice element in item_0.xml to empty. The problem is I didn't check for NULL 
content. I don't have cvs access at work so I can't produce a patch until 
later. If you can wait, I will patch it tonight. All that is needed is:
line 1927 of xmlschemastypes.c
if (cur == NULL)
    goto return1;

  done,

I am planning to use strings to store the lexical hexBinary information 
instead of converting to binary so that any hexBinary value can be infinitely 
long. 

  okay... actually one would like to be able to stream over very large
hexBin strings but the API doesn't aloow this right now...

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]