tng         2002/11/14 14:16:04

  Modified:    c/src/xercesc/util XMLUri.cpp
  Log:
  [Bug 14479] XMLString::subString failure when len(source)==0
  
  Revision  Changes    Path
  1.7       +9 -1      xml-xerces/c/src/xercesc/util/XMLUri.cpp
  
  Index: XMLUri.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/util/XMLUri.cpp,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- XMLUri.cpp        4 Nov 2002 15:22:05 -0000       1.6
  +++ XMLUri.cpp        14 Nov 2002 22:16:04 -0000      1.7
  @@ -376,6 +376,14 @@
           index = XMLString::stringLen(fScheme)+1;
       }
   
  +    // It's an error if we stop here
  +    if (index == trimedUriSpecLen)
  +    {
  +        ThrowXML1(NumberFormatException
  +                , XMLExcepts::XMLNUM_URI_Component_Empty
  +                , errMsg_PATH);
  +     }
  +
        // two slashes means generic URI syntax, so we get the authority
       XMLCh* authUriSpec = new XMLCh[trimedUriSpecLen+1];
       ArrayJanitor<XMLCh> authName(authUriSpec);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to