Return-Path: Delivered-To: apmail-xml-xalan-cvs-archive@xml.apache.org Received: (qmail 27890 invoked by uid 500); 3 Jun 2003 00:42:12 -0000 Mailing-List: contact xalan-cvs-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: Delivered-To: mailing list xalan-cvs@xml.apache.org Received: (qmail 27877 invoked from network); 3 Jun 2003 00:42:12 -0000 Received: from icarus.apache.org (208.185.179.13) by daedalus.apache.org with SMTP; 3 Jun 2003 00:42:12 -0000 Received: (qmail 13076 invoked by uid 1034); 3 Jun 2003 00:42:11 -0000 Date: 3 Jun 2003 00:42:10 -0000 Message-ID: <20030603004210.13071.qmail@icarus.apache.org> From: dbertoni@apache.org To: xml-xalan-cvs@apache.org Subject: cvs commit: xml-xalan/c/src/XSLT Stylesheet.cpp X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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: xalan-cvs-unsubscribe@xml.apache.org For additional commands, e-mail: xalan-cvs-help@xml.apache.org