You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by bu...@apache.org on 2001/07/30 14:38:52 UTC

[Bug 2596] - Bad DTD crashes DOM Parser.

PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT
ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW
AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE
DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL
BE LOST SOMEWHERE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2596

*** shadow/2596	Thu Jul 12 06:07:58 2001
--- shadow/2596.tmp.22703	Mon Jul 30 05:38:52 2001
***************
*** 1,7 ****
  +============================================================================+
  | Bad DTD crashes DOM Parser.                                                |
  +----------------------------------------------------------------------------+
! |        Bug #: 2596                        Product: Xerces-C                |
  |       Status: NEW                         Version: Nightly build           |
  |   Resolution:                            Platform: Other                   |
  |     Severity: Normal                   OS/Version: Other                   |
--- 1,7 ----
  +============================================================================+
  | Bad DTD crashes DOM Parser.                                                |
  +----------------------------------------------------------------------------+
! |        Bug #: 2596                        Product: Xerces-C++              |
  |       Status: NEW                         Version: Nightly build           |
  |   Resolution:                            Platform: Other                   |
  |     Severity: Normal                   OS/Version: Other                   |
***************
*** 23,26 ****
    someattribute #CDATA #REQUIRED
  
  I think that the DOMParser should have thrown an exception instead of
! segfaulting.
--- 23,60 ----
    someattribute #CDATA #REQUIRED
  
  I think that the DOMParser should have thrown an exception instead of
! segfaulting.
! 
! ------- Additional Comments From tng@ca.ibm.com  2001-07-30 05:38 -------
! I have modified personal.dtd to:
! 
! C:\>cat d:\mydoc\xml\myxml\personal_bad.dtd
! <?xml encoding="ISO-8859-1"?>
! 
! <!-- @version:  -->
! 
! <!ELEMENT personnel (person)+>
! <!ELEMENT person (name,email*,url*,link?)>
! <!--ATTLIST person id ID #REQUIRED-->
! <!ATTLIST person #REQUIRED>
! <!ELEMENT family (#PCDATA)>
! <!ELEMENT given (#PCDATA)>
! <!ELEMENT name (#PCDATA|family|given)*>
! <!ELEMENT email (#PCDATA)>
! <!ELEMENT url EMPTY>
! <!ATTLIST url href CDATA #REQUIRED>
! <!ELEMENT link EMPTY>
! <!ATTLIST link
!   manager IDREF #IMPLIED
!   subordinates IDREFS #IMPLIED>
! 
! And I got the expected error message without crash:
! C:\>DOMCount d:\mydoc\xml\myxml\personal_bad_dtd.xml
! 
! Fatal Error at file d:\mydoc\xml\myxml\personal_bad.dtd, line 8, char 18
!   Message: Expected an attribute name
! 
! Errors occured, no output available
! 
! Can you post your dtd file for further investigation?  Or have you 
! turned on any specific feature?

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org