Wireshark-bugs: [Wireshark-bugs] [Bug 9235] New: DTD parser doesn't handle colons (:)
Bug ID |
9235
|
Summary |
DTD parser doesn't handle colons (:)
|
Classification |
Unclassified
|
Product |
Wireshark
|
Version |
1.10.2
|
Hardware |
x86
|
OS |
Mac OS X 10.8
|
Status |
UNCONFIRMED
|
Severity |
Normal
|
Priority |
Low
|
Component |
Dissection engine (libwireshark)
|
Assignee |
bugzilla-admin@wireshark.org
|
Reporter |
zivan@stratoscale.com
|
Build Information:
1.10.2 SVN Rev 51934 from /trunk-1.10
--
DTD parser doesn't handle colons (:) in elements and attribute names.
For example, the XML I'm trying to parse is here:
http://www.soapuser.com/basics3.html
It contains element names like SOAP-ENV:Envelope and attribute names like
xmlns:xsi.
I wrote a DTD for it but if an element or attribute in the DTD contains a
colon, Wireshark fails to load it with error message:
Dtd Parser in file my.dtd: syntax error in my.dtd:6 at or before 'Envelope':
DTD parsing failure
syntax error at end of fileDTD parsing failure
It seems to me that Wireshark DTD parsing in /epan/dtd_parse.l doesn't take
into account that element and attribute names can validly contain a colon.
I think a possible fix would be to add a colon to:
name [A-Za-z0-9][-a-zA-Z0-9_]*
-->
name [A-Za-z0-9][-a-zA-Z0-9_:]*
Regards and thanks,
Zivan
You are receiving this mail because:
- You are watching all bug changes.