dbertoni 2003/06/02 17:42:09
Modified: c/src/XSLT Stylesheet.cpp
Log:
Added a few asserts for safety.
Revision Changes Path
1.92 +3 -1 xml-xalan/c/src/XSLT/Stylesheet.cpp
Index: Stylesheet.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XSLT/Stylesheet.cpp,v
retrieving revision 1.91
retrieving revision 1.92
diff -u -r1.91 -r1.92
--- Stylesheet.cpp 5 Mar 2003 05:03:25 -0000 1.91
+++ Stylesheet.cpp 3 Jun 2003 00:42:09 -0000 1.92
@@ -867,6 +867,8 @@
const MatchPattern2* thePatternArray[],
unsigned int& thePatternArraySize)
{
+ assert(thePattern != 0 && thePatternArray != 0);
+
if (thePatternArraySize == 0)
{
thePatternArray[0] = thePattern;
@@ -1232,7 +1234,7 @@
if(nConflicts > 0)
{
- assert(conflicts != 0);
+ assert(conflicts != 0 && nConflicts <=
m_patternCount);
XalanDOMString
conflictsString(XALAN_STATIC_UCODE_STRING("Specificity conflicts found: "));
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]