DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2374>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2374 Passing bad URL to DOMParser::parse gives seg. fault [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Additional Comments From [EMAIL PROTECTED] 2001-10-10 16:23 ------- I just committed the following patch which fixes the bug. An exception is thrown if a URL is the http protocol but does not supply two forward slashes. Please apply the patch local and see if it resolves your problem. jas. Index: src/util/XMLURL.cpp =================================================================== RCS file: /home/cvs/xml-xerces/c/src/util/XMLURL.cpp,v retrieving revision 1.19 diff -b -B -u -r1.19 XMLURL.cpp --- src/util/XMLURL.cpp 2001/10/09 12:24:05 1.19 +++ src/util/XMLURL.cpp 2001/10/10 23:13:59 @@ -945,6 +945,21 @@ srcPtr += XMLString::stringLen(fHost); } } + } + else + { + // + // http protocol requires two forward slashes + // we didn't get them, so throw an exception + // + if (fProtocol == HTTP) { + ThrowXML1 + ( + MalformedURLException + , XMLExcepts::URL_ExpectingTwoSlashes + , "Found 'http' protocol" + ); + } } // --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]