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



On Fri, Jul 11, 2003 at 01:25:40PM +0200, Peter Sobisch wrote:
Hi Daniel, Hi All,

the recently implementation of hexBinary in xmlschemastypes.c causes
segmentation fault if the value is a NULL pointer (because of char comparison).
This case occurres if a hexBinary Node looks like this: <node/>.

  Hum, I can't reproduce this:

paphio:~/XML -> cat tst.xml
<node/>
paphio:~/XML -> cat tst.rng
<element name="node" xmlns="http://relaxng.org/ns/structure/1.0";
         datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes";>
  <data type="hexBinary"/>
</element>
paphio:~/XML -> xmllint --noout --relaxng tst.rng tst.xml
tst.xml validates
paphio:~/XML ->

 what's missing ?

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]