axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject cvs commit: ws-axis/c/src/soap SoapDeSerializer.cpp
Date Tue, 22 Feb 2005 03:44:08 GMT
samisa      2005/02/21 19:44:08

  Modified:    c/src/soap SoapDeSerializer.cpp
  Log:
  Added logic so that it does not crash on invalid XML with ANY type.
  Fix for AXISCPP-293
  
  Revision  Changes    Path
  1.147     +11 -0     ws-axis/c/src/soap/SoapDeSerializer.cpp
  
  Index: SoapDeSerializer.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/soap/SoapDeSerializer.cpp,v
  retrieving revision 1.146
  retrieving revision 1.147
  diff -u -r1.146 -r1.147
  --- SoapDeSerializer.cpp	18 Feb 2005 11:11:19 -0000	1.146
  +++ SoapDeSerializer.cpp	22 Feb 2005 03:44:08 -0000	1.147
  @@ -4166,6 +4166,17 @@
   	}
   
   	m_pNode = m_pParser->anyNext ();
  +
  +        if (!m_pNode) // Samisa: there is something wrong in the XSD Any XML strean
  +        {	      // Store whatever we have by now and break
  +            if (!xmlStr.empty ())
  +            {
  +                lstXML.push_back (xmlStr);
  +                xmlStr = "";
  +            }
  +            break;
  +        }
  +
   	if (END_ELEMENT == m_pNode->m_type)
   	{
   	    tagCount--;
  
  
  

Mime
View raw message